/* ============================================================
   CLICHY ENTREPRENDRE — Design System
   Police : Open Sans
   Palette : Navy + Or + Rose + Teal + Olive + Crème
   ============================================================ */

/* ---- IMPORTS GOOGLE FONTS --------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  /* Couleurs principales */
  --navy:        #3c4465;
  --navy-dark:   #2e3352;
  --gold:        #F3D36A;
  --gold-dark:   #c9a930;
  --pink:        #D94F72;
  --teal:        #2A8A8A;
  --olive:       #8A9B2A;
  --cream:       #F9F7F4;
  --cream-dark:  #EDE8E1;
  --white:       #FFFFFF;

  /* Aliases rétrocompatibilité */
  --terra:       var(--gold-dark);
  --terra-light: var(--gold);
  --navy-light:  var(--navy-dark);

  /* Textes */
  --text-primary:   #3c4465;
  --text-secondary: #4A5568;
  --text-muted:     #6B7280;
  --text-light:     #C4CAD4;

  /* Bordures */
  --border:       #E8E4DE;
  --border-light: #EDE8E1;

  /* Statuts */
  --green:        #2D7D46;
  --green-bg:     #EBF5EE;
  --orange:       #C47A15;
  --orange-bg:    #FEF3DC;
  --red:          #C0392B;
  --red-bg:       #FDECEA;
  --blue:         #1B5FA8;
  --blue-bg:      #EBF2FB;

  /* Typographie */
  --font-display: 'Open Sans', system-ui, sans-serif;
  --font-body:    'Open Sans', system-ui, sans-serif;

  /* Espacements */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Rayons */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(27,42,74,.06), 0 1px 2px rgba(27,42,74,.04);
  --shadow-md:  0 4px 16px rgba(27,42,74,.08), 0 2px 6px rgba(27,42,74,.05);
  --shadow-lg:  0 16px 40px rgba(27,42,74,.12);

  /* Transitions */
  --transition: 200ms ease;

  /* Conteneur */
  --container-max: 1160px;
  --container-narrow: 760px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; overflow-y: scroll; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { color: var(--text-secondary); line-height: 1.75; }

/* ============================================================
   LAYOUT — CONTENEUR
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-xl);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.section-link {
  color: var(--terra);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color var(--transition);
}
.section-link:hover { color: var(--terra-light); }

.text-center  { text-align: center; }
.bg-light     { background: var(--cream-dark); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #e8c655;
  border-color: #e8c655;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243,211,106,.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--cream-dark);
  border-color: var(--border);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--cream); }

.btn-lg  { padding: 14px 30px; font-size: 1rem; }
.btn-sm  { padding: 6px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ============================================================
   ACCENT LINE
   ============================================================ */
.accent-line {
  height: 3px;
  background: linear-gradient(to right, var(--pink) 0%, var(--gold) 35%, var(--teal) 70%, var(--olive) 100%);
}

/* ============================================================
   HEADER PUBLIC
   ============================================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: none;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}

.site-logo img { height: 52px; width: auto; }

.nav-link {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover,
.nav-link.active { color: var(--gold-dark); border-bottom-color: var(--gold); }

.nav-btn {
  background: var(--navy);
  color: var(--white) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border-bottom: none !important;
  transition: all var(--transition);
}
.nav-btn-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-avatar-photo {
  object-fit: cover;
  background: none;
}
.nav-btn:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60,68,101,.25);
}

/* garder rétrocompat */
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px;
}
.nav-cta:hover {
  background: var(--navy-dark) !important;
}

.nav-member {
  background: rgba(60,68,101,.08);
  color: var(--navy) !important;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding: var(--space-md) 0;
  font-weight: 500;
  font-size: 0.9rem;
}
.flash-success { background: var(--green-bg);  color: var(--green); }
.flash-error   { background: var(--red-bg);    color: var(--red); }
.flash-warning { background: var(--orange-bg); color: var(--orange); }
.alert-error   { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.alert-error p { margin: 0.25rem 0; font-size: 0.9rem; }
.alert-error p:first-child { margin-top: 0; }
.alert-error p:last-child  { margin-bottom: 0; }
.flash-info    { background: var(--blue-bg);   color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 25px 0 20px;
  margin-top: auto;
}

.footer-compact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-name { font-family: var(--font-display); font-size: 1rem; color: var(--white); font-weight: 700; margin-bottom: 2px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: color var(--transition), border-color var(--transition); }
.footer-name:hover { color: var(--white); border-bottom-color: rgba(255,255,255,.6); }
.footer-tagline { color: rgba(255,255,255,.5); font-size: 0.82rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-nav a {
  color: rgba(255,255,255,.65);
  font-size: 0.88rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--white); }

.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-social a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── Pages légales ───────────────────────────────────────────────────────── */
.legal-page { padding: 56px 0 72px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.legal-section h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 18px 0 8px; }
.legal-section p { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 10px; }
.legal-section ul { font-size: 14px; color: var(--text); line-height: 1.8; padding-left: 22px; margin-bottom: 10px; }
.legal-section li { margin-bottom: 4px; }
.legal-section a { color: var(--gold-dark); text-decoration: underline; }
.legal-section a:hover { color: var(--navy); }
.legal-section em { color: var(--text-muted); }
.legal-table-wrap { overflow-x: auto; margin: 12px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { background: var(--cream); color: var(--navy); font-weight: 700; white-space: nowrap; }
.legal-table td { color: var(--text-secondary); line-height: 1.5; }

@media (min-width: 768px) {
  .footer-compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #5a618e 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,50,80,.14) 0%, rgba(44,50,80,.07) 55%, transparent 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 24px;
  max-width: 700px;
}

.hero-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 16px;
}

.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

/* ============================================================
   EVENT BAND
   ============================================================ */
.event-band {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.event-band-info {
  font-size: 13px;
  color: var(--text-muted);
}

.event-band-info strong { color: var(--navy); }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 24px;
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: #3c4465;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 12px;
  color: #3c4465;
  letter-spacing: .05em;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

/* ============================================================
   QUI SOMMES-NOUS
   ============================================================ */
.home-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.home-about-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
}

.home-about-img-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--navy) 0%, #5a618e 100%);
  border-radius: var(--radius-lg);
}

/* ============================================================
   CARDS VALEURS
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.value-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.value-card:hover {
  box-shadow: 0 8px 32px rgba(60,68,101,.1);
  transform: translateY(-2px);
}

.value-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* En-tête de vignette : icône à gauche, numéro + titre à droite (même ligne) */
.value-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.value-head-text {
  min-width: 0;
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.value-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
}

.value-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ============================================================
   BUREAU / BOARD MEMBERS
   ============================================================ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .board-grid { grid-template-columns: 1fr; max-width: 360px; }
}

.board-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.board-card:hover {
  box-shadow: 0 8px 32px rgba(60,68,101,.1);
  transform: translateY(-2px);
}

.board-card-lead {
  border-color: var(--gold);
  box-shadow: 0 1px 0 var(--gold);
}

.board-card-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-dark);
  position: relative;
}
.board-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.board-card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream-dark);
}

.board-card-body {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.board-card-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.board-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.board-card-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.board-card-linkedin {
  margin-top: 8px;
  color: var(--navy);
  opacity: .55;
  transition: opacity var(--transition);
}
.board-card-linkedin:hover { opacity: 1; }

/* ============================================================
   EVENTS GRID (accueil)
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-card-img {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}
.event-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.event-card-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8eaf0 0%, #d0d4e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-img-placeholder svg { opacity: .25; }

.event-card-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}

.event-card-type {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.event-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-card-body .btn {
  margin-top: auto;
  align-self: center;
  width: 100%;
  text-align: center;
  justify-content: center;
}
.event-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.event-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   NEWS GRID (accueil)
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); }

.news-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.news-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.news-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.newsletter-guarantees {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.newsletter-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.newsletter-form-wrap {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.newsletter-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.newsletter-field input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-field input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-field input:focus { border-color: var(--gold); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--gold);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cta-band h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.cta-band p {
  font-size: 14px;
  color: rgba(60,68,101,.7);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  margin-bottom: var(--space-xl);
}

.page-header h1 { margin-bottom: var(--space-sm); }
.page-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================
   ÉVÉNEMENT MIS EN AVANT (accueil)
   ============================================================ */
.event-highlight-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--terra);
  max-width: 640px;
}

.event-highlight-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terra);
  margin-bottom: var(--space-sm);
}

.event-highlight-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.event-highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.event-highlight-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-highlight-desc {
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

/* ============================================================
   CARDS MISSIONS (accueil)
   ============================================================ */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.mission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.mission-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.mission-card h3 { margin-bottom: var(--space-sm); }

/* ============================================================
   CARDS ACTUALITÉS (accueil + liste)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card-image { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.post-card-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: var(--space-sm); }
.post-card-title { font-size: 1.05rem; margin-bottom: var(--space-sm); }
.post-card-title a { color: var(--navy); }
.post-card-title a:hover { color: var(--terra); }
.post-card-excerpt { font-size: 0.9rem; color: var(--text-muted); flex: 1; margin-bottom: var(--space-md); }
.post-card-link { color: var(--terra); font-weight: 600; font-size: 0.85rem; margin-top: auto; }
.post-card-link:hover { color: var(--terra-light); }

/* ============================================================
   CTA SECTION (accueil bas)
   ============================================================ */
.section-cta { background: var(--terra); }

.cta-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-block h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-block p  { color: rgba(255,255,255,.85); margin-bottom: var(--space-xl); }

/* ============================================================
   PLANS D'ADHÉSION
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: var(--space-3xl);
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.plan-card:hover { box-shadow: var(--shadow-md); }

.plan-card-featured {
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terra);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-header { margin-bottom: var(--space-xl); }
.plan-name   { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.plan-price  { display: flex; align-items: baseline; gap: 4px; margin-bottom: var(--space-md); }
.plan-amount { font-size: 2.2rem; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.plan-period { color: var(--text-muted); font-size: 0.9rem; }
.plan-description { color: var(--text-muted); font-size: 0.88rem; }

.plan-benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.plan-benefits li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* FAQ Adhésion */
.plans-faq { margin-top: var(--space-3xl); }
.plans-faq h2 { margin-bottom: var(--space-xl); }

.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.faq-item summary {
  padding: var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--terra);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 var(--space-lg) var(--space-lg); color: var(--text-secondary); }

/* ============================================================
   ANNUAIRE PUBLIC
   ============================================================ */
.search-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 240px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.search-input:focus { outline: none; border-color: var(--navy); }

.directory-grid,
.member-card {
  /* réutilise .posts-grid */
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.member-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.member-card-inactive { opacity: .65; }
.member-card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.member-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.member-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--border-light);
  background: var(--cream);
  flex-shrink: 0;
}

.member-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.member-company { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.member-name    { font-size: 0.82rem; color: var(--text-muted); }
.member-activity { font-size: 0.82rem; font-weight: 600; color: var(--terra); margin-bottom: var(--space-sm); }
.member-desc    { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-md); }

.member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-md); }
.tag {
  background: var(--cream-dark);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.member-card-links { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.member-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terra);
  border: 1px solid var(--terra);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.member-link:hover { background: var(--terra); color: var(--white); }

/* ============================================================
   LOGIN PAGE (layout public)
   ============================================================ */
.login-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 24px 20px;
}

.login-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 440px;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
}
.login-footer a { color: var(--text-muted); text-decoration: none; }
.login-footer a:hover { color: var(--navy); }
.login-footer a strong { color: var(--navy); }

/* ============================================================
   AUTH (pages mot de passe oublié / reset — layout standalone)
   ============================================================ */
.layout-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: var(--space-lg);
}

.auth-container { width: 100%; max-width: 420px; }
.auth-container-wide { max-width: 780px; }

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.auth-header { text-align: center; margin-bottom: var(--space-xl); }
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--terra);
  display: block;
  margin-bottom: var(--space-lg);
}
.auth-title    { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; }

.auth-footer-text {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.auth-footer-text a { color: var(--terra); font-weight: 600; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-section { margin-bottom: var(--space-2xl); }
.form-section:last-of-type { margin-bottom: 0; }
.form-section-title {
  font-size: 1.1rem;
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--cream-dark);
  margin-bottom: var(--space-xl);
  color: var(--navy);
}

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-group:last-child { margin-bottom: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label-link { font-weight: 500; color: var(--terra); font-size: 0.82rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
}

input:disabled, select:disabled, textarea:disabled {
  background: var(--cream);
  color: var(--text-muted);
  cursor: not-allowed;
}

textarea { resize: vertical; min-height: 100px; }

.form-hint  { color: var(--text-muted); font-size: 0.78rem; font-weight: 400; }
.form-error { color: var(--red); font-size: 0.82rem; font-weight: 500; display: block; margin-top: 4px; }
input.input-error, select.input-error, textarea.input-error { border-color: var(--red); }

/* ── Zone de sélection d'image ───────────────────────────────────────────── */
.img-picker            { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.img-picker-zone       { width: 96px; height: 96px; flex-shrink: 0; border: 1px solid #cbd5e1; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f8fafc; transition: border-color .2s; position: relative; }
.img-picker-zone:hover { border-color: var(--navy); background: #f1f5f9; }
.img-picker-zone.round { border-radius: 50%; }
.img-picker-zone img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-picker-zone .img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #94a3b8; pointer-events: none; }
.img-picker-zone .img-placeholder svg  { width: 28px; height: 28px; }
.img-picker-zone .img-placeholder span { font-size: .7rem; text-align: center; line-height: 1.2; max-width: 72px; }
.img-picker-zone.has-image .img-placeholder { display: none; }
.img-picker-actions    { display: flex; flex-direction: column; gap: .35rem; }

.form-group-check label { flex-direction: row; justify-content: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.form-group-check input[type="checkbox"] { width: auto; }

.form-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-xl);
}

/* Images preview dans formulaires */
.avatar-preview, .logo-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  margin-bottom: var(--space-sm);
}

.img-preview {
  max-width: 300px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border: 2px solid var(--border);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-success { background: var(--green-bg);  color: var(--green); }
.badge-warning { background: var(--orange-bg); color: var(--orange); }
.badge-danger  { background: var(--red-bg);    color: var(--red); }
.badge-neutral { background: var(--cream-dark); color: var(--text-muted); }
.badge-info    { background: var(--blue-bg);   color: var(--blue); }

/* ============================================================
   TABLEAUX
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* Variante scrollable : ~4 lignes visibles, en-tête collant pendant le défilement */
.table-wrapper--scroll-4 { max-height: 300px; overflow-y: auto; }
.table-wrapper--scroll-4 .data-table thead th { position: sticky; top: 0; z-index: 1; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--cream-dark);
  padding: 10px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--cream); }

.partner-logo-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.partner-logo-placeholder {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.avatar-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.avatar-thumb-placeholder {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.data-table-actions { white-space: nowrap; display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; }
.inline-form { display: inline; }
.btn-danger-ghost { color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-bg); color: var(--red); }

.reorder-buttons { display: inline-flex; flex-direction: column; gap: 2px; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}
.btn-icon:hover { background: var(--cream); }
.btn-icon[disabled],
.btn-icon.is-disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.admin-card-header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.admin-card-header h2 { margin: 0; padding: 0; border: none; }

/* ============================================================
   ESPACE MEMBRE
   ============================================================ */
.layout-member { min-height: 100vh; display: flex; flex-direction: column; }

.member-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.member-topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1rem; }
.topbar-right { display: flex; align-items: center; gap: var(--space-md); font-size: 0.88rem; }
.topbar-name  { color: var(--text-secondary); font-weight: 500; }
.topbar-logout { color: var(--text-muted); font-size: 0.82rem; }
.topbar-logout:hover { color: var(--red); }

.member-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  min-height: calc(100vh - 79px);
}

.member-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0 0 var(--space-xl);
  position: sticky;
  top: 79px;
  height: calc(100vh - 79px);
  overflow-y: auto;
}

.sidebar-profile {
  padding: 0 var(--space-md);
  min-height: 210px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sidebar-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
}
.sidebar-avatar-photo {
  object-fit: cover;
  background: none;
}
.sidebar-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.sidebar-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
}
.sidebar-badge.bl-sponsor   { background: var(--gold); color: var(--navy); }
.sidebar-badge.bl-supporter { background: var(--pink); color: var(--white); }
.sidebar-badge.bl-adherent  { background: var(--navy); color: var(--white); }

.sidebar-nav { flex: 1; display: flex; flex-direction: column; padding: 0 var(--space-md); gap: 2px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.sidebar-link:hover   { background: var(--cream); color: var(--navy); }
.sidebar-link.active  { background: var(--navy);  color: var(--white); }

.sidebar-separator { height: 1px; background: var(--border-light); margin: var(--space-sm) var(--space-md); }

.sidebar-locked {
  padding: var(--space-md) var(--space-md);
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  margin: var(--space-sm) var(--space-md);
}
.sidebar-locked p { font-size: 0.82rem; margin-bottom: var(--space-md); color: var(--text-muted); }

.sidebar-footer { padding: var(--space-md); border-top: 1px solid var(--border-light); }
.sidebar-link-muted { color: var(--text-muted); font-size: 0.82rem; }

.member-main { padding: var(--space-xl); background: var(--cream); }

/* ============================================================
   ANNUAIRE MEMBRES (member directory)
   ============================================================ */

.mdir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.mdir-subtitle{ font-size: 0.82rem; color: var(--text-muted); margin: 2px 0 0; }

.mdir-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  min-width: 240px;
  color: var(--text-muted);
}
.mdir-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: transparent;
}
.mdir-search-clear {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.mdir-search-clear:hover { color: var(--pink); }

.mdir-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) {
  .mdir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mdir-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Aucun résultat de recherche live (annuaire membre) */
.mdir-noresult {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.mdir-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.mdir-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  cursor: pointer;
}
.mdir-card-inactive { opacity: .72; }

.mdir-card-top {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f3ef;
}

/* Pastille agrandie */
.mdir-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  z-index: 1;
}

/* Verte : cotisation à jour */
.mdir-dot-active {
  background: #22c55e;
}

/* Rouge : cotisation expirée */
.mdir-dot-inactive {
  background: #ef4444;
}

.mdir-avatar-wrap {
  position: static;
  bottom: auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mdir-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.mdir-avatar-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.mdir-card-body {
  padding: 12px 14px 8px;
  text-align: center;
  flex: 1;
}
.mdir-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mdir-activity {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mdir-company {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--cream);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mdir-company svg { flex-shrink: 0; }
.mdir-company span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mdir-card-footer { display: none; }

.mdir-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
}
.mdir-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.mdir-action:hover { background: var(--cream); color: var(--navy); }

/* Dashboard statuts */
.dashboard-status { margin-bottom: var(--space-xl); }

.status-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--border);
}
.status-active  { border-color: var(--green); }
.status-expired { border-color: var(--orange); }

.status-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.status-active  .status-icon { background: var(--green-bg);  color: var(--green); }
.status-expired .status-icon { background: var(--orange-bg); color: var(--orange); }

.status-title  { font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.status-detail { font-size: 0.85rem; color: var(--text-muted); }

.status-card .btn { margin-left: auto; }

/* Bloc admin dashboard */
.dashboard-admin-block { margin-top: 32px; }
.dashboard-admin-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.dashboard-admin-link { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--navy); border-radius: var(--radius-md); text-decoration: none; color: var(--white); transition: background var(--transition); }
.dashboard-admin-link:hover { background: #1a2040; }
.dashboard-admin-link > svg:first-child { flex-shrink: 0; color: var(--gold); }
.dashboard-admin-link-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.dashboard-admin-link-sub { font-size: 12px; color: rgba(255,255,255,.55); }

/* Raccourcis dashboard */
.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

.shortcut-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.shortcut-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--navy); }
.shortcut-card svg { color: var(--navy); }
.shortcut-card-cta { background: var(--terra); color: var(--white); border-color: var(--terra); }
.shortcut-card-cta:hover { background: var(--terra-light); color: var(--white); border-color: var(--terra-light); }
.shortcut-card-cta svg { color: var(--white); }

/* Adhésion membre */
.membership-current { margin-bottom: var(--space-xl); }

.membership-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
}
.membership-active  { border-color: var(--green); }
.membership-expired { border-color: var(--orange); }

.membership-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.membership-plan  { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; color: var(--navy); }
.membership-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.membership-price small { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-body); }

.membership-dates {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.membership-date-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 4px; }
.membership-history h2 { margin-bottom: var(--space-lg); }
.text-warning { color: var(--orange); }
.membership-renew-notice { background: var(--orange-bg); border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-lg); }
.membership-renew-notice p { color: var(--orange); font-size: 0.88rem; }
.membership-empty { text-align: center; padding: var(--space-2xl); background: var(--white); border-radius: var(--radius-xl); }

/* Success paiement */
.success-block { padding: var(--space-3xl) 0; }
.success-icon { width: 96px; height: 96px; background: var(--green-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-xl); color: var(--green); }
.success-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin: var(--space-md) 0 var(--space-xl); }
.success-info { background: var(--cream-dark); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-xl); }
.success-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-sm); }
.success-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.success-next { background: var(--white); border-radius: var(--radius-xl); padding: var(--space-xl); text-align: left; }
.success-next h2 { margin-bottom: var(--space-lg); }
.success-steps { padding-left: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.success-steps li { color: var(--text-secondary); font-size: 0.95rem; }

/* ============================================================
   ADMIN
   ============================================================ */
.layout-admin { background: var(--cream); }

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--navy);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 0.95rem; display: block; }
.admin-brand small { color: rgba(255,255,255,.4); font-size: 0.75rem; }

.admin-nav { flex: 1; padding: var(--space-lg) var(--space-md); display: flex; flex-direction: column; gap: 2px; }
.admin-nav-group { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); padding: var(--space-md) var(--space-sm) var(--space-xs); margin-top: var(--space-sm); }

.admin-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all var(--transition);
}
.admin-link:hover  { background: rgba(255,255,255,.08); color: var(--white); }
.admin-link-muted  { color: rgba(255,255,255,.4); font-size: 0.8rem; }

.admin-sidebar-footer {
  padding: var(--space-md);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-content { display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: var(--space-lg) var(--space-xl); }
.admin-page-title { font-size: 1.5rem; margin-bottom: 0; }
.admin-main { padding: var(--space-xl); flex: 1; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--border);
}
.stat-card-green  { border-color: var(--green); }
.stat-card-orange { border-color: var(--orange); }
.stat-card-red    { border-color: var(--red); }
.stat-card-blue   { border-color: var(--navy); }
.stat-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: var(--space-sm); }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}
.admin-card h2 { font-size: 1.1rem; margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--border-light); }

/* Graphique du tableau de bord — onglets de période + barres SVG */
.chart-tabs-group { display: flex; flex-direction: column; gap: var(--space-xs); align-items: flex-end; }
.chart-tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: flex-end; }
.chart-tab {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.chart-tab:hover { background: var(--cream); }
.chart-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chart-total { margin-bottom: var(--space-sm); font-size: 0.9rem; }
.chart-bars { width: 100%; height: auto; display: block; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-bar { fill: var(--navy); opacity: 0.85; }
.chart-bars g:hover .chart-bar { opacity: 1; fill: var(--gold-dark); }
.chart-value { font-size: 13px; font-weight: 600; fill: var(--text-primary); }
.chart-label { font-size: 10px; fill: var(--text-muted); }

/* En-tête de carte : titre + recherche sur la même ligne */
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}
.admin-card-header h2 { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.admin-card-header .search-bar { margin: 0; }

/* Tri au clic sur les en-têtes de tableau */
th[data-sortable] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sortable]::after { content: ' ↕'; opacity: 0.35; font-size: 0.75em; }
th[data-sortable].th-sort-asc::after  { content: ' ▲'; opacity: 1; }
th[data-sortable].th-sort-desc::after { content: ' ▼'; opacity: 1; }


.admin-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.admin-shortcut {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.admin-shortcut:hover { background: var(--cream-dark); color: var(--navy); }
.admin-shortcut-cta { background: var(--terra); border-color: var(--terra); color: var(--white); }
.admin-shortcut-cta:hover { background: var(--terra-light); border-color: var(--terra-light); color: var(--white); }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); flex-wrap: wrap; gap: var(--space-md); }
.admin-count { font-size: 0.85rem; color: var(--text-muted); }
.admin-back { margin-bottom: var(--space-lg); }
.admin-back a { color: var(--terra); font-size: 0.9rem; font-weight: 500; }

.admin-member-layout { display: flex; flex-direction: column; gap: var(--space-lg); }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--green); }
.text-danger  { color: var(--red); }
.empty-state  { text-align: center; padding: var(--space-3xl); color: var(--text-muted); }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
/* Layouts mobile-first : nav hamburger, sidebar, forms — par défaut mobile */
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.member-layout { display: grid; grid-template-columns: 1fr; }
.member-sidebar { position: fixed; left: -240px; top: 79px; height: calc(100vh - 79px); transition: transform var(--transition); z-index: 90; }
.member-sidebar.open { transform: translateX(240px); }
.admin-layout { display: grid; grid-template-columns: 1fr; }
.admin-sidebar { position: fixed; left: -220px; height: 100vh; top: 0; z-index: 200; transition: transform var(--transition); }
.admin-sidebar.open { transform: translateX(220px); }
.site-nav.open { display: flex; flex-direction: column; position: fixed; inset: 80px 0 0; background: var(--navy); padding: var(--space-xl); gap: var(--space-sm); z-index: 99; }

/* ============================================================
   COMPLÉMENTS — Événements, Articles, Pagination, Contenu
   ============================================================ */

/* Liste événements (vue liste horizontale — non utilisée actuellement) */
.events-list { display: flex; flex-direction: column; gap: var(--space-lg); }

.events-list .event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  transition: box-shadow var(--transition);
}
.events-list .event-card:hover { box-shadow: var(--shadow-md); }

.events-list .event-card-image { width: 240px; flex-shrink: 0; overflow: hidden; }
.events-list .event-card-image img { width: 100%; height: 100%; object-fit: cover; }

.events-list .event-card-body { padding: var(--space-xl); flex: 1; }

.events-list .event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.event-date { color: var(--terra); font-weight: 600; }
.events-list .event-card-title { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.events-list .event-card-title a { color: var(--navy); }
.events-list .event-card-title a:hover { color: var(--terra); }
.events-list .event-card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.events-list .event-card-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Détail événement */
.event-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.event-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.event-actions { margin-top: var(--space-xl); display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Corps de contenu (articles, pages) */
.content-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.content-body h2 { margin: var(--space-2xl) 0 var(--space-lg); }
.content-body h3 { margin: var(--space-xl) 0 var(--space-md); }
.content-body p  { margin-bottom: var(--space-lg); }
.content-body ul, .content-body ol { padding-left: var(--space-xl); margin-bottom: var(--space-lg); }
.content-body li { margin-bottom: var(--space-sm); }
.content-body a  { color: var(--terra); text-decoration: underline; }
.content-body img { border-radius: var(--radius-md); margin: var(--space-lg) 0; }
.content-body blockquote {
  border-left: 4px solid var(--terra);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.pagination-info { font-size: 0.88rem; color: var(--text-muted); }

/* Offres membres */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); }

.offer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.offer-card-image { aspect-ratio: 16/9; overflow: hidden; }
.offer-card-image img { width: 100%; height: 100%; object-fit: cover; }

.offer-card-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.offer-card-type { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terra); margin-bottom: var(--space-sm); }
.offer-card-title { font-size: 1rem; margin-bottom: var(--space-sm); }
.offer-card-company { font-size: 0.82rem; color: var(--text-muted); margin-bottom: var(--space-md); }
.offer-card-desc { font-size: 0.88rem; color: var(--text-secondary); flex: 1; margin-bottom: var(--space-md); }

/* Formulaire offre */
.offer-filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  align-items: center;
}
.filter-select {
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  background: var(--white);
  cursor: pointer;
}

@media (max-width: 768px) {
  .event-card { flex-direction: column; }
  .event-card-image { width: 100%; height: 180px; }
}

/* ============================================================
   CROP MODAL
   ============================================================ */
.crop-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md);
  backdrop-filter: blur(2px);
}
.crop-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 640px;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 2 * var(--space-md));
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.crop-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}
.crop-modal-header h3 { margin: 0; font-size: 1rem; }
.crop-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--text-muted);
  padding: 2px 6px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.crop-modal-close:hover { background: var(--cream-dark); color: var(--text-primary); }
.crop-modal-body {
  flex: 1; overflow: auto;
  background: #f1f5f9;
  min-height: 260px;
}
.crop-modal-body img { display: block; max-width: 100%; }
.crop-modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap;
}
.crop-zoom-group {
  display: flex; gap: var(--space-xs); align-items: center;
}
.crop-zoom-group button {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--white);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.crop-zoom-group button:hover { background: var(--cream-dark); }
.crop-bg-group {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: .85rem; color: var(--text-secondary);
}
.crop-bg-group input[type="color"] {
  height: 30px; width: 44px; padding: 2px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.crop-modal-actions { margin-left: auto; display: flex; gap: var(--space-sm); }

/* Crop modal — fixes */
.crop-modal-overlay { top:0; right:0; bottom:0; left:0; }
.crop-modal-body { overflow: hidden !important; touch-action: none; }
.img-picker-zone--lg { width: 192px !important; height: 192px !important; }

/* Modale large pour 16:9 */
.crop-modal-box--wide { max-width: 860px; }
.crop-modal-box--wide .crop-modal-body { min-height: 380px; }

/* Zone image paysage 16:9 */
.img-picker--wide { flex-direction: column; align-items: flex-start; gap: 10px; }
.img-picker-zone--wide {
  width: 100% !important;
  max-width: 640px;   /* garde un vrai 16:9 : borner la largeur, pas la hauteur */
  height: auto !important;
  aspect-ratio: 16 / 9;
}
.img-picker-zone--wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ============================================================
   PAGE HERO (événements, actualités, partenaires…)
   ============================================================ */
.page-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.page-hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #5a618e 100%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,50,80,.82) 0%, rgba(44,50,80,.5) 100%);
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 48px;
}

.page-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}

.page-hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.page-hero-content p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
}

/* ============================================================
   BARRE DE FILTRES
   ============================================================ */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.filter-btn {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================================
   PAGE ÉVÉNEMENTS — liste
   ============================================================ */
.events-page {
  padding: 48px 0;
}

/* Onglets de filtrage par type — s'appliquent aux zones « À venir » et « Passés ». */
.events-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.events-type-tab {
  position: relative;
  padding: 10px 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.events-type-tab:hover { color: var(--navy); }
.events-type-tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
/* Fondu discret pendant le rechargement AJAX de la zone événements. */
#events-content { transition: opacity var(--transition); }
#events-content.is-loading { opacity: .5; pointer-events: none; }

.events-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.events-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.events-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.event-card-lg .event-card-img { aspect-ratio: 16 / 9; }
.event-card-past .event-card-body { opacity: .7; }
.event-card-past .event-card-title { color: var(--text-muted); }

.events-empty {
  text-align: center;
  padding: 0;
  color: var(--text-muted);
}

/* ============================================================
   NEWSLETTER MINI-BAND
   ============================================================ */
.newsletter-band {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.newsletter-band-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ============================================================
   PAGE ACTUALITÉS
   ============================================================ */
.posts-page {
  padding: 56px 0;
  background: var(--cream);
}

.post-featured {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  text-decoration: none;
  transition: box-shadow var(--transition);
}
.post-featured:hover { box-shadow: 0 8px 32px rgba(60,68,101,.1); }

.post-featured-img {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--navy-dark);
}
.post-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.post-featured-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--navy) 0%, #5a618e 100%);
}

.post-img-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 10px;
  border-radius: 4px;
}

.post-featured-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-featured-date { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.post-featured-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 14px;
}
.post-featured-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.posts-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.post-list-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.post-list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-list-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--navy-dark);
}
.post-list-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.post-list-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, #5a618e 100%);
}

.post-list-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-list-date { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.post-list-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-list-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.post-list-body .btn { margin-top: auto; align-self: flex-end; }

.btn-xs { font-size: 11px; padding: 6px 12px; border-radius: 4px; }

/* ============================================================
   PAGE ANNUAIRE / PARTENAIRES
   ============================================================ */
.directory-page {
  padding: 48px 0;
  background: var(--cream);
}

.directory-section { margin-bottom: 56px; }

/* CTA rejoindre le réseau */
.directory-cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.directory-cta-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.directory-cta-title { font-size: 20px; font-weight: 700; color: white; margin-bottom: 6px; }
.directory-cta-sub   { font-size: 14px; color: rgba(255,255,255,.6); }
.directory-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (min-width: 768px) {
  .directory-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
  }
  .directory-cta-actions { flex-shrink: 0; }
}

.directory-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.directory-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-section-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Sponsors — 2 colonnes max : la vignette la PLUS grosse de l'annuaire
   (hiérarchie d'investissement : sponsor ≫ supporter > adhérent) */
.directory-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.directory-sponsor-card {
  position: relative; /* ancre du lien profil étendu (.directory-card-stretch) */
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.directory-sponsor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.directory-sponsor-logo {
  width: 160px;
  height: 160px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.directory-sponsor-logo img { width: 100%; height: 100%; object-fit: contain; }
.directory-sponsor-logo span { font-size: 44px; font-weight: 700; color: var(--text-muted); }

.directory-sponsor-name { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.directory-sponsor-sector { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }

/* Lien profil « étendu » : couvre toute la carte SANS imbriquer de <a> dans
   un <a> (HTML invalide, cassait l'affichage du lien site des sponsors) ;
   le lien site web repasse au-dessus via z-index. */
.directory-card-stretch { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.directory-sponsor-card .directory-link,
.directory-supporter-card .directory-link { position: relative; z-index: 1; }

/* Supporters — 3 colonnes, carte horizontale */
.directory-supporters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.directory-supporter-card {
  position: relative; /* ancre du lien profil étendu */
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  transition: box-shadow var(--transition);
}
.directory-supporter-card:hover { box-shadow: var(--shadow-sm); }

.directory-supporter-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.directory-supporter-logo img { width: 100%; height: 100%; object-fit: contain; }
.directory-supporter-logo span { font-size: 24px; font-weight: 700; color: var(--text-muted); }

.directory-supporter-body { min-width: 0; }
.directory-supporter-name { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.directory-supporter-sector { font-size: 16px; color: var(--text-muted); margin-bottom: 4px; }

/* Adhérents — grille responsive (1→2→3→4 colonnes) */
.directory-adherents-grid {
  display: grid;
  gap: 12px;
}

.directory-adherent-tile {
  min-width: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition);
}
.directory-adherent-tile { cursor: default; }
.directory-adherent-tile:hover { box-shadow: none; }

.directory-adherent-logo {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.directory-adherent-logo img { width: 100%; height: 100%; object-fit: contain; }
.directory-adherent-logo span { font-size: 18px; font-weight: 700; color: var(--text-muted); }

.directory-adherent-body { min-width: 0; }
.directory-adherent-name { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.directory-adherent-sector { font-size: 14px; color: var(--text-muted); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.directory-adherent-website { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--navy); opacity: .55; max-width: 100%; overflow: hidden; text-decoration: none; }
.directory-adherent-website svg { flex-shrink: 0; }
.directory-adherent-website span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lien externe commun */
.directory-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  opacity: .6;
  transition: opacity var(--transition);
}
.directory-link:hover { opacity: 1; }

/* ============================================================
   PARTNERS PAGE
   ============================================================ */
.partners-page { padding: 48px; }
.partners-section { margin-bottom: 56px; }

.partners-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.partners-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.partners-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Parrain */
.parrain-card {
  background: linear-gradient(135deg, var(--navy) 0%, #4e5680 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.parrain-logo {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.parrain-logo span { color: rgba(255,255,255,.4); font-size: 11px; }
.parrain-logo img  { width: 100%; height: 100%; object-fit: contain; }
.parrain-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  display: inline-block;
}
.parrain-content h3 { font-size: 22px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.parrain-content p  { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.65; }

/* Sponsors — auto-fill */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.sponsor-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.sponsor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sponsor-logo {
  width: 96px;
  height: 96px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sponsor-logo img    { width: 100%; height: 100%; object-fit: contain; }
.sponsor-name        { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.sponsor-sector      { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  opacity: .6;
  transition: opacity var(--transition);
}
.sponsor-link:hover { opacity: 1; }

/* Grille partenaires — auto-fill */
.partner-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.partner-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.partner-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.partner-card-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}
.partner-card-logo img { width: 100%; height: 100%; object-fit: contain; }

.partner-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.partner-card-body { }

.partner-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner-card-url {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: opacity var(--transition);
  word-break: break-all;
}
.partner-card-url:hover { opacity: .75; }

/* Responsive */
@media (max-width: 768px) {
  .partners-page { padding: 24px 16px; }
  .parrain-card  { flex-direction: column; padding: 28px 24px; gap: 24px; }
  .events-formats-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 500px) {
  .sponsor-card { aspect-ratio: auto; padding: 24px; }
}

/* ============================================================
   EVENT SHOW PAGE
   ============================================================ */
.event-show-page { padding: 48px 0 80px; }

.event-show-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--transition);
}
.event-show-back:hover { color: var(--navy); }

.event-show-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.event-show-intro {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.event-info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
}

.event-info-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.event-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.event-info-row svg { flex-shrink: 0; margin-top: 2px; }

.event-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.event-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ============================================================
   POST SHOW PAGE
   ============================================================ */
.post-show-page { padding: 24px 0 48px; }

.post-show-intro {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.content-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.content-body h2, .content-body h3 {
  color: var(--navy);
  font-weight: 700;
  margin: 32px 0 12px;
}
.content-body h2 { font-size: 20px; }
.content-body h3 { font-size: 17px; }
.content-body p { margin-bottom: 16px; }
.content-body a { color: var(--teal); text-decoration: underline; }
.content-body ul, .content-body ol { padding-left: 24px; margin-bottom: 16px; }
.content-body li { margin-bottom: 6px; }

/* ============================================================
   NEWSLETTER PAGE
   ============================================================ */
.newsletter-page { padding: 64px 0 80px; }

.newsletter-page-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.newsletter-page-text { padding-top: 8px; }

.newsletter-page-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

/* ============================================================
   MEMBERSHIP / PLANS PAGE
   ============================================================ */
.plans-page { padding: 64px 0 80px; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.plan-card-featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(243,211,106,.25);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.plan-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.1;
}
.plan-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.45;
}

.plan-features li svg { flex-shrink: 0; margin-top: 2px; }


/* ============================================================
   RESPONSIVE — Mobile First (min-width progressive enhancement)
   ============================================================ */

/* ── Small (≥ 480px) ───────────────────────────────────────── */
@media (min-width: 480px) {
  .stats-row          { grid-template-columns: repeat(3, 1fr); }
  .dashboard-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .cta-band           { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 32px; }
  .newsletter-band    { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 32px; gap: 24px; }
}

/* ── Tablet (≥ 768px) ──────────────────────────────────────── */
@media (min-width: 768px) {
  /* Navigation */
  .site-nav           { display: flex; }
  .nav-toggle         { display: none; }
  .nav-link           { font-size: 0.72rem; }

  /* Container */
  .container          { padding: 0 var(--space-lg); }

  /* Hero */
  .hero-content       { padding: 0 64px; max-width: 680px; }
  .hero-title         { font-size: clamp(2rem, 4vw, 2.8rem); }
  .page-hero          { height: 220px !important; }

  /* Layouts */
  .home-about         { grid-template-columns: 1fr 1fr; gap: 64px; padding-bottom: 64px; }
  .newsletter-inner   { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer-grid        { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-2xl); }
  .post-featured      { grid-template-columns: 1.1fr 1fr; }
  .form-row           { grid-template-columns: repeat(2, 1fr); }


  /* Espace membre & Admin */
  .member-layout      { grid-template-columns: 240px 1fr; }
  .member-sidebar     { position: sticky; top: 79px; left: auto; height: calc(100vh - 79px); transform: none; overflow-y: auto; }
  .admin-layout       { grid-template-columns: 220px 1fr; height: 100vh; min-height: 0; }
  .admin-sidebar      { position: sticky; top: 0; left: auto; height: 100vh; overflow-y: auto; }
  .admin-content      { height: 100vh; overflow: hidden; min-height: 0; }
  .admin-topbar       { flex-shrink: 0; }
  .admin-main         { overflow-y: auto; min-height: 0; }

  /* CTA */
  .cta-band           { padding: 30px 48px; }
  .cta-band h2        { font-size: 26px; }

  /* Header — aligne logo/nav avec les blocs pleine-largeur */
  .site-header .container { padding: 0 64px; }

  /* Stats */
  .stats-row          { padding: 20px 64px; }

  /* Membership dates */
  .membership-dates   { gap: var(--space-xl); }
}

/* ── Desktop (≥ 1024px) ────────────────────────────────────── */
@media (min-width: 1024px) {
  /* Header — aligne avec hero-content */
  .site-header .container { padding: 0 96px; }

  /* Hero */
  .hero-content       { padding: 0 96px; max-width: 700px; }
  .hero-title         { font-size: clamp(2.2rem, 5vw, 3rem); }

  /* Grilles 3 colonnes */
  /* Autant de colonnes que de cases : la rangée occupe TOUTE la largeur,
     sur une seule ligne, quel que soit le nombre de statistiques. */
  .stats-row          { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

  /* Filtres */
  .filters-bar        { padding: 16px 48px; }

  /* Event show */
  .event-show-layout  { grid-template-columns: 1fr 320px; }
  .newsletter-page-inner { grid-template-columns: 1fr 1fr; }
}

/* ── Show pages — padding mobile ── */
.event-show-page   { padding: 24px 0 48px; }
.newsletter-page   { padding: 32px 0 48px; }
.plan-card         { padding: 28px 20px; }

/* ============================================================
   RESPONSIVE — Correctifs pages spécifiques (mobile-first)
   ============================================================ */

/* ── Défauts mobile pour les grilles non encore corrigées ── */
.newsletter-page-inner     { grid-template-columns: 1fr; gap: 32px; }
.newsletter-page-form      { padding: 24px 20px; }
.newsletter-row            { grid-template-columns: 1fr; }
.newsletter-form-wrap      { padding: 24px 20px; }
.parrain-card              { flex-direction: column; align-items: flex-start; padding: 28px 20px; gap: 20px; }
.parrain-logo              { width: 80px; height: 80px; }
.event-band                { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
.auth-card                 { padding: var(--space-xl) var(--space-lg); }
.login-card                { padding: 32px 24px; }
.plans-page                { padding: 40px 0 60px; }


/* ── Small (≥ 480px) ── */
@media (min-width: 480px) {
  .parrain-logo              { width: 100px; height: 100px; }
  .newsletter-row            { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet (≥ 768px) ── */
@media (min-width: 768px) {
  .newsletter-page-inner     { grid-template-columns: 1fr 1fr; gap: 48px; }
  .newsletter-page-form      { padding: 36px; }
  .newsletter-form-wrap      { padding: 36px; }
  .parrain-card              { flex-direction: row; align-items: center; padding: 40px 40px; gap: 32px; }
  .parrain-logo              { width: 120px; height: 120px; }
  .event-band                { padding: 14px 32px; }
  .auth-card                 { padding: var(--space-2xl); }
  .login-card                { padding: 40px 48px; }
  .plans-grid                { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .plans-page                { padding: 64px 0 80px; }
  .event-show-page           { padding: 48px 0 80px; }
  .post-show-page            { padding: 48px 0 80px; }
  .newsletter-page           { padding: 64px 0 80px; }
  .post-featured-body        { padding: 40px; }
  .plan-card                 { padding: 40px 32px; }
}

/* ── Desktop (≥ 1024px) ── */
@media (min-width: 1024px) {
  .newsletter-page-inner     { gap: 64px; }
  .parrain-card              { padding: 40px 48px; gap: 40px; }
  .event-band                { padding: 14px 48px; }
}

/* ── Filtres annuaire ── */
.filters-bar input,
.directory-search input { min-width: 0; width: 100%; }
@media (min-width: 768px) {
  .filters-bar input { min-width: 200px; width: auto; }
}

/* ── Grilles annuaire responsive ── */
.directory-sponsors-grid,
.directory-supporters-grid  { grid-template-columns: 1fr; }
.directory-adherents-grid   { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .directory-supporters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-adherents-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  /* Sponsors : jamais plus de 2 colonnes — leurs vignettes restent les plus grosses */
  .directory-sponsors-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-supporters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-adherents-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .directory-adherents-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PAGES — layout commun, badges, info-block, boutons, related
   ═══════════════════════════════════════════════════════════════════ */

.detail-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }

/* ── Navigation précédent / suivant ─────────────────────────────────────── */
.post-nav-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid var(--border);
  background: var(--white);
}
.post-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  min-width: 0;
}
.post-nav-item:hover { background: var(--cream); color: var(--gold-dark); }
.post-nav-prev { flex: 1; border-right: 1px solid var(--border); }
.post-nav-next { flex: 1; justify-content: flex-end; border-left: 1px solid var(--border); }
.post-nav-all  { padding: 14px 18px; border-right: 1px solid var(--border); color: var(--text-muted); flex-shrink: 0; }
.post-nav-all:hover { color: var(--navy); }
.post-nav-texts { display: flex; flex-direction: column; min-width: 0; }
.post-nav-next .post-nav-texts { text-align: right; }
.post-nav-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 2px; }
.post-nav-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.post-nav-prev svg, .post-nav-next svg { flex-shrink: 0; opacity: .5; }
.post-nav-item:hover svg { opacity: 1; }
.post-nav-disabled { flex: 1; pointer-events: none; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  text-decoration: none; margin-bottom: 32px; transition: color .15s;
}
.back-link:hover { color: var(--gold-dark); }
.back-link svg { transition: transform .15s; }
.back-link:hover svg { transform: translateX(-3px); }

.detail-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; display: block; }
.detail-img img { width: 100%; max-height: 460px; object-fit: cover; display: block; }

.detail-title { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
@media (min-width: 600px) { .detail-title { font-size: 32px; } }

.detail-meta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.detail-meta span { display: flex; align-items: center; gap: 6px; }

hr.sep { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.article-content { font-size: 15px; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.article-content h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
.article-content a { color: var(--navy); font-weight: 600; }
.article-content ul, .article-content ol { margin: 0 0 16px 20px; }
.article-content blockquote {
  border-left: 3px solid var(--gold); margin: 0 0 16px;
  padding-left: 20px; color: var(--text-muted); font-style: italic;
}
.article-content iframe,
.article-content video,
.article-content embed { max-width: 100%; height: auto; display: block; }
.article-content figure.wp-block-video,
.article-content figure { max-width: 100%; margin: 16px 0; }
.article-content figure.wp-block-video video { width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content iframe[src*="youtube"],
.article-content iframe[src*="youtu.be"],
.article-content iframe[src*="vimeo"] {
  width: 100%; aspect-ratio: 16/9; height: auto;
}

.info-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 24px; margin: 28px 0;
}
.info-block-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 14px;
}
.info-line {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #333; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-line:last-child { border-bottom: none; padding-bottom: 0; }
.info-line-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.info-line a { color: var(--navy); font-weight: 600; text-decoration: none; }
.info-line a:hover { text-decoration: underline; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 9999px; font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  border: none; transition: opacity .15s, transform .15s;
}
.btn-pill:hover { opacity: .9; transform: translateY(-1px); }
.btn-gold       { background: var(--gold); color: var(--navy); }
.btn-outline    { background: transparent; border: 2px solid var(--border); color: var(--navy); }
.btn-navy-pill  { background: var(--navy); color: white; }

.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 9999px; font-size: 12px; font-weight: 700;
}
.status-past   { background: #f1f2f4; color: var(--text-muted); }
.status-full   { background: #fef2f2; color: #991b1b; }
.status-active { background: #ecfdf5; color: #065f46; }

.badge-cat {
  display: inline-block; padding: 4px 14px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 12px;
}
.bc-club     { background: var(--navy); color: white; }
.bc-partner  { background: var(--teal); color: white; }
.bc-portrait { background: var(--pink); color: white; }
.bc-annonce  { background: #eaf4f4; color: var(--teal); }
.bc-default  { background: var(--cream); color: var(--text-muted); border: 1px solid var(--border); }

.badge-level {
  display: inline-block; padding: 4px 14px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.bl-sponsor   { background: #fefae8; color: var(--gold-dark); border: 1px solid #f0e4a0; }
.bl-supporter { background: #eef0f8; color: var(--navy); border: 1px solid #d0d4e8; }
.bl-adherent  { background: var(--cream); color: var(--text-muted); border: 1px solid var(--border); }

.related-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

.mini-event-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s; text-decoration: none; display: block;
}
.mini-event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mini-event-img {
  height: 120px; position: relative;
  background: linear-gradient(135deg, var(--navy), #5a618e);
  display: flex; align-items: flex-end; padding: 10px;
}
.mini-event-date {
  background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
  letter-spacing: .06em; position: relative;
}
.mini-event-body  { padding: 14px; }
.mini-event-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.35; }
.mini-event-meta  { font-size: 11px; color: var(--text-muted); }

.mini-news-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s; text-decoration: none; display: block;
}
.mini-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mini-news-img { height: 100px; background: linear-gradient(135deg, var(--navy), #5a618e); overflow: hidden; }
.mini-news-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-news-body  { padding: 14px; }
.mini-news-tag   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); margin-bottom: 6px; }
.mini-news-title { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.35; }

.mini-member-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: box-shadow .2s, transform .2s; gap: 8px; text-decoration: none;
}
.mini-member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mini-member-logo {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-muted); overflow: hidden;
}
.mini-member-name   { font-size: 13px; font-weight: 600; color: var(--navy); }
.mini-member-sector { font-size: 11px; color: var(--text-muted); }

.member-header { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 32px; }
.member-logo-box {
  width: 300px; height: 300px; flex-shrink: 0;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--cream); display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.member-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.member-logo-initials {
  width: 300px; height: 300px; flex-shrink: 0;
  border-radius: var(--radius-lg); background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; font-weight: 700; color: white; letter-spacing: -.02em;
}
.member-info   { flex: 1; }
.member-name   { font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.member-sector { font-size: 18px; color: var(--text-muted); margin-bottom: 10px; }
.member-site {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; color: var(--navy); opacity: .65;
  text-decoration: none; transition: opacity .15s;
}
.member-site:hover { opacity: 1; }
.about-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   FICHE MEMBRE — layout profil (espace membre)
   ═══════════════════════════════════════════════════════════════════ */

.profile-wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }

/* HERO */
.hero-profile {
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
}
.hero-photo {
  position: relative; background: var(--cream);
  border-right: 1px solid var(--border); min-height: 320px;
}
.hero-photo-inner { width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
}
.hero-photo-placeholder {
  width: 100%; height: 100%; min-height: 340px;
  background: linear-gradient(160deg, var(--navy) 0%, #5a618e 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-photo-initials {
  font-size: 72px; font-weight: 700; color: rgba(255,255,255,.2);
  letter-spacing: -.03em;
}
.hero-badge-level {
  position: absolute; bottom: 16px; left: 16px;
  padding: 5px 14px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.hero-badge-level.bl-sponsor   { background: var(--gold); color: var(--navy); }
.hero-badge-level.bl-supporter { background: rgba(255,255,255,.18); color: white; border: 1px solid rgba(255,255,255,.3); }
.hero-badge-level.bl-adherent  { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }

.hero-identity {
  padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-fonction {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px;
}
.hero-name {
  font-size: 32px; font-weight: 700; color: var(--navy);
  line-height: 1.15; margin-bottom: 6px;
}
.hero-company { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.hero-company strong { color: var(--navy); font-weight: 600; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  background: var(--cream); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; color: var(--navy);
}

.hero-bio {
  font-size: 14px; line-height: 1.75; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 20px;
}

.hero-contacts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--navy);
  text-decoration: none; transition: all .15s;
}
.contact-pill:hover { background: var(--navy); color: white; border-color: var(--navy); }
.contact-pill svg { opacity: .6; }
.contact-pill:hover svg { opacity: 1; stroke: white; }

/* 2 COLONNES PERSO / PRO */
.profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.profile-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.profile-card-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.profile-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-perso { background: #fdf0f3; }
.icon-pro   { background: #eef0f8; }
.profile-card-title { font-size: 13px; font-weight: 700; color: var(--navy); }
.profile-card-body { padding: 4px 0; }

.info-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 24px; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row-icon { flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.info-row-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-muted); margin-bottom: 3px;
}
.info-row-value { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.info-row-link {
  font-size: 14px; color: var(--navy); font-weight: 600; text-decoration: none;
}
.info-row-link:hover { text-decoration: underline; }
.info-row-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* Responsive hero */
@media (max-width: 700px) {
  .hero-profile { grid-template-columns: 1fr; }
  .hero-photo { min-height: 260px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-identity { padding: 24px; }
  .hero-name { font-size: 24px; }
  .profile-cols { grid-template-columns: 1fr; }
}


/* ============================================================
   Inscription aux événements (formulaire natif — maquette v2)
   ============================================================ */
.ce-reg { width: 100%; margin: 40px auto 0; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 0 2rem; overflow: hidden; }
.ce-event-banner { background: var(--navy); padding: 20px 24px; }
.ce-event-type { display: inline-block; background: rgba(243,211,106,0.18); color: var(--gold); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: 10px; font-weight: 500; }
.ce-event-title { color: #fff; font-size: 17px; font-weight: 500; margin: 0 0 12px; line-height: 1.35; }
.ce-event-meta { display: flex; flex-wrap: wrap; gap: 14px; }
.ce-event-meta span { font-size: 13px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 5px; }
.ce-body { padding: 0 24px; }
.ce-section { margin-top: 20px; }
.ce-section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ce-tarif-list { display: flex; flex-direction: column; gap: 6px; }
.ce-tarif { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; background: #fff; transition: border-color 0.12s; }
.ce-tarif:hover { border-color: var(--navy); }
.ce-tarif.active { border-color: var(--navy); background: #f0f1f7; box-shadow: inset 0 0 0 1px var(--navy); }
.ce-tarif.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.ce-tarif input[type=radio] { accent-color: var(--navy); width: 15px; height: 15px; flex-shrink: 0; margin: 0; }
.ce-tarif-info { flex: 1; min-width: 0; }
.ce-tarif-name { font-size: 13px; font-weight: 500; color: var(--navy); margin: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ce-tarif-desc { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.ce-tarif-price { font-size: 15px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.ce-badge { font-size: 10px; padding: 1px 7px; border-radius: var(--radius-full); background: #eaf4f4; color: #1a6060; border: 1px solid rgba(42,138,138,0.3); font-weight: 400; }
/* Option du mode, insérée sous la carte sélectionnée */
.ce-mode-inline { margin: -4px 0 2px; padding: 12px 14px; border: 1px solid var(--navy); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); background: #f0f1f7; }
.ce-inline-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin: 0 0 8px; }
.ce-mode-inline .ce-qty { display: inline-flex; }
/* Sélecteur de quantité (billets multiples) */
.ce-tarif { cursor: default; }
.ce-qty { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.ce-qty-btn { width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; user-select: none; }
.ce-qty-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.ce-qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.ce-qty-btn:hover { border-color: var(--navy); background: #f0f1f7; }
.ce-qty-input { width: 44px; flex: 0 0 44px; height: 30px; border: 1px solid var(--border); border-left: 0; border-right: 0; text-align: center; font-size: 14px; color: var(--navy); background: #fff; -moz-appearance: textfield; padding: 0; }
.ce-qty-input::-webkit-outer-spin-button, .ce-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ce-qty-input:focus { outline: none; border-color: var(--navy); }
.ce-qty-locked { font-size: 12px; }
.ce-qty-login { color: var(--navy); font-weight: 500; text-decoration: underline; white-space: nowrap; }
.ce-guest { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px; background: #fafbfc; }
.ce-guest-title { font-size: 12px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.ce-login-hint { display: flex; align-items: center; gap: 10px; background: #f0f1f7; border: 1px solid rgba(60,68,101,0.2); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.ce-login-hint svg { color: var(--navy); flex-shrink: 0; }
.ce-login-hint span { font-size: 13px; color: var(--text-muted); }
.ce-login-hint a { color: var(--navy); font-weight: 500; text-decoration: underline; }
.ce-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ce-form-row.full { grid-template-columns: 1fr; }
.ce-field { display: flex; flex-direction: column; gap: 4px; }
.ce-field label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.ce-field input, .ce-field select { height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 10px; font-size: 14px; color: var(--navy); background: #fff; width: 100%; }
.ce-field input:focus, .ce-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(60,68,101,0.1); }
.ce-hint { font-size: 12px; color: var(--text-muted); margin: 3px 0 0; }
.ce-error { font-size: 12px; color: #B3261E; margin: 3px 0 0; }
.ce-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.ce-check input[type=checkbox] { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); }
.ce-check label { font-size: 13px; color: #4B5563; line-height: 1.5; cursor: pointer; }
.ce-check a { color: var(--navy); text-decoration: underline; }
.ce-facture-block { background: var(--cream-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-top: 8px; display: none; }
.ce-facture-block.open { display: block; }
.ce-facture-title { font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.ce-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 6px; }
.ce-summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--border); }
.ce-summary-row:last-of-type { border: none; }
.ce-summary-label { font-size: 13px; color: var(--text-muted); }
.ce-summary-val { font-size: 13px; font-weight: 500; color: var(--navy); }
.ce-total { font-size: 16px; font-weight: 500; color: var(--navy); }
.ce-secure { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }
.ce-btn { width: 100%; padding: 13px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius-full); font-size: 14px; font-weight: 500; cursor: pointer; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ce-btn:hover { background: #4e5580; }
.ce-notice { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; line-height: 1.6; }
.ce-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0 0; }
.ce-full-banner { width: 100%; margin: 40px auto 0; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; }
.ce-full-banner strong { display: block; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.ce-full-banner span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) { .ce-form-row { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   Zones de dépôt de fichiers (admin — photos / vidéo)
   ============================================================ */
.file-drop input[type=file] { display: none; }
.file-drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 16px; border: 1px solid #cbd5e1; border-radius: 10px;
  background: #f8fafc; cursor: pointer; text-align: center; color: #94a3b8;
  transition: border-color .2s, background .2s;
}
.file-drop-zone:hover, .file-drop-zone.dragover { border-color: var(--navy); background: #f1f5f9; }
.file-drop-zone svg { width: 28px; height: 28px; }
.file-drop-title { font-size: 13px; font-weight: 600; color: #64748b; }
.file-drop-hint  { font-size: 12px; color: #94a3b8; }
.file-drop-files { font-size: 12px; color: var(--navy); font-weight: 600; }
.file-drop.has-files .file-drop-zone { border-color: var(--teal); background: #eaf4f4; }

/* ===== Modèles d'emails (admin) — popup de rendu final ===== */
.email-preview-modal {
  /* le reset global « * { margin: 0 } » écrase le margin:auto natif du
     <dialog> (c'est lui qui centre les popups) → on le restaure ici */
  margin: auto;
  width: min(700px, 92vw);
  height: 88vh;
  padding: 0;
  border: none;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.email-preview-modal::backdrop { background: rgba(20, 24, 40, .55); }
.email-preview-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
/* Fin liseret gris clair délimitant la zone de l'email rendu. */
.email-preview-frame {
  display: block;
  width: calc(100% - 32px);
  height: calc(88vh - 92px);
  margin: 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Bannière de consentement aux cookies (RGPD / CNIL)
   ═══════════════════════════════════════════════════════════════════════════ */
.cookie-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 520px;
  width: calc(100% - 40px);
}
.cookie-consent[hidden] { display: none; }

.cookie-consent-box {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px 22px;
}

.cookie-consent-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.cookie-consent-close:hover { color: var(--navy); }

.cookie-consent-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
}

.cookie-consent-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

/* Panneau détaillé des préférences */
.cookie-consent-prefs {
  margin: 0 0 18px;
  border-top: 1px solid var(--border-light);
}
.cookie-consent-prefs[hidden] { display: none; }

.cookie-pref {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.cookie-pref:first-child { cursor: default; }

.cookie-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-pref-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.cookie-pref-always {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}
.cookie-pref-toggle {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-pref-text {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Boutons — « Accepter » plein bleu marine, les autres en contour (cf. maquette) */
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-consent-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--navy);
}
.cookie-consent-btn--solid {
  background: var(--navy);
  color: var(--white);
}
.cookie-consent-btn--solid:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}
.cookie-consent-btn--outline {
  background: transparent;
  color: var(--navy);
}
.cookie-consent-btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}
.cookie-consent-btn[hidden] { display: none; }

.cookie-consent-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: underline;
}
.cookie-consent-link:hover { color: var(--navy-dark); }

@media (max-width: 560px) {
  .cookie-consent {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
  }
  .cookie-consent-box {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
  }
  .cookie-consent-btn { flex-basis: 100%; }
}
