/* =========================================================
   A3DIA — Association des Investisseurs Arkéon
   Stylesheet principal — palette navy / sans-serif épuré
   ========================================================= */

/* -------- Design Tokens -------- */
:root {
  /* Palette : bleu marine adouci, plus serein et accessible */
  --navy-950: #243164;   /* fond le plus profond (footer) */
  --navy-900: #2d3d7a;   /* header, formulaires */
  --navy-800: #384a8f;   /* surfaces accent */
  --navy-700: #4359a8;   /* boutons primaires */
  --navy-600: #5670bf;   /* hover boutons */
  --navy-500: #7188cf;   /* éléments interactifs */
  --navy-100: #e4e9f7;   /* surfaces très claires */
  --navy-50:  #f4f6fc;

  --ink-900: #0a0f1f;
  --ink-700: #2a3142;
  --ink-500: #5b6478;
  --ink-300: #9aa3b8;

  --paper:   #ffffff;
  --cream:   #f8f9fc;
  --line:    #e3e6ee;

  --gold:    #c9a961;    /* accent discret pour les détails premium */
  --success: #16a34a;
  --danger:  #dc2626;

  /* Typography — pile sans-serif épurée et institutionnelle */
  --font-sans: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadow — plus subtiles, institutionnelles */
  --shadow-sm: 0 1px 2px rgba(10, 15, 31, 0.04), 0 1px 3px rgba(10, 15, 31, 0.06);
  --shadow-md: 0 2px 8px rgba(10, 15, 31, 0.06), 0 1px 3px rgba(10, 15, 31, 0.04);
  --shadow-lg: 0 12px 28px rgba(10, 19, 48, 0.10), 0 4px 12px rgba(10, 15, 31, 0.05);
  --shadow-xl: 0 24px 48px rgba(10, 19, 48, 0.14);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------- Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink-900);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 600; }

p { margin: 0; }

/* -------- Layout helpers -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .container {
    padding: 0 24px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 22px;
  }
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn:hover::before { transform: translateX(110%); }
.btn:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.08s;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 89, 168, 0.45);
}

.btn-primary {
  background: var(--navy-700);
  color: var(--paper);
  box-shadow: 0 4px 12px rgba(33, 48, 99, 0.22);
}
.btn-primary:hover {
  background: var(--navy-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(33, 48, 99, 0.28);
}

.btn-light {
  background: var(--paper);
  color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-light:hover {
  background: var(--paper);
  color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
  background: var(--navy-50);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
}
.logo img {
  height: 26px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .logo {
    height: 28px;
  }
  .logo img {
    height: 22px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: rgba(255,255,255, 0.78);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover {
  color: var(--paper);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-link.active {
  color: var(--paper);
}
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Item "Connexion" cloné dans la liste pour le menu mobile - caché par défaut sur desktop */
.nav-list .nav-link-cta {
  display: none;
}

.nav-cta {
  background: var(--paper);
  color: var(--navy-900);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.nav-cta:active {
  transform: translateY(0) scale(0.97);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease-out);
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}
.nav-toggle:active {
  transform: scale(0.95);
}
.nav-toggle svg { display: none; } /* on remplace par 3 barres custom animées */
.nav-toggle::before,
.nav-toggle::after,
.nav-toggle .bar {
  content: '';
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  background: var(--paper);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease), top 0.35s var(--ease-out);
}
.nav-toggle::before { top: 16px; transform: translateX(-50%); }
.nav-toggle .bar { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle::after { top: 26px; transform: translateX(-50%); }

/* État ouvert : transformation en croix */
.nav.open .nav-toggle::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav.open .nav-toggle::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.nav.open .nav-toggle .bar {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0);
}

/* -------- Hero -------- */
/* =========================================================
   HERO — Layout éditorial centré, hiérarchie forte
   ========================================================= */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(36, 49, 100, 0.45) 0%, rgba(36, 49, 100, 0.85) 100%),
    linear-gradient(135deg, rgba(45, 61, 122, 0.6) 0%, rgba(67, 89, 168, 0.4) 100%),
    url('../assets/images/hero-bg.png') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(86, 112, 191, 0.25) 0%, transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 40%);
}

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255, 0.08);
  border: 1px solid rgba(255,255,255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: rgba(255,255,255, 0.92);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 169, 97, 0.7);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}

/* Headline en deux temps : promesse forte + précision */
.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--paper);
}
.hero-title .line-1 {
  display: block;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  letter-spacing: -0.035em;
}
.hero-title .line-2 {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.02em;
}
.hero-title .line-2 em {
  font-style: normal;
  color: var(--paper);
  font-weight: 600;
  position: relative;
  display: inline-block;
}
/* Soulignement doré sous "Arkéon" pour ancrer la marque */
.hero-title .line-2 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  opacity: 0.85;
  transform-origin: left;
  animation: underline-grow 1s var(--ease-out) 0.6s both;
}
@keyframes underline-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero p.lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 auto 40px;
  /* text-wrap balance évite les orphelins typographiques */
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Bouton ghost spécifique au hero (transparent sur fond foncé) */
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--paper);
  transform: translateY(-2px);
}
.btn-hero-ghost:active {
  background: rgba(255, 255, 255, 0.06);
}

/* Trust strip : éléments de réassurance sous le CTA */
.hero-trust {
  list-style: none;
  padding: 28px 0 0;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 600px;
  margin: 0 auto;
}
.hero-trust li {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-trust li::marker,
.hero-trust li::before {
  content: none !important;
  display: none !important;
}
.hero-trust strong {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-trust span {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Indicateur scroll animé (élément de design subtil) */
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  pointer-events: none;
}
.hero-scroll-hint span {
  display: block;
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scroll-bounce 2s var(--ease) infinite;
}
@keyframes scroll-bounce {
  0%, 20% { transform: translateY(0); opacity: 0.8; }
  60% { transform: translateY(8px); opacity: 0; }
  61%, 100% { transform: translateY(0); opacity: 0; }
  85% { opacity: 0.8; }
}

/* Animations d'entrée séquentielles pour donner du rythme */
.js-reveal .hero-eyebrow.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js-reveal .hero-title.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.15s, transform 0.8s var(--ease-out) 0.15s;
}
.js-reveal .hero p.lead.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.3s, transform 0.8s var(--ease-out) 0.3s;
}
.js-reveal .hero-cta.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.45s, transform 0.8s var(--ease-out) 0.45s;
}
.js-reveal .hero-trust.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.6s, transform 0.8s var(--ease-out) 0.6s;
}
.js-reveal .hero-eyebrow.reveal.in,
.js-reveal .hero-title.reveal.in,
.js-reveal .hero p.lead.reveal.in,
.js-reveal .hero-cta.reveal.in,
.js-reveal .hero-trust.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 48px 0 64px; }
  .hero-trust {
    gap: 24px;
    padding-top: 24px;
  }
  .hero-trust strong { font-size: 1.5rem; }
  .hero-trust span { font-size: 0.7rem; }
  .hero-scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-trust {
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-trust li {
    flex: 1 1 30%;
  }
}

/* -------- Sections génériques -------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--navy-50);
  color: var(--navy-800);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-head h2 {
  margin-bottom: 16px;
}
.section-head p {
  margin-top: 0;
  color: var(--ink-500);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* -------- Mission grid -------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .mission-grid { grid-template-columns: 1fr; }
}
.mission-card {
  position: relative;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease);
}
.mission-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-100);
  box-shadow: var(--shadow-lg);
}
.mission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy-50), var(--navy-100));
  border-radius: 16px;
  color: var(--navy-700);
  transition: transform 0.4s var(--ease-out), background 0.3s var(--ease), color 0.3s var(--ease);
}
.mission-icon svg {
  width: 36px;
  height: 36px;
}
.mission-card:hover .mission-icon {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  color: var(--paper);
  transform: scale(1.05) rotate(-3deg);
}
.mission-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.mission-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-500);
}

.mission-cta {
  text-align: center;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.mission-cta p {
  color: var(--ink-500);
  margin-bottom: 24px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* -------- Actualités carousel -------- */
.actualites-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.carousel-shell {
  position: relative;
}
.carousel-wrapper {
  position: relative;
  margin-top: 24px;
  /* mask-image creates a fade effect at the edges */
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 24px 32px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.actu-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s var(--ease);
}
.actu-card:hover {
  transform: translateY(-6px);
  border-color: var(--navy-100);
  box-shadow: var(--shadow-lg);
}
.actu-card-media {
  height: 140px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}
.actu-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
  transition: background 0.4s var(--ease);
}
.actu-card:hover .actu-card-media {
  transform: scale(1.06);
}
.actu-card:hover .actu-card-media::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.actu-card-media .badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  z-index: 2;
}
.actu-card-body {
  padding: 20px;
}
.actu-card-body h4 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  color: var(--ink-900);
}
.actu-card-body p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-500);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: var(--paper);
  color: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 27, 61, 0.12), 0 1px 3px rgba(15, 27, 61, 0.08);
  transition:
    transform 0.3s var(--ease-out),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.3s var(--ease-out),
    border-color 0.25s var(--ease);
}
.carousel-nav:hover {
  background: var(--navy-700);
  color: var(--paper);
  border-color: var(--navy-700);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 28px rgba(45, 61, 122, 0.32);
}
.carousel-nav:active {
  transform: translateY(-50%) scale(0.96);
  transition-duration: 0.1s;
}
.carousel-nav.prev:hover { transform: translateY(-50%) scale(1.08) translateX(-2px); }
.carousel-nav.next:hover { transform: translateY(-50%) scale(1.08) translateX(2px); }
.carousel-nav.prev { left: -20px; }
.carousel-nav.next { right: -20px; }
.carousel-nav svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease-out); }
.carousel-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 89, 168, 0.4), 0 4px 14px rgba(15, 27, 61, 0.12);
}
@media (max-width: 720px) {
  .carousel-nav { display: none; } /* swipe naturel sur mobile, plus propre que les flèches */
}

.carousel-more {
  text-align: center;
  margin-top: 24px;
}
.carousel-more a {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1.5px solid var(--navy-800);
  padding-bottom: 2px;
  transition: opacity 0.2s var(--ease);
}
.carousel-more a:hover { opacity: 0.7; }

/* -------- Newsletter -------- */
.newsletter {
  position: relative;
  padding: 100px 0;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(95deg, var(--navy-950) 0%, var(--navy-950) 42%, rgba(10, 19, 48, 0.75) 60%, rgba(17, 29, 68, 0.25) 90%, transparent 100%),
    url('../assets/images/newsletter-bg.png') right center / cover no-repeat;
}
.newsletter::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.4'><circle cx='30' cy='30' r='1.5'/><circle cx='0' cy='0' r='1.5'/><circle cx='60' cy='0' r='1.5'/><circle cx='0' cy='60' r='1.5'/><circle cx='60' cy='60' r='1.5'/></g></svg>");
}
.newsletter-inner {
  max-width: 540px;
}
.newsletter h2 {
  color: var(--paper);
  margin-bottom: 16px;
}
.newsletter p {
  font-size: 1rem;
  color: rgba(255,255,255, 0.85);
  margin-bottom: 28px;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 0;
  background: var(--paper);
  border-radius: 4px;
  padding: 4px;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--ink-900);
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--ink-500); }
.newsletter-form button {
  padding: 12px 26px;
  background: var(--navy-800);
  color: var(--paper);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease);
}
.newsletter-form button:hover { background: var(--navy-700); }

/* -------- Footer -------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255, 0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo img {
  height: 28px;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255, 0.6);
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 0.875rem;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease-out);
}
.footer-col a:hover {
  color: var(--paper);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255,255,255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255, 0.7);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-bottom a:hover { color: var(--paper); }

/* -------- Page Title (interior pages) -------- */
.page-title {
  background: var(--paper);
  text-align: center;
  padding: 80px 0 48px;
}
.page-title h1 {
  font-weight: 700;
  margin-bottom: 16px;
}
.page-title p {
  color: var(--ink-500);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* -------- Adhésion page -------- */
.adhesion-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto 56px;
}
.info-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.info-card h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--navy-800);
}
.info-card .price {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.info-card .price span {
  font-size: 0.875rem;
  color: var(--ink-500);
  font-weight: 400;
  letter-spacing: 0;
}
.info-card p {
  font-size: 0.9375rem;
  color: var(--ink-700);
  line-height: 1.6;
}
.info-card p + p { margin-top: 8px; }
.info-card .small {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--ink-500);
}

/* Form Card — effet glassmorphism */
.form-section {
  position: relative;
  isolation: isolate;
  padding: 100px 0;
}
.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(113, 136, 207, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(67, 89, 168, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(45, 61, 122, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy-50) 0%, var(--navy-100) 100%);
}
.form-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%234359a8' stroke-width='0.5' stroke-opacity='0.18'><circle cx='40' cy='40' r='1'/><circle cx='0' cy='0' r='1'/><circle cx='80' cy='0' r='1'/><circle cx='0' cy='80' r='1'/><circle cx='80' cy='80' r='1'/></g></svg>");
}

.form-card {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink-900);
  padding: 56px clamp(24px, 5vw, 56px);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 24px 48px rgba(33, 48, 99, 0.18),
    0 8px 16px rgba(33, 48, 99, 0.08);
}
.form-card h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy-900);
}
.form-card .form-intro {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-700);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}
.field label .req { color: var(--gold); }
.field input,
.field textarea {
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid rgba(33, 48, 99, 0.15);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:hover,
.field textarea:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(33, 48, 99, 0.3);
}
.field input:focus,
.field textarea:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(53, 76, 150, 0.15);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group { display: flex; gap: 24px; margin-top: 4px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink-900);
}
.radio-group input { width: 18px; height: 18px; accent-color: var(--navy-700); margin: 0; cursor: pointer; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.55;
  cursor: pointer;
  margin-top: 4px;
  color: var(--ink-700);
}
.checkbox-row input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--navy-700); cursor: pointer; }

.section-divider {
  height: 1px;
  background: rgba(33, 48, 99, 0.15);
  margin: 32px 0;
  grid-column: 1 / -1;
}

.cotis-line {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--navy-900);
}
.form-disclaimer {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 24px 0 32px;
}
.form-submit {
  text-align: center;
  margin-top: clamp(28px, 4vw, 40px);
}
.form-submit .btn {
  background: var(--navy-700);
  color: var(--paper);
  font-weight: 600;
  padding: 16px 40px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(33, 48, 99, 0.25);
}
.form-submit .btn:hover {
  background: var(--navy-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 48, 99, 0.35);
}
.form-submit .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(33, 48, 99, 0.25);
}

/* -------- Actualités page -------- */
.ag-section {
  max-width: 920px;
  margin: 0 auto;
}
.ag-section h2 {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--navy-800);
}
.ag-intro {
  text-align: center;
  color: var(--ink-500);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.ag-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.ag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--paper);
}
.ag-table th,
.ag-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.ag-table th {
  background: var(--cream);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.ag-table tr:last-child td { border-bottom: none; }
.ag-table tbody tr {
  transition: background 0.15s var(--ease);
}
.ag-table tbody tr:hover { background: var(--navy-50); }
.ag-table .date {
  font-variant-numeric: tabular-nums;
  color: var(--ink-700);
  white-space: nowrap;
  font-weight: 500;
}
.ag-table .company { font-weight: 600; color: var(--ink-900); }
.ag-table .type { color: var(--ink-500); }

.load-more {
  text-align: center;
  margin-top: 32px;
}
.load-more a {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1.5px solid var(--navy-800);
  padding-bottom: 2px;
  transition: opacity 0.2s var(--ease);
}
.load-more a:hover { opacity: 0.7; }

/* -------- Contact page -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info h2 {
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--ink-500);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}
.contact-info h2 {
  color: var(--navy-900);
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--ink-700);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}
.contact-block { margin-bottom: 28px; }
.contact-block h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.contact-block .row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-700);
}
.contact-block .row svg {
  width: 18px; height: 18px;
  color: var(--navy-800);
  flex-shrink: 0;
}
.contact-block a:hover { color: var(--navy-800); }

.contact-form-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink-900);
  padding: 40px;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 24px 48px rgba(33, 48, 99, 0.15);
}
.contact-form-card .form-grid { gap: 20px; }
.contact-form-card .field label { color: var(--navy-900); }
.contact-form-card .form-submit { text-align: left; }

/* -------- Animations & reveal --------
   Progressive enhancement : la classe `js-reveal` est ajoutée
   sur <html> par le JS. Sans JS, tout reste visible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js-reveal .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Toast -------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-900);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .adhesion-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-list,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav.open .nav-list {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(45, 61, 122, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px;
    gap: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 50px rgba(15, 27, 61, 0.45);
    animation: menu-slide-in 0.35s var(--ease-out);
    z-index: 99;
  }
  .nav.open .nav-list .nav-link {
    display: block;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255, 0.85);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
  }
  .nav.open .nav-list .nav-link:hover,
  .nav.open .nav-list .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--paper);
  }
  .nav.open .nav-list .nav-link.active::after {
    display: none;
  }
  /* Item "Connexion" dans le menu mobile - style CTA */
  .nav-list .nav-link-cta {
    display: none; /* caché sur desktop */
  }
  .nav.open .nav-list .nav-link-cta {
    display: block;
    margin-top: 8px;
    padding: 14px 18px;
    background: var(--paper);
    color: var(--navy-900) !important;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
  }
  .nav.open .nav-list .nav-link-cta:hover {
    background: var(--navy-50);
  }
}
@keyframes menu-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {

  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .actu-card { flex: 0 0 240px; }
  .form-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 12px;
  }
  .newsletter-form input { padding: 12px 8px; }
  .newsletter-form button { width: 100%; padding: 14px; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Polish design — finitions
   ========================================================= */

/* Sélection texte aux couleurs de la marque */
::selection {
  background: var(--gold);
  color: var(--ink-900);
}

/* Focus clavier visible et accessible partout */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Scrollbar discrète aux couleurs de la marque (Webkit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-500);
  border-radius: 5px;
  border: 2px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy-700);
}

/* Header : effet sticky raffiné quand on scrolle (la classe .scrolled est ajoutée par JS) */
.site-header {
  transition: background-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(45, 61, 122, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 4px 24px rgba(10, 19, 48, 0.18);
}

/* Fade-in subtil au chargement de la page */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: page-fade-in 0.5s var(--ease-out) both;
}

/* Liaison hover plus vivante sur les liens du footer */
.site-footer a {
  position: relative;
  transition: color 0.25s var(--ease);
}
.site-footer a:hover {
  color: var(--gold);
}

/* Séparateurs dorés discrets sous les titres principaux pour renforcer la marque */
.section-head h2 {
  position: relative;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  border-radius: 2px;
}

/* Boutons : micro-interaction au clic */
.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Lazy loading hint visuel pour les images du carousel */
.actu-card-media {
  transition: transform 0.5s var(--ease-out), filter 0.4s var(--ease);
}
.actu-card:hover .actu-card-media {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(1.05);
}
.actu-card {
  overflow: hidden;
}


/* =========================================================
   AUTH — Login page
   ========================================================= */

.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.login-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.login-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.login-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--navy-50);
  border-radius: 50%;
  color: var(--navy-700);
  margin-bottom: 20px;
}
.login-card-icon svg { width: 30px; height: 30px; }

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--navy-900);
}
.login-subtitle {
  color: var(--ink-500);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.login-card .field { text-align: left; }

.password-field {
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-300);
  transition: color 0.2s;
}
.password-toggle:hover { color: var(--navy-700); }

.login-btn { font-size: 1rem; padding: 15px 28px; }

.login-error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  text-align: left;
}

.login-help {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--ink-500);
}
.login-help a {
  color: var(--navy-700);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.btn-logout-cta {
  background: var(--paper);
  color: var(--navy-900);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-logout-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* =========================================================
   ESPACE MEMBRES — Hero
   ========================================================= */

.membre-hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--paper);
  padding: 56px 0 48px;
}

.membre-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.membre-hero-text .label {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}
.membre-hero-text h1 {
  color: var(--paper);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}
.membre-hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

.membre-hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 16px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
}
.membre-hero-badge svg { width: 40px; height: 40px; opacity: 0.7; }

/* Posts filters */
.posts-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--paper);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover {
  border-color: var(--navy-500);
  color: var(--navy-700);
}
.filter-btn.active {
  background: var(--navy-700);
  color: var(--paper);
  border-color: var(--navy-700);
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.25s var(--ease);
  outline: none;
}
.post-card:hover, .post-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-100);
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.post-type-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.post-date {
  font-size: 0.8125rem;
  color: var(--ink-300);
  white-space: nowrap;
}
.post-societe {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 8px;
}
.post-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--ink-900);
}
.post-excerpt {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin-bottom: 16px;
}
.post-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-700);
}

/* Loading / empty */
.posts-loading {
  text-align: center;
  padding: 64px 0;
  color: var(--ink-500);
}
.posts-loading .loading-spinner { margin: 0 auto 16px; }
.posts-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-300);
}
.posts-empty svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--ink-300); opacity: 0.5; }
.posts-empty p { font-size: 1rem; }

.loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--navy-100);
  border-top-color: var(--navy-700);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Post modal */
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.post-modal[hidden] { display: none !important; }
.post-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 31, 0.6);
  backdrop-filter: blur(4px);
}
.post-modal-content {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modal-in 0.25s var(--ease-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.post-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.post-modal-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.post-modal-header h2 { font-size: 1.25rem; color: var(--ink-900); }
.post-modal-meta { margin-top: 6px; font-size: 0.875rem; color: var(--ink-500); }
.post-modal-close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  transition: background 0.2s, color 0.2s;
}
.post-modal-close:hover { background: var(--cream); color: var(--ink-900); }
.post-modal-body {
  padding: 28px 32px 36px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-700);
}
.post-modal-body h2, .post-modal-body h3 { color: var(--navy-900); margin: 24px 0 12px; }
.post-modal-body p { margin-bottom: 16px; }
.post-modal-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.post-modal-body th, .post-modal-body td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.post-modal-body th { background: var(--cream); font-weight: 600; }
.post-modal-body a { color: var(--navy-700); text-decoration: underline; }

/* =========================================================
   ADMIN PANEL
   ========================================================= */

.admin-body {
  background: #f3f4f8;
  min-height: 100vh;
}

/* Top bar */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 56px;
}
.admin-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-badge {
  background: var(--gold);
  color: var(--navy-950);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.admin-user-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.admin-topbar-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  transition: color 0.2s;
}
.admin-topbar-link:hover { color: var(--paper); }
.admin-topbar-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.admin-topbar-btn:hover { background: rgba(255,255,255,0.15); color: var(--paper); }

/* Layout */
.admin-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
}

/* Sidebar */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 24px 12px;
}
.admin-sidenav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.admin-sidenav-item:hover { background: var(--navy-50); color: var(--navy-700); }
.admin-sidenav-item.active { background: var(--navy-700); color: var(--paper); }
.admin-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 24px;
  text-align: center;
}
.admin-sidenav-item:not(.active) .admin-count {
  background: var(--navy-100);
  color: var(--navy-800);
}

/* Main area */
.admin-main {
  flex: 1;
  padding: 32px;
  overflow: auto;
}
.admin-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-tab-header h1 {
  font-size: 1.375rem;
  color: var(--ink-900);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

/* Search row */
.admin-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--paper);
}
.admin-search-input:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(67,89,168,0.15);
}
.admin-select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--paper);
  color: var(--ink-900);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.admin-select:focus { border-color: var(--navy-700); }

/* Table */
.admin-table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.admin-table th {
  background: var(--cream);
  padding: 13px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: var(--navy-50); }
.admin-table td strong { color: var(--ink-900); }
.admin-table .actions-col { width: 120px; white-space: nowrap; }
.admin-table .date-cell { font-size: 0.875rem; color: var(--ink-500); white-space: nowrap; }

.admin-loading {
  padding: 40px;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.admin-empty {
  padding: 48px;
  text-align: center;
  color: var(--ink-300);
  font-style: italic;
}

/* Action buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: var(--ink-500);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.action-btn:hover { background: var(--navy-50); color: var(--navy-700); }
.action-btn-danger:hover { background: #fde8e8; color: var(--danger); }
.action-btn-toggle:hover { background: #e8f5e9; color: #155724; }

/* Badges */
.role-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.role-admin { background: #fef9ec; color: #92610a; }
.role-membre { background: var(--navy-50); color: var(--navy-800); }

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.status-active { background: #e8f5e9; color: #155724; }
.status-inactive { background: #f5f5f5; color: #666; }

.type-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--navy-50);
  color: var(--navy-800);
}

/* Admin modals */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-modal[hidden] { display: none !important; }
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,15,31,0.55);
  backdrop-filter: blur(3px);
}
.admin-modal-box {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modal-in 0.22s var(--ease-out);
}
.admin-modal-box-lg { max-width: 840px; }
.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.admin-modal-head h2 { font-size: 1.125rem; }
.admin-modal-close {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-modal-close:hover { background: var(--cream); color: var(--ink-900); }
.admin-modal-box form { padding: 24px 28px; }
.admin-modal-box-lg form { padding: 24px 28px; }
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

/* Form messages */
.admin-form-msg {
  margin: 0 28px 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
.admin-form-msg-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #fca5a5; }
.admin-form-msg-success { background: #e8f5e9; color: #155724; border: 1px solid #86efac; }

/* Account card */
.admin-account-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 560px;
}
.admin-account-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 24px;
}

/* Responsive admin */
@media (max-width: 900px) {
  .admin-sidebar { width: 56px; padding: 16px 8px; }
  .admin-sidenav-item span:not(.admin-count) { display: none; }
  .admin-sidenav-item { justify-content: center; padding: 10px; }
  .admin-count { display: none; }
  .admin-topbar-right .admin-user-label { display: none; }
}
@media (max-width: 640px) {
  .admin-main { padding: 20px 16px; }
  .admin-topbar-link { display: none; }
  .membre-hero-badge { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .login-card { padding: 36px 24px; }
}

/* ============================================================
   BACK-OFFICE — Dashboard, Demandes, Paiements
============================================================ */

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stat-cards { grid-template-columns: 1fr; } }

.stat-card {
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
}
.stat-card-blue  { background: #eff6ff; border-color: #bfdbfe; }
.stat-card-orange{ background: #fff7ed; border-color: #fed7aa; }
.stat-card-green { background: #f0fdf4; border-color: #bbf7d0; }
.stat-card-gray  { background: #f8fafc; border-color: #e2e8f0; }

.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card-blue  .stat-icon { background: #dbeafe; color: #1d4ed8; }
.stat-card-orange .stat-icon{ background: #fed7aa; color: #c2410c; }
.stat-card-green .stat-icon { background: #bbf7d0; color: #15803d; }
.stat-card-gray  .stat-icon { background: #e2e8f0; color: #475569; }

.stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 4px;
}

/* Dashboard grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.dash-panel-head h3 { font-size: 0.95rem; font-weight: 600; margin: 0; }
.btn-link {
  background: none; border: none; padding: 0;
  color: var(--navy-600); font-size: 0.8rem; cursor: pointer;
  font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }

/* Activity list */
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-name { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-meta { color: var(--ink-500); font-size: 0.78rem; flex: 1; min-width: 0; }

/* Trésorerie cards */
.tresorerie-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 700px) { .tresorerie-cards { grid-template-columns: 1fr; } }

.treso-card {
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid transparent;
}
.treso-green  { background: #f0fdf4; border-color: #bbf7d0; }
.treso-blue   { background: #eff6ff; border-color: #bfdbfe; }
.treso-orange { background: #fff7ed; border-color: #fed7aa; }

.treso-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
}
.treso-label {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 4px;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-600);
  font-family: inherit;
  transition: all .15s;
}
.filter-tab:hover { border-color: var(--navy-400); color: var(--navy-700); }
.filter-tab.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

/* Request status badges */
.req-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.req-status-en_attente { background: #fef3c7; color: #92400e; }
.req-status-approuvee  { background: #dbeafe; color: #1e40af; }
.req-status-payee      { background: #dcfce7; color: #166534; }
.req-status-rejetee    { background: #fee2e2; color: #991b1b; }

/* Payment type & status badges */
.pay-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pay-type-stripe  { background: #ede9fe; color: #5b21b6; }
.pay-type-virement{ background: #e0f2fe; color: #075985; }
.pay-type-cheque  { background: #f3f4f6; color: #374151; }

.pay-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pay-status-en_attente { background: #fef9c3; color: #854d0e; }
.pay-status-confirme   { background: #dcfce7; color: #166534; }
.pay-status-annule     { background: #fee2e2; color: #991b1b; }

/* Action buttons extra */
.action-btn-success { color: #15803d !important; }
.action-btn-success:hover { background: #dcfce7 !important; }
.action-btn-warning { color: #c2410c !important; }
.action-btn-warning:hover { background: #ffedd5 !important; }

/* Payment method options */
.pay-method-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 500px) { .pay-method-options { grid-template-columns: 1fr; } }

.pay-method-opt input[type=radio] { display: none; }
.pay-method-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-600);
}
.pay-method-card span { font-size: 0.85rem; font-weight: 600; }
.pay-method-card small { font-size: 0.72rem; color: var(--ink-400); }
.pay-method-opt input:checked + .pay-method-card {
  border-color: var(--navy-600);
  background: #eff6ff;
  color: var(--navy-700);
}
.pay-method-card:hover { border-color: var(--navy-400); }

/* Info boxes */
.info-box {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.info-box-green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.info-box-blue  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.info-box code  { background: rgba(0,0,0,.07); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

/* Credentials box */
.cred-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.cred-row:last-child { border-bottom: none; }
.cred-row span { color: var(--ink-500); width: 150px; flex-shrink: 0; }
.cred-row code { flex: 1; font-family: monospace; color: var(--ink-900); }
.btn-copy {
  background: var(--navy-700); color: #fff;
  border: none; border-radius: 6px;
  padding: 4px 10px; font-size: 0.75rem;
  cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.btn-copy:hover { background: var(--navy-800); }

/* Autocomplete */
.autocomplete-results {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 2px;
  min-width: 100%;
}
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: #f1f5f9; }
.autocomplete-item small { color: var(--ink-400); display: block; }
.field { position: relative; }

/* Adhesion form success */
.adhesion-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.adhesion-success h3 { color: #15803d; margin-bottom: 8px; }
.adhesion-success p  { color: #166534; }
.pay-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}
@media (max-width: 700px) { .pay-options-grid { grid-template-columns: 1fr; } }
.pay-option-card {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 18px;
}
.pay-option-card h4 { font-size: 0.9rem; margin-bottom: 8px; color: var(--ink-900); }

/* ============================================================
   TRÉSORERIE — Bar chart
============================================================ */
.treso-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.treso-bar-item {
  display: grid;
  grid-template-columns: 52px 1fr 110px;
  align-items: center;
  gap: 12px;
}
.treso-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-600);
  text-align: right;
}
.treso-bar-track {
  background: #e2e8f0;
  border-radius: 6px;
  height: 18px;
  overflow: hidden;
}
.treso-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-600), #3b82f6);
  border-radius: 6px;
  transition: width 0.5s ease;
  min-width: 2px;
}
.treso-bar-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}
.treso-bar-current .treso-bar-label { color: var(--navy-700); font-weight: 700; }
.treso-bar-current .treso-bar-fill  { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.treso-bar-current .treso-bar-val   { color: var(--navy-700); font-weight: 700; }

/* ============================================================
   TABLE PAGINATION
============================================================ */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 4px;
}
.pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: var(--ink-600);
  transition: background 0.1s, border-color 0.1s;
  font-family: inherit;
}
.pag-btn:hover:not(:disabled) { background: #f1f5f9; border-color: var(--navy-400); }
.pag-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pag-info { font-size: 0.84rem; color: var(--ink-500); }

/* ============================================================
   ANNUAIRE — Grid & card view
============================================================ */
.annuaire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 4px 0 16px;
}
.annuaire-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.15s;
}
.annuaire-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.annuaire-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.annuaire-name  { font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
.annuaire-company { font-size: 0.8rem; color: var(--ink-500); font-weight: 500; }
.annuaire-email {
  font-size: 0.8rem; color: var(--navy-600);
  text-decoration: none; word-break: break-all;
}
.annuaire-email:hover { text-decoration: underline; }
.annuaire-tel   { font-size: 0.8rem; color: var(--ink-500); }
.annuaire-ville { font-size: 0.78rem; color: var(--ink-400); }

/* ============================================================
   MESSAGERIE — Layout, sidebar, mail items, compose
============================================================ */
.mailbox-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  min-height: 600px;
}
@media (max-width: 900px) {
  .mailbox-layout { grid-template-columns: 1fr; }
}
.mailbox-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mailbox-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.mailbox-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.mailbox-tab:hover { color: var(--navy-700); }
.mailbox-tab.active {
  color: var(--navy-700);
  border-bottom-color: var(--navy-700);
}
.mail-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.mail-item:last-child { border-bottom: none; }
.mail-item:hover { background: #f8fafc; }
.mail-item.mail-unread { background: #eff6ff; }
.mail-item.mail-unread:hover { background: #dbeafe; }
.mail-from {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-unread .mail-from { color: var(--navy-700); }
.mail-subject {
  font-size: 0.83rem;
  color: var(--ink-700);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-date {
  font-size: 0.75rem;
  color: var(--ink-400);
  margin-top: 4px;
}
.mail-preview {
  font-size: 0.75rem;
  color: var(--ink-400);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 280px;
}
.mailbox-compose {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
}
.compose-to-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compose-to-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-700);
  transition: border-color 0.15s, background 0.15s;
}
.compose-to-opt:hover { border-color: var(--navy-400); background: #f8fafc; }
.compose-to-opt input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--navy-700);
  flex-shrink: 0;
}
.pay-option-card p  { font-size: 0.82rem; color: var(--ink-600); margin: 0; line-height: 1.5; }
.pay-option-card code { font-size: 0.78rem; background: #f0fdf4; padding: 2px 5px; border-radius: 3px; }

/* ── Bannière cotisation (espace adhérents) ── */
.coti-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff; box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
}
.coti-card.coti-due {
  justify-content: space-between; flex-wrap: wrap;
  border-color: #fcd9b6; background: linear-gradient(180deg, #fffaf3, #fff);
}
.coti-card.coti-ok { border-color: #bbf7d0; background: linear-gradient(180deg, #f2fdf5, #fff); }
.coti-ico { font-size: 1.4rem; line-height: 1; }
.coti-txt { display: flex; flex-direction: column; gap: 3px; }
.coti-txt strong { font-size: 1rem; color: var(--ink-900, #0f172a); }
.coti-txt span { font-size: 0.88rem; color: var(--ink-600, #475569); }
.coti-card .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .coti-card.coti-due { gap: 14px; }
  .coti-card .btn { width: 100%; }
}
.coti-alt { margin-top: 10px; }
.coti-alt-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 0.85rem; color: var(--navy-600, #2d3d7a); font-weight: 600;
  padding: 6px 2px;
}
.coti-alt-toggle:hover { text-decoration: underline; }
.coti-alt-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px;
}
.coti-alt-method {
  padding: 14px 16px; border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px; background: #fff;
  font-size: 0.85rem; color: var(--ink-600, #475569); line-height: 1.6;
}
.coti-alt-method strong { display: block; margin-bottom: 4px; color: var(--ink-900, #0f172a); }
.coti-alt-method code { font-size: 0.8rem; background: #f1f5f9; padding: 2px 5px; border-radius: 3px; }
.coti-alt-note { grid-column: 1 / -1; margin: 0; font-size: 0.78rem; color: var(--ink-500, #64748b); }
@media (max-width: 560px) { .coti-alt-body { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   SURCOUCHE GLASS iOS — épurée, mobile-first
   (verre dépoli : blur + translucidité + bordure lumineuse)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --glass-blur: 18px;
  --radius-glass: 20px;
}

/* Fond ambiant très léger pour donner de la matière au verre */
body {
  background-image:
    radial-gradient(48rem 32rem at 85% -5%, rgba(26, 41, 97, 0.07), transparent 60%),
    radial-gradient(40rem 28rem at -10% 30%, rgba(59, 91, 219, 0.05), transparent 55%),
    radial-gradient(36rem 26rem at 110% 85%, rgba(197, 165, 90, 0.05), transparent 55%);
  background-attachment: fixed;
}

/* ── Header : verre navy ── */
.site-header {
  background: rgba(18, 29, 71, 0.82);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--navy-900); }
}

/* ── Cartes en verre ── */
.post-card,
.coti-card,
.coti-alt-method,
.login-card,
.info-card,
.form-card,
.annuaire-card,
.pay-option-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-glass);
}
@supports not (backdrop-filter: blur(1px)) {
  .post-card, .coti-card, .coti-alt-method, .login-card,
  .info-card, .form-card, .annuaire-card, .pay-option-card { background: #fff; }
}
.post-card:hover, .post-card:focus-visible {
  transform: translateY(-3px);
  background: var(--glass-bg-strong);
  border-color: rgba(26, 41, 97, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ── Filtres : pilules segmentées iOS ── */
.posts-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  max-width: max-content;
}
.posts-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  border: none;
  background: transparent;
  white-space: nowrap;
  min-height: 38px;
  padding: 8px 18px;
  cursor: pointer;
}
.filter-btn:hover { background: rgba(26, 41, 97, 0.07); border-color: transparent; }
.filter-btn.active {
  background: var(--navy-700, #1a2961);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 41, 97, 0.35);
}

/* ── Bannière cotisation ── */
.coti-card { padding: 22px 26px; }
.coti-card .btn {
  border-radius: 999px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.coti-card .btn:active { transform: scale(0.98); }
.coti-ico-svg { width: 26px; height: 26px; flex-shrink: 0; color: #16a34a; }
.coti-alt-toggle { min-height: 44px; }

/* ── Modal : verre épais ── */
.post-modal-backdrop {
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.post-modal-content {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-glass);
}
@supports not (backdrop-filter: blur(1px)) {
  .post-modal-content { background: #fff; }
}

/* ── Newsletter : champ pilule verre ── */
.newsletter-form input[type="email"] {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}
.newsletter-form button { border-radius: 999px; min-height: 48px; }

/* ── Hero espace membre : halos doux PAR-DESSUS le dégradé navy d'origine ── */
.membre-hero {
  background-image:
    radial-gradient(34rem 20rem at 80% 0%, rgba(197, 165, 90, 0.16), transparent 60%),
    radial-gradient(30rem 22rem at 8% 100%, rgba(99, 131, 255, 0.2), transparent 55%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
}
.membre-hero-badge {
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-glass);
}

/* ── États verrouillé / vide ── */
.posts-empty {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-glass);
  box-shadow: var(--glass-shadow);
  padding: 48px 28px;
}

/* ── Accessibilité & confort ── */
:focus-visible {
  outline: 2px solid var(--navy-600, #2d3d7a);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Mobile (≤ 640px) : priorité espace membre ── */
@media (max-width: 640px) {
  .posts-filters {
    max-width: 100%;
    border-radius: 18px;
  }
  .filter-btn { min-height: 44px; }
  .coti-card { padding: 18px; }
  .coti-card.coti-due { flex-direction: column; align-items: stretch; }
  .coti-card .btn { width: 100%; justify-content: center; }
  .coti-alt-body { grid-template-columns: 1fr; }
  .membre-hero-badge { display: none; }
  .post-modal-content {
    border-radius: 18px 18px 0 0;
    margin-top: auto;
    max-height: 88vh;
  }
  .posts-empty { padding: 36px 20px; }
}

/* Fix : l'attribut hidden doit toujours l'emporter (le reset img,svg{display:block} l'écrasait) */
[hidden] { display: none !important; }

/* ── Pages légales ── */
.legal-content { max-width: 720px; }
.legal-content h2 {
  font-size: 1.15rem;
  color: var(--ink-900, #0f172a);
  margin: 32px 0 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--ink-600, #475569);
  line-height: 1.7;
}
.legal-content ul { padding-left: 22px; margin: 8px 0 16px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--navy-600, #2d3d7a); text-decoration: underline; }
.legal-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

/* ═══════════════════════════════════════════════════════════════
   COUCHE ÉDITORIALE — caractère institutionnel
   Serif Fraunces pour les titres, papier chaud, hairlines, or discret
   ═══════════════════════════════════════════════════════════════ */
:root {
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --paper-warm: #FAF9F5;
  --hairline: rgba(26, 41, 97, 0.10);
  --radius-glass: 16px;
}

/* Papier chaud, moins « app », plus « imprimé » */
body { background-color: var(--paper-warm); }

/* ── Titres : serif éditorial (jamais dans l'admin) ── */
body:not(.admin-body) h1,
body:not(.admin-body) h2,
body:not(.admin-body) .price,
body:not(.admin-body) .post-modal-content h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 540;
  letter-spacing: -0.012em;
}
body:not(.admin-body) .post-card h3,
body:not(.admin-body) .coti-txt strong,
body:not(.admin-body) .info-card h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.008em;
}

/* ── Hero : grande composition serif, sous-titre italique ── */
.hero-title { font-family: var(--font-serif); }
.hero-title .line-1 {
  font-weight: 580;
  letter-spacing: -0.022em;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}
.hero-title .line-2 {
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.hero-title .line-2 em {
  font-style: italic;
  font-weight: 540;
  color: var(--gold);
}
.hero-title .line-2 em::after { display: none; }

/* Chiffres de confiance : serif */
.hero-trust strong {
  font-family: var(--font-serif);
  font-weight: 580;
  font-variant-numeric: lining-nums;
}

/* ── Étiquettes : overline typographiée au lieu de la pastille ── */
.section-head .label,
.membre-hero-text .label,
.hero-eyebrow {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
/* Contextes centrés : double filet or de part et d'autre */
.section-head .label::before, .section-head .label::after,
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 1px;
  background: var(--gold);
  margin: 0 14px;
  transform: translateY(-1px);
}
.section-head .label { color: var(--navy-600); }
.hero-eyebrow { color: rgba(255, 255, 255, 0.82); }
.hero-eyebrow .dot { display: none; }
/* Contexte aligné à gauche : filet simple à gauche */
.membre-hero-text .label {
  color: rgba(255, 255, 255, 0.75);
  padding-left: 34px;
  position: relative;
}
.membre-hero-text .label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ── Titres de section : plus grands, mieux rythmés ── */
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  margin-top: 14px;
}
.section-head { margin-bottom: 64px; }

/* ── page-title (adhésion, légal) : serif calibré ── */
.page-title h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 540;
}

/* ── Cartes : hairline navy plutôt que bordure blanche générique ── */
.post-card, .coti-card, .coti-alt-method, .login-card,
.info-card, .form-card, .annuaire-card, .pay-option-card, .posts-empty {
  border-color: var(--hairline);
  border-radius: var(--radius-glass);
}

/* ── Boutons et champs : géométrie plus sobre ── */
.btn { border-radius: 10px; }
.coti-card .btn { border-radius: 12px; }
.newsletter-form input[type="email"],
.newsletter-form button { border-radius: 12px; }
.posts-filters { border-radius: 14px; }
.filter-btn { border-radius: 10px; }

/* ── Footer : colonnes en capitales espacées ── */
.footer-col h5 {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Login : carte éditoriale ── */
.login-card h1 { font-size: 1.65rem; }
.login-subtitle { font-size: 0.9rem; }

/* ── Modal communiqué : titre serif large ── */
.post-modal-content h2 { font-size: 1.5rem; line-height: 1.25; }

/* ── Légal : titres calibrés + filet ── */
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 560;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

/* ── Overlines compactes sur petit écran (une seule ligne) ── */
@media (max-width: 480px) {
  .hero-eyebrow, .section-head .label {
    font-size: 0.64rem;
    letter-spacing: 0.15em;
  }
  .hero-eyebrow::before, .hero-eyebrow::after,
  .section-head .label::before, .section-head .label::after {
    width: 14px;
    margin: 0 8px;
  }
}

/* ── Cartes mission : titres serif + icônes éditoriales (hairline + filet or) ── */
body:not(.admin-body) .mission-card h3 {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 1.2rem;
  letter-spacing: -0.008em;
}
.mission-card { border-color: var(--hairline); border-radius: var(--radius-glass); }
.mission-icon {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  color: var(--navy-700);
  position: relative;
}
.mission-icon::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}
