/* ============================================================
   GLOBAL.CSS - Styles partagés par toutes les pages CGI
   Community Growth Initiative | cgi-mfi.com
   MOBILE FIRST - Refonte v2 juin 2026
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --red: #C0392B;
  --red-dark: #922B21;
  --red-deep: #641E16;
  --red-light: #FADBD8;
  --red-mid: #E74C3C;
  --black: #0D0D0D;
  --dark: #1A1A1A;
  --gray-900: #1C1C1C;
  --gray-700: #3D3D3D;
  --gray-500: #6B6B6B;
  --gray-300: #B0B0B0;
  --gray-100: #F2F3F4;
  --gray-50: #F8F8F8;
  --white: #FFFFFF;
  --gold: #C9A84C;
  --green: #1E8449;
  --blue: #1A5276;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.18);
  --shadow-red: 0 8px 32px rgba(192,57,43,0.3);
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ===== LOADING BAR ===== */
#loadingBar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--red);
  width: 0;
  z-index: 9999;
  transition: width 0.2s ease, opacity 0.4s ease;
}

/* ===== TICKER ===== */
.ticker-bar {
  background: var(--red);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  z-index: 200;
}
.ticker-inner { display: flex; align-items: center; }
.ticker-label {
  background: var(--red-deep);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  white-space: nowrap;
  margin-right: 16px;
  flex-shrink: 0;
}
.ticker-scroll { flex: 1; overflow: hidden; min-width: 0; }
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 18s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticker-item::before { content: '◆'; color: var(--gold); font-size: 8px; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== TOP BAR — caché sur mobile, visible desktop ===== */
.top-bar {
  display: none;
  background: var(--dark);
  color: var(--gray-300);
  font-size: 12px;
  padding: 6px clamp(16px, 4vw, 40px);
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--gray-300); transition: var(--transition); }
.top-bar a:hover { color: var(--red-light); }
.top-bar-left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-lang { display: flex; gap: 8px; }
.top-lang button {
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  transition: var(--transition);
}
.top-lang button.active,
.top-lang button:hover { background: var(--red); color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--red);
}
.navbar-inner {
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 3vw, 40px);
  min-height: 64px;
  position: relative;
  flex-wrap: wrap;
}

/* Actions — collées au hamburger (gauche) sur mobile */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  order: 1;
  margin-left: 4px;
}

/* btn-outline dans nav-actions : caché sur mobile */
.nav-actions .btn-outline { display: none; }

/* Bouton recherche caché sur mobile */
.nav-actions .btn-ghost { display: none; }

/* Boutons compacts sur mobile */
.nav-actions .btn {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 36px;
  text-transform: uppercase;
}
.nav-actions .nav-link.nav-sim {
  display: none;
}

/* Devenir Membre dans le menu mobile uniquement */
.nav-item-membre { display: flex; }

/* Logo — poussé à droite sur mobile */
.nav-logo {
  display: flex;
  align-items: center;
  order: 2;
  margin-left: auto;
}
.nav-logo-mark {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.nav-logo-mark::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
}
.nav-logo-img { height: 32px; }
.nav-logo-text { margin-left: 8px; }
.nav-logo-text .brand {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.nav-logo-text .tagline {
  font-size: 8px; font-weight: 500;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Hamburger — visible par défaut (mobile) */
.hamburger {
  display: flex;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.ham-bar {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .ham-bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu — ordre 3, caché par défaut (mobile) */
.nav-menu {
  order: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  justify-content: end;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 2px solid var(--red);
  box-shadow: var(--shadow-md);
  z-index: 99;
  padding: 8px 0;
}
.nav-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Items du menu — pleine largeur sur mobile */
.nav-item { position: relative; display: flex; align-items: center; width: 100%; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 13px 20px;
  width: 100%;
  font-size: 13px; font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
  min-height: 48px;
}
.nav-link:hover, .nav-link.active { color: var(--red); background: var(--gray-50); }
.nav-link svg { width: 11px; height: 11px; transition: transform 0.2s; flex-shrink: 0; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-link.nav-sim {
  color: var(--red); background: var(--red-light);
  border-radius: var(--radius); padding: 10px 16px;
  margin: 4px 16px; border-bottom: none; width: auto;
  min-height: 44px;
}
.nav-link.nav-sim:hover { background: var(--red); color: var(--white); }
.nav-link.nav-espace {
  color: var(--dark); background: var(--gray-100);
  border-radius: var(--radius); padding: 10px 16px;
  margin: 4px 16px; border-bottom: none; width: auto;
  min-height: 44px;
}
.nav-link.nav-espace:hover { background: var(--dark); color: var(--white); }

/* Dropdown — inline sur mobile */
.nav-dropdown {
  position: static;
  opacity: 1; visibility: visible;
  transform: none;
  box-shadow: none;
  border-top: none;
  border-left: 4px solid var(--red);
  margin-left: 16px;
  width: calc(100% - 16px);
  display: none;
  background: var(--white);
}
.nav-dropdown a {
  display: block;
  padding: 11px 20px;
  font-size: 13px; color: var(--gray-700);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
  min-height: 44px;
  display: flex; align-items: center;
}
.nav-dropdown a:hover {
  color: var(--red); background: var(--gray-50);
  border-left-color: var(--red); padding-left: 28px;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown.mobile-open { display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px;
  min-height: 44px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline { border: 2px solid var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-primary {
  background: var(--red); color: var(--white);
  border: 2px solid var(--red);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { color: var(--gray-500); font-size: 15px; padding: 8px 10px; min-height: 44px; }
.btn-ghost:hover { color: var(--red); }
.btn-full { width: 100%; justify-content: center; }
.btn-hero-outline { border: 2px solid rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ===== TYPOGRAPHIE SECTIONS ===== */
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== FORMULAIRES (base partagée) ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 16px; /* 16px évite le zoom automatique iOS */
  font-family: var(--font-body);
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
  min-height: 48px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); background: rgba(255,255,255,0.1); }
.form-group select option { background: var(--dark); color: var(--white); }

/* Form grid : 1 col mobile, 2 cols tablette+ */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Variante claire */
.form-group.light label { color: var(--gray-700); }
.form-group.light input,
.form-group.light select {
  background: var(--gray-50);
  border: 2px solid var(--gray-100);
  color: var(--dark);
  font-size: 16px;
  outline: none;
}
.form-group.light input:focus,
.form-group.light select:focus { border-color: var(--red); background: var(--white); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  max-width: 480px; width: 100%;
  text-align: center;
  position: relative;
}
.modal-box h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700; color: var(--dark); margin-bottom: 12px;
}
.modal-box p { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.modal-close-btn {
  position: absolute; top: 12px; right: 12px;
  font-size: 22px; color: var(--gray-300); cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.modal-close-btn:hover { color: var(--dark); background: var(--gray-50); }
.success-icon {
  margin-bottom: 20px;
  display: flex; justify-content: center; align-items: center;
}
.success-icon--ok { color: var(--green); }
.success-icon--lock { color: var(--red); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(64px, 12vw, 120px) clamp(16px, 4vw, 40px) 16px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: 100%; max-width: 640px; }
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.search-input-wrap .search-icon {
  font-size: 20px; color: rgba(255,255,255,0.4); flex-shrink: 0;
  display: flex; align-items: center;
}
#searchInput {
  background: none; border: none;
  color: var(--white); font-size: clamp(16px, 3vw, 20px);
  font-family: var(--font-body);
  outline: none; flex: 1; min-width: 0;
}
#searchInput::placeholder { color: rgba(255,255,255,0.3); }
.search-close {
  color: rgba(255,255,255,0.4); cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.search-close:hover { color: var(--white); }
.search-suggs { background: var(--white); border-radius: var(--radius-md); overflow: hidden; margin-top: 4px; }
.search-sugg {
  padding: 12px 20px;
  font-size: 14px; color: var(--gray-700);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 12px;
  min-height: 48px;
}
.search-sugg:hover { background: var(--gray-50); color: var(--red); }
.search-sugg::before { content: '→'; font-size: 13px; color: var(--gray-300); }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed; bottom: 20px; right: 16px;
  z-index: 500;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  padding: 12px 16px;
  border-radius: 32px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-red);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}
.float-btn:hover { background: var(--red-dark); transform: scale(1.05); }

/* ===== FOOTER ===== */
footer { background: var(--black); color: rgba(255,255,255,0.6); }

/* 1 colonne sur mobile */
.footer-main {
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1300px; margin: 0 auto;
}
.footer-brand .brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.footer-brand .tagline {
  font-size: 10px; color: var(--red); letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.social-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
  color: rgba(255,255,255,0.6);
}
.social-btn:hover { background: var(--red); color: var(--white); }
.footer-col h4 {
  font-size: 12px; font-weight: 700; color: var(--white);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; transition: var(--transition);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--red-light); }
.footer-contact p {
  font-size: 13px; margin-bottom: 8px;
  display: flex; align-items: flex-start; gap: 8px;
}

/* Footer bottom : colonne sur mobile */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: clamp(16px, 3vw, 20px) clamp(16px, 4vw, 40px);
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.3); padding: 4px 0; }
.footer-legal a:hover { color: var(--red); }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-note {
  font-size: 11px; font-style: italic;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== BASCULE DE LANGUE ===== */
[data-lang] { display: none; }
[data-lang].show { display: block; }

.lang-switch-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 10px clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.lang-switch-label { font-size: 12px; color: var(--gray-500); margin-right: 8px; }
.lang-btn {
  font-size: 12px; font-weight: 700;
  padding: 6px 14px; min-height: 36px;
  border: 2px solid var(--gray-100);
  border-radius: 2px;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  font-family: var(--font-body);
}
.lang-btn.active { border-color: var(--red); color: var(--red); }

/* ===== PAGE HERO (sous-pages intérieures) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--red-deep) 100%);
  padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(192,57,43,0.2), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb span { color: var(--gold); }
.page-eyebrow {
  font-size: 11px; font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 52px);
  font-weight: 900; color: var(--white);
  line-height: 1.15; margin-bottom: 14px;
}
.page-subtitle {
  font-size: clamp(14px, 2vw, 15px);
  color: rgba(255,255,255,0.7);
  max-width: 640px; line-height: 1.7;
}
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 2px;
  margin-top: 20px;
}

/* ===== PAGE BODY (sous-pages) ===== */
.page-body { padding: clamp(40px, 6vw, 72px) 0; background: var(--white); }
.page-body .container { max-width: 880px; }

/* ===== CONTENU ÉDITORIAL ===== */
.content-section { margin-bottom: 40px; }
.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700; color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red-light);
  position: relative;
}
.content-section h2::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 56px; height: 2px;
  background: var(--red);
}
.content-section h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 22px 0 10px; }
.content-section p  { font-size: 15px; color: var(--gray-700); line-height: 1.85; margin-bottom: 12px; }
.content-section ul { margin: 10px 0 18px; }
.content-section li {
  font-size: 15px; color: var(--gray-700);
  line-height: 1.75;
  padding: 6px 0 6px 22px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}
.content-section li::before { content: '►'; color: var(--red); position: absolute; left: 5px; font-weight: 700; }
.highlight-box {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 20px; margin: 20px 0;
}
.highlight-box p { margin: 0; color: var(--red-dark); font-weight: 500; font-size: 14px; }
.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 18px 20px; margin: 20px 0;
}
.info-box h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.info-box p  { font-size: 13px; margin: 0; color: var(--gray-500); }

/* Table avec scroll horizontal sur mobile */
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; min-width: 480px; }
.data-table th {
  background: var(--dark); color: var(--white);
  padding: 11px 14px; text-align: left;
  font-size: 11px; letter-spacing: 0.5px; white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.data-table tr:nth-child(even) td { background: var(--gray-50); }

/* ===== FAQ ===== */
.faq-cat-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--dark);
  margin: 32px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--red-light);
}
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-size: 14px; font-weight: 700; color: var(--dark);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: var(--white); transition: var(--transition);
  border: none; width: 100%; text-align: left; font-family: var(--font-body);
  min-height: 52px; gap: 12px;
}
.faq-q:hover, .faq-q.open { background: var(--red); color: var(--white); }
.faq-q .faq-icon { font-size: 18px; transition: transform 0.3s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 14px 18px;
  font-size: 14px; color: var(--gray-700); line-height: 1.75;
  background: var(--white); border-top: 1px solid var(--gray-100);
}
.faq-a.open { display: block; }

/* ===== SITEMAP : 1 col mobile ===== */
.sitemap-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.sitemap-col h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--dark); padding: 8px 0;
  border-bottom: 3px solid var(--red); margin-bottom: 14px;
}
.sitemap-col a {
  display: block; font-size: 13px; color: var(--gray-700);
  padding: 7px 0; border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.sitemap-col a::before { content: '→'; color: var(--red); margin-right: 7px; font-size: 11px; }
.sitemap-col a:hover { color: var(--red); padding-left: 6px; }

/* ===== AGENDA PLEINE PAGE ===== */
.agenda-full-wrap { padding: clamp(32px, 5vw, 64px) 0; background: var(--gray-50); }
.agenda-full-wrap .container { max-width: 1200px; }
/* 1 col mobile, grille sur tablette+ */
.agenda-full-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }

/* ===== ERREURS INLINE FORMULAIRES ===== */
.field-error { font-size: 12px; color: var(--red); margin-top: 4px; display: block; min-height: 16px; }
.btn-link {
  background: none; border: none; color: var(--red);
  font-size: 12px; cursor: pointer; font-family: var(--font-body);
  padding: 0; text-decoration: underline;
}

/* ===== ICONES LUCIDE ===== */
.top-bar a,
.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar svg,
.ticker-label svg {
  flex-shrink: 0;
}
/* Icônes SVG — pages secondaires */
.page-hero-badge,
.faq-contact-btn,
.event-category,
.sim-form-header-tag,
.sim-results-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sim-cta-main,
.btn-white {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.faq-contact-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-cal-nav,
.badge-emoji,
.sitemap-intro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== TICKER PAUSE BUTTON ===== */
.ticker-pause-btn {
  background: rgba(255,255,255,0.15);
  border: none; color: var(--white);
  padding: 4px 8px; border-radius: 3px;
  cursor: pointer; font-size: 12px;
  margin-left: 8px; flex-shrink: 0;
  min-height: 32px;
  transition: var(--transition);
}
.ticker-pause-btn:hover { background: rgba(255,255,255,0.3); }

/* ===== SLIDER PAUSE BUTTON ===== */
.slider-pause-btn {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 18px;
  width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  opacity: 0;
}
.hero:hover .slider-pause-btn { opacity: 1; }

/* ===================================================
   TABLETTE (768px+)
=================================================== */
@media (min-width: 768px) {
  .navbar-inner { min-height: 72px; flex-wrap: nowrap; }
  .nav-logo-mark { width: 44px; height: 44px; font-size: 20px; }
  .nav-logo-img { height: 36px; }
  .nav-logo-text .brand { font-size: 17px; }
  .nav-logo-text .tagline { font-size: 9px; }

  .form-grid { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .agenda-full-grid { grid-template-columns: 300px 1fr; gap: 40px; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-legal { justify-content: flex-start; }
}

/* ===================================================
   DESKTOP (1024px+)
=================================================== */
@media (min-width: 1024px) {
  /* Top bar visible */
  .top-bar { display: flex; }

  /* Hamburger masqué */
  .hamburger { display: none; }

  /* Bouton outline et recherche visibles sur desktop */
  .nav-actions .btn-outline { display: inline-flex; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-actions { margin-right: 28px; margin-left: 0; order: 3; }

  /* Restaurer la taille normale des boutons sur desktop */
  .nav-actions .btn { font-size: 13px; padding: 10px 18px; min-height: 44px; }
  .nav-actions .nav-link.nav-sim { display: inline-flex; font-size: 13px; padding: 10px 16px; min-height: 44px; margin: auto 4px; }

  /* Devenir Membre dans le menu mobile masqué sur desktop */
  .nav-item-membre { display: none; }

  /* Restaurer l'ordre du logo sur desktop */
  .nav-logo { order: 1; margin-left: 0; }

  /* Menu horizontal */
  .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    position: static;
    flex-direction: row;
    align-items: stretch;
    background: none;
    border-top: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    flex: 1;
  }
  .nav-item { width: auto; }
  .nav-link {
    padding: 0 14px;
    height: 100%; width: auto;
    font-size: 12.5px;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    min-height: auto;
    background: none;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--red);
    background: none;
    border-bottom-color: var(--red);
  }
  .nav-link.nav-sim { margin: auto 4px; padding: 0 12px; border-bottom: none; width: auto; }
  .nav-link.nav-espace { margin: auto 4px; padding: 0 12px; border-bottom: none; width: auto; }
  .nav-logo { margin-left: 28px; }

  /* Dropdown desktop : overlay */
  .nav-dropdown {
    position: absolute;
    top: 100%; left: 0;
    width: 240px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--red);
    border-left: none;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    margin-left: 0;
    display: block;
  }
  .nav-dropdown a { min-height: auto; }
  .nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

  /* Footer */
  .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }

  /* Floating CTA */
  .floating-cta { bottom: 32px; right: 32px; }
  .float-btn { font-size: 14px; padding: 14px 20px; }

  .sitemap-grid { grid-template-columns: repeat(3, 1fr); }
  .agenda-full-grid { grid-template-columns: 340px 1fr; gap: 48px; }
}

/* ===================================================
   A7 - MOUVEMENT RÉDUIT
=================================================== */
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
  .hero-slide { transition: none; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
