/* ============================================================
   LES SIX PILIERS DE LA SANTÉ
   Site Web — Feuille de styles principale  v1.0
   Mobile-first, entièrement réactif, accessible
   ============================================================

   PALETTE MODIFIÉE : bleu ciel au lieu du bleu marine foncé
   --color-primary  : #1A7DC4  (bleu ciel moyen — en-tête, pied de page, titres)
   --footer-bg      : #1A7DC4  (pied de page bleu ciel)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   ============================================================ */
:root {
  /* ── Type Scale (fluid, clamp-based) ── */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);  /* 12–14px */
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);      /* 14–16px */
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);  /* 16–18px */
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);    /* 18–24px */
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);   /* 24–36px */
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);    /* 32–56px */
  --text-hero: clamp(2.25rem,  1rem    + 4vw,    4.5rem);    /* 36–72px */

  /* ── 4px Spacing System ── */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ── Couleurs — Palette Santé (bleu ciel + vert menthe accent) ── */
  --color-bg:          #FFFFFF;   /* Fond de page (blanc)                  */
  --color-surface:     #F0F7FC;   /* Surface bleu très clair                */
  --color-surface-2:   #DFF0FA;   /* Surface légèrement plus foncée         */
  --color-border:      #B8D8EF;   /* Bordure / séparateur                   */

  --color-text:        #0D2A3F;   /* Texte principal — bleu foncé           */
  --color-text-muted:  #4A6A80;   /* Texte secondaire                       */
  --color-text-faint:  #85A5BB;   /* Tertiaire / placeholder                */
  --color-text-inv:    #FFFFFF;   /* Texte sur fond sombre                  */

  /* PALETTE BLEU CIEL — remplace le bleu marine #0A2342 */
  --color-primary:     #1A7DC4;   /* Bleu ciel — en-tête, pied de page, titres */
  --color-secondary:   #1565A8;   /* Bleu moyen — liens, boutons            */
  --color-secondary-h: #0E4F8A;   /* État hover                             */
  --color-accent:      #2ECC8F;   /* Vert menthe — mise en valeur           */
  --color-accent-h:    #27AE7A;   /* État hover de l'accent                 */
  --color-success:     #2E7D32;   /* Succès formulaire                      */

  /* ── En-tête / Pied de page ── */
  --header-top-space: var(--space-4); /* 16px */
  --header-height: 96px;
  --header-bg:     #FFFFFF;
  --footer-bg:     #1A7DC4;   /* Bleu ciel — remplace #0A2342 */
  --footer-text:   #FFFFFF;

  /* ── Border Radius ── */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* ── Ombres ── */
  --shadow-sm: 0 1px 3px  rgba(26, 125, 196, 0.09);
  --shadow-md: 0 4px 16px rgba(26, 125, 196, 0.13);
  --shadow-lg: 0 12px 36px rgba(26, 125, 196, 0.17);

  /* ── Transition ── */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Typographie ── */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;

  /* ── Mise en page ── */
  --content-wide:    1240px;
  --content-default:  960px;
  --content-narrow:   680px;
}

/* ============================================================
   2. RESET & STYLES GLOBAUX
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] { list-style: none; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.18;
  font-family: var(--font-display);
  font-weight: 700;
}

p, li { text-wrap: pretty; }

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-secondary-h); }
a:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; border-radius: var(--radius-sm); }

button { cursor: pointer; background: none; border: none; }

::selection {
  background: rgba(26, 125, 196, 0.18);
  color: var(--color-text);
}

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

/* ============================================================
   3. UTILITAIRES DE MISE EN PAGE
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px)  { .container { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-8); } }

.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;
}

/* ============================================================
   4. EN-TÊTE DU SITE
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: calc(var(--header-height) - var(--header-top-space));
  padding-top: var(--header-top-space);
}

/* ── Logo ── */
.site-logo {
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  align-items: center;
}
.site-logo img {
  width: 220px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .site-logo img { width: 280px; max-height: 64px; }
}
@media (min-width: 1024px) {
  .site-logo img { width: 311px; height: 70px; }
}

/* ── Wrapper de navigation ── */
.nav-wrapper {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
@media (min-width: 1024px) {
  .nav-wrapper { display: flex; }
}

/* ── Navigation de bureau ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-secondary);
  background: rgba(26, 125, 196, 0.10);
}
.main-nav a.active {
  font-weight: 700;
}

/* ── Contrôles mobiles ── */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}
@media (min-width: 1024px) {
  .header-controls { display: none; }
}

/* ── Bouton hamburger ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   5. NAVIGATION MOBILE
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0;
  background: var(--color-bg);
  z-index: 850;
  overflow-y: auto;
  padding-bottom: var(--space-8);
}
.mobile-nav.open { display: block; }

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav ul {
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.mobile-nav ul li a {
  display: block;
  padding: var(--space-4) var(--space-6);
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), padding-left var(--transition);
}
.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: var(--color-surface);
  padding-left: var(--space-8);
  color: var(--color-secondary);
  text-decoration: none;
}

/* ============================================================
   6. SECTION HÉROS (Page d'accueil)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 280px;
  max-height: 800px;
  overflow: hidden;
  background: var(--color-primary);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 125, 196, 0.78) 0%,
    rgba(21, 101, 168, 0.45) 60%,
    rgba(26, 125, 196, 0.18) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--color-text-inv);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.38);
  letter-spacing: -0.02em;
  max-width: 900px;
}

/* ============================================================
   7. EN-TÊTE DE PAGE (pages intérieures)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-inv);
  letter-spacing: -0.02em;
}
/* Ligne accent sous le titre de page */
.page-header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-top: var(--space-4);
  border-radius: var(--radius-full);
}

/* ============================================================
   8. CONTENU PRINCIPAL
   ============================================================ */
.main-content {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.content-section { width: 100%; }

/* Titre de contenu (page d'accueil) */
.content-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

/* Image de contenu */
.content-image {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-lg);
}
.content-image img {
  width: 100%;
  height: clamp(220px, 40vw, 500px);
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.content-image:hover img { transform: scale(1.02); }

/* Texte de contenu */
.content-text p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 85ch;
}
.content-text p:last-child { margin-bottom: 0; }

/* Paragraphe d'introduction */
.content-text .lead,
.content-text > p:first-of-type {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--color-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

/* Blockquote */
.content-text blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  font-style: italic;
  color: var(--color-secondary);
  background: var(--color-surface);
  margin: var(--space-8) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 85ch;
}
.content-text blockquote p {
  font-size: var(--text-base);
  margin-bottom: 0;
  color: var(--color-secondary);
}

/* Listes dans le contenu */
.content-text ul,
.content-text ol {
  margin: 0 0 var(--space-6) var(--space-6);
  max-width: 80ch;
}
.content-text ul { list-style: disc; }
.content-text ol { list-style: decimal; }
.content-text li {
  line-height: 1.75;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

/* Boîte d'information */
.info-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  border-left: 4px solid var(--color-secondary);
  max-width: 85ch;
}
.info-box p { margin-bottom: 0; color: var(--color-text); }

/* Bouton CTA inline */
.btn-inline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: var(--space-4);
  cursor: pointer;
}
.btn-inline:hover {
  background: var(--color-accent-h);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-inline:active { transform: translateY(0); }

/* Tableau de contenu */
.content-text table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  max-width: 85ch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.content-text table th {
  background: var(--color-primary);
  color: var(--color-text-inv);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 700;
}
.content-text table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.content-text table tr:nth-child(even) td {
  background: var(--color-surface);
}
.content-text table tr:last-child td {
  border-bottom: none;
}

/* Carte de pilier (page d'accueil) */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
@media (min-width: 640px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
}
.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-primary);
  text-decoration: none;
  color: inherit;
}
.pillar-card__number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-surface-2);
  line-height: 1;
  letter-spacing: -0.04em;
}
.pillar-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}
.pillar-card__nav {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pillar-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Section interdépendance des piliers */
.pillars-connection {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  margin-top: var(--space-12);
  border: 1px solid var(--color-border);
}
.pillars-connection h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.pillars-connection p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 75ch;
}

/* Section "Pour aller plus loin" */
.further-section {
  background: var(--color-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  margin-top: var(--space-10);
  color: var(--color-text-inv);
}
.further-section h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-inv);
  margin-bottom: var(--space-4);
}
.further-section p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}
.further-section ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.further-section ul li a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.further-section ul li a:hover {
  color: #fff;
}
.further-section ul li {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* Section références */
.references-section {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-10);
  border: 1px solid var(--color-border);
}
.references-section h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.references-section ol {
  list-style: decimal;
  margin-left: var(--space-6);
}
.references-section ol li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}
.references-section ol li a {
  color: var(--color-secondary);
  text-decoration: underline;
  word-break: break-word;
}

/* Avertissement / disclaimer */
.disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.6;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-border);
  margin-top: var(--space-6);
  max-width: 85ch;
}

/* ============================================================
   9. PID DE PAGE DU SITE — 3 colonnes
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: var(--space-16) var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Colonne 1 : Marque */
.footer-brand { }
.footer-logo img {
  width: 200px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-4);
  max-width: 300px;
  line-height: 1.6;
}

/* Colonne 2 : Liens rapides */
.footer-nav-col h3,
.footer-social-col h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-nav-list a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
}
.footer-nav-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Colonne 3 : Social + légal */
.footer-social-col { }
.footer-social-icons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.75);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social-icons a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(46, 204, 143, 0.12);
}
.footer-social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}
.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal-links a:hover {
  color: rgba(255,255,255,0.80);
}

/* Barre inférieure du pied de page */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-8);
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.03em;
}

/* ============================================================
   10. POSITIONNEMENT HÉROS
   ============================================================ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

/* ============================================================
   11. MISE EN PAGE RÉACTIVE & FINITION
   ============================================================ */
.main-content {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}
.content-image { overflow: hidden; }

/* Indicateur de nav actif */
.main-nav a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin-top: 2px;
}

/* Hero h1 accessible */
.hero-title {
  position: relative;
  z-index: 2;
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3rem, 5vw, 5rem); }
}

/* ============================================================
   12. BOUTON RETOUR EN HAUT
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inv);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   13. PAGE 404
   ============================================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height) - 320px);
  padding-block: var(--space-20);
  text-align: center;
}
.error-page__inner { max-width: 560px; }
.error-page__code {
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 800;
  color: var(--color-surface-2);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}
.error-page__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.error-page__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}
.error-page__divider {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin: var(--space-6) auto;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-inv);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  color: var(--color-text-inv);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inv);
  text-decoration: none;
}

/* ============================================================
   14. IMPRESSION
   ============================================================ */
@media print {
  .site-header,
  .mobile-nav,
  .header-controls,
  .hamburger,
  .back-to-top,
  .site-footer { display: none !important; }

  body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  h1, h2, h3, h4 { color: #000; page-break-after: avoid; }
  h1 { font-size: 18pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12pt; }

  .page-header {
    background: #fff !important;
    padding-block: 12pt;
    border-bottom: 2pt solid #000;
  }
  .page-header h1 {
    color: #000 !important;
    font-size: 18pt;
  }
  .page-header h1::after { background: #888; }

  .content-image,
  .content-image img { display: none !important; }

  .content-text p { max-width: 100%; font-size: 11pt; }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  a[href^="#"]::after,
  a[href^="javascript:"]::after { content: ""; }

  .main-content { padding-block: 12pt; }
  .container { max-width: 100%; padding: 0; }
}
