/* ================================================
   FER MODERN CSS - Forbach en Rose
   Modern design system for the entire site
   ================================================ */

:root{
  /* Global / page */
  --page-bg: #ffffff;
  --page-text: #0f172a;          /* slate-900 */
  --page-muted: rgba(15,23,42,.65);

  /* Floating pill (desktop + mobile top bar) */
  --pill-bg: #ffffff;
  --pill-border: rgba(15,23,42,.10);
  --pill-shadow: 0 14px 40px rgba(2,6,23,.12);

  /* Desktop mega menu */
  --mega-bg: #ffffff;
  --mega-border: rgba(15,23,42,.10);
  --mega-shadow: 0 18px 60px rgba(2,6,23,.16);

  /* Mobile drawer panel (WHITE) */
  --drawer-bg: #ffffff;
  --drawer-border: rgba(15,23,42,.12);
  --drawer-shadow: 0 30px 90px rgba(2,6,23,.18);

  /* Hovers */
  --hover: rgba(2,6,23,.06);

  /* Accents — reliés au thème */
  --accent: #6d28d9; /* violet */
  --pink: var(--primary, #db2777);
  --pink-dark: var(--primary-hover, #be185d);
  --mobile-header-bg: rgba(255, 255, 255, 0.82);

  /* Radius — reliés au thème */
  --radius-pill: var(--radius, 14px);
  --radius-btn: var(--radius, 14px);
  --radius-panel: var(--radius-lg, 18px);

  /* widths */
  --nav-max: clamp(820px, 74vw, 1500px);
  --side-pad: clamp(16px, 2.2vw, 28px);
  --content-width: min(var(--nav-max), calc(100% - (var(--side-pad) * 2)));
  --nav-space: 0px;
}

*{ box-sizing: border-box; }
html, body{
  overflow-x: hidden;
}
body{
  margin:0;
  color: var(--page-text);
  font-family: var(--font-family, system-ui, -apple-system, sans-serif);
  background: var(--page-bg);
  padding-top: 0;
  transition: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{
  flex: 1;
}
body.nav-scrolled{
  padding-top: var(--nav-space);
}

/* ===== Floating Navbar wrapper ===== */
.floating-nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  display:flex;
  justify-content:center;
  background: #ffffff;
  border-bottom: 0;
  box-shadow: none;
  pointer-events: auto;
  transition: none;
}

.nav-pill{
  pointer-events: auto;
  position: relative;
  z-index: 10000;
  display:flex;
  align-items:center;
  gap:0.625rem;
  padding: 0.875rem 0;
  min-height: 5rem;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  max-width: 100%;
  overflow: visible;
  -webkit-backdrop-filter: none;
  width: var(--content-width);
  max-width: none;
  transition: none;
}

@media (min-width: 1041px){
  body.nav-scrolled .floating-nav{
    position: fixed;
    top: 1.125rem;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    pointer-events: none;
  }
  body.nav-scrolled .nav-pill{
    pointer-events: auto;
    padding: 2px 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    box-shadow: var(--pill-shadow);
  }
}

.brand{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  text-decoration:none;
  color: var(--page-text);
  user-select: none;
  white-space: nowrap;
}
.brand-logo{
  height: 4.25rem;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand .logo{
  width: 1.875rem;
  height: 1.875rem;
  border-radius: var(--radius);
  display:grid;
  place-items:center;
  background: rgba(2,6,23,.03);
  border: none;
}
.brand strong{ font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }

.brand-title{
  color: var(--pink);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sr-only{ position:absolute; left:-624.9375rem; }

.links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 0.875rem;
  width: auto;
}

.nav-right{
  display:flex;
  align-items:center;
  gap: 0.75rem;
  margin-left: auto;
}
.nav-card{
  display:flex;
  align-items:center;
  background: rgba(15,23,42,.04);
  border: none;
  border-radius: var(--radius);
  padding: 0.375rem 0.625rem;
}
body.nav-scrolled .nav-card{
  background: transparent;
  padding: 0;
}

.menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 0.5rem;
  margin:0;
  padding:0;
}

.menu.nav-secondary{
  gap: 0.375rem;
}
.menu.nav-secondary .link,
.menu.nav-secondary .trigger{
  font-family: var(--font-family, system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: .01em;
  padding: 0.5rem 0.75rem;
}
.nav-icon{
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--pink);
  flex: 0 0 auto;
}
.nav-icon svg{
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-label{ white-space: nowrap; }

.item{ position: static; }

.link, .trigger{
  appearance:none;
  border:0;
  background:transparent;
  color: var(--page-text);
  font-family: var(--font-family, system-ui, sans-serif);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-btn);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 0.4375rem;
  text-decoration:none;
  user-select: none;
  outline: none;
  transition: background .16s ease;
  position: relative;
}
.link:hover, .trigger:hover{ background: var(--hover); }

.chev{
  width: 0.875rem;
  height: 0.875rem;
  opacity: .65;
  transition: transform .18s ease;
}
.item[data-open="true"] .chev{ transform: rotate(180deg); }

.cta{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  font-family: var(--font-family, system-ui, sans-serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration:none;
  border:1px solid rgba(15,23,42,.12);
  color: var(--page-text);
  background: rgba(255,255,255,.65);
  transition: transform .08s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover{
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
}
.btn.primary{
  background: var(--secondary, #0f172a);
  color: var(--secondary-text, #fff);
  border-color: var(--secondary, #0f172a);
}
.btn.primary:hover{ background: var(--secondary-hover, #0b1220); }
.btn.pink{
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-text, #ffffff);
  border: none;
  border-radius: var(--radius, 12px);
  font-family: var(--font-family, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background .2s ease, transform .1s ease;
  box-shadow: none;
}
.btn.pink:hover{
  background: var(--primary-hover);
  color: var(--primary-text, #ffffff);
  box-shadow: none;
}
.btn.pink:active{
  transform: scale(0.98);
}
.btn.pink.nav-cta{
  /* Hauteur alignée sur .nav-card (56px)
     .menu.nav-secondary .link = padding 0.5rem×2 (8px×2=16) + icon 28px = 44px
     nav-card = padding 0.375rem×2 (6px×2=12) + link 44 = 56px
     nav-cta = padding 1.125rem×2 (18×2=36) + SVG 20px = 56px */
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.nav-cta svg{
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Desktop mega menu (inset) ===== */
/* ===== Overlay - floute tout l'écran (navbar au-dessus) ===== */
.mega-overlay{
  position: fixed;
  left: 0;
  right: 0;
  top: 4.375rem; /* Navbar collée en haut */
  bottom: 0;
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;

  /* Backdrop filter */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.4);
}

/* En mode flottant (scrolled), on floute aussi le dessus + les côtés */
body.nav-scrolled .mega-overlay{
  top: 0;
}

.mega-overlay.active{
  opacity: 1;
  pointer-events: auto;
}

/* ===== Mega menu - s'ouvre juste sous la navbar ===== */
.mega{
  position: fixed;
  left: var(--mega-left, 50%);
  top: 5.125rem; /* Juste sous la navbar */
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(2,6,23,.12), 0 8px 32px rgba(2,6,23,.08);
  padding: 2.5rem;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  width: var(--mega-width, 56.25rem);
  max-width: calc(100vw - 2.5rem);
}

.mega.mega--wide{
  --mega-width: 1040px;
}

/* En mode scrolled, ajuster la position */
body.nav-scrolled .mega{
  top: 6.625rem; /* 18px + 76px navbar + 12px gap */
}

.item[data-open="true"] > .mega{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

/* PAS de flèche */
.mega::before{
  display: none;
}

/* Grid 2 colonnes : contenu + image */
.mega-grid{
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.25rem;
  align-items: start;
}

/* Colonne gauche */
.mega-content{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mega-section{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-title{
  font-size: 0.6875rem;
  letter-spacing: .14em;
  color: rgba(15,23,42,.5);
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.mega-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-list.mega-list--2col{
  display: block;
  columns: 2;
  column-gap: 1rem;
}
.mega-list.mega-list--2col li{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 0.25rem;
}
.mega-list.mega-list--2col .mega-link{
  width: 100%;
}

.mega-link{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--page-text);
  transition: background .15s ease;
}

.mega-link:hover{
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.micon{
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  flex: 0 0 auto;
  color: var(--primary, #f42182);
}

.mega-link:hover .micon{
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.mega-link-content{
  flex: 1;
  min-width: 0;
}

.mtitle{
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0 0 2px;
  color: var(--page-text, #0f172a);
  line-height: 1.3;
}

.mdesc{
  margin: 0;
  font-size: 0.75rem;
  color: rgba(15,23,42,.55);
  line-height: 1.35;
}

/* ─── Badge NEW (pastille) ─── */
.badge-new{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 0.375rem;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink, #f42182);
  border-radius: 4px;
  line-height: 1.6;
  vertical-align: middle;
  margin-left: 0.375rem;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse{
  0%,100%{opacity:1}
  50%{opacity:.7}
}

/* ─── Notification badge (compteur rond) ─── */
.nav-notif-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  font-size: 0.625rem;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  border-radius: 99px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(239,68,68,.4);
}
/* Sur le trigger desktop : positionné sur l'icône */
.trigger .nav-notif-badge{
  position: absolute;
  top: 0px;
  left: 1.875rem;
  margin-left: 0;
}
/* Sur le mobile trigger : inline */
.mobile-menu-trigger-content .nav-notif-badge{
  position: relative;
  margin-left: 0.375rem;
}

/* Colonne droite : image */
.mega-featured{
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.mega-featured:hover{
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.mega-featured-img{
  width: 100%;
  height: 7.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #f42182);
}

.mega-featured-title{
  font-size: 1.125rem;
  font-weight: 700;
  color: #831843;
  margin: 0;
  line-height: 1.3;
}

.mega-featured-desc{
  font-size: 0.875rem;
  color: rgba(15,23,42,.7);
  line-height: 1.5;
  margin: 0;
}

.mega-featured-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: var(--primary, #f42182);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 1.125rem;
  border-radius: 50px;
  margin-top: auto;
  transition: background .2s ease, gap .2s ease;
}

a.mega-featured:hover .mega-featured-btn{
  background: #d81b60;
  gap: 0.625rem;
}

/* Responsive */
@media (max-width: 1250px) and (min-width: 1041px){
  .brand{
    display: none;
  }
  .nav-pill{
    justify-content: center;
  }
  .nav-right{
    margin-left: 0;
  }
}

@media (max-width: 1100px){
  .mega{
    --mega-width: 720px;
  }
  .mega.mega--wide{
    --mega-width: 860px;
  }
  .mega-grid{
    grid-template-columns: 1fr 240px;
    gap: 1.5rem;
  }
  .nav-pill{
    gap: 0.375rem;
  }
  .btn.pink.nav-cta{
    padding: 1.125rem 1.25rem;  /* même hauteur que .nav-card (56px) */
    font-size: 0.875rem;
  }
  .menu .link,
  .menu .trigger{
    font-size: 0.8125rem;
  }
}

@media (max-width: 1040px){
  .mega{
    display: none !important;
  }
  .mega-overlay{
    display: none !important;
  }
}

/* ===== Mobile top bar (burger) - HIDDEN NOW ===== */
.burger{
  display:none !important;
}

/* ===== MOBILE HEADER (Vimeo style) ===== */
.mobile-header{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--mobile-header-bg);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
  transition: transform .45s cubic-bezier(0.4, 0, 0.2, 1), opacity .45s ease;
}
.mobile-header.hidden{
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-header .brand-logo{
  height: 3rem;
  width: auto;
}

/* ===== MOBILE BOTTOM BAR — Vimeo unified menu ===== */
.mobile-bottom-bar{
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 0.625rem 0.625rem;
  pointer-events: none;
}

/* ---- Outer wrapper: holds nav-row + CTA side by side (closed) ---- */
.mobile-bottom-wrapper{
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  pointer-events: auto;
  transition: gap .35s cubic-bezier(.4,0,.2,1);
}

/* ---- The main nav block (contains menu panel + action buttons) ---- */
.mobile-bottom-unified{
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  overflow: hidden;
  flex: 1;
  min-width: 0;
  transition: border-radius .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1);
}

/* ---- CTA button (Inscription) - separate block when closed ---- */
.mobile-bottom-cta{
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: var(--primary-text, #ffffff);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  padding: 0 1.25rem;
  overflow: hidden;
  max-width: 8.75rem;
  opacity: 1;
  transition: max-width .35s cubic-bezier(.4,0,.2,1),
              opacity .2s ease,
              padding .35s cubic-bezier(.4,0,.2,1),
              box-shadow .3s ease,
              border-radius .3s ease;
}
.mobile-bottom-cta:hover{
  background: var(--pink-dark);
  color: #fff;
}

/* ---- When menu is open or closing ---- */
.mobile-bottom-bar.menu-open .mobile-bottom-wrapper,
.mobile-bottom-bar.menu-closing .mobile-bottom-wrapper{
  gap: 0;
}

.mobile-bottom-bar.menu-open .mobile-bottom-unified,
.mobile-bottom-bar.menu-closing .mobile-bottom-unified{
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0,0,0,.28);
  flex: 1;
}

.mobile-bottom-bar.menu-open .mobile-bottom-actions,
.mobile-bottom-bar.menu-closing .mobile-bottom-actions{
  border-top: 1px solid rgba(15,23,42,.08);
}

/* ---- Menu panel (hidden by default, slides in when open) ---- */
/* ---- Menu panel: slide-based navigation (Vimeo style) ---- */
.mobile-menu-panel{
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1),
              opacity .3s ease .05s;
  display: flex;
  flex-direction: column;
}

.mobile-bottom-bar.menu-open .mobile-menu-panel{
  max-height: 55vh;
  opacity: 1;
  pointer-events: auto;
}

/* ---- Header ---- */
.mobile-menu-header{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 0.625rem;
  flex-shrink: 0;
  position: relative;
  min-height: 3rem;
}
.mobile-menu-title{
  color: var(--page-text, #0f172a);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
}
.mobile-menu-back{
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(15,23,42,.06);
  border: none;
  color: rgba(15,23,42,.6);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.mobile-menu-back:hover{
  background: rgba(15,23,42,.12);
  color: var(--page-text, #0f172a);
}
.mobile-menu-back.visible{
  display: flex;
}
.mobile-menu-close{
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(15,23,42,.06);
  border: none;
  color: rgba(15,23,42,.55);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.mobile-menu-close:hover{
  background: rgba(15,23,42,.12);
  color: var(--page-text, #0f172a);
}

/* ---- Slide container (holds main view + sub views) ---- */
.mobile-menu-slides{
  flex: 1;
  overflow: hidden;
  position: relative;
}

.mobile-menu-slide{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}

/* Main view */
.mobile-menu-slide-main{
  position: relative;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-slide-main.pushed{
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
}

/* Sub view */
.mobile-menu-slide-sub{
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu-slide-sub.active{
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-slide-sub .mobile-menu-body{
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Menu body (inside each slide) ---- */
.mobile-menu-body{
  padding: 0.25rem 0.75rem 0.5rem;
  padding-bottom: 4.375rem;
}
.mobile-menu-nav{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu-item{
  border-radius: var(--radius);
}
.mobile-menu-trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--page-text, #0f172a);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .15s ease;
}
@media (hover: hover) and (pointer: fine){
  .mobile-menu-trigger:hover{
    background: rgba(15,23,42,.05);
  }
}
.mobile-menu-trigger svg{
  width: 1.125rem;
  height: 1.125rem;
  opacity: .4;
  flex-shrink: 0;
  color: var(--page-text, #0f172a);
}
.mobile-menu-icon{
  width: 2rem;
  height: 2rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  position: relative;
  font-size: 0.9375rem;
  flex-shrink: 0;
  color: var(--page-text, #0f172a);
}

/* Cacher les badges par défaut, le JS les affiche avec le bon count */
.nav-notif-badge,
.mobile-icon-badge,
.mobile-menu-total-badge,
.badge-new,
.ncard-badge-new,
.year-card-badge-new{
  visibility: hidden;
}
.fer-badges-ready .nav-notif-badge,
.fer-badges-ready .mobile-icon-badge,
.fer-badges-ready .mobile-menu-total-badge,
.fer-badges-ready .badge-new,
.fer-badges-ready .ncard-badge-new,
.fer-badges-ready .year-card-badge-new{
  visibility: visible;
}

/* Badge total sur bouton Menu (fermé uniquement) */
#mobileMenuBtn{
  position: relative;
}
.mobile-menu-total-badge{
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  font-size: 0.625rem;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  border-radius: 99px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(239,68,68,.4);
  z-index: 2;
}
/* Cacher la pastille quand le menu est ouvert */
.mobile-bottom-bar.menu-open .mobile-menu-total-badge,
.mobile-bottom-bar.menu-closing .mobile-menu-total-badge{
  display: none;
}

/* Badge notification sur l'icône mobile */
.mobile-icon-badge{
  position: absolute;
  top: -0.3125rem;
  right: -0.3125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.5625rem;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  border-radius: 99px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(239,68,68,.4);
}

.mobile-menu-icon svg{
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-menu-trigger-content{
  display: flex;
  align-items: center;
  flex: 1;
}

/* Sub-view links */
.mobile-menu-sublink{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0.75rem;
  color: rgba(15,23,42,.7);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: all .15s ease;
}
.mobile-menu-sublink:hover{
  background: rgba(15,23,42,.05);
  color: var(--page-text, #0f172a);
}

.mobile-menu-sublink .menu-bullet{
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--pink);
  display: inline-flex;
  flex: 0 0 auto;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* "See all" link — always at bottom of sub-view */
.mobile-menu-see-all{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: auto 0.75rem 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--primary, #f42182);
  border-radius: var(--radius);
  color: var(--primary-text, #fff);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
  flex-shrink: 0;
}
.mobile-menu-see-all:hover{
  background: #d81b60;
  color: #fff;
}
.mobile-menu-see-all svg{
  width: 1rem;
  height: 1rem;
  opacity: 1;
}

/* Footer */
.mobile-menu-footer{
  padding: 0.625rem 0.75rem;
  border-top: 1px solid rgba(15,23,42,.06);
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}
.mobile-menu-footer-btn{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.625rem 0.5rem;
  background: rgba(15,23,42,.04);
  border: none;
  border-radius: var(--radius);
  color: rgba(15,23,42,.55);
  font-size: 0.625rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.mobile-menu-footer-btn:hover{
  background: rgba(15,23,42,.08);
  color: var(--page-text, #0f172a);
}
.mobile-menu-footer-btn svg{
  width: 1.25rem;
  height: 1.25rem;
}

/* Simple link (Tarification) */
.mobile-menu-simple-link{
  display: flex;
  align-items: center;
  padding: 0.875rem 0.75rem;
  color: var(--page-text, #0f172a);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .15s ease;
}
.mobile-menu-simple-link:hover{
  background: rgba(15,23,42,.05);
}
.mobile-menu-simple-link .mobile-menu-icon{
  margin-right: 0.75rem;
}
.mobile-menu-simple-link svg{
  width: 1.125rem;
  height: 1.125rem;
  opacity: .4;
  margin-left: auto;
}

/* ---- Bottom action buttons row ---- */
.mobile-bottom-actions{
  display: flex;
  align-items: center;
  padding: 0.3125rem 0.25rem;
  gap: 0.25rem;
  min-height: 3.625rem;
  flex-shrink: 0;
}
.mobile-bottom-bar.menu-open .mobile-bottom-actions{
  border-top: 1px solid rgba(15,23,42,.08);
  flex: 1;
}
.mobile-bottom-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: none;
  color: var(--page-text, #0f172a);
  font-size: 0.5625rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .2s ease;
  flex: 1;
  min-width: 0;
}

#mobileMenuBtn{
  background: rgba(15,23,42,.06);
  border-radius: var(--radius);
  margin: 2px 0 2px 2px;
}
.mobile-bottom-btn:hover,
.mobile-bottom-btn:active{
  background: rgba(15,23,42,.06);
}
.mobile-bottom-btn svg{
  width: 1.3125rem;
  height: 1.3125rem;
  opacity: .85;
}
.mobile-bottom-btn span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Inner CTA (inside actions bar, shown only when open) ---- */
.mobile-bottom-cta-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--page-text, #0f172a);
  border: none;
  border-left: 1px solid rgba(15,23,42,.08);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-width .35s cubic-bezier(.4,0,.2,1),
              opacity .25s ease,
              padding .35s cubic-bezier(.4,0,.2,1);
}
.mobile-bottom-cta-inner:hover{
  background: rgba(15,23,42,.04);
}
.mobile-bottom-bar.menu-open .mobile-bottom-cta-inner,
.mobile-bottom-bar.menu-closing .mobile-bottom-cta-inner{
  max-width: 8.75rem;
  padding: 1.125rem 1.25rem;
  opacity: 1;
  pointer-events: auto;
}

/* Collapse outer CTA when menu is open OR closing */
.mobile-bottom-bar.menu-open .mobile-bottom-cta,
.mobile-bottom-bar.menu-closing .mobile-bottom-cta{
  max-width: 0;
  padding: 0;
  opacity: 0;
  box-shadow: none;
  pointer-events: none;
  overflow: hidden;
}

/* Menu button icon toggle (hamburger to X) */
.mobile-bottom-btn .menu-icon-close{ display: none; }
.mobile-bottom-bar.menu-open #mobileMenuBtn .menu-icon-open,
.mobile-bottom-bar.menu-closing #mobileMenuBtn .menu-icon-open{ display: none; }
.mobile-bottom-bar.menu-open #mobileMenuBtn .menu-icon-close,
.mobile-bottom-bar.menu-closing #mobileMenuBtn .menu-icon-close{ display: block; }

/* ===== Backdrop ===== */
.mobile-menu-backdrop{
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

/* ===== Show mobile elements only on mobile ===== */
@media (max-width: 1040px){
  .mobile-header{
    display: flex;
  }
  .mobile-bottom-bar{
    display: block;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: var(--content-width);
    padding: 0 0 0.625rem;
  }
  /* Adjust body padding for mobile header */
  body{
    padding-top: 4.5rem;
    padding-bottom: 5.625rem;
  }
  /* Hide desktop nav */
  .floating-nav{
    display: none !important;
  }
  /* Hide old popup elements if any */
  .mobile-menu-popup{
    display: none !important;
  }
}

/* Legacy mobile drawer - keep for compatibility but hidden */
.drawer-backdrop{
  display: none !important;
}

/* Legacy styles kept for reference but not used */
.mnav-section, .mnav-head, .mnav-chevron, .mnav-sub, .mnav-label,
.mnav-item, .mnav-ico, .mnav-txt, .mnav-title, .mnav-desc, .mnav-link{
  display: none;
}

/* ===== Main content ===== */
main{
  width: var(--content-width);
  margin: 0 auto;
  padding: 1.25rem 0 8.75rem; /* side padding handled by content width */
}

h1{
  margin: 1.75rem 0 1.125rem;
  font-size: clamp(2rem, 5vw, 3.625rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

p.sub{
  max-width: 60rem;
  margin: 0 auto 1.375rem;
  color: var(--page-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--c-footer, var(--secondary, #0f172a)); /* couleur propre au pied de page */
  color: var(--c-footer-text, var(--secondary-text, #ffffff));
  padding: 3.625rem 0 0;
  margin-top: 0;
  border-top: 1px solid rgba(128,128,128,.15);
}

.footer-container{
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.footer-content{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3.75rem;
  padding-bottom: 2.125rem;
  border-bottom: 1px solid rgba(128,128,128,.15);
  position: relative;
  isolation: isolate;
}

.footer-content::after{
  content: "";
  position: absolute;
  right: 0.5rem;
  bottom: 0.3125rem;
  width: clamp(10.9375rem, 16vw, 16.25rem);
  aspect-ratio: 7680 / 3561;
  opacity: .65;
  pointer-events: none;
  z-index: 0;
}

.footer-content > *{
  position: relative;
  z-index: 1;
}

.footer-left{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 1;
  justify-self: start;
  margin-top: -1.125rem;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-logo{
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.footer-brand-name{
  font-size: 1rem;
  font-weight: 600;
}

.footer-tagline{
  font-size: 0.8125rem;
  opacity: .45;
  margin: 0;
  max-width: 25rem;
  line-height: 1.5;
}

.footer-center{
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  grid-column: 2;
  justify-self: center;
}

.footer-title{
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: .6;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-socials{
  display: flex;
  gap: 0.75rem;
}

.social-link{
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(128,128,128,.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  text-decoration: none;
  color: var(--secondary-text, #ffffff);
}

.social-link:hover{
  background: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 30%, transparent);
}

.social-link svg{
  width: 1.125rem;
  height: 1.125rem;
}

.footer-right{
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 0;
}

/* .footer-contact-btn — styles communs gérés par le système unifié (fin du fichier).
   On garde ici seulement l'alignement spécifique au layout footer. */
.footer-left .footer-contact-btn{
  align-self: flex-start;
  margin-top: 0;
}

.footer-bottom{
  padding: 1.875rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copyright{
  font-size: 0.875rem;
  opacity: .6;
  margin: 0;
}

.footer-links{
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-links a{
  font-size: 0.875rem;
  opacity: .7;
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer-links a:hover{
  opacity: 1;
  color: var(--pink);
}

.footer-separator{
  opacity: .3;
  font-size: 0.875rem;
}

@media (max-width: 980px){
  .site-footer{
    padding: 2.875rem 0 0;
    margin-top: 0;
  }

  .footer-content{
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 1.625rem;
    padding-right: 0;
  }

  .footer-content::after{
    display: none;
  }

  .footer-right{
    justify-content: flex-start;
    padding-right: 0;
  }

  .footer-contact-btn{
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }

  .footer-left{
    margin-top: 0;
  }

  .footer-brand-name{
    font-size: 1.125rem;
  }

  .footer-tagline{
    font-size: 0.875rem;
  }

  .footer-title{
    font-size: 0.875rem;
  }

  .footer-left .footer-contact-btn{
    width: auto;
    justify-content: flex-start;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
  }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 0;
  }

  .footer-links{
    flex-wrap: wrap;
  }
}

/* ================================================
   DARK THEME
   Toggle via body.dark-theme
   ================================================ */

/* --- Theme toggle button --- */
.theme-toggle{
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid rgba(128,128,128,.2);
  background: rgba(128,128,128,.1);
  color: var(--secondary-text, #ffffff);
  opacity: .6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover{
  background: rgba(128,128,128,.2);
  border-color: rgba(128,128,128,.35);
  transform: scale(1.1);
}
.theme-toggle svg{
  width: 0.875rem;
  height: 0.875rem;
  transition: transform .3s ease;
  pointer-events: none;
}
.theme-toggle:hover svg{
  transform: rotate(20deg);
}
.theme-toggle .icon-sun{ display: none !important; }
.theme-toggle .icon-moon{ display: block !important; }
body.dark-theme .theme-toggle .icon-sun{ display: block !important; }
body.dark-theme .theme-toggle .icon-moon{ display: none !important; }

/* --- Global dark overrides --- */
body.dark-theme{
  background: #16171d;
  color: #ffffff;
}

/* Navbar */
body.dark-theme .floating-nav{
  background: #1e1f28;
}
body.dark-theme .floating-nav .nav-pill{
  background: transparent;
  border: none;
}
body.dark-theme.nav-scrolled .floating-nav{
  background: transparent;
}
body.dark-theme.nav-scrolled .floating-nav .nav-pill{
  background: #1e1f28;
  border: 1px solid rgba(255,255,255,0.08);
}

body.dark-theme .floating-nav .nav-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
body.dark-theme.nav-scrolled .nav-card{
  background: transparent;
  border: none;
}

body.dark-theme .floating-nav .brand-logo{
  filter: brightness(0) invert(1);
}
body.dark-theme .floating-nav .link,
body.dark-theme .floating-nav .nav-icon,
body.dark-theme .floating-nav .item,
body.dark-theme .floating-nav .trigger,
body.dark-theme .floating-nav .menu .link{
  color: #ffffff;
}
body.dark-theme .floating-nav .link:hover,
body.dark-theme .floating-nav .trigger:hover{
  color: rgba(255,255,255,0.7);
}
body.dark-theme .floating-nav .chev path{
  stroke: rgba(255,255,255,0.85);
}
body.dark-theme .floating-nav .burger-icon{
  background: rgba(255,255,255,0.85);
}
body.dark-theme .floating-nav .burger-icon::before,
body.dark-theme .floating-nav .burger-icon::after{
  background: rgba(255,255,255,0.85);
}
body.dark-theme .floating-nav .btn-inscription{
  background: #19a1be;
  color: #ffffff;
}
body.dark-theme .floating-nav .btn-inscription:hover{
  background: #1589a3;
}

/* Mega menu */
body.dark-theme .floating-nav .mega{
  background: #1e1f28;
  border: 1px solid rgba(255,255,255,0.08);
}
body.dark-theme .floating-nav .mega .mega-title{
  color: rgba(255,255,255,0.5);
}
body.dark-theme .floating-nav .mega .mega-link,
body.dark-theme .floating-nav .mega .link{
  color: #ffffff;
}
body.dark-theme .floating-nav .mega .mega-link:hover,
body.dark-theme .floating-nav .mega .link:hover{
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}
body.dark-theme .floating-nav .mega .mtitle{
  color: #ffffff;
}
body.dark-theme .floating-nav .mega .mdesc{
  color: rgba(255,255,255,0.6);
}
body.dark-theme .floating-nav .mega .micon{
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}
body.dark-theme .floating-nav .mega .mega-link:hover .micon{
  background: rgba(255,255,255,0.14);
}
body.dark-theme .floating-nav .mega a,
body.dark-theme .floating-nav .mega span,
body.dark-theme .floating-nav .mega li,
body.dark-theme .floating-nav .mega p,
body.dark-theme .floating-nav .mega div{
  color: #ffffff;
}

/* Mega-featured: identical to light theme in dark mode */
body.dark-theme .floating-nav .mega a.mega-featured{
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%) !important;
  color: #0f172a !important;
}
body.dark-theme .floating-nav .mega .mega-featured .mega-featured-img{
  background: rgba(255,255,255,0.5) !important;
  color: var(--primary, #f42182) !important;
}
body.dark-theme .floating-nav .mega .mega-featured .mega-featured-title{
  color: #831843 !important;
}
body.dark-theme .floating-nav .mega .mega-featured .mega-featured-desc{
  color: rgba(15,23,42,.7) !important;
}
body.dark-theme .floating-nav .mega .mega-featured .mega-featured-btn{
  background: var(--primary, #f42182) !important;
  color: var(--primary-text, #fff) !important;
}

/* Overlay */
body.dark-theme #megaOverlay{
  background: rgba(22,23,29,0.75);
}

/* Mobile */
body.dark-theme .mobile-header{
  background: rgba(22,23,29,0.92);
}
body.dark-theme .mobile-header .brand-logo{
  filter: brightness(0) invert(1);
}
body.dark-theme .mobile-bottom-unified{
  background: #1e1f28;
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
body.dark-theme .mobile-bottom-bar.menu-open .mobile-bottom-unified{
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}
body.dark-theme .mobile-bottom-btn{
  color: #ffffff;
}
body.dark-theme #mobileMenuBtn{
  background: rgba(255,255,255,.08);
}
body.dark-theme .mobile-bottom-btn:hover,
body.dark-theme .mobile-bottom-btn:active{
  background: rgba(255,255,255,.1);
}
body.dark-theme .mobile-bottom-cta-inner{
  color: #ffffff;
  border-left-color: rgba(255,255,255,.1);
}
body.dark-theme .mobile-bottom-cta-inner:hover{
  background: rgba(255,255,255,.06);
}
body.dark-theme .mobile-bottom-bar.menu-open .mobile-bottom-actions,
body.dark-theme .mobile-bottom-bar.menu-closing .mobile-bottom-actions{
  border-top-color: rgba(255,255,255,.1);
}
body.dark-theme .mobile-menu-title{
  color: #ffffff;
}
body.dark-theme .mobile-menu-back{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
}
body.dark-theme .mobile-menu-back:hover{
  background: rgba(255,255,255,.15);
  color: #ffffff;
}
body.dark-theme .mobile-menu-close{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
}
body.dark-theme .mobile-menu-close:hover{
  background: rgba(255,255,255,.15);
  color: #ffffff;
}
body.dark-theme .mobile-menu-trigger{
  color: #ffffff;
}
body.dark-theme .mobile-menu-trigger svg{
  color: #ffffff;
}
body.dark-theme .mobile-menu-trigger:hover{
  background: rgba(255,255,255,.06);
}
body.dark-theme .mobile-menu-icon{
  color: #ffffff;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}
body.dark-theme .mobile-menu-sublink{
  color: rgba(255,255,255,.7);
}
body.dark-theme .mobile-menu-sublink:hover{
  background: rgba(255,255,255,.06);
  color: #ffffff;
}
body.dark-theme .mobile-menu-see-all{
  background: var(--primary, #f42182);
  color: var(--primary-text, #fff);
}
body.dark-theme .mobile-menu-see-all:hover{
  background: #d81b60;
}
body.dark-theme .mobile-menu-footer{
  border-top-color: rgba(255,255,255,.08);
}
body.dark-theme .mobile-menu-footer-btn{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
}
body.dark-theme .mobile-menu-footer-btn:hover{
  background: rgba(255,255,255,.1);
  color: #ffffff;
}
body.dark-theme .mobile-menu-backdrop.open{
  background: rgba(0,0,0,.5);
}

/* Main content areas */
body.dark-theme main{
  color: #ffffff;
}
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4{
  color: #ffffff;
}
body.dark-theme p.sub{
  color: rgba(255,255,255,.65);
}

/* Footer: always dark regardless of theme */
body.dark-theme .site-footer{
  background: #16171d;
  border-top-color: rgba(128,128,128,.1);
}
body.dark-theme .site-footer,
body.dark-theme .site-footer * { color: #ffffff !important; }
body.dark-theme .site-footer .footer-contact-btn { color: var(--primary-text) !important; }
body.dark-theme .site-footer .footer-tagline { opacity: .45; }
body.dark-theme .site-footer .footer-title { opacity: .6; }
body.dark-theme .site-footer .footer-copyright { opacity: .6; }
body.dark-theme .site-footer .footer-links a { opacity: .7; }
body.dark-theme .site-footer .footer-separator { opacity: .3; }
body.dark-theme .site-footer .social-link { background: rgba(255,255,255,.08); }
body.dark-theme .site-footer .theme-toggle { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.08); }

/* --- Page content dark overrides (shared elements) --- */


/* Reg bars (used on photos, news, parcours) */
body.dark-theme .album-reg-card,
body.dark-theme .news-reg-card{
  background: #292d3f;
}
body.dark-theme .album-reg-title,
body.dark-theme .news-reg-title{
  color: #ffffff;
}
/* Bevel sections: keep #0f172a in dark mode */
body.dark-theme .album-reg-bevel,
body.dark-theme .news-reg-bevel{
  background: #0f172a;
}

/* Album cards (photos.php) */
body.dark-theme .album-card{
  background: #1e1f28;
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}
body.dark-theme .album-card:hover{
  box-shadow: none;
}
body.dark-theme .album-card-title{
  color: #ffffff;
}
body.dark-theme .album-card-date{
  color: rgba(255,255,255,.5);
}
body.dark-theme .album-card-creator{
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}

/* Year cards (photos, parcours) */
body.dark-theme .year-card{
  background: #0f172a !important;
  border-color: transparent !important;
  color: #ffffff;
}
body.dark-theme .year-card:hover{
  background: #0f172a !important;
  border-color: transparent !important;
}

/* News cards (news.php) */
body.dark-theme .ncard{
  background: #1e1f28;
  border-color: transparent;
  box-shadow: none;
}
body.dark-theme .ncard:hover{
  box-shadow: none;
}
body.dark-theme .ncard-title{
  color: #ffffff;
}
body.dark-theme .ncard-desc{
  color: rgba(255,255,255,.6);
}
body.dark-theme .ncard-date{
  color: rgba(255,255,255,.45);
}
body.dark-theme .ncard-tag{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}

/* News search */
body.dark-theme .news-search-bar input{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
body.dark-theme .news-search-bar input::placeholder{
  color: rgba(255,255,255,.4);
}
body.dark-theme .news-search-bar input:focus{
  border-color: var(--pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
body.dark-theme .news-search-clear{
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
}

/* Article detail (news.php) */
body.dark-theme .article-content{
  color: rgba(255,255,255,.85);
}
body.dark-theme .article-content p{
  color: rgba(255,255,255,.8);
}

/* Vote buttons */
body.dark-theme .hero-vote{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}

/* Comments */
body.dark-theme .comments-section{
  color: #ffffff;
}
body.dark-theme .comment-card{
  background: #1e1f28;
  border-color: transparent;
  box-shadow: none;
}
body.dark-theme .comment-author{
  color: #ffffff;
}
body.dark-theme .comment-text{
  color: rgba(255,255,255,.75);
}
body.dark-theme .comment-date{
  color: rgba(255,255,255,.45);
}
body.dark-theme .comment-input,
body.dark-theme .comment-textarea{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
body.dark-theme .comment-input::placeholder,
body.dark-theme .comment-textarea::placeholder{
  color: rgba(255,255,255,.4);
}

/* Parcours page */
body.dark-theme .parcours-desc{
  color: rgba(255,255,255,.65);
}
body.dark-theme .album-title{
  color: #ffffff;
}

/* Empty states */
body.dark-theme .empty-state{
  color: rgba(255,255,255,.5);
}

/* --- News detail & comments dark overrides --- */

/* Article meta (date next to "Forbach en Rose") */
body.dark-theme .article-meta{
  color: rgba(255,255,255,.5);
}
body.dark-theme .article-title{
  color: #ffffff;
}

/* Article separator line */
body.dark-theme .article-separator{
  border-top-color: rgba(255,255,255,.1);
}

/* Share buttons */
body.dark-theme .share-btn{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
body.dark-theme .share-btn:hover{
  background: rgba(255,255,255,.12);
}
body.dark-theme .share-btn.copied{
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}

/* Comments header & count badge */
body.dark-theme .comments-header h3{
  color: #ffffff;
}
body.dark-theme .comments-count{
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
}

/* Comment form */
body.dark-theme .comment-form{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
body.dark-theme .comment-form input,
body.dark-theme .comment-form textarea{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
body.dark-theme .comment-form input::placeholder,
body.dark-theme .comment-form textarea::placeholder{
  color: rgba(255,255,255,.4);
}
body.dark-theme .comment-form input:focus,
body.dark-theme .comment-form textarea:focus{
  border-color: var(--pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
body.dark-theme .comment-submit{
  background: #ffffff;
  color: #16171d;
}

/* Comment items - separators */
body.dark-theme .comment-item{
  border-bottom-color: rgba(255,255,255,.08);
}

/* Comment action buttons (like, Repondre) */
body.dark-theme .comment-action-btn{
  color: rgba(255,255,255,.5);
}
body.dark-theme .comment-action-btn:hover{
  color: #ffffff;
  background: rgba(255,255,255,.08);
}
body.dark-theme .comment-action-btn.liked{
  color: var(--pink);
}

/* Reply thread lines */
body.dark-theme .comment-replies{
  border-left-color: rgba(255,255,255,.1);
}

/* Toggle replies button */
body.dark-theme .comment-toggle-replies{
  color: var(--pink);
}
body.dark-theme .comment-toggle-replies:hover{
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* Reply form inline */
body.dark-theme .reply-form-inline{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
body.dark-theme .reply-form-inline textarea{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
body.dark-theme .reply-form-inline textarea::placeholder{
  color: rgba(255,255,255,.4);
}
body.dark-theme .reply-form-inline textarea:focus{
  border-color: var(--pink);
}
body.dark-theme .reply-cancel{
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  background: none;
}
body.dark-theme .reply-cancel:hover{
  background: rgba(255,255,255,.08);
}
body.dark-theme .reply-submit{
  background: #ffffff;
  color: #16171d;
}

/* Vote buttons (news cards) */
body.dark-theme .nvote{
  background: rgba(255,255,255,.06);
  color: #ffffff;
}
body.dark-theme .nvote:hover{
  background: rgba(255,255,255,.12);
}
body.dark-theme .nvote.voted{
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}
body.dark-theme .nvote-count{
  color: #ffffff;
}

/* Hero vote buttons (article detail) */
body.dark-theme .hero-vote.voted{
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

/* News card metadata */
body.dark-theme .ncard-meta{
  color: rgba(255,255,255,.5);
}
body.dark-theme .ncard-dot{
  color: rgba(255,255,255,.3);
}

/* News card comment badge */
body.dark-theme .ncard-comments-badge{
  color: rgba(255,255,255,.5);
}

/* Mention dropdown */
body.dark-theme .mention-dropdown{
  background: #262730;
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
body.dark-theme .mention-item{
  color: #ffffff;
}
body.dark-theme .mention-item:hover,
body.dark-theme .mention-item.active{
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--pink);
}

/* Comments empty state */
body.dark-theme .comments-empty{
  color: rgba(255,255,255,.35);
}

/* Pagination */
body.dark-theme .pgbtn{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #ffffff;
}
body.dark-theme .pgbtn:hover{
  background: rgba(255,255,255,.12);
}
body.dark-theme .pgbtn.active{
  background: #ffffff;
  color: #16171d;
  border-color: #ffffff;
}
body.dark-theme .pginfo{
  color: rgba(255,255,255,.45);
}

/* News spinner */
body.dark-theme .news-spinner::after{
  border-color: rgba(255,255,255,.1);
  border-top-color: var(--pink);
}

/* ════════════════════════════════════════════════════════════════
   SYSTÈME DE BOUTONS D'ACTION UNIFIÉ
   Toutes les propriétés visuelles dépendent des paramètres du site :
   - couleur primaire/secondaire (admin → paramètres → thème)
   - border-radius (admin → paramètres → thème)
   - font-family (admin → paramètres → thème)
   Les classes historiques (.reg-submit, .partner-submit, etc.) sont
   aliasées pour compatibilité — aucun changement de HTML nécessaire.
   ════════════════════════════════════════════════════════════════ */

/* ─── Base commune ─── */
.btn-action,
.btn-action-primary,
.btn-action-secondary,
.reg-submit,
.partner-submit,
.contact-submit,
.footer-contact-btn,
.cta-pink,
.comment-submit,
.reply-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius, 12px);
  font-family: var(--font-family, system-ui, sans-serif);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .1s ease, opacity .15s ease;
}

/* ─── Tailles (défaut = md) ─── */
.btn-action,
.btn-action-primary,
.btn-action-secondary,
.reg-submit,
.partner-submit,
.contact-submit,
.footer-contact-btn,
.cta-pink{
  padding: 0.875rem 1.75rem;   /* 14px 28px */
  font-size: 1rem;              /* 16px */
}
.comment-submit{
  padding: 0.625rem 1.25rem;    /* 10px 20px */
  font-size: 0.875rem;          /* 14px */
}
.reply-submit{
  padding: 0.5rem 1rem;         /* 8px 16px */
  font-size: 0.8125rem;         /* 13px */
}
.btn-action-sm{
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
.btn-action-lg{
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ─── Variante primaire (couleur --primary, paramétrable) ─── */
.btn-action-primary,
.reg-submit,
.partner-submit,
.contact-submit,
.footer-contact-btn,
.cta-pink{
  background: var(--primary);
  color: var(--primary-text, #ffffff);
  box-shadow: none;
  text-decoration: none;
}
.btn-action-primary:hover,
.reg-submit:hover,
.partner-submit:hover,
.contact-submit:hover,
.footer-contact-btn:hover,
.cta-pink:hover{
  background: var(--primary-hover);
  color: var(--primary-text, #ffffff);
  box-shadow: none;
}
.btn-action-primary:active,
.reg-submit:active,
.partner-submit:active,
.contact-submit:active,
.footer-contact-btn:active,
.cta-pink:active{
  transform: scale(0.98);
}
.btn-action-primary:focus-visible,
.reg-submit:focus-visible,
.partner-submit:focus-visible,
.contact-submit:focus-visible,
.footer-contact-btn:focus-visible,
.cta-pink:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ─── Variante secondaire (couleur --secondary, paramétrable) ─── */
.btn-action-secondary,
.comment-submit,
.reply-submit{
  background: var(--secondary);
  color: var(--secondary-text, #ffffff);
  box-shadow: none;
}
.btn-action-secondary:hover,
.comment-submit:hover,
.reply-submit:hover{
  background: var(--secondary-hover);
  color: var(--secondary-text, #ffffff);
  box-shadow: none;
}
.btn-action-secondary:active,
.comment-submit:active,
.reply-submit:active{
  transform: scale(0.97);
}
.btn-action-secondary:focus-visible,
.comment-submit:focus-visible,
.reply-submit:focus-visible{
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* ─── État désactivé (commun aux 2 variantes) ─── */
.btn-action:disabled,
.btn-action-primary:disabled,
.btn-action-secondary:disabled,
.reg-submit:disabled,
.partner-submit:disabled,
.contact-submit:disabled,
.footer-contact-btn:disabled,
.comment-submit:disabled,
.reply-submit:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* SVG icônes statiques — pas d'animation au hover (cohérence sobre) */


/* ============================================================
   ESPACE COUREUR — bouton « Connexion » de la navbar
   ------------------------------------------------------------
   Même forme et même hauteur que « Inscription », mais en gris
   ardoise : deux boutons roses côte à côte se concurrenceraient,
   et c'est l'inscription qui doit gagner — c'est elle qui remplit
   la course. Le gris se marie avec le rose sans lui disputer
   l'attention, et reste lisible en thème sombre.

   Sur mobile, ce bouton disparaît : la barre du bas porte déjà
   son entrée « Connexion », et deux points d'entrée dans la même
   zone faisaient doublon.

   Copies d'origine avant cet ajout :
     docs/navbar-modern.avant-bouton-espace-coureur.php
     docs/fer-modern.avant-bouton-espace-coureur.css
   ============================================================ */
.btn.nav-connexion{
  display: inline-flex;
  flex-direction: column;      /* icône au-dessus, libellé en dessous */
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  /* Mêmes arrondis que .btn.pink.nav-cta, et 56px de haut comme .nav-card :
     les trois éléments de la barre restent alignés au pixel. */
  height: 3.5rem;
  padding: 0 1.1rem;
  background: #e2e8f0;
  color: #334155;
  border: 0;
  text-decoration: none;
  line-height: 1.1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn.nav-connexion svg{ width: 1.15rem; height: 1.15rem; }
.btn.nav-connexion span{
  font-size: .6875rem;         /* « en petit », sous l'icône */
  font-weight: 600;
  letter-spacing: .01em;
}
.btn.nav-connexion:hover{
  background: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}
.dark-theme .btn.nav-connexion{ background: rgba(255,255,255,.10); color: #e2e8f0; }
.dark-theme .btn.nav-connexion:hover{ background: rgba(255,255,255,.18); color: #fff; }

/* La barre du bas prend le relais sous 1040px (point de bascule réel de
   .mobile-bottom-bar) : au-delà, ce bouton ferait doublon. */
@media (max-width: 1040px){
  .btn.nav-connexion{ display: none; }
}

/* Curseur sur le pied de page quand il est sélectionnable dans l éditeur.
   Il était porté par le conteneur, qui est désormais en display:contents et
   ne peut plus rien styler. */
[data-editor-footer] .site-footer { cursor: pointer; }
