/* ========================================================================
   ÉPICENTRE — DESIGN SYSTEM
   École de Thérapeutes · Rosheim, Alsace
   
   Charte fidèle à celle créée pour la formation Kinésiologie Systémique.
   Sobre, sans-serif système, palette teal/gold/magenta.
======================================================================== */

/* ─── Reset & base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #14464D;
  line-height: 1.65;
  background: #ffffff;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Couleurs marque ─── */
:root {
  --teal-deep: #14464D;
  --teal-mid: #2C7A7B;
  --teal-mid-2: #2C8A8C;
  --teal-light: #B6E0DD;
  --teal-bg: #D9EEEC;
  --gold: #F4B942;
  --magenta: #D81E5B;
  --magenta-hover: #B01649;
  --gray-text: #4A5568;
  --gray-muted: #718096;
  --gray-light: #F7FAFA;
  --border: #E2E8E8;
}

/* ─── Container ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════════════════════════════════
   BANDEAU HAUT
   ════════════════════════════════════════════════════════════════════ */
.top-strip {
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
}
.top-strip a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}
.top-strip a:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}
.brand-logo {
  height: 80px;
  flex-shrink: 0;
}
.brand-logo img {
  height: 100%;
  width: auto;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: -0.3px;
}
.brand-sub {
  font-size: 9px;
  color: var(--gray-text);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

/* Nav */
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav > a, .main-nav > .has-submenu > a {
  color: var(--teal-deep);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav > a:hover, .main-nav > .has-submenu:hover > a {
  color: var(--magenta);
  text-decoration: none;
}
.main-nav > a.active, .main-nav > .has-submenu.active > a {
  border-bottom: 2px solid var(--teal-deep);
}

/* Dropdown */
.has-submenu { position: relative; }
.has-submenu > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.6;
}
.submenu {
  position: absolute;
  top: 100%; left: -16px;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(20, 70, 77, 0.10);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--teal-deep);
  border-radius: 4px;
  transition: background 0.15s ease;
}
.submenu a:hover { background: var(--gray-light); color: var(--magenta); text-decoration: none; }

/* CTA Header */
.main-nav > a.header-cta {
  background: var(--magenta);
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(216, 30, 91, 0.22);
  white-space: nowrap;
  border-bottom: none !important;
}
.main-nav > a.header-cta:hover {
  background: var(--magenta-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff !important;
}

/* Burger mobile */
.burger { 
  display: none; 
  background: none; 
  border: none; 
  cursor: pointer; 
  padding: 8px;
  position: relative;
  z-index: 1400;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-deep);
  margin: 5px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════════
   TYPO PARTAGÉE
   ════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  color: var(--teal-deep);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.eyebrow, .section-tag {
  display: inline-block;
  color: var(--teal-mid);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: 38px;
  margin-bottom: 24px;
  line-height: 1.2;
}
.section-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.lead {
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════════════════════════════
   BOUTONS
   ════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn .arrow { transition: transform 0.2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--magenta);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(216, 30, 91, 0.25);
}
.btn-primary:hover {
  background: var(--magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(216, 30, 91, 0.35);
}

.btn-secondary {
  background: var(--teal-deep);
  color: #fff !important;
}
.btn-secondary:hover {
  background: #0e3438;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep) !important;
  border: 2px solid var(--teal-deep);
}
.btn-ghost:hover {
  background: var(--teal-deep);
  color: #fff !important;
}

.btn-ghost-light {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

/* ════════════════════════════════════════════════════════════════════
   SECTIONS COMMUNES
   ════════════════════════════════════════════════════════════════════ */
.section { padding: 90px 0; }
.section-sm { padding: 70px 0; }
.bg-white { background: #fff; }
.bg-gray { background: var(--gray-light); }
.bg-teal { background: var(--teal-deep); color: #fff; }
.bg-teal h1, .bg-teal h2, .bg-teal h3, .bg-teal h4 { color: #fff; }
.bg-teal .lead { color: rgba(255,255,255,0.85); }
.bg-teal .eyebrow, .bg-teal .section-tag { color: var(--teal-light); }

/* ════════════════════════════════════════════════════════════════════
   PAGE BANNER (hero pages internes)
   ════════════════════════════════════════════════════════════════════ */
.page-banner {
  background: linear-gradient(135deg, #1A5A62 0%, var(--teal-deep) 100%);
  color: #fff;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(244, 185, 66, 0.10), transparent 60%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .eyebrow { color: var(--teal-light); }
.page-banner h1 {
  font-size: 52px;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  max-width: 800px;
  letter-spacing: -0.5px;
}
.page-banner h1 .accent { color: var(--gold); font-style: italic; font-weight: 400; }
.page-banner .page-baseline {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 22px;
  max-width: 680px;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER (teal foncé sobre)
   ════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--teal-deep);
  color: #fff;
  padding: 60px 0 50px;
}
.footer-grid-live {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr auto 1fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-brand-block .brand-name-text {
  font-size: 56px; font-weight: 700; color: #fff;
  line-height: 1; letter-spacing: -1px; margin-bottom: 4px;
  font-family: 'Segoe UI', sans-serif;
}
.footer-brand-block .brand-sub-text {
  font-size: 14px; letter-spacing: 3px;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
}
.footer-coords p {
  font-size: 15.5px; color: rgba(255,255,255,0.9); line-height: 1.7; margin: 0 0 4px;
}
.footer-coords a {
  font-size: 15.5px; color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 4px;
}
.footer-coords a:hover { color: var(--gold); }
.footer-separator {
  width: 1px; align-self: stretch; min-height: 200px;
  background-image: linear-gradient(to bottom, transparent 0, transparent 50%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.35) 100%);
  background-size: 1px 8px;
  background-repeat: repeat-y;
}
.footer-legal a {
  display: block; font-size: 15.5px; color: rgba(255,255,255,0.9); line-height: 1.9; text-decoration: none;
  transition: color 0.15s ease;
}
.footer-legal a:hover { color: var(--gold); }

.footer-bottom-live {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
}
.footer-qualiopi-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}
.footer-qualiopi-badge:hover { transform: translateY(-2px); }
.footer-qualiopi-badge img {
  width: 160px; height: auto;
  background: #fff; padding: 10px;
  border-radius: 4px;
  display: block;
}
.footer-socials-live {
  display: flex; gap: 16px; justify-content: flex-end; align-items: center;
}
.footer-credits {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
  line-height: 1.7;
}
.footer-credits-line {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.footer-credits a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-credits a:hover {
  color: var(--gold);
}
.footer-socials-live a {
  width: 44px; height: 44px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: opacity 0.2s;
}
.footer-socials-live a:hover { opacity: 0.75; }
.footer-socials-live svg {
  width: 36px; height: 36px;
  fill: #fff;
}

/* Anciens footers cachés s'ils sont encore dans le HTML */
.footer-grid { display: none; }
.footer-bottom { display: none; }

/* ════════════════════════════════════════════════════════════════════
   WHATSAPP FLOTTANT (sur toutes les pages)
   ════════════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s; text-decoration: none !important;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ════════════════════════════════════════════════════════════════════
   FORMULAIRES
   ════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--teal-deep);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.12);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-mid);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check label {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
  cursor: pointer;
}
.form-check-required {
  background: rgba(216, 30, 91, 0.06);
  border-left: 3px solid var(--magenta);
  padding: 14px 16px;
  border-radius: 8px;
  margin: 18px 0;
  transition: all 0.2s ease;
}
.form-check-required:has(input:checked) {
  background: rgba(20, 70, 77, 0.04);
  border-left-color: var(--teal-mid);
}
.form-check-required input[type="checkbox"] {
  accent-color: var(--magenta);
}
.form-check-required label {
  font-size: 13px;
}
.form-check-required label strong {
  color: var(--teal-deep);
}
.form-check-required .req {
  color: var(--magenta);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════
   COMPOSANTS RÉUTILISABLES
   ════════════════════════════════════════════════════════════════════ */

/* Encart à bordure gauche gold (signature du style copain) */
.gold-box {
  background: #fff;
  border: 1px solid var(--teal-bg);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  border-radius: 4px;
}

/* Carte standard */
.card {
  background: #fff;
  padding: 32px;
  border-radius: 6px;
  border-top: 3px solid var(--teal-mid);
  box-shadow: 0 4px 18px rgba(20, 70, 77, 0.06);
}

/* Citation */
.citation {
  background: var(--teal-bg);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  font-size: 20px;
  color: var(--teal-deep);
  font-style: italic;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.5;
}
.citation .auteur {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--teal-mid);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  /* Header + logo adaptés au mobile (évite le débordement) */
  .site-header {
    padding: 12px 0;
  }
  .brand-logo {
    height: 52px;
  }
  /* Navigation mobile en panneau plein écran */
  .main-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    background: #ffffff !important;
    opacity: 1 !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 90px 30px 30px;
    gap: 0;
    box-shadow: -10px 0 40px rgba(20, 70, 77, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1300;
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  /* Rythme vertical identique pour TOUS les items de 1er niveau.
     Le séparateur fin est porté de façon uniforme par chaque item
     direct (lien simple ET bloc .has-submenu). Pas de conflit de
     cascade : le <a> interne d'un sous-menu n'est jamais re-ciblé
     pour une bordure. */
  .main-nav > a,
  .main-nav > .has-submenu {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .main-nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0;
    font-size: 17px;
  }
  .main-nav > .has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 4px 17px 0;
    font-size: 17px;
    width: 100%;
    border-bottom: none;
  }
  /* Le bouton "S'inscrire" n'est pas un item de liste : pas de
     séparateur (déjà géré plus bas par .header-cta, on l'assure ici). */
  .main-nav > a.header-cta {
    border-bottom: none;
  }
  /* Neutralise le soulignement "onglet actif" du desktop en mobile :
     l'item actif est signalé par la couleur, pas par une bordure
     épaisse qui casserait l'alignement. La règle desktop
     `.main-nav > a.active` a une spécificité (0,2,1) : on la bat
     avec un sélecteur de spécificité au moins égale. */
  .main-nav > a.active {
    border-bottom: 1px solid var(--border);
    color: var(--magenta);
    font-weight: 600;
  }
  .main-nav > .has-submenu.active > a {
    color: var(--magenta);
    font-weight: 600;
  }
  .main-nav .submenu {
    position: static;
    display: none;
    box-shadow: none;
    padding: 0 0 14px 18px;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
  }
  .main-nav .submenu.expanded {
    display: block;
  }
  /* Flèche du sous-menu : alignée à droite, animée à l'ouverture */
  .main-nav .has-submenu > a::after {
    margin-left: auto;
    font-size: 13px;
    opacity: 0.55;
    color: var(--teal-deep);
    transform: none;
    transition: transform 0.2s ease;
  }
  .main-nav .has-submenu:has(.submenu.expanded) > a::after {
    transform: rotate(180deg);
  }
  .main-nav .submenu a {
    padding: 11px 0;
    font-size: 15px;
    color: var(--gray-text);
    display: block;
  }
  .main-nav .submenu a:hover {
    color: var(--teal-mid);
  }
  /* Bouton "S'inscrire" visible dans le menu mobile, en bouton plein-largeur */
  .main-nav > a.header-cta {
    display: block !important;
    margin-top: 20px;
    text-align: center;
    padding: 14px 28px !important;
    font-size: 15px;
    border-bottom: none !important;
    background: var(--magenta) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 700;
  }
  /* Overlay foncé quand le menu est ouvert */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 70, 77, 0.55);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .nav-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  /* Empêcher scroll quand menu ouvert */
  body.nav-open {
    overflow: hidden;
  }
  
  .burger { display: block; }
  .footer-grid-live { grid-template-columns: 1fr; gap: 30px; }
  .footer-separator { display: none; }
  .footer-bottom-live { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-socials-live { justify-content: center; }
  .footer-brand-block .brand-name-text { font-size: 40px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .page-banner { padding: 60px 0 50px; }
  .page-banner h1 { font-size: 36px; }
  .page-banner .page-baseline { font-size: 16px; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}
@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }
  .lead { font-size: 16px; }
}

/* ════════════════════════════════════════════════════════════════════
   MODAL DE TÉLÉCHARGEMENT PROGRAMME
   ════════════════════════════════════════════════════════════════════ */

.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 70, 77, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
}
.pdf-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pdf-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  position: relative;
  border-top: 4px solid var(--gold);
  box-shadow: 0 30px 80px rgba(20, 70, 77, 0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: auto;
}
.pdf-modal-overlay.open .pdf-modal {
  transform: translateY(0) scale(1);
}

.pdf-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gray-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 2;
}
.pdf-modal-close:hover {
  background: var(--teal-deep);
  color: #fff;
}

.pdf-modal-content {
  padding: 44px 44px 36px;
}

.pdf-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--teal-mid);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.pdf-modal h2 {
  font-size: 26px;
  color: var(--teal-deep);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.pdf-modal h2 .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.pdf-modal-sub {
  font-size: 14.5px;
  color: var(--gray-text);
  line-height: 1.6;
  margin: 0 0 26px;
}

/* ──── Formulaire ──── */
.pdf-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pdf-form-field {
  display: flex;
  flex-direction: column;
}

.pdf-form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.pdf-form-field label .req {
  color: var(--magenta);
  font-weight: 700;
}

.pdf-form-field input {
  background: var(--gray-light);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--teal-deep);
  font-family: inherit;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.pdf-form-field input:hover {
  border-color: var(--border);
}
.pdf-form-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.12);
}
.pdf-form-field input:invalid:not(:placeholder-shown) {
  border-color: var(--magenta);
}

.pdf-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 4px;
  transition: all 0.2s ease;
}
.pdf-form-consent-required {
  background: rgba(216, 30, 91, 0.06);
  border-left: 3px solid var(--magenta);
}
.pdf-form-consent-required:has(input:checked) {
  background: rgba(20, 70, 77, 0.04);
  border-left-color: var(--teal-mid);
}
.pdf-form-consent-optional {
  background: var(--gray-light);
  border-left: 3px solid var(--border);
}
.pdf-form-consent-optional:has(input:checked) {
  background: rgba(244, 185, 66, 0.10);
  border-left-color: var(--gold);
}
.pdf-form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--teal-mid);
  flex-shrink: 0;
  cursor: pointer;
}
.pdf-form-consent-required input[type="checkbox"] {
  accent-color: var(--magenta);
}
.pdf-form-consent-optional input[type="checkbox"] {
  accent-color: var(--gold);
}
.pdf-form-consent label {
  font-size: 12.5px;
  color: var(--gray-text);
  line-height: 1.55;
  cursor: pointer;
}
.pdf-form-consent label strong {
  color: var(--teal-deep);
}
.pdf-form-consent label .req {
  color: var(--magenta);
  font-weight: 700;
  margin-left: 2px;
}

.pdf-form-submit {
  background: var(--teal-deep);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.pdf-form-submit:hover:not(:disabled) {
  background: #0e3438;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 70, 77, 0.30);
}
.pdf-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pdf-form-note {
  font-size: 11.5px;
  color: var(--gray-muted);
  line-height: 1.6;
  text-align: center;
  margin: 8px 0 0;
}
.pdf-form-note a {
  color: var(--teal-mid);
  text-decoration: underline;
}
.pdf-form-note a:hover {
  color: var(--teal-deep);
}

/* ──── État succès ──── */
.pdf-modal-success-state {
  text-align: center;
}

.pdf-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  color: var(--gold);
}
.pdf-success-icon svg {
  width: 100%;
  height: 100%;
}

.pdf-modal-success-state h2 {
  margin-bottom: 14px;
}

.pdf-success-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--teal-deep) !important;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  margin: 18px 0 18px;
  transition: all 0.2s ease;
}
.pdf-success-download:hover {
  background: #e0a32a;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(244, 185, 66, 0.35);
}

.pdf-success-followup {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--teal-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  text-align: left;
}

.pdf-success-close {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--gray-text);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.pdf-success-close:hover {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}

/* ──── Responsive ──── */
@media (max-width: 560px) {
  .pdf-modal-content { padding: 36px 26px 28px; }
  .pdf-modal h2 { font-size: 22px; }
  .pdf-form-row { grid-template-columns: 1fr; gap: 16px; }
  .pdf-modal-close { top: 10px; right: 10px; }
}

/* ════════════════════════════════════════════════════════════════════
   FORMULAIRES — Message de succès Brevo
   ════════════════════════════════════════════════════════════════════ */
.form-success-message {
  display: none;
  text-align: center;
  padding: 48px 32px;
  background: var(--teal-bg);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  animation: form-success-fade 0.4s ease-out;
}
.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--teal-mid);
}
.form-success-icon svg {
  width: 100%;
  height: 100%;
}
.form-success-message h3 {
  font-size: 22px;
  color: var(--teal-deep);
  margin: 0 0 12px;
  font-weight: 700;
}
.form-success-message p {
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.6;
}
@keyframes form-success-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Bandeau de consentement cookies (RGPD / CNIL)
   ============================================================ */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(20, 70, 77, 0.28);
  animation: cc-up 0.35s ease;
}
@keyframes cc-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cc-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cc-text { flex: 1 1 460px; }
.cc-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold);
}
.cc-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.cc-desc a {
  color: var(--gold);
  text-decoration: underline;
}
.cc-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.cc-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cc-accept {
  background: var(--gold);
  color: var(--teal-deep);
}
.cc-accept:hover {
  background: #ffc95e;
}
.cc-refuse {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.cc-refuse:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.cc-btn:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}
/* Lien "Gérer les cookies" dans le footer */
.footer-legal a[data-cc-manage] {
  cursor: pointer;
}
@media (max-width: 720px) {
  .cc-inner {
    padding: 18px 18px 20px;
    gap: 16px;
  }
  .cc-actions {
    width: 100%;
  }
  .cc-btn {
    flex: 1 1 0;
    padding: 13px 10px;
  }
}
