/* =========================================================
   L'Académie de la Résilience — Design system
   Charte « Impact & Sécurité »
   Bleu Abyssal #1B263B · Jaune Miel #FBC02D · Gris Acier #F8F9FA
   Titres : Montserrat · Corps : Barlow
   ========================================================= */

:root {
  /* Couleurs officielles */
  --abyss: #1B263B;          /* Bleu Abyssal — autorité */
  --abyss-grad-top: #1E3A5F; /* Haut du dégradé sombre */
  --honey: #FBC02D;          /* Jaune Miel — énergie */
  --honey-dark: #E0A800;     /* Jaune au survol */
  --steel: #F8F9FA;          /* Gris Acier — structure */
  --night: #0A1A2F;          /* Bleu nuit — texte foncé sur clair */
  --olive: #6D9121;          /* Vert olive — accent rare */

  /* Dérivés utilitaires */
  --abyss-soft: #24324a;
  --line-light: rgba(27, 38, 59, .12);
  --line-dark: rgba(248, 249, 250, .14);
  --text-on-dark: #EAF0F7;
  --text-muted-dark: #A9B7CA;
  --text-muted-light: #4A5A6E;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(10, 26, 47, .12);
  --shadow-lg: 0 24px 60px rgba(10, 26, 47, .22);
  --font-title: "Montserrat", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Century Gothic", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Confine le menu mobile hors-écran (translateX 100%) : sans ça, le tiroir fermé
   crée un défilement horizontal parasite sur mobile/tablette. Le nav étant en
   position:fixed, il faut clipper sur html ET body pour l'attraper. « clip » ne crée
   pas de conteneur de défilement → l'en-tête sticky reste fonctionnel. */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; /* sinon les animations infinies bouclent des milliers de fois par seconde */
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--night);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.15;
  color: var(--abyss);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--abyss); text-decoration-color: var(--honey); text-underline-offset: 3px; }
a:hover { color: var(--honey-dark); }
strong { font-weight: 700; color: inherit; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: 820px; margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--light { background: var(--steel); }
.section--white { background: #fff; }
.section--dark {
  background: linear-gradient(160deg, var(--abyss-grad-top), var(--abyss) 65%);
  color: var(--text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--text-muted-dark); }
.section--dark a:not(.btn) { color: var(--honey); text-decoration-color: var(--honey); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--honey); color: var(--night); font-weight: 700;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-title);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--honey-dark); margin: 0 0 .75rem;
}
.section--dark .eyebrow { color: var(--honey); }
.lead { font-size: 1.2rem; color: var(--text-muted-light); }
.section--dark .lead { color: var(--text-on-dark); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27, 38, 59, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-row {
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand span {
  font-family: var(--font-title); font-weight: 800; font-size: 1.02rem;
  color: #fff; line-height: 1.1;
}

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--text-on-dark); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .35rem 0; display: inline-flex; align-items: center; gap: .25rem;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--honey); }
.primary-nav .has-sub { position: relative; }
.primary-nav .submenu {
  position: absolute; top: 100%; left: -.75rem; min-width: 250px;
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .5rem; margin: 0; list-style: none;
  display: flex; flex-direction: column; gap: .15rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.primary-nav .has-sub:hover .submenu,
.primary-nav .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .submenu a { color: var(--night); padding: .55rem .7rem; border-radius: 6px; width: 100%; transition: background .15s ease, color .15s ease; }
/* Survol des entrées du sous-menu : accent jaune miel + texte bleu nuit
   (texte foncé sur jaune : lisible, et non « jaune sur blanc » interdit par la charte) */
.primary-nav .submenu a:hover,
.primary-nav .submenu a:focus-visible { background: var(--honey); color: var(--night); }

.nav-cta {
  background: var(--honey); color: var(--night) !important; font-weight: 700 !important;
  padding: .55rem 1.1rem !important; border-radius: 999px;
}
.nav-cta:hover { background: var(--honey-dark); }

.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--line-dark);
  color: #fff; width: 44px; height: 44px; border-radius: var(--radius-sm);
  font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center;
  /* Reste au-dessus du panneau ouvert : sinon la croix (×) de fermeture
     est recouverte par le menu et devient impossible à cliquer sur mobile. */
  position: relative; z-index: 110;
}

/* Voile derrière le menu mobile ouvert (créé par main.js).
   Caché par défaut ; ne capte aucun clic tant qu'il n'est pas actif. */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 26, 47, .55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; }
  /* Le voile ne s'active que sur petit écran, quand le menu est ouvert.
     Au-dessus de 940px il reste inerte même si un état « ouvert » traînait
     (ex. rotation de l'écran menu ouvert). */
  .nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
  .primary-nav {
    position: fixed; inset: 0 0 0 28%;
    background: linear-gradient(160deg, var(--abyss-grad-top), var(--abyss));
    padding: 5rem 1.5rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav[data-open="true"] { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: .8rem; }
  /* Cibles tactiles plus généreuses au pouce dans le tiroir mobile (~44px) */
  .primary-nav a { padding-block: .6rem; }
  .primary-nav .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; border: none; padding: .35rem 0 0 1rem; min-width: 0;
  }
  .primary-nav .submenu a { padding-block: .6rem; }
  .primary-nav .submenu a { color: var(--text-muted-dark); }
  .primary-nav .submenu a:hover { background: transparent; color: var(--honey); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-title); font-weight: 700; font-size: 1rem;
  padding: .9rem 1.9rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-honey { background: var(--honey); color: var(--night); }
.btn-honey:hover { background: var(--honey-dark); color: var(--night); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--abyss); border-color: var(--line-light); }
.section--dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--honey); color: var(--honey-dark); transform: translateY(-2px); }
.section--dark .btn-ghost:hover, .hero .btn-ghost:hover { color: var(--honey); }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row.center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--abyss-grad-top), var(--abyss) 70%);
  color: var(--text-on-dark);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(251, 192, 45, .14), transparent 45%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero.text-center h1 { margin-inline: auto; }
.hero h1.one-line { white-space: nowrap; font-size: clamp(1.1rem, 4.2vw, 3.4rem); }
.hero p { color: var(--text-on-dark); font-size: 1.2rem; }
.hero .lead { max-width: 60ch; }
.hero.text-center .lead { margin-inline: auto; }
.hero-mark {
  width: 200px; height: 200px; border-radius: 50%; margin: 1.5rem auto;
  border: 0; background: none; padding: 0;
}
.honey-rule { width: 64px; height: 4px; background: var(--honey); border: 0; border-radius: 2px; margin: 1.5rem 0; }
.text-center .honey-rule, .hero.text-center .honey-rule { margin-inline: auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--abyss); }
.breadcrumb ol {
  max-width: var(--max); margin-inline: auto; padding: .75rem 1.5rem;
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem;
}
.breadcrumb li { color: var(--text-muted-dark); }
.breadcrumb li::after { content: "›"; margin-left: .5rem; color: var(--text-muted-dark); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--honey); }
.breadcrumb li[aria-current] { color: var(--honey); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); height: 100%;
}
.section--dark .card {
  background: var(--abyss-soft); border-color: var(--line-dark); box-shadow: none;
}
.card h3 { margin-bottom: .5rem; }
.section--dark .card p { color: var(--text-muted-dark); }

.card.has-photo { padding: 0; overflow: hidden; }
.card.has-photo img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card.has-photo img.contain { object-fit: contain; background: var(--steel); }
.card.has-photo .card-body { padding: 1.75rem; }
.card.has-photo .card-body h3 { display: flex; align-items: center; gap: .5rem; }

/* Pilier card */
.pillar {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; box-shadow: var(--shadow);
}
.section--dark .pillar { background: var(--abyss-soft); border-color: var(--line-dark); box-shadow: none; }
.pillar .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--honey); color: var(--night);
  font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; margin-bottom: .9rem;
}
.pillar .icon { font-size: 2rem; margin-bottom: .6rem; }
.pillar.has-photo { padding: 0; overflow: hidden; }
.pillar.has-photo img { width: 100%; height: 130px; object-fit: cover; display: block; }
.pillar.has-photo img.contain { object-fit: contain; background: var(--steel); }
.pillar.has-photo .pillar-body { padding: 1.4rem; }
.pillar.has-photo .icon { margin-top: .2rem; }
.pillar .tag { color: var(--text-muted-light); font-size: .95rem; margin: 0; }
.section--dark .pillar .tag { color: var(--text-muted-dark); }

/* Detailed pillar block */
.pillar-detail { display: grid; gap: .5rem; }
.pillar-detail li { margin-bottom: .4rem; }

/* ---------- Pricing / pack card ---------- */
.pack-card {
  display: flex; flex-direction: column; gap: .9rem;
  background: #fff; color: var(--night); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); height: 100%;
}
.pack-card p { color: var(--text-muted-light); }
.pack-card.featured { border: 2px solid var(--honey); }
.pack-card.has-photo { padding: 0; overflow: hidden; gap: 0; }
/* Ratio 16/9 : l'image s'adapte à la largeur de la carte, donc quasi aucun rognage
   (une hauteur fixe écrasait les photos dans les cartes larges). */
.pack-card.has-photo > img {
  width: 100%; aspect-ratio: 16 / 9; height: auto; max-height: 300px;
  object-fit: cover; display: block;
}
.pack-card.has-photo > img.contain { object-fit: contain; background: var(--steel); }
/* Cadrage : privilégie le bas de l'image (sujet en partie basse) */
.has-photo > img.pos-bottom { object-position: center 78%; }
.pack-card.has-photo .pack-body { padding: 2rem; display: flex; flex-direction: column; gap: .9rem; flex-grow: 1; }
.pack-card .price {
  font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: var(--abyss);
}
.pack-card .price .old { font-size: 1.1rem; color: var(--text-muted-light); text-decoration: line-through; margin-right: .5rem; font-weight: 600; }
/* Le prix et la pastille « À venir » sur une même ligne */
.price-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.pack-card ul { margin: 0; padding-left: 1.1rem; }
.pack-card ul li { margin-bottom: .4rem; }
.pack-card .btn { margin-top: auto; }
.badge {
  display: inline-block; align-self: flex-start; background: var(--honey); color: var(--night);
  font-family: var(--font-title); font-weight: 700; font-size: .75rem; letter-spacing: .06em;
  padding: .25rem .7rem; border-radius: 999px;
}
.badge-olive { background: var(--olive); color: #fff; }
/* Offre pas encore ouverte : volontairement sobre, pour ne pas concurrencer l'accent jaune.
   color: inherit + currentColor => la pastille prend la couleur du texte qui l'entoure.
   Elle reste donc lisible aussi bien sur une carte blanche que sur un hero sombre,
   sans avoir à cibler chaque contexte (une règle .hero {color:#fff} rendrait la pastille
   blanche sur les cartes de prix, qui sont blanches elles aussi). */
.badge-soon {
  background: transparent; color: inherit;
  border: 1px solid currentColor; letter-spacing: .08em;
}

/* Bandeau d'information (offre à venir) */
.notice {
  display: flex; gap: 1rem; align-items: flex-start;
  max-width: 900px; margin: 0 auto 2.5rem;
  background: #fff; color: var(--night);
  border: 1px solid var(--line-light); border-left: 4px solid var(--honey);
  border-radius: var(--radius-sm); padding: 1.15rem 1.35rem; box-shadow: var(--shadow);
}
.notice strong { display: block; font-family: var(--font-title); color: var(--abyss); margin-bottom: .2rem; }
.notice li strong { display: inline; margin-bottom: 0; }
.notice p { margin: 0; color: var(--text-muted-light); font-size: .95rem; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.narrow-img { grid-template-columns: 360px 1fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.narrow-img img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
}
@media (max-width: 820px) {
  .split, .split.narrow-img { grid-template-columns: 1fr; }
}

/* ---------- Feature list with honey markers ---------- */
.check-list { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .05em;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--honey); color: var(--night); font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Quote ---------- */
.pull-quote {
  border-left: 4px solid var(--honey); padding: .6rem 0 .6rem 1.5rem;
  font-size: 1.35rem; font-family: var(--font-title); font-weight: 600; font-style: italic;
  color: var(--abyss); margin: 1.5rem 0;
}
.section--dark .pull-quote { color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  padding: 0 1.25rem; box-shadow: var(--shadow);
}
.section--dark .faq details { background: var(--abyss-soft); border-color: var(--line-dark); box-shadow: none; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--font-title);
  font-weight: 700; color: var(--abyss); display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.section--dark .faq summary { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--honey-dark); font-size: 1.5rem; line-height: 1; }
.section--dark .faq summary::after { color: var(--honey); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 0 1.2rem; margin: 0; color: var(--text-muted-light); }
.section--dark .faq details > p { color: var(--text-muted-dark); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { position: relative; padding-left: 3.75rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--honey); color: var(--night);
  font-family: var(--font-title); font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--night);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
  background: #fff; border-left: 4px solid var(--honey); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; font-size: .95rem; box-shadow: var(--shadow);
}
/* Encart « à compléter » (ex. médiateur dans les CGV) : visible, ton avertissement sobre */
.todo-box {
  background: #fdf6e3; border: 1px dashed var(--honey-dark);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; color: var(--night);
}
/* Honeypot anti-spam : hors flux ET hors écran, jamais focalisable */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Bandeaux de retour d'envoi (affichés par le script au retour de contact.php) */
.form-alert {
  padding: .9rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem;
  font-size: .95rem; border-left: 4px solid;
}
.form-alert--ok  { background: #eef5e4; color: #38510f; border-color: var(--olive); }
.form-alert--err { background: #fdecec; color: #8a1c1c; border-color: #c0392b; }
.form-alert--err a { color: inherit; }

/* ---------- Info box (legal / notes) ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night); color: var(--text-on-dark);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; border-top: 3px solid var(--honey);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--honey); margin-bottom: 1rem; }
.site-footer p { color: var(--text-muted-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--text-muted-dark); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--honey); }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-title); font-weight: 800; color: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--abyss-soft); border: 1px solid var(--line-dark);
}
.social svg { width: 18px; height: 18px; fill: var(--text-on-dark); }
.social a:hover { background: var(--honey); }
.social a:hover svg { fill: var(--night); }
.partner-logos { display: flex; gap: .6rem; margin-top: .75rem; }
.partner-logos img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.footer-bottom {
  text-align: center; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark); color: var(--text-muted-dark); font-size: .85rem;
}

/* ---------- Blog ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 0 2.5rem;
}
.filter-btn {
  font-family: var(--font-title); font-weight: 600; font-size: .92rem;
  padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--abyss); border: 1px solid var(--line-light);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover { border-color: var(--honey); }
.filter-btn[aria-pressed="true"] { background: var(--honey); color: var(--night); border-color: var(--honey); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }

.article-card[hidden] { display: none; }
.article-card {
  display: flex; flex-direction: column; background: #fff; color: var(--night);
  border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card a.cover { display: block; }
.article-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.article-card .article-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex-grow: 1; }
.article-card h3 { font-size: 1.2rem; margin: 0; }
.article-card h3 a { color: var(--abyss); text-decoration: none; }
.article-card h3 a:hover { color: var(--honey-dark); }
.article-card .excerpt { color: var(--text-muted-light); font-size: .95rem; margin: 0; flex-grow: 1; }
.article-card .article-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.article-card .date { color: var(--text-muted-light); font-size: .82rem; }
.article-card .read-more { color: var(--honey-dark); font-weight: 700; font-size: .9rem; text-decoration: none; }

/* Category chip */
.cat-chip {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  font-family: var(--font-title); font-weight: 600; font-size: .74rem; letter-spacing: .03em;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--steel); color: var(--abyss); border: 1px solid var(--line-light);
}
.cat-chip.cat-numerique { border-color: rgba(251,192,45,.5); }
.cat-chip.cat-energie { border-color: rgba(251,192,45,.5); }
.cat-chip.cat-equilibre { border-color: rgba(109,145,33,.5); }
.cat-chip.cat-transversal { border-color: rgba(27,38,59,.25); }

/* Article page */
.article-hero { text-align: center; }
.article-hero .article-info { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; color: var(--text-muted-dark); font-size: .9rem; margin-top: 1rem; }
.article-cover {
  max-width: 900px; margin: -2.5rem auto 0; padding: 0 1.5rem; position: relative; z-index: 2;
}
.article-cover img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.article-prose { max-width: 760px; margin-inline: auto; }
.article-prose h2 { margin-top: 2.5rem; }
.article-prose h3 { margin-top: 1.75rem; color: var(--abyss); }
.article-prose ul, .article-prose ol { padding-left: 1.3rem; }
.article-prose li { margin-bottom: .5rem; }
.article-prose blockquote {
  border-left: 4px solid var(--honey); margin: 1.5rem 0; padding: .4rem 0 .4rem 1.4rem;
  font-style: italic; color: var(--abyss); font-size: 1.12rem;
}
.article-prose .lead-in { font-size: 1.2rem; color: var(--text-muted-light); }
.article-prose a { font-weight: 700; font-style: italic; }
.article-prose img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; margin-inline: auto; }
.article-prose figure { margin: 2rem 0; }
.article-prose figure.article-image img:not([src$=".svg"]) { aspect-ratio: 3 / 2; object-fit: cover; }
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 760px; margin-inline: auto; }
.quiz-card {
  background: #fff; color: var(--night); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.quiz-progress {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-title); font-weight: 700; font-size: .85rem;
  color: var(--text-muted-light); margin-bottom: .75rem;
}
.quiz-bar { height: 8px; background: var(--steel); border-radius: 999px; overflow: hidden; margin-bottom: 1.75rem; }
.quiz-bar > span { display: block; height: 100%; width: 0; background: var(--honey); border-radius: 999px; transition: width .3s ease; }

.quiz-pillar {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  font-family: var(--font-title); font-weight: 600; font-size: .74rem; letter-spacing: .03em;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--steel); color: var(--abyss); border: 1px solid var(--line-light); margin-bottom: .9rem;
}
.quiz-question { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; color: var(--abyss); margin: 0 0 1.5rem; line-height: 1.3; }

.quiz-options { display: grid; gap: .75rem; }
.quiz-option {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; color: var(--night);
  border: 2px solid var(--line-light); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; font-family: var(--font-body); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.quiz-option:hover { border-color: var(--honey); background: #fffdf6; transform: translateX(3px); }

/* Résultat */
.score-ring {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 1.25rem;
  display: grid; place-items: center; background: var(--abyss); color: #fff;
  border: 5px solid var(--honey);
}
.score-ring strong { font-family: var(--font-title); font-size: 2.1rem; line-height: 1; display: block; }
.score-ring span { font-size: .78rem; color: var(--text-muted-dark); }

.score-list { display: grid; gap: 1rem; margin: 1.75rem 0; }
.score-row { display: grid; grid-template-columns: 190px 1fr 42px; gap: .75rem; align-items: center; }
.score-row .lbl { font-family: var(--font-title); font-weight: 700; font-size: .92rem; color: var(--abyss); }
.score-track { height: 12px; background: var(--steel); border-radius: 999px; overflow: hidden; border: 1px solid var(--line-light); }
.score-track > span { display: block; height: 100%; background: var(--honey); border-radius: 999px; transition: width .5s ease; }
.score-row .val { font-family: var(--font-title); font-weight: 700; font-size: .9rem; color: var(--text-muted-light); text-align: right; }
.score-row.weak .score-track > span { background: var(--olive); }
@media (max-width: 560px) {
  .score-row { grid-template-columns: 1fr; gap: .3rem; }
  .score-row .val { text-align: left; }
}

.reco {
  background: var(--steel); border-left: 4px solid var(--honey);
  border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; margin-top: 1.5rem;
}
.reco h3 { margin: 0 0 .5rem; }

/* Related articles list on pillar pages */
.related-list { display: grid; gap: 1rem; }
.related-item {
  display: flex; gap: 1rem; align-items: center; background: #fff; color: var(--night);
  border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: .8rem; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.related-item:hover { transform: translateX(4px); }
.related-item img { width: 92px; height: 68px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-item .r-title { font-family: var(--font-title); font-weight: 700; color: var(--abyss); font-size: 1rem; margin: 0 0 .2rem; }
.related-item .r-meta { color: var(--text-muted-light); font-size: .82rem; margin: 0; }
