/* =========================================================
   Manifeste du Management · le-management.com
   Une seule page. Un manifeste. Des signatures.
   ========================================================= */

:root {
  --nuit: #02040a;
  --navy: #0c1629;
  --navy-clair: #13234a;
  --bleu: #1f3a8b;
  --jaune: #ffde59;
  --jaune-fonce: #f5c518;
  --papier: #f6f1e4;
  --papier-trait: rgba(12, 22, 41, 0.14);
  --encre: #0c1629;
  --encre-bleue: #1f3a8b;
  --texte: #f8fafc;
  --doux: #9fabc0;
  --ligne: rgba(255, 255, 255, 0.09);
  --rouge: #c2353a;
  --rouge-clair: #fca5a5;

  --police: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --main: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --marge: 16px;
  --largeur: 1240px;
  --rayon: 18px;
  --section: clamp(88px, 12vw, 168px);
  --courbe: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) { :root { --marge: 28px; } }
@media (min-width: 1024px) { :root { --marge: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--nuit);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 18px; } }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--jaune); color: var(--nuit); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Un élément masqué le reste, même si une classe lui donne un display. */
[hidden] { display: none !important; }
/* Pas de mot orphelin en fin de titre ou de paragraphe. */
h1, h2, h3, h4, summary { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 4px; }

.invisible {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pot { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.jaune { color: var(--jaune); }
.petit { font-size: 13px; color: var(--doux); }

.evitement {
  position: absolute; left: var(--marge); top: -60px; z-index: 300;
  background: var(--jaune); color: var(--nuit); padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.evitement:focus { top: 12px; }

.etiquette {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--jaune); margin-bottom: 20px;
}
.etiquette::before { content: ''; width: 28px; height: 2px; background: currentColor; }

h2 {
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.chapeau { font-size: clamp(18px, 1.6vw, 21px); color: var(--doux); max-width: 680px; margin-top: 24px; }

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px; border: 2px solid transparent; background-color: transparent;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--courbe), box-shadow 0.25s var(--courbe), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton-jaune { background: var(--jaune); color: var(--nuit); box-shadow: 0 10px 30px -10px rgba(255, 222, 89, 0.55); }
.bouton-jaune:hover { box-shadow: 0 16px 40px -12px rgba(255, 222, 89, 0.75); }
.bouton-contour { border-color: rgba(255, 255, 255, 0.28); color: var(--texte); }
.bouton-contour:hover { border-color: var(--jaune); color: var(--jaune); }
.bouton-encre { background: var(--encre); color: var(--jaune); width: 100%; min-height: 60px; font-size: 18px; }
.bouton-encre:hover { box-shadow: 0 14px 34px -14px rgba(12, 22, 41, 0.7); }
.bouton-encre[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.bouton-petit { min-height: 42px; padding: 9px 20px; font-size: 14px; }

.lien {
  background: none; border: 0; padding: 0;
  color: inherit; font-size: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.lien:hover { text-decoration-thickness: 2px; }
/* « Effacer » : zone de doigt de 44 px sans bouger la mise en page. */
#pad-effacer { padding: 11px 8px; margin: -11px -8px; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--jaune); text-decoration: none;
  border-bottom: 1px solid rgba(255, 222, 89, 0.35); padding-bottom: 2px;
}
.lien-fleche::after { content: '→'; transition: transform 0.2s var(--courbe); }
.lien-fleche:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.entete.defile {
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--ligne);
}
.entete-interieur {
  max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { font-size: 18px; font-weight: 900; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--jaune); }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.bouton) { font-size: 15px; font-weight: 500; color: var(--doux); text-decoration: none; transition: color 0.2s; }
.menu a:not(.bouton):hover { color: var(--texte); }

.menu-bouton { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.menu-bouton span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--texte); border-radius: 2px; transition: transform 0.3s var(--courbe), top 0.3s var(--courbe); }
.menu-bouton span:first-child { top: 17px; }
.menu-bouton span:last-child { top: 25px; }
.menu-bouton[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .menu-bouton { display: block; z-index: 2; }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--nuit);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .menu.ouvert { opacity: 1; visibility: visible; }
  .menu a:not(.bouton) { font-size: 26px; font-weight: 700; color: var(--texte); }
  .menu .bouton { margin-top: 12px; min-height: 52px; font-size: 17px; padding: 14px 32px; }
}

/* ---------- Ouverture ---------- */
.ouverture { isolation: isolate;
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 0; overflow: hidden;
}
.ouverture-fond {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(31, 58, 139, 0.55), transparent 70%),
    radial-gradient(45% 45% at 10% 90%, rgba(12, 22, 41, 0.9), transparent 70%),
    linear-gradient(180deg, var(--nuit) 0%, #050b1a 100%);
}
.ouverture-fond::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.ouverture-interieur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge) clamp(96px, 14vh, 150px); }

.pastille {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid rgba(255, 222, 89, 0.35); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--jaune); background: rgba(255, 222, 89, 0.07);
}
.pastille-point { width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 0 rgba(255, 222, 89, 0.7); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(255, 222, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 222, 89, 0); } }

h1 {
  margin: 28px 0 32px;
  font-size: clamp(40px, 12vw, 168px);
  font-weight: 900; line-height: 0.88; letter-spacing: -0.055em;
}
h1 .jaune { display: block; }
/* Sur téléphone, le titre occupe toute la largeur : le manifeste d'abord. */
/* 13vw : « Management » remplit ~93 % de la largeur, sans jamais être coupé (mesuré à 320 et 375 px). */
@media (max-width: 600px) { h1 { font-size: 13vw; } }

.ouverture-accroche { font-size: clamp(24px, 3.4vw, 44px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 900px; }
.souligne { position: relative; display: inline-block; color: var(--jaune); }
.souligne svg { position: absolute; left: -2%; bottom: -0.28em; width: 104%; height: 0.42em; overflow: visible; }
.souligne path { fill: none; stroke: var(--jaune); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: trace 1.2s 0.6s var(--courbe) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

.ouverture-texte { margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); color: var(--doux); max-width: 560px; }
.ouverture-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.compteur { margin-top: 36px; font-size: 15px; color: var(--doux); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.compteur strong { font-size: 22px; font-weight: 800; color: var(--texte); font-variant-numeric: tabular-nums; }
.compteur-sep { color: var(--jaune); margin: 0 4px; }

/* Banderole des dernières signatures */
.bandeau {
  position: absolute; left: -4%; right: -4%; bottom: 34px;
  transform: rotate(-2deg);
  background: var(--jaune); color: var(--nuit);
  padding: 14px 0; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(255, 222, 89, 0.5);
}
.bandeau-piste { display: flex; width: max-content; animation: defile var(--duree, 60s) linear infinite; }
.bandeau:hover .bandeau-piste { animation-play-state: paused; }
.bandeau-groupe { display: flex; }
.bandeau-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 28px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.bandeau-item strong { font-family: var(--main); font-size: 26px; font-weight: 700; line-height: 1; }
.bandeau-item::after { content: '✦'; margin-left: 28px; font-size: 12px; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Le constat ---------- */
.constat { padding: var(--section) 0; }
.constat-grille { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); display: grid; gap: 56px; }
@media (min-width: 1000px) {
  .constat-grille { grid-template-columns: 5fr 6fr; gap: 96px; }
  .constat-cote { position: sticky; top: 120px; align-self: start; }
}
.chiffre { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ligne); }
.chiffre-valeur { display: block; font-size: clamp(110px, 16vw, 210px); font-weight: 900; line-height: 0.85; letter-spacing: -0.06em; color: var(--jaune); }
.chiffre-valeur small { font-size: 0.45em; letter-spacing: 0; }
.chiffre figcaption { margin-top: 18px; font-size: 18px; max-width: 380px; }
.chiffre cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--doux); }

.constat-recit { display: grid; gap: 28px; font-size: clamp(18px, 1.5vw, 21px); color: #d6dce8; }
.constat-recit .fort { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--texte); }
.constat-recit blockquote {
  margin: 12px 0; padding: 28px 28px 28px 32px;
  border-left: 4px solid var(--jaune); border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(255, 222, 89, 0.08), transparent);
  font-size: clamp(20px, 1.9vw, 25px); font-weight: 500; line-height: 1.5; color: var(--texte);
}

/* ---------- Les croyances ---------- */
.croyances { padding: var(--section) 0; background: linear-gradient(180deg, var(--nuit), var(--navy) 18%, var(--navy) 82%, var(--nuit)); }
.croyances-tete, .croyances-liste { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.croyances-tete h2 { max-width: 900px; }
.croyances-liste { list-style: none; margin-top: clamp(56px, 8vw, 96px); }
.croyance {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--ligne);
}
.croyance:last-child { border-bottom: 1px solid var(--ligne); }
@media (min-width: 768px) { .croyance { grid-template-columns: 160px 1fr; gap: 40px; } }
.croyance-num {
  font-size: clamp(44px, 6.5vw, 96px); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 222, 89, 0.55);
  transition: color 0.6s var(--courbe), -webkit-text-stroke-color 0.6s;
}
.croyance.visible .croyance-num { color: var(--jaune); -webkit-text-stroke-color: var(--jaune); }
.croyance h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 800; line-height: 1.26; letter-spacing: -0.025em; max-width: 820px; }
.croyance p { margin-top: 14px; font-size: clamp(17px, 1.4vw, 20px); color: var(--doux); max-width: 680px; }
.croyance mark {
  color: inherit; padding: 0 0.06em;
  background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 92% / 0% 0.26em;
  transition: background-size 0.9s 0.15s var(--courbe);
}
.croyance.visible mark, html:not(.js) .croyance mark { background-size: 100% 0.26em; }

/* ---------- Signer ---------- */
.signer {
  padding: var(--section) var(--marge);
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(31, 58, 139, 0.45), transparent 75%),
    var(--nuit);
}
.signer-tete { max-width: 980px; margin: 0 auto clamp(48px, 6vw, 72px); }
.signer-roles { font-size: clamp(16px, 1.5vw, 19px); color: var(--doux); max-width: 800px; }
.signer-roles span { color: var(--jaune); }
.signer-cri { margin: 18px 0 40px; font-size: clamp(28px, 4vw, 52px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; color: var(--jaune); }

.feuille {
  position: relative; max-width: 980px; margin: 0 auto;
  background: var(--papier); color: var(--encre);
  border-radius: 6px;
  padding: clamp(24px, 5vw, 64px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.feuille::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(12, 22, 41, 0.05) 39px 40px);
}
.feuille > * { position: relative; }
.feuille-entete {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 3px double rgba(12, 22, 41, 0.35);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(12, 22, 41, 0.65);
}

.phrase { font-size: clamp(22px, 3.1vw, 36px); font-weight: 500; line-height: 1.85; letter-spacing: -0.015em; }
.trou { display: inline-flex; vertical-align: baseline; }
.trou input, .trou select {
  font-family: var(--main); font-size: 1.3em; font-weight: 700; line-height: 1.1;
  color: var(--encre-bleue);
  background: transparent; border: 0; border-bottom: 2px dashed rgba(12, 22, 41, 0.4);
  border-radius: 0; padding: 0 3px 2px; margin: 0 0 0 2px;
  min-width: 3ch; max-width: 100%;
  field-sizing: content;
  transition: border-color 0.2s, background-color 0.2s;
}
.trou input::placeholder { color: rgba(12, 22, 41, 0.38); font-weight: 500; }
.trou input:focus, .trou select:focus { outline: none; border-bottom: 2px solid var(--encre-bleue); background: rgba(31, 58, 139, 0.07); }
.trou input:focus-visible, .trou select:focus-visible { box-shadow: 0 0 0 3px rgba(31, 58, 139, 0.25); border-radius: 4px 4px 0 0; }
.trou select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f3a8b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 12px 8px;
}
.trou select:invalid { color: rgba(12, 22, 41, 0.38); font-weight: 500; }
.trou select option { font-family: var(--police); font-size: 16px; color: var(--encre); }
[aria-invalid="true"] { border-bottom-color: var(--rouge) !important; }
.trou [aria-invalid="true"] { background: rgba(194, 53, 58, 0.07); }

.phrase-suite { margin-top: 18px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(12, 22, 41, 0.7); max-width: 720px; }

.feuille-bas { display: grid; gap: 32px; margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--papier-trait); }
@media (min-width: 860px) { .feuille-bas { grid-template-columns: 1fr 1fr; gap: 48px; } }

.pad-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.pad-tete em { display: block; font-style: normal; font-weight: 400; font-size: 13px; color: rgba(12, 22, 41, 0.6); }
.pad-zone {
  position: relative; aspect-ratio: 12 / 5;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px dashed rgba(12, 22, 41, 0.28); border-radius: 10px;
  overflow: hidden;
}
.pad-zone::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: 26%; height: 1.5px; background: rgba(12, 22, 41, 0.3); pointer-events: none; }
#pad { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
.pad-croix { position: absolute; left: 8%; bottom: 29%; font-size: 18px; color: rgba(12, 22, 41, 0.45); pointer-events: none; }
.pad-invite { position: absolute; inset: 0 0 26%; display: grid; place-items: center; font-family: var(--main); font-size: clamp(28px, 3.4vw, 40px); color: rgba(12, 22, 41, 0.18); pointer-events: none; transition: opacity 0.3s; }
.pad-zone.trace .pad-invite { opacity: 0; }

.feuille-champs { display: grid; gap: 16px; align-content: start; }
.champ label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.champ label span { display: block; font-weight: 400; font-size: 13px; color: rgba(12, 22, 41, 0.6); }
.champ input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: #fff; color: var(--encre);
  border: 1.5px solid rgba(12, 22, 41, 0.2); border-radius: 10px;
  font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.champ input:focus { outline: none; border-color: var(--encre-bleue); box-shadow: 0 0 0 4px rgba(31, 58, 139, 0.15); }
.champ input[aria-invalid="true"] { border-color: var(--rouge) !important; }

.case { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.case input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--encre); cursor: pointer; }
.case input[aria-invalid="true"] { outline: 2px solid var(--rouge); outline-offset: 2px; }

.erreurs { padding: 14px 16px; border-radius: 10px; background: rgba(194, 53, 58, 0.09); border: 1px solid rgba(194, 53, 58, 0.35); color: #8f1d22; font-size: 14px; }
.erreurs ul { margin: 6px 0 0 18px; }
.erreurs strong { display: block; }
.feuille-note { font-size: 13px; color: rgba(12, 22, 41, 0.62); }

.bouton-encre .bouton-texte::after { content: '✍'; margin-left: 10px; }
.bouton-encre.envoi .bouton-texte::after { content: ''; display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourne 0.7s linear infinite; vertical-align: -2px; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Merci */
.merci { text-align: center; padding-top: clamp(48px, 7vw, 80px); }
.merci:focus { outline: none; }
.merci h3 { font-size: clamp(32px, 5vw, 58px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.merci h3 span { font-family: var(--main); font-weight: 700; color: var(--encre-bleue); font-size: 1.15em; }
.merci p { margin: 16px auto 0; max-width: 560px; font-size: 18px; }
.merci-rang strong { font-size: 1.2em; }
.merci .partage { justify-content: center; margin: 28px 0; }
.merci .partage a, .merci .partage button { border-color: rgba(12, 22, 41, 0.2); color: var(--encre); }
.merci .partage a:hover, .merci .partage button:hover { border-color: var(--encre); color: var(--encre); background: rgba(12, 22, 41, 0.05); }
.merci .lien { font-size: 14px; color: rgba(12, 22, 41, 0.7); }
.tampon { margin-top: 8px;
  display: inline-block; margin-bottom: 36px; padding: 6px 22px;
  border: 4px double var(--encre-bleue); border-radius: 8px;
  font-size: 28px; font-weight: 900; letter-spacing: 0.25em; text-transform: uppercase; color: var(--encre-bleue);
  transform: rotate(-8deg); opacity: 0.85;
  animation: tampon 0.5s var(--courbe) both;
}
@keyframes tampon { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 0.85; } }

/* ---------- Partage ---------- */
.partage { display: flex; flex-wrap: wrap; gap: 10px; }
.partage a, .partage button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--ligne); border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--texte);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.partage a:hover, .partage button:hover { border-color: var(--jaune); color: var(--jaune); }
.partage svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Les signataires ---------- */
.signataires { max-width: var(--largeur); margin: 0 auto; padding: var(--section) var(--marge); }
.signataires-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.mur-chiffres { display: flex; gap: clamp(24px, 4vw, 56px); }
.mur-chiffres p { display: grid; }
.mur-chiffres strong { font-size: clamp(44px, 6vw, 80px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--jaune); font-variant-numeric: tabular-nums; }
.mur-chiffres span { font-size: 14px; color: var(--doux); margin-top: 6px; }

.mur-recherche { position: relative; margin: clamp(36px, 5vw, 56px) 0 20px; max-width: 520px; }
.mur-recherche svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--doux); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.mur-recherche input {
  width: 100%; min-height: 54px; padding: 12px 20px 12px 50px;
  border-radius: 999px; border: 1px solid var(--ligne); background: var(--navy);
  font-size: 16px; color: var(--texte);
  transition: border-color 0.2s;
}
.mur-recherche input::placeholder { color: var(--doux); }
.mur-recherche input:focus { outline: none; border-color: var(--jaune); }

.mur-etat { min-height: 1.6em; font-size: 15px; color: var(--doux); margin-bottom: 24px; }
.mur-etat a { color: var(--jaune); font-weight: 600; }

.mur { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.carte {
  display: flex; flex-direction: column;
  padding: 18px 20px 20px; border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-clair), var(--navy));
  border: 1px solid var(--ligne);
  animation: carte 0.6s var(--courbe) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes carte { from { opacity: 0; transform: translateY(16px); } }
.carte.nouvelle { border-color: var(--jaune); box-shadow: 0 0 0 4px rgba(255, 222, 89, 0.15), 0 20px 40px -20px rgba(255, 222, 89, 0.5); }
.carte-signature { height: 84px; display: grid; place-items: center start; margin-bottom: 14px; border-bottom: 1px solid var(--ligne); padding-bottom: 12px; }
.carte-signature svg { width: 100%; height: 100%; }
.carte-signature path { fill: none; stroke: var(--jaune); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.carte-manuscrit { font-family: var(--main); font-size: 36px; font-weight: 700; line-height: 1; color: var(--jaune); transform: rotate(-3deg); transform-origin: left center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.carte-nom { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.carte-meta { margin-top: 4px; font-size: 14px; color: #c8d0de; line-height: 1.4; overflow-wrap: anywhere; }
.carte-meta b { font-weight: 600; color: var(--texte); }
.carte time { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--doux); }

.mur-suite { display: flex; justify-content: center; margin-top: 40px; }
.mur-vide {
  grid-column: 1 / -1; text-align: center; padding: clamp(40px, 6vw, 72px) 24px;
  border: 1.5px dashed rgba(255, 222, 89, 0.3); border-radius: 18px;
}
.mur-vide p { font-family: var(--main); font-size: clamp(30px, 4vw, 44px); color: var(--jaune); line-height: 1.2; margin-bottom: 20px; }

/* ---------- Se former ---------- */
.former {
  padding: var(--section) var(--marge);
  background:
    radial-gradient(40% 30% at 90% 10%, rgba(255, 222, 89, 0.08), transparent 70%),
    linear-gradient(180deg, var(--nuit), var(--navy) 22%, var(--navy) 85%, var(--nuit));
}
.former > * { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.former-tete h2 { max-width: 980px; }
.former-chapeau { display: grid; gap: 16px; margin-top: 28px; max-width: 720px; font-size: clamp(18px, 1.6vw, 21px); color: #d6dce8; }

.formations { display: grid; gap: 18px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 760px) { .formations { grid-template-columns: 1fr 1fr; } }


.formation {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 34px); border-radius: var(--rayon);
  background: rgba(2, 4, 10, 0.45); border: 1px solid var(--ligne);
  transition: border-color 0.3s, transform 0.3s var(--courbe);
}
.formation:hover { border-color: rgba(255, 222, 89, 0.4); transform: translateY(-3px); }
.formation-vedette { background: linear-gradient(160deg, rgba(31, 58, 139, 0.55), rgba(2, 4, 10, 0.6)); border-color: rgba(255, 222, 89, 0.55); }
.formation-vedette h3 { font-size: clamp(30px, 3.4vw, 44px); }
.formation-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jaune); }
.formation h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.formation > p { color: #c8d0de; font-size: 16px; }
.formation-infos { list-style: none; display: grid; gap: 0; margin: 4px 0 8px; border-top: 1px solid var(--ligne); }
.formation-infos li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); font-size: 15px; font-weight: 500; }
.formation-infos span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--doux); padding-top: 2px; }
.formation .bouton { margin-top: auto; align-self: flex-start; }

.garanties { margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.garanties ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; font-size: 16px; }
.garanties li::before { content: '✓'; color: var(--jaune); font-weight: 900; margin-right: 10px; }
.garanties p { margin-top: 14px; font-size: 14px; color: var(--doux); }
.garanties a { color: var(--texte); }

.temoignage { margin-top: clamp(48px, 6vw, 72px); max-width: 860px; }
.temoignage blockquote { position: relative; font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; padding-left: clamp(44px, 6vw, 72px); }
.temoignage blockquote::before { content: '«'; position: absolute; left: 0; top: -0.25em; font-size: 2.6em; font-weight: 900; color: var(--jaune); line-height: 1; }
.temoignage figcaption { margin-top: 14px; padding-left: clamp(44px, 6vw, 72px); font-size: 14px; color: var(--doux); }

.accompagner { margin-top: clamp(72px, 10vw, 128px); }
.accompagner header h3 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 800px; }
.accompagner header p { margin-top: 20px; max-width: 680px; color: #d6dce8; font-size: clamp(17px, 1.5vw, 20px); }
.offres { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 900px) { .offres { grid-template-columns: repeat(3, 1fr); } }
.offre { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--rayon); border: 1px solid var(--ligne); background: rgba(2, 4, 10, 0.35); }
.offre h4 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; }
.offre p { font-size: 16px; color: #c8d0de; }
.offre .offre-prix { font-size: 14px; color: var(--texte); font-weight: 600; padding-top: 12px; border-top: 1px solid var(--ligne); margin-top: auto; }
.offre .lien-fleche { align-self: flex-start; }

.appel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 28px; padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 44px);
  border-radius: var(--rayon); background: var(--jaune); color: var(--nuit);
}
.appel p { font-size: clamp(19px, 2vw, 24px); }
.appel-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.appel .bouton-jaune { background: var(--nuit); color: var(--jaune); box-shadow: none; }
.appel .bouton-contour { border-color: rgba(2, 4, 10, 0.35); color: var(--nuit); }
.appel .bouton-contour:hover { border-color: var(--nuit); }

/* ---------- Faire circuler ---------- */
.circuler { max-width: var(--largeur); margin: 0 auto; padding: var(--section) var(--marge) calc(var(--section) * 0.6); display: grid; gap: 20px; }
@media (min-width: 900px) { .circuler { grid-template-columns: 1fr 1fr; } }
.circuler-bloc { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding: clamp(28px, 4vw, 48px); border-radius: var(--rayon); border: 1px solid var(--ligne); background: var(--navy); }
.circuler-bloc h2 { font-size: clamp(28px, 3.4vw, 42px); }
.circuler-bloc > p { color: var(--doux); }
.lettre { background: linear-gradient(160deg, var(--bleu), var(--navy)); border-color: transparent; }
.lettre-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.lettre-form input[type="email"] { flex: 1 1 220px; min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(2, 4, 10, 0.4); color: var(--texte); font-size: 16px; }
.lettre-form input[type="email"]::placeholder { color: var(--doux); }
.lettre-form input[type="email"]:focus { outline: none; border-color: var(--jaune); }

/* ---------- Questions ---------- */
.questions { max-width: 900px; margin: 0 auto; padding: calc(var(--section) * 0.6) var(--marge) var(--section); }
.faq { margin-top: 40px; border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ligne); color: var(--jaune); font-size: 22px; font-weight: 400; transition: transform 0.3s var(--courbe); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: #c8d0de; max-width: 720px; }
.faq details a { color: var(--jaune); }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); background: #01030a; }
.pied-grille { max-width: var(--largeur); margin: 0 auto; padding: 64px var(--marge) 40px; display: grid; gap: 40px; }
@media (min-width: 640px) { .pied-grille { grid-template-columns: repeat(2, 1fr); } .pied-marque { grid-column: 1 / -1; } }
@media (min-width: 900px) { .pied-grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .pied-grille { grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; } .pied-marque { grid-column: auto; } }
.pied-marque { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pied-marque p { font-size: 15px; color: var(--doux); max-width: 300px; }
.pied h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte); margin-bottom: 16px; }
.pied ul { list-style: none; display: grid; gap: 10px; }
.pied ul a, .pied-marque p a { font-size: 15px; color: var(--doux); text-decoration: none; transition: color 0.2s; }
.pied ul a:hover, .pied-marque p a:hover { color: var(--jaune); }
.pied-bas { max-width: var(--largeur); margin: 0 auto; padding: 24px var(--marge) 40px; border-top: 1px solid var(--ligne); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--doux); }
.pied-bas .lien { font-weight: 500; color: var(--doux); }

/* ---------- Fenêtre mentions ---------- */
.fenetre {
  width: min(720px, calc(100% - 32px)); max-height: 86vh;
  margin: auto; padding: 0; border: 1px solid var(--ligne); border-radius: var(--rayon);
  background: var(--navy); color: var(--texte);
}
.fenetre::backdrop { background: rgba(2, 4, 10, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fenetre-interieur { position: relative; padding: clamp(28px, 4vw, 44px); overflow-y: auto; max-height: 86vh; }
.fenetre h2 { font-size: clamp(24px, 3vw, 32px); padding-right: 44px; margin-bottom: 8px; }
.fenetre h3 { font-size: 15px; font-weight: 700; color: var(--jaune); margin-top: 24px; }
.fenetre p { font-size: 15px; color: #c8d0de; margin-top: 6px; }
.fenetre a { color: var(--texte); }
.fenetre-fermer { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ligne); background: transparent; font-size: 16px; }
.fenetre-fermer:hover { border-color: var(--jaune); color: var(--jaune); }

/* ---------- Apparitions ---------- */
.js [data-apparition] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--courbe), transform 0.8s var(--courbe); }
.js [data-apparition].visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-apparition] { opacity: 1; transform: none; }
  .souligne path { stroke-dashoffset: 0; }
  .bandeau-piste { animation: none; flex-wrap: nowrap; }
}

@media (max-width: 640px) {
  .ouverture { padding-top: 104px; }
  .ouverture-actions .bouton { flex: 1 1 100%; }
  .bandeau { bottom: 22px; padding: 11px 0; }
  .bandeau-item { font-size: 13px; padding: 0 18px; }
  .bandeau-item strong { font-size: 22px; }
  .bandeau-item::after { margin-left: 18px; }
  .phrase { line-height: 2; }
  .appel-actions .bouton { flex: 1 1 100%; }
}

/* =========================================================
   Couche « vivante » : pictos sketchnote, ruban, facilitation,
   parcours de formation, maisons Insuffle.
   ========================================================= */

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Barre de progression : un trait de feutre qui suit la lecture */
.progression { position: fixed; inset: 0 0 auto; height: 3px; z-index: 150; pointer-events: none; }
.progression span { display: block; height: 100%; background: var(--jaune); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 14px rgba(255, 222, 89, 0.6); }

/* Titre principal qui monte ligne par ligne */
h1 .ligne { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
h1 .ligne > span { display: inline-block; transform: translateY(110%); animation: monte 1.1s var(--courbe) forwards; }
h1 .ligne:nth-child(2) > span { animation-delay: 0.14s; }
@keyframes monte { to { transform: none; } }

/* Signatures réelles qui s'écrivent en fond de l'ouverture */
.ouverture-traces { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ouverture-traces path {
  fill: none; stroke: var(--jaune); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  animation: signe-fond 14s var(--delai, 0s) infinite;
}
@keyframes signe-fond {
  0% { stroke-dashoffset: 1; opacity: 0; }
  3% { opacity: 0.22; }
  28% { stroke-dashoffset: 0; opacity: 0.22; }
  70% { stroke-dashoffset: 0; opacity: 0.22; }
  85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Ruban : le nom du manifeste qui glisse au défilement */
.ruban { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; border-block: 1px solid var(--ligne); background: var(--nuit); }
.ruban-ligne { white-space: nowrap; font-size: clamp(54px, 10vw, 156px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; will-change: transform; transform: translate3d(var(--x, 0px), 0, 0); }
.ruban-ligne span { display: inline-block; }
.ruban-contour { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 222, 89, 0.6); }
.ruban-plein { color: var(--jaune); }

/* Croyances : numéro, texte, picto */
.croyance { grid-template-columns: 1fr 108px; grid-template-areas: "num picto" "texte texte"; align-items: end; row-gap: 18px; }
.croyance-num { grid-area: num; }
.croyance-texte { grid-area: texte; }
.croyance .picto { grid-area: picto; width: 108px; justify-self: end; }
@media (min-width: 768px) {
  .croyance { grid-template-columns: 140px 1fr 170px; grid-template-areas: "num texte picto"; align-items: center; column-gap: 40px; }
  .croyance .picto { width: 170px; }
}
@media (min-width: 1100px) { .croyance { grid-template-columns: 170px 1fr 200px; } .croyance .picto { width: 200px; } }

/* Pictos sketchnote : trait de feutre clair, ombre jaune, tracé animé */
.picto { display: block; height: auto; overflow: visible; }
.picto .traits { fill: none; stroke: #f3ead2; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: url(#feutre); }
.picto .ombres { fill: var(--jaune); opacity: 0.92; filter: url(#feutre); }
.js .picto .traits > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .picto .ombres { opacity: 0; transform: translateX(-5px); transition: opacity 0.8s 1.1s, transform 0.8s 1.1s var(--courbe); }
.visible .picto .traits > * { animation: dessin 1.5s var(--courbe) forwards; }
.visible .picto .traits > :nth-child(2) { animation-delay: 0.12s; }
.visible .picto .traits > :nth-child(3) { animation-delay: 0.24s; }
.visible .picto .traits > :nth-child(4) { animation-delay: 0.36s; }
.visible .picto .traits > :nth-child(5) { animation-delay: 0.48s; }
.visible .picto .traits > :nth-child(6) { animation-delay: 0.6s; }
.visible .picto .traits > :nth-child(7) { animation-delay: 0.72s; }
.visible .picto .traits > :nth-child(8) { animation-delay: 0.84s; }
.visible .picto .traits > :nth-child(n+9) { animation-delay: 0.96s; }
.visible .picto .ombres { opacity: 0.92; transform: none; }
@keyframes dessin {
  0% { stroke-dasharray: 1; stroke-dashoffset: 1; }
  99% { stroke-dasharray: 1; stroke-dashoffset: 0; }
  100% { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* Pont entre les croyances et la suite */
.croyances-pont { max-width: var(--largeur); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--marge); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.croyances-pont p { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; max-width: 680px; }
.croyances-pont-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

.merci-suite a { color: var(--encre-bleue); font-weight: 700; }

/* ---------- La facilitation ---------- */
.facilitation { max-width: var(--largeur); margin: 0 auto; padding: var(--section) var(--marge); }
.facilitation-tete h2 { max-width: 1000px; }
.facilitation-chapeau { display: grid; gap: 16px; margin-top: 28px; max-width: 720px; font-size: clamp(18px, 1.6vw, 21px); color: #d6dce8; }
.bascules { list-style: none; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ligne); }
.bascule { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; row-gap: 6px; padding: clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid var(--ligne); }
.bascule-num { grid-row: 1 / span 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--jaune); color: var(--nuit); font-size: 15px; font-weight: 900; }
@media (min-width: 900px) {
  .bascule { grid-template-columns: 56px 1fr 1.15fr 1.2fr; align-items: center; column-gap: 32px; }
  .bascule-num { grid-row: auto; }
}
.bascule-avant { font-size: clamp(17px, 1.7vw, 21px); color: var(--doux); }
.bascule-avant s { text-decoration: none; background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 56% / 0% 3px; transition: background-size 0.7s 0.25s var(--courbe); }
.bascule.visible .bascule-avant s, html:not(.js) .bascule-avant s { background-size: 100% 3px; }
.bascule-apres { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.bascule-apres::before { content: '→ '; color: var(--jaune); }
.js .bascule-apres { opacity: 0; transform: translateX(-14px); transition: opacity 0.6s 0.8s var(--courbe), transform 0.6s 0.8s var(--courbe); }
.js .bascule.visible .bascule-apres { opacity: 1; transform: none; }
.bascule-detail { font-size: 16px; color: #c8d0de; }

.conditions { margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 44px); border-radius: var(--rayon); background: var(--navy); border: 1px solid var(--ligne); }
.conditions h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.conditions ul { list-style: none; display: grid; gap: 22px; margin-top: 26px; }
@media (min-width: 900px) { .conditions ul { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.conditions li { padding-top: 16px; border-top: 2px solid var(--jaune); color: #c8d0de; font-size: 16px; }
.conditions strong { display: block; margin-bottom: 6px; font-size: 19px; color: var(--texte); }

.braise { margin-top: clamp(64px, 9vw, 112px); display: grid; justify-items: center; gap: 10px; text-align: center; }
.braise .picto { width: min(260px, 72vw); }
.braise blockquote p { font-family: var(--main); font-size: clamp(42px, 6.4vw, 80px); font-weight: 700; line-height: 1.02; color: var(--jaune); }
.braise figcaption { font-size: 14px; color: var(--doux); }

/* ---------- Par où commencer ---------- */
.parcours { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 4vw, 48px); border-radius: var(--rayon); background: rgba(2, 4, 10, 0.55); border: 1px solid rgba(255, 222, 89, 0.28); }
.parcours h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.parcours-onglets { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.parcours-onglets button {
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--ligne); background: transparent;
  font-size: 15px; font-weight: 600; color: var(--doux);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.parcours-onglets button:hover { color: var(--texte); border-color: rgba(255, 255, 255, 0.3); }
.parcours-onglets button[aria-selected="true"] { background: var(--jaune); border-color: var(--jaune); color: var(--nuit); }
.parcours-panneau { display: grid; gap: 16px; max-width: 780px; }
.parcours-panneau[hidden] { display: none; }
.parcours-panneau + .parcours-panneau { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--ligne); }
.js .parcours-panneau { margin: 0; padding: 0; border: 0; animation: panneau 0.5s var(--courbe); }
.parcours-panneau:focus-visible { outline-offset: 8px; }
.parcours-constat { font-family: var(--main); font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.12; color: var(--jaune); }
.parcours-panneau p:not(.parcours-constat) { color: #d6dce8; }
.parcours-panneau .bouton { justify-self: start; white-space: normal; text-align: center; }
@keyframes panneau { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Formations : pictos, liens ---------- */
.formation .picto { width: 132px; margin-bottom: 4px; }
.formation-vedette .picto { width: 180px; }
.formation-liens { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.formation-liens .bouton { margin-top: 0; }
.lien-discret { font-size: 13px; color: var(--doux); text-underline-offset: 3px; }
.lien-discret:hover { color: var(--jaune); }

/* Lueur qui suit la souris sur les cartes */
.formation, .offre, .maison { position: relative; overflow: hidden; }
.formation::after, .offre::after, .maison::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 222, 89, 0.1), transparent 45%);
}
.formation:hover::after, .offre:hover::after, .maison:hover::after { opacity: 1; }
.formation > *, .offre > *, .maison > * { position: relative; z-index: 1; }

/* ---------- Les maisons : Insuffle Académie et Insuffle ---------- */
.maisons { display: grid; gap: 18px; margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .maisons { grid-template-columns: 1fr 1fr; } }
.maison { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(28px, 4vw, 48px); border-radius: var(--rayon); border: 1px solid var(--ligne); }
.maison-academie { background: linear-gradient(150deg, rgba(255, 222, 89, 0.15), rgba(2, 4, 10, 0.4) 62%); border-color: rgba(255, 222, 89, 0.45); }
.maison-cabinet { background: linear-gradient(150deg, rgba(31, 58, 139, 0.55), rgba(2, 4, 10, 0.4) 62%); }
.maison-marque { font-size: clamp(36px, 4.4vw, 56px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.maison-marque span { color: var(--jaune); }
.maison-role { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jaune); }
.maison p:not([class]) { font-size: 16px; color: #d6dce8; }
.maison-mentions { font-size: 13px; color: var(--doux); }
.maison .bouton { margin-top: auto; }

.references { margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.references p { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--doux); }
.references ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 18px; }
.references li { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -0.01em; color: rgba(248, 250, 252, 0.5); transition: color 0.3s; }
.references li:hover { color: var(--texte); }

.bouton-nuit { background: var(--nuit); color: var(--jaune); }
.bouton-nuit:hover { box-shadow: 0 14px 30px -14px rgba(2, 4, 10, 0.8); }
.bouton-contour-nuit { border-color: rgba(2, 4, 10, 0.35); color: var(--nuit); }
.bouton-contour-nuit:hover { border-color: var(--nuit); }

/* Signature géante en pied de page */
.pied-signature { padding: clamp(40px, 6vw, 72px) var(--marge) 0; text-align: center; white-space: nowrap; overflow: hidden; font-family: var(--main); font-size: clamp(44px, 8.6vw, 148px); font-weight: 700; line-height: 0.95; color: rgba(255, 222, 89, 0.13); user-select: none; }

/* Signatures du mur : elles s'écrivent quand la carte apparaît */
.js .carte-signature path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.carte.visible .carte-signature path { animation: dessin 1.8s 0.15s var(--courbe) forwards; }

@media (prefers-reduced-motion: reduce) {
  h1 .ligne > span { transform: none; }
  .ouverture-traces { display: none; }
  .js .picto .ombres, .js .bascule-apres { opacity: 1; transform: none; }
  .ruban-ligne { transform: none; }
}

/* Page 404 */
.introuvable { min-height: 100svh; max-width: 900px; margin: 0 auto; padding: 120px var(--marge); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.introuvable h1 { font-size: clamp(42px, 8vw, 96px); margin: 8px 0 0; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; word-spacing: 0.04em; }
.introuvable .bouton { margin-top: 32px; }

/* Le flou de l'en-tête retiendrait le menu plein écran : on le coupe quand le menu est ouvert. */
.entete.menu-ouvert { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }

/* =========================================================
   Base de connaissances : ce que l'accueil partage avec les fiches.
   ========================================================= */

/* Lien sous chaque croyance, vers la page qui la développe */
.croyance-lien { margin-top: 16px; font-size: 15px; }

/* Bloc d'entrée vers la base de connaissances */
.savoir { max-width: var(--largeur); margin: 0 auto; padding: calc(var(--section) * 0.6) var(--marge) 0; }
.savoir .cartes { margin-top: 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Cartes de liens */
.cartes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cartes-deux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.carte-lien {
  position: relative; display: grid; gap: 4px; align-content: start;
  padding: 18px 46px 18px 20px; border: 1px solid var(--ligne); border-radius: 14px;
  background: rgba(12, 22, 41, 0.6); text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, opacity 0.8s var(--courbe), transform 0.8s var(--courbe);
}
.carte-lien::after { content: '→'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--jaune); transition: transform 0.2s var(--courbe); }
.carte-lien:hover { border-color: rgba(255, 222, 89, 0.55); background: rgba(19, 35, 74, 0.7); }
.carte-lien:hover::after { transform: translate(4px, -50%); }
.carte-lien strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.carte-lien span { font-size: 13.5px; line-height: 1.4; color: var(--doux); }
