/* ============================================================
   ERE — Réseau d'Entrepreneurs du Bugey
   Design System — Apple-inspired (DESIGN.md)
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --blue:        #0066cc;
  --blue-focus:  #0071e3;
  --blue-dark:   #2997ff;
  --ink:         #1d1d1f;
  --ink-80:      #333333;
  --ink-48:      #7a7a7a;
  --canvas:      #ffffff;
  --parchment:   #f5f5f7;
  --pearl:       #fafafc;
  --tile-1:      #272729;
  --tile-2:      #2a2a2c;
  --tile-3:      #252527;
  --black:       #000000;
  --hairline:    #e0e0e0;
  --divider:     #f0f0f0;
  --on-dark:     #ffffff;
  --muted-dark:  #cccccc;

  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-text:    "SF Pro Text",    system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 17px;
  --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px; --s-section: 80px;

  --r-xs: 5px; --r-sm: 8px; --r-md: 11px; --r-lg: 18px; --r-pill: 9999px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  font-size: 17px; font-weight: 400;
  line-height: 1.47; letter-spacing: -0.374px;
  color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
button { font-family: var(--font-text); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.global-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 44px;
  background: rgba(0,0,0,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  transition: background .3s;
}
.global-nav.scrolled { background: rgba(0,0,0,.95); }

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 22px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--on-dark); letter-spacing: -.2px;
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,.82); letter-spacing: -.12px;
  text-decoration: none; transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; opacity: 1; }
.nav-links a.nav-active { color: #fff; font-weight: 500; }

.nav-cta {
  font-size: 12px; font-weight: 400; color: #fff !important;
  background: var(--blue); padding: 6px 14px;
  border-radius: var(--r-pill); text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-focus); opacity: 1; }
.nav-cta:active { transform: scale(.95); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: all .3s;
}

.mobile-menu {
  display: none;
  position: fixed; top: 44px; left: 0; right: 0;
  background: rgba(0,0,0,.96);
  backdrop-filter: blur(20px);
  z-index: 999; padding: 32px 24px 40px;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul li a {
  display: block; font-size: 20px; font-weight: 400;
  color: rgba(255,255,255,.85); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.mobile-menu ul li a:hover { color: #fff; }
.mobile-menu-cta { margin-top: 24px; display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 400; line-height: 1;
  letter-spacing: -.374px; padding: 11px 22px;
  border-radius: var(--r-pill); border: none; cursor: pointer;
  text-decoration: none; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--blue-focus); color: #fff; opacity: 1; }
.btn-primary:active { transform: scale(.95); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--blue);
  font-size: 17px; font-weight: 400; line-height: 1;
  letter-spacing: -.374px; padding: 11px 22px;
  border-radius: var(--r-pill); border: 1px solid var(--blue);
  cursor: pointer; text-decoration: none; transition: all .2s, transform .15s;
}
.btn-secondary:hover { background: rgba(0,102,204,.08); opacity: 1; }
.btn-secondary:active { transform: scale(.95); }

.btn-secondary-dark {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--blue-dark);
  font-size: 17px; font-weight: 400; line-height: 1; padding: 11px 22px;
  border-radius: var(--r-pill); border: 1px solid var(--blue-dark);
  cursor: pointer; text-decoration: none; transition: all .2s, transform .15s;
}
.btn-secondary-dark:hover { background: rgba(41,151,255,.1); opacity: 1; }
.btn-secondary-dark:active { transform: scale(.95); }

.btn-lg {
  font-size: 18px; font-weight: 300; padding: 14px 28px;
}

.btn-text {
  background: none; border: none; color: var(--blue);
  font-size: 17px; font-weight: 400; cursor: pointer;
  text-decoration: none; padding: 0;
  transition: opacity .2s;
}
.btn-text:hover { opacity: .7; }

.btn-text-dark {
  background: none; border: none; color: var(--blue-dark);
  font-size: 17px; font-weight: 400; cursor: pointer;
  text-decoration: underline; padding: 0;
  transition: opacity .2s;
}
.btn-text-dark:hover { opacity: .7; }

.btn-danger {
  background: none; border: 1px solid #ff3b30; color: #ff3b30;
  font-size: 13px; padding: 6px 14px;
  border-radius: var(--r-pill); cursor: pointer; transition: all .2s;
}
.btn-danger:hover { background: #ff3b30; color: #fff; }

/* ============================================================
   SECTION TILES
   ============================================================ */
.tile { padding: var(--s-section) var(--s-lg); text-align: center; }
.tile-content { max-width: 980px; margin: 0 auto; }
.tile-light      { background: var(--canvas);    color: var(--ink); }
.tile-parchment  { background: var(--parchment); color: var(--ink); }
.tile-dark       { background: var(--tile-1);    color: var(--on-dark); }
.tile-dark-2     { background: var(--tile-2);    color: var(--on-dark); }
.tile-dark-3     { background: var(--tile-3);    color: var(--on-dark); }
.tile-black      { background: var(--black);     color: var(--on-dark); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.hero-display  { font-family: var(--font-display); font-size: 56px;  font-weight: 600; line-height: 1.07; letter-spacing: -.28px; }
.display-lg    { font-family: var(--font-display); font-size: 40px;  font-weight: 600; line-height: 1.10; }
.display-md    { font-family: var(--font-text);    font-size: 34px;  font-weight: 600; line-height: 1.47; letter-spacing: -.374px; }
.lead          { font-family: var(--font-display); font-size: 28px;  font-weight: 400; line-height: 1.14; letter-spacing: .196px; }
.lead-airy     { font-family: var(--font-text);    font-size: 24px;  font-weight: 300; line-height: 1.5; }
.tagline       { font-family: var(--font-display); font-size: 21px;  font-weight: 600; line-height: 1.19; letter-spacing: .231px; }
.body-strong   { font-family: var(--font-text);    font-size: 17px;  font-weight: 600; letter-spacing: -.374px; }
.caption       { font-family: var(--font-text);    font-size: 14px;  font-weight: 400; line-height: 1.43; letter-spacing: -.224px; }
.fine-print    { font-family: var(--font-text);    font-size: 12px;  font-weight: 400; line-height: 1; letter-spacing: -.12px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
  display: block;
}
.eyebrow-dark { color: var(--blue-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--s-lg) var(--s-section);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,102,204,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%,  rgba(41,151,255,.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 80%,  rgba(0,66,160,.08)  0%, transparent 50%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: .15;
}
.hero-orb-1 { width: 600px; height: 600px; background: #0066cc; top: -200px; left: -150px; animation: floatOrb 12s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: #2997ff; bottom: -100px; right: -100px; animation: floatOrb 15s ease-in-out infinite reverse; }

.hero-logo {
  width: 88px; height: 88px; object-fit: contain;
  margin-bottom: var(--s-xl); position: relative;
  animation: heroFadeUp .9s .1s cubic-bezier(.4,0,.2,1) both;
  filter: drop-shadow(0 0 40px rgba(41,151,255,.3));
}
.hero-tag {
  font-size: 13px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue-dark);
  margin-bottom: var(--s-lg); position: relative;
  animation: heroFadeUp .9s .2s cubic-bezier(.4,0,.2,1) both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 600; line-height: 1.05; letter-spacing: -.5px;
  color: #fff; max-width: 780px;
  margin-bottom: var(--s-xl); position: relative;
  animation: heroFadeUp .9s .3s cubic-bezier(.4,0,.2,1) both;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #2997ff 0%, #0066cc 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 19px; font-weight: 400; line-height: 1.55;
  color: var(--muted-dark); max-width: 520px;
  margin-bottom: var(--s-xxl); position: relative;
  animation: heroFadeUp .9s .4s cubic-bezier(.4,0,.2,1) both;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  position: relative;
  animation: heroFadeUp .9s .5s cubic-bezier(.4,0,.2,1) both;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll svg { width: 24px; height: 24px; stroke: rgba(255,255,255,.35); fill: none; stroke-width: 2; }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--s-xl); max-width: 980px; margin: 0 auto;
}
.stat-item { text-align: center; padding: var(--s-xl) var(--s-lg); }
.stat-number {
  font-family: var(--font-display); font-size: 56px; font-weight: 600;
  color: var(--ink); line-height: 1; letter-spacing: -2px;
  margin-bottom: var(--s-xs);
}
.stat-prefix { font-size: 36px; }
.stat-label { font-size: 15px; color: var(--ink-48); line-height: 1.4; }

/* ============================================================
   VALUES
   ============================================================ */
.values-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--s-xl); max-width: 980px; margin: var(--s-xxl) auto 0;
}
.value-card { text-align: center; padding: var(--s-lg); }
.value-icon {
  width: 60px; height: 60px; margin: 0 auto var(--s-lg);
  background: rgba(0,102,204,.08); border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 1.5; }
.value-title {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  color: var(--ink); margin-bottom: var(--s-sm);
}
.value-desc { font-size: 15px; color: var(--ink-48); line-height: 1.55; }

/* ============================================================
   SERVICE TILES
   ============================================================ */
.service-layout {
  display: flex; align-items: center; gap: 60px;
  max-width: 980px; margin: 0 auto; text-align: left;
}
.service-layout.reverse { flex-direction: row-reverse; }
.service-content { flex: 1; }
.service-visual  { flex: 1; display: flex; align-items: center; justify-content: center; }
.service-title {
  font-family: var(--font-display); font-size: 40px; font-weight: 600;
  line-height: 1.1; margin-bottom: var(--s-lg);
}
.service-desc { font-size: 17px; line-height: 1.65; margin-bottom: var(--s-xl); }
.service-desc-light  { color: var(--ink-48); }
.service-desc-dark   { color: var(--muted-dark); }
.service-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Visual panels (images réelles) ---- */
.visual-panel {
  width: 100%; max-width: 420px;
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--tile-2);
  box-shadow: rgba(0,0,0,.22) 3px 5px 30px 0;
}

/* Image de service : remplace les panneaux CSS */
.service-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.visual-panel:hover .service-img { transform: scale(1.03); }

/* Fallback si l'image n'est pas encore uploadée */
.visual-panel img[src="image1.jpg"],
.visual-panel img[src="image2.jpg"],
.visual-panel img[src="image3.jpg"] {
  min-height: 100%;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
/* Blog — filtres + scroll horizontal manuel */
.blog-scroll-wrap { max-width: 100%; margin: var(--s-xxl) auto 0; }

.blog-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: var(--s-xl);
  padding: 0 var(--s-lg);
}
.blog-filter-btn {
  padding: 7px 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--hairline);
  background: transparent; color: var(--ink-48);
  font-size: 13px; font-weight: 500; font-family: var(--font-text);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.blog-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.blog-filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.blog-nav-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: 0 var(--s-lg);
}
.blog-scroll-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--s-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px var(--s-md);
}
.blog-scroll-track::-webkit-scrollbar { display: none; }
.blog-nav-btn {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  background: var(--canvas);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
  color: var(--ink);
  user-select: none;
}
.blog-nav-btn:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-nav-btn:disabled { opacity: .25; cursor: default; pointer-events: none; }
@media (hover: none) {
  .blog-nav-btn { display: none; }
  .blog-nav-wrap { padding: 0; }
}

.blog-card {
  flex: 0 0 300px; scroll-snap-align: start; cursor: pointer;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s; text-align: left;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0,0,0,.1) 0 12px 32px;
}
.blog-thumb {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-size: 40px; overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: var(--s-lg); }
.blog-cat {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: var(--s-xs);
}
.blog-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--ink); line-height: 1.3; margin-bottom: var(--s-xs);
}
.blog-resume { font-size: 13px; color: var(--ink-48); line-height: 1.55; margin-bottom: var(--s-xs); }
.blog-date { font-size: 12px; color: var(--ink-48); }

/* Article — modale */
.article-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-lg);
  animation: heroFadeUp .2s ease;
}
.article-modal-box {
  background: var(--canvas); border-radius: var(--r-xl);
  max-width: 680px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: var(--s-xxl);
  position: relative;
  animation: modalPop .3s cubic-bezier(.34,1.56,.64,1);
}
.article-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--parchment); border: none;
  font-size: 16px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.article-modal-close:hover { background: var(--hairline); }
.article-modal-cat {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: var(--s-sm);
}
.article-modal-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--ink); line-height: 1.25; margin-bottom: var(--s-sm);
}
.article-modal-date {
  font-size: 14px; color: var(--ink-48);
  padding-bottom: var(--s-xl); margin-bottom: var(--s-xl);
  border-bottom: 1px solid var(--hairline);
}
.article-modal-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--r-md); margin-bottom: var(--s-xl);
}
.article-modal-body { font-size: 16px; line-height: 1.75; color: var(--ink-70); }
.article-modal-body p { margin-bottom: var(--s-lg); }
.article-modal-body p:last-child { margin-bottom: 0; }

/* Admin — edit mode indicator */
.admin-section.in-edit-mode {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  box-shadow: 0 0 0 6px rgba(0,102,204,.08);
}
.edit-mode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 400; color: var(--blue);
}
.btn-cancel-edit {
  background: var(--parchment); border: 1px solid var(--hairline);
  color: var(--ink-48); font-size: 14px; padding: 8px 18px;
  border-radius: var(--r-pill); cursor: pointer; font-family: var(--font-text);
  transition: background .2s;
}
.btn-cancel-edit:hover { background: var(--hairline); }

/* Admin — select */
.form-select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  cursor: pointer;
}

/* ============================================================
   MEMBRES SCROLL — Colonnes défilantes (homepage)
   ============================================================ */
.members-scroll-outer { margin: var(--s-xxl) auto 0; }

.members-scroll-mask {
  max-height: 700px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.members-scroll-cols {
  display: flex;
  gap: var(--s-lg);
  justify-content: center;
  align-items: flex-start;
}

.scroll-col { flex: 1; min-width: 0; max-width: 340px; overflow: hidden; }
.scroll-col-2 { display: none; }
.scroll-col-3 { display: none; }

.scroll-col-inner {
  display: flex; flex-direction: column; gap: var(--s-lg);
  will-change: transform;
  animation: scrollUp var(--dur, 18s) linear infinite;
}
.scroll-col:hover .scroll-col-inner { animation-play-state: paused; }

/* Carte dans le scroll */
.scroll-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: var(--s-xl);
  transition: background .25s;
}
.scroll-card:hover { background: rgba(255,255,255,.1); }
.scroll-card-text { font-size: 15px; color: var(--muted-dark); line-height: 1.6; margin-bottom: var(--s-md); }
.scroll-kws { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-md); }
.scroll-kw {
  font-size: 12px; color: var(--blue-dark);
  background: rgba(41,151,255,.12);
  padding: 3px 10px; border-radius: var(--r-pill);
}
.scroll-card-footer {
  display: flex; align-items: center; gap: var(--s-md);
  padding-top: var(--s-md);
  border-top: 1px solid rgba(255,255,255,.08);
}
.scroll-card-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: #fff; line-height: 1.2; margin-bottom: 2px;
}
.scroll-card-co { font-size: 13px; color: var(--muted-dark); }

/* Logo dans le scroll */
.scroll-logo {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  object-fit: contain; background: rgba(255,255,255,.92);
  padding: 4px; flex-shrink: 0; display: block;
}

/* Logo dans les cartes annuaire */
.member-logo {
  border-radius: var(--r-sm); object-fit: contain;
  background: rgba(255,255,255,.95); padding: 4px;
  flex-shrink: 0; display: block;
}
.member-logo.avatar-sm { width: 48px; height: 48px; }
.member-logo.avatar-md { width: 64px; height: 64px; }

@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ============================================================
   JOIN CTA
   ============================================================ */
.join-tile {
  background: var(--tile-3); text-align: center;
  padding: var(--s-section) var(--s-lg);
}
.join-content { max-width: 620px; margin: 0 auto; }
.join-title {
  font-family: var(--font-display); font-size: 48px; font-weight: 600;
  color: #fff; line-height: 1.07; letter-spacing: -.3px; margin-bottom: var(--s-lg);
}
.join-sub { font-size: 19px; color: var(--muted-dark); line-height: 1.5; margin-bottom: var(--s-xxl); }
.join-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: var(--r-pill); display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.avatar-sm  { width: 48px; height: 48px; font-size: 16px; }
.avatar-md  { width: 64px; height: 64px; font-size: 22px; }
.avatar-lg  { width: 72px; height: 72px; font-size: 26px; }
.avatar-xl  { width: 80px; height: 80px; font-size: 28px; }
.av-blue    { background: #0066cc; }
.av-teal    { background: #00897b; }
.av-orange  { background: #e65100; }
.av-purple  { background: #6200ea; }
.av-green   { background: #2e7d32; }
.av-pink    { background: #c2185b; }
.av-indigo  { background: #283593; }
.av-amber   { background: #b45309; }

/* ============================================================
   ANNUAIRE
   ============================================================ */
.page-hero {
  padding-top: 44px; background: var(--tile-1); text-align: center;
}
.page-hero-inner {
  max-width: 680px; margin: 0 auto;
  padding: 60px var(--s-lg) var(--s-section);
}
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(36px,5vw,56px);
  font-weight: 600; color: #fff; letter-spacing: -.4px; line-height: 1.06;
  margin-bottom: var(--s-lg);
}
.page-hero-sub { font-size: 19px; color: var(--muted-dark); line-height: 1.5; }

.search-wrap { position: relative; max-width: 620px; margin: 0 auto; }
.search-bar {
  width: 100%; height: 52px; background: var(--canvas);
  border: 1px solid rgba(0,0,0,.08); border-radius: var(--r-pill);
  padding: 0 52px; font-size: 17px; font-family: var(--font-text);
  color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus { border-color: var(--blue-focus); box-shadow: 0 0 0 3px rgba(0,102,204,.15); }
.search-bar::placeholder { color: var(--ink-48); }
.search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-48); stroke-width: 2; }
.search-clr {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: var(--divider); border: none; width: 26px; height: 26px;
  border-radius: var(--r-pill); cursor: pointer; font-size: 12px; color: var(--ink-48);
  display: flex; align-items: center; justify-content: center; transition: all .2s;
  opacity: 0; pointer-events: none;
}
.search-clr.show { opacity: 1; pointer-events: auto; }
.search-clr:hover { background: var(--hairline); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--s-xl); }
.chip {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 8px 18px;
  font-size: 14px; color: var(--ink); cursor: pointer;
  transition: all .2s; font-family: var(--font-text);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.annuaire-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
  gap: var(--s-lg);
}
.a-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--s-xl);
  transition: transform .2s, box-shadow .2s;
}
.a-card:hover { transform: translateY(-4px); box-shadow: rgba(0,0,0,.09) 0 8px 24px; }
.a-card-head { display: flex; align-items: center; gap: var(--s-md); margin-bottom: var(--s-md); }
.a-card-meta { flex: 1; min-width: 0; }
.a-name  { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.a-co    { font-size: 14px; color: var(--ink-48); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Mots-clés badges */
.a-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-md); }
.kw {
  font-size: 12px; color: var(--blue);
  background: rgba(0,102,204,.08); padding: 3px 10px;
  border-radius: var(--r-pill); white-space: nowrap;
  transition: background .15s;
}
.kw:hover { background: rgba(0,102,204,.15); }
.a-desc { font-size: 14px; color: var(--ink-48); line-height: 1.55; margin-bottom: var(--s-md); }
.a-contacts {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: var(--s-md); border-top: 1px solid var(--divider);
}
.a-contacts a, .a-contacts span {
  font-size: 13px; color: var(--blue); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.a-contacts span { color: var(--ink-48); }
.a-contacts a:hover { text-decoration: underline; opacity: 1; }
.a-site-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px;
  background: var(--blue); color: #fff !important;
  font-size: 13px; font-weight: 500; padding: 7px 16px;
  border-radius: var(--r-pill); text-decoration: none !important;
  transition: background .2s, opacity .2s; opacity: 1 !important;
  width: fit-content;
}
.a-site-btn:hover { background: var(--blue-focus); opacity: 1 !important; }

.no-results {
  grid-column: 1/-1; text-align: center;
  padding: 80px 20px; color: var(--ink-48); font-size: 17px;
}

/* Missing member form */
.missing-section {
  background: var(--parchment); border-radius: var(--r-lg);
  padding: 48px; max-width: 620px; margin: 60px auto;
  text-align: center; border: 1px solid var(--hairline);
}
.missing-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--ink); letter-spacing: -.2px; margin-bottom: var(--s-md);
}
.missing-desc { font-size: 17px; color: var(--ink-48); line-height: 1.5; margin-bottom: var(--s-xl); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: var(--s-lg); transition: opacity .3s;
}
.modal-bg.hidden { opacity: 0; pointer-events: none; }
.modal-box {
  background: #fff; border-radius: var(--r-lg); padding: 48px;
  max-width: 480px; width: 100%; text-align: center; position: relative;
  box-shadow: rgba(0,0,0,.45) 0 30px 80px;
  animation: modalPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.modal-close-btn {
  position: absolute; top: 16px; right: 16px;
  background: var(--parchment); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 14px;
  color: var(--ink-48); display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close-btn:hover { background: var(--hairline); }
.modal-logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto var(--s-lg); }
.modal-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--ink); letter-spacing: -.2px; margin-bottom: var(--s-md);
}
.modal-desc { font-size: 17px; color: var(--ink-48); line-height: 1.5; margin-bottom: var(--s-xl); }
.modal-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ============================================================
   ADMIN / LOGIN
   ============================================================ */
.login-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--parchment); padding: var(--s-lg);
}
.login-box {
  background: var(--canvas); border-radius: var(--r-lg); padding: 48px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: rgba(0,0,0,.08) 0 8px 48px;
}
.login-logo { width: 60px; height: 60px; object-fit: contain; margin: 0 auto var(--s-xl); }
.login-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.2px; margin-bottom: 4px; }
.login-sub   { font-size: 15px; color: var(--ink-48); margin-bottom: var(--s-xxl); }
.login-form  { display: flex; flex-direction: column; gap: var(--s-md); text-align: left; }
.login-err   { color: #ff3b30; font-size: 14px; text-align: center; min-height: 18px; }

.admin-page { max-width: 920px; margin: 0 auto; padding: 80px var(--s-lg) var(--s-section); }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-xxl); gap: var(--s-lg); flex-wrap: wrap; }
.admin-title { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.4px; }
.admin-subtitle { font-size: 15px; color: var(--ink-48); margin-top: 4px; }

.admin-section { background: var(--parchment); border-radius: var(--r-lg); padding: var(--s-xxl); margin-bottom: var(--s-xl); }
.admin-section-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: var(--s-xl); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.span2 { grid-column: 1/-1; }
.form-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-input, .form-select {
  height: 44px; background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 0 var(--s-md);
  font-family: var(--font-text); font-size: 17px; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--blue-focus); box-shadow: 0 0 0 3px rgba(0,102,204,.15);
}
.form-textarea {
  height: auto; min-height: 100px; padding: var(--s-md);
  resize: vertical; line-height: 1.5;
}
.form-actions { grid-column: 1/-1; display: flex; gap: var(--s-md); justify-content: flex-end; margin-top: var(--s-xs); }

.members-list { display: flex; flex-direction: column; gap: var(--s-md); }
.member-row {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 16px var(--s-xl);
  display: flex; align-items: center; gap: var(--s-lg);
  transition: box-shadow .2s;
}
.member-row:hover { box-shadow: rgba(0,0,0,.06) 0 4px 16px; }
.member-row-info { flex: 1; min-width: 0; }
.member-row-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.member-row-sub  { font-size: 13px; color: var(--ink-48); }
.member-row-actions { display: flex; gap: 8px; flex-shrink: 0; }

.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 14px 28px;
  border-radius: var(--r-pill); font-size: 15px; z-index: 9999;
  box-shadow: rgba(0,0,0,.3) 0 8px 24px;
  animation: heroFadeUp .3s ease;
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--parchment);
  padding: 64px var(--s-lg) var(--s-xl);
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-xxl); margin-bottom: var(--s-xxl);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-md); text-decoration: none; }
.footer-logo img { height: 28px; }
.footer-logo-text { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.footer-desc { font-size: 14px; color: var(--ink-48); line-height: 1.6; margin-bottom: var(--s-lg); }
.footer-col-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: var(--s-md); }
.footer-col-links { list-style: none; display: flex; flex-direction: column; }
.footer-col-links a { font-size: 13px; color: var(--ink-48); line-height: 2.2; text-decoration: none; transition: color .2s; }
.footer-col-links a:hover { color: var(--ink); opacity: 1; }
.footer-nl { display: flex; gap: 8px; }
.footer-nl input {
  flex: 1; height: 40px; padding: 0 var(--s-md);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  font-size: 13px; font-family: var(--font-text); outline: none; background: var(--canvas);
}
.footer-nl input:focus { border-color: var(--blue); }
.footer-nl button {
  background: var(--blue); color: #fff; border: none;
  height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  font-size: 13px; font-family: var(--font-text); font-weight: 500;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.footer-nl button:hover { background: var(--blue-focus); }
.footer-nl button:disabled { opacity: .6; cursor: not-allowed; }

/* Newsletter — consentement RGPD */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.nl-consent-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--ink-48); line-height: 1.5; cursor: pointer;
}
.nl-consent-label input[type="checkbox"] {
  flex-shrink: 0; margin-top: 2px;
  accent-color: var(--blue); width: 14px; height: 14px;
}
.nl-feedback { font-size: 12px; min-height: 16px; }
.nl-feedback.success { color: #30d158; }
.nl-feedback.error   { color: #ff3b30; }
.footer-bottom {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-xl); border-top: 1px solid var(--hairline);
  gap: var(--s-lg); flex-wrap: wrap;
}
.footer-legal { font-size: 12px; color: var(--ink-48); }
.footer-addr  { font-size: 12px; color: var(--ink-48); }

/* ============================================================
   BANNIÈRE COOKIES — RGPD / CNIL (floating card)
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(0,0,0,.14),
    0 4px 16px rgba(0,0,0,.07),
    0 0 0 1px rgba(0,0,0,.05);
  padding: 24px;
  max-width: 320px;
  width: calc(100vw - 40px);
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.36,.64,1), opacity .3s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner-icon {
  font-size: 30px; margin-bottom: 12px; display: block; line-height: 1;
}
.cookie-banner-text strong {
  display: block; color: var(--ink); font-size: 15px;
  font-weight: 700; margin-bottom: 8px; letter-spacing: -.2px;
  font-family: var(--font-display);
}
.cookie-banner-text p {
  color: var(--ink-48); font-size: 13px; line-height: 1.55; margin: 0;
}
.cookie-banner-text a { color: var(--blue); }
.cookie-banner-actions { display: flex; gap: 8px; margin-top: 20px; }
.cookie-btn {
  flex: 1; height: 40px; border: none; border-radius: 12px;
  font-size: 13px; font-family: var(--font-text); font-weight: 600;
  cursor: pointer; transition: opacity .15s, transform .15s;
}
.cookie-btn:hover { opacity: .85; transform: scale(.97); }
.cookie-btn-decline {
  background: var(--parchment); color: var(--ink-48);
  border: 1px solid var(--hairline);
}
.cookie-btn-accept { background: var(--blue); color: #fff; }
@media (max-width: 420px) {
  .cookie-banner { bottom: 12px; right: 12px; max-width: calc(100vw - 24px); width: auto; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes floatOrb {
  0%,100% { transform: translate(0,0); }
  33%     { transform: translate(40px,-30px); }
  66%     { transform: translate(-20px,20px); }
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX(8px); }
  60%     { transform: translateX(-6px); }
  80%     { transform: translateX(6px); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.stagger.in > *:nth-child(1) { transition-delay:  0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.in > *:nth-child(3) { transition-delay:160ms; }
.stagger.in > *:nth-child(4) { transition-delay:240ms; }
.stagger.in > * { opacity: 1; transform: translateY(0); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-lg  { margin-top: var(--s-lg); }
.mt-xl  { margin-top: var(--s-xl); }
.mt-xxl { margin-top: var(--s-xxl); }
.mb-xl  { margin-bottom: var(--s-xl); }
.mb-xxl { margin-bottom: var(--s-xxl); }
.gap-md { gap: var(--s-md); }
.flex-center { display: flex; align-items: center; justify-content: center; gap: var(--s-md); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1068px) {
  .hero-title { font-size: 40px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 833px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger, .mobile-menu { display: flex; }
  .mobile-menu { display: block; }
  .values-grid { grid-template-columns: 1fr; max-width: 520px; }
  .service-layout, .service-layout.reverse { flex-direction: column; }
  .service-visual { display: flex; margin-top: var(--s-xl); width: 100%; }
  .visual-panel { max-width: 100%; width: 100%; border-radius: var(--r-md); }
  .service-title  { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span2 { grid-column: 1; }
  .admin-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .tile { padding: 60px var(--s-lg); }
  .hero { padding: 100px var(--s-lg) 60px; }
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-actions a, .hero-actions button { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: var(--s-lg); }
  .stat-number { font-size: 40px; }
  .values-grid { max-width: 100%; }
  .join-title { font-size: 32px; }
  .page-hero-title { font-size: 36px; }
  .modal-box { padding: 32px 24px; }
  .missing-section { padding: 32px 24px; }
  .admin-section { padding: var(--s-xl); }
  .login-box { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 419px) {
  .hero-title { font-size: 26px; }
  .join-title { font-size: 26px; }
}
/* ============================================================
   ADMIN — Navigation & styles spécifiques
   ============================================================ */
.admin-nav-right {
  display: flex; gap: 16px; align-items: center;
}
.admin-nav-link {
  font-size: 12px; color: rgba(255,255,255,.7);
  text-decoration: none; transition: color .2s;
}
.admin-nav-link:hover { color: #fff; opacity: 1; }
.admin-logout-btn {
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 12px; font-family: var(--font-text);
  padding: 6px 14px; border-radius: 9999px;
  cursor: pointer; transition: background .2s;
}
.admin-logout-btn:hover { background: rgba(255,255,255,.22); }

/* Boutons de liste admin */
.btn-edit-row {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--parchment); border: 1px solid var(--hairline);
  color: var(--ink); font-size: 13px; font-weight: 500;
  font-family: var(--font-text); padding: 6px 14px;
  border-radius: var(--r-pill); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-edit-row:hover { background: var(--hairline); border-color: var(--ink-48); }

/* Admin responsive — rows */
@media (max-width: 640px) {
  .admin-nav-link { display: none; }
  .member-row {
    flex-wrap: wrap; padding: 14px 16px; gap: 10px;
  }
  .member-row-info { flex: 1 1 calc(100% - 68px); min-width: 0; }
  .member-row-actions {
    flex-basis: 100%; display: flex; justify-content: flex-end;
    gap: 8px; padding-top: 10px;
    border-top: 1px solid var(--divider); margin-top: 0;
  }
  .admin-section { padding: var(--s-lg); }
  .admin-page { padding-top: 44px; }
  .admin-title { font-size: 28px; }
}
@media (max-width: 480px) {
  .form-actions { flex-direction: column-reverse; gap: 8px; }
  .form-actions button { width: 100%; justify-content: center; }
  .admin-top { gap: var(--s-md); }
  .member-row-actions { flex-direction: row; }
}

@media (min-width: 640px) {
  .scroll-col-2 { display: block; }
}
@media (min-width: 1024px) {
  .scroll-col-3 { display: block; }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ — <details>/<summary> — card shadcn-style
   ═══════════════════════════════════════════════════════════════ */

.faq-wrap {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Card container ─────────────────────────────────────────── */
.faq-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(0,0,0,.04),
    0 4px 20px rgba(0,0,0,.06),
    0 0 0 4px rgba(0,0,0,.025);
  padding: 0 32px;
  overflow: hidden;
}

/* ── Item — séparateur en pointillés ────────────────────────── */
.faq-item {
  border-bottom: 1px dashed rgba(0,0,0,.1);
}
.faq-item--last,
.faq-item:last-child {
  border-bottom: none;
}

/* ── Summary — ligne cliquable ──────────────────────────────── */
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-text);
  user-select: none;
  transition: color .18s;
}
/* Supprimer le triangle natif des navigateurs */
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }

/* Chevron SVG inline via mask-image */
.faq-q::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: .45;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s;
}

/* Hover */
.faq-item:hover > .faq-q,
.faq-item:hover > .faq-q::after { opacity: 1; }
.faq-item:hover > .faq-q { color: var(--blue); }

/* Ouvert */
.faq-item[open] > .faq-q {
  color: var(--blue);
}
.faq-item[open] > .faq-q::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Contenu de la réponse ───────────────────────────────────── */
.faq-body {
  animation: faqOpen .22s cubic-bezier(.4,0,.2,1) both;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-a {
  margin: 0;
  padding-bottom: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-48);
}
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ── Note de bas de card ─────────────────────────────────────── */
.faq-footer-note {
  margin-top: var(--s-lg);
  font-size: 13px;
  color: var(--ink-48);
  text-align: center;
}
.faq-footer-link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.faq-footer-link:hover { text-decoration: underline; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .faq-card {
    padding: 0 20px;
    border-radius: 16px;
  }
  .faq-q {
    font-size: 14px;
    padding: 18px 0;
    gap: 14px;
  }
  .faq-a { font-size: 13px; }
}

/* ============================================================
   ESPACE MEMBRES — CALENDRIER
   ============================================================ */

.cal-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.cal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-xl);
}

.cal-month-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.5px;
  text-transform: capitalize;
}

.cal-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: background .15s, border-color .15s;
}
.cal-nav-btn:hover { background: var(--parchment); border-color: #ccc; }

.cal-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal-grid th {
  padding: var(--s-sm) var(--s-xs);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-48);
  letter-spacing: .8px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--hairline);
  padding-bottom: var(--s-md);
}

.cal-cell {
  vertical-align: top;
  padding: var(--s-xs);
  border: 1px solid var(--divider);
  min-height: 96px;
  cursor: default;
}
.cal-cell--other { background: var(--pearl); }
.cal-cell--today { background: rgba(0,102,204,.04); }

.cal-day-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-48);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  line-height: 1;
}
.cal-cell:not(.cal-cell--other) .cal-day-num { color: var(--ink); }
.cal-cell--today .cal-day-num {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.cal-event-chip {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 3px 7px;
  background: rgba(0,102,204,.1);
  border: none;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .15s;
  text-align: left;
  font-family: var(--font-text);
}
.cal-event-chip:hover { background: rgba(0,102,204,.2); }

/* ============================================================
   ESPACE MEMBRES — MODALE RÉUNION
   ============================================================ */

.reunion-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}

.reunion-modal-box {
  background: var(--canvas);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  max-width: 540px; width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  animation: slideUp .25s ease;
}

.reunion-modal-close {
  position: absolute; top: var(--s-md); right: var(--s-md);
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--parchment);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-48);
  transition: background .15s;
}
.reunion-modal-close:hover { background: var(--hairline); color: var(--ink); }

.reunion-modal-badge {
  display: inline-block;
  background: rgba(0,102,204,.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-md);
  letter-spacing: .3px;
}

.reunion-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-lg);
  letter-spacing: -.3px;
  line-height: 1.3;
  padding-right: var(--s-xl);
}

.reunion-modal-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  padding: var(--s-md);
  background: var(--parchment);
  border-radius: var(--r-md);
  margin-bottom: var(--s-lg);
}

.reunion-modal-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  font-size: 14px;
  color: var(--ink-80);
  line-height: 1.4;
}
.reunion-modal-meta-item .meta-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.reunion-modal-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-48);
  margin-bottom: var(--s-sm);
  margin-top: var(--s-lg);
}

.reunion-modal-odj {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-line;
}

.reunion-modal-desc {
  font-size: 14px;
  color: var(--ink-48);
  line-height: 1.6;
  margin-top: var(--s-md);
  white-space: pre-line;
}

/* ============================================================
   ADMIN — SECTION MOT DE PASSE ESPACE MEMBRES
   ============================================================ */

.admin-pwd-display {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) var(--s-lg);
  background: var(--parchment);
  border-radius: var(--r-md);
  margin-bottom: var(--s-xl);
  font-size: 15px;
  flex-wrap: wrap;
}
.admin-pwd-value {
  font-family: monospace;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1px;
  background: rgba(0,102,204,.08);
  padding: 4px 14px;
  border-radius: var(--r-sm);
}

/* ============================================================
   VUE AGENDA — MOBILE (liste des réunions sous le calendrier)
   ============================================================ */

/* Masqué par défaut (desktop garde les chips) */
.cal-agenda-wrap { display: none; }

.cal-agenda-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-48);
  margin-bottom: var(--s-md);
  padding-bottom: var(--s-xs);
  border-bottom: 2px solid var(--hairline);
}

.cal-agenda-item {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) var(--s-sm);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.cal-agenda-item:hover,
.cal-agenda-item:active { background: var(--parchment); }

.cal-agenda-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  width: 48px;
  height: 56px;
  background: rgba(0,102,204,.1);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.cal-agenda-day-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.cal-agenda-day-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .7;
  margin-top: 1px;
}

.cal-agenda-card-content {
  flex: 1;
  min-width: 0;
}
.cal-agenda-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-agenda-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-48);
}
.cal-agenda-arrow {
  color: var(--ink-48);
  font-size: 20px;
  flex-shrink: 0;
  padding-right: 4px;
}
.cal-agenda-empty {
  text-align: center;
  color: var(--ink-48);
  font-size: 14px;
  padding: var(--s-xl) 0;
}
.cal-agenda-divider {
  height: 1px;
  background: var(--divider);
  margin: 0 var(--s-sm);
}

/* ============================================================
   CALENDRIER — RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 640px) {
  /* Grille compacte avec dots */
  .cal-grid th {
    font-size: 10px;
    padding: 10px 2px;
    letter-spacing: 0;
  }
  .cal-cell {
    min-height: 48px;
    padding: 5px 2px;
    text-align: center;
  }
  .cal-day-num {
    font-size: 13px;
    width: 26px;
    height: 26px;
    margin: 0 auto;
  }
  .cal-month-title { font-size: 21px; }

  /* Chips → dots sur mobile */
  .cal-event-chip {
    width: 7px !important;
    height: 7px !important;
    min-height: unset !important;
    border-radius: 50% !important;
    background: var(--blue) !important;
    border-left: none !important;
    padding: 0 !important;
    margin: 3px auto 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    display: inline-block !important;
    overflow: hidden !important;
  }

  /* Afficher la vue agenda sous le calendrier */
  .cal-agenda-wrap {
    display: block;
    margin-top: var(--s-xl);
    padding-top: var(--s-lg);
    border-top: 2px solid var(--hairline);
  }

  /* Modal responsive */
  .reunion-modal-overlay { align-items: flex-end; padding: 0; }
  .reunion-modal-box {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 85vh;
    padding: var(--s-xl) var(--s-lg) var(--s-xxl);
    animation: slideUp .3s ease;
  }
  .reunion-modal-title { font-size: 19px; }
}
