/* Parole Claire — page d'accueil.
   Direction : modernité éditoriale, papier clair, bleu de France et rouge de drapeau.
   Une seule police de titre (Bricolage Grotesque) et une police de lecture choisie
   pour la basse vision (Atkinson Hyperlegible Next). Pas d'effet décoratif gratuit :
   le rouge ne sert qu'à désigner ce qui compte. */

:root {
  --papier: #F4F6FB;
  --papier-clair: #FFFFFF;
  --encre: #071B44;
  --encre-2: #0C2A66;
  --encre-3: #133B82;
  --bleu: #0B3D91;
  --bleu-france: #002395;
  --rouge: #C8102E;
  --rouge-fonce: #8E0B1D;
  --rouge-vif: #E63946;
  --rouge-clair: #FF97A6;
  --ardoise: #4A5568;
  --ardoise-clair: #C7D2E8;
  --trait: #DCE3F0;
  --trait-fort: #B8C5DB;
  --trait-encre: #27447D;
  --blanc: #FFFFFF;
  --ok: #1E7F4F;

  --titre: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --r: 14px;
  --r-grand: 22px;
  --conteneur: 1240px;
  --marge: clamp(20px, 4.5vw, 44px);
  --section: clamp(64px, 8.5vw, 112px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 18px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
section[id] { scroll-margin-top: 96px; }
::selection { background: var(--bleu); color: var(--blanc); }

:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
  border-radius: 4px;
}
.bande-code :focus-visible,
.bloc--sombre :focus-visible,
.humain :focus-visible,
.pied :focus-visible { outline-color: var(--blanc); }
.btn--rouge:focus-visible,
.btn--bleu:focus-visible { outline-color: var(--bleu); }
.bande-code .btn--rouge:focus-visible { outline-color: var(--blanc); }

.conteneur {
  width: min(var(--conteneur), 100% - (2 * var(--marge)));
  margin-inline: auto;
}

/* Lien d'évitement */
.saut {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--encre);
  color: var(--blanc);
  font-weight: 700;
  text-decoration: none;
}
.saut:focus { top: 12px; }

.logo-signe span:first-child { background: var(--bleu); }
.logo-signe span:last-child { background: var(--rouge); }
.pied .logo-signe span:first-child { background: var(--blanc); }
.pied .logo-signe span:last-child { background: var(--rouge-clair); }

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */

.entete-site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 232, .88);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.entete-site.est-colle {
  border-bottom-color: var(--trait);
  background: rgba(244, 241, 232, .96);
}
.entete-site__barre {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  min-height: 78px;
}
.entete-site .logo { font-size: 20px; flex: none; }

.nav-principal { margin-left: auto; }
.nav-principal ul {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-principal li { flex: 0 0 auto; }
.nav-principal a {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  color: var(--ardoise);
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease;
}
.nav-principal a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  background: var(--rouge);
  transition: right .18s ease;
}
.nav-principal a:hover { color: var(--encre); }
.nav-principal a:hover::after { right: 0; }

.entete-site__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.lien-code {
  color: var(--ardoise);
  font-size: 15px;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.lien-code:hover { color: var(--encre); }

.menu-bouton {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1.5px solid var(--trait-fort);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-bouton span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--encre);
  transition: transform .2s ease;
}
.menu-bouton[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu-mobile {
  border-top: 1px solid var(--trait);
  padding: 8px 0 24px;
}
.menu-mobile ul { margin: 0; padding: 0; list-style: none; }
.menu-mobile a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid var(--trait);
  font: 700 18px/1.3 var(--titre);
  letter-spacing: -.01em;
  text-decoration: none;
}
.menu-mobile .btn { width: 100%; margin-top: 20px; }

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 16.5px/1 var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .fleche { transition: transform .18s ease; }
.btn:hover .fleche { transform: translateX(3px); }

.btn--rouge { background: var(--rouge); color: var(--blanc); }
.btn--rouge:hover { background: var(--rouge-fonce); }
.btn--bleu { background: var(--bleu); color: var(--blanc); }
.btn--bleu:hover { background: var(--bleu-france); }
.btn--encre { background: var(--encre); color: var(--blanc); }
.btn--encre:hover { background: var(--encre-2); }
.btn--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--contour:hover { background: var(--encre); color: var(--blanc); }
.btn--petit { min-height: 44px; padding: 0 18px; font-size: 15.5px; }
.btn--large { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* ------------------------------------------------------------------ */
/* Accroche                                                            */
/* ------------------------------------------------------------------ */

.hero { padding: clamp(38px, 5.5vw, 64px) 0 0; }
.hero__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(36px, 5.5vw, 76px);
  align-items: center;
  padding-bottom: clamp(44px, 6vw, 68px);
}
.hero__texte { min-width: 0; }

.surtitre {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ardoise);
  font: 700 12px/1.3 var(--texte);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.surtitre::before {
  content: "";
  flex: none;
  width: 26px;
  height: 3px;
  background: var(--rouge);
}
.surtitre--clair { color: var(--ardoise-clair); }

.bande-code .surtitre::before,
.bloc--sombre .surtitre::before,
.humain .surtitre::before { background: var(--rouge-clair); }

.hero h1 {
  margin: 20px 0 0;
  font: 800 clamp(40px, 4.45vw, 61px)/0.96 var(--titre);
  letter-spacing: -.05em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.hero h1 .titre-ligne { display: block; }
.surligne {
  background: var(--rouge);
  color: var(--blanc);
  padding: .02em .1em .05em;
  margin-left: -.1em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__chapo {
  max-width: 35em;
  margin: 24px 0 0;
  color: var(--ardoise);
  font-size: clamp(18px, 1.35vw, 20px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.hero__preuve {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 24px 0 0;
  color: var(--ardoise);
  font-size: 15px;
}
.hero__preuve::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bleu);
  box-shadow: 0 0 0 4px rgba(11, 61, 145, .14);
}

/* Le visuel : un écran posé sur un décalage rouge, un téléphone qui le dépasse. */
.hero__visuel { position: relative; margin: 0; min-width: 0; }
.hero__ecran { position: relative; }
.hero__ecran::before {
  content: "";
  position: absolute;
  inset: 18px -14px -16px 18px;
  border-radius: var(--r-grand);
  background: var(--rouge);
}
.hero__visuel figcaption {
  position: relative;
  margin-top: 28px;
  color: var(--ardoise);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Écran de salle */
.ecran {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-grand);
  background:
    radial-gradient(120% 80% at 75% 115%, rgba(200, 16, 46, .16), transparent 58%),
    linear-gradient(158deg, #12306B, var(--encre) 58%);
  color: var(--blanc);
  box-shadow:
    0 34px 60px -28px rgba(15, 27, 54, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10.4;
}
.ecran__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  color: #AEB8D0;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.ecran__lieu { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran__lieu span { color: #7C89AB; }
.ecran__direct {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: var(--blanc);
  font-weight: 700;
}
.ecran__direct::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rouge-vif);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, .22);
}
.ecran__direct--pause { color: #AEB8D0; }
.ecran__direct--pause::before { background: #8D9AB9; box-shadow: none; animation: none; }
.ecran__scene {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 0;
  padding: 0 20px 18px;
}
.ecran__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  min-height: 54%;
  margin-top: auto;
  padding-top: 18px;
  padding-right: clamp(132px, 11vw, 158px);
}
.sous-titre {
  margin: 0;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(4, 9, 22, .55);
  color: var(--blanc);
  font: 700 clamp(15px, 1.55vw, 21px)/1.32 var(--texte);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: opacity .35s ease, font-size .35s ease;
}
.sous-titre--passe { opacity: .4; font-size: clamp(12.5px, 1.2vw, 16px); }
.curseur {
  display: inline-block;
  width: .48ch;
  height: 1em;
  margin-left: 2px;
  background: var(--rouge-vif);
  vertical-align: -.1em;
  animation: clignote 1s steps(1) infinite;
}
@keyframes clignote { 50% { opacity: 0; } }

.ecran__pied {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.onde { display: flex; align-items: flex-end; gap: 3px; height: 22px; opacity: .5; }
.onde span {
  width: 3px;
  border-radius: 2px;
  background: #AEB8D0;
  animation: onde 1.1s ease-in-out infinite;
}
@keyframes onde { 0%, 100% { height: 18%; } 50% { height: 100%; } }

.ecran__qr {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: #C8D0E4;
  font-size: 10.5px;
  line-height: 1.25;
  max-width: 152px;
}
.ecran__qr img, .ecran__qr svg { width: 38px; height: 38px; display: block; background: #fff; border-radius: 3px; padding: 3px; }

.telephone {
  position: absolute;
  right: 16px;
  bottom: -18px;
  width: clamp(118px, 10vw, 142px);
  aspect-ratio: 9 / 18.5;
  padding: 12px 10px;
  border: 6px solid #14203A;
  border-radius: 26px;
  background: var(--encre);
  color: var(--blanc);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 40px -20px rgba(15, 27, 54, .55);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10.5px;
}
.telephone__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #8D9AB9;
  font-size: 7.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.telephone__direct { color: var(--rouge-clair); font-weight: 700; }
.telephone__direct::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--rouge-clair);
  vertical-align: 1px;
}
.telephone__passe { margin: auto 0 0; color: #8D9AB9; font-size: 9.5px; line-height: 1.35; }
.telephone__actuel {
  margin: 0;
  padding: 7px 8px;
  border-left: 3px solid var(--rouge-vif);
  background: rgba(255, 255, 255, .06);
  color: var(--blanc);
  font-weight: 700;
  line-height: 1.35;
}
.telephone__reglage {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  color: #C8D0E4;
  font-weight: 700;
  font-size: 10px;
}
.telephone__reglage span {
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #33456F;
  border-radius: 5px;
}

/* Les chiffres, sous l'accroche */
.chiffres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 26px 0 40px;
  border-top: 1px solid var(--trait-fort);
}
.chiffres > div { padding: 0 clamp(18px, 2.5vw, 34px); }
.chiffres > div:first-child { padding-left: 0; }
.chiffres > div + div { border-left: 1px solid var(--trait); }
.chiffres dt {
  color: var(--encre);
  word-spacing: .08em;
  font: 800 clamp(28px, 3.2vw, 42px)/1 var(--titre);
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 72;
}
.chiffres dd {
  max-width: 26ch;
  margin: 9px 0 0;
  color: var(--ardoise);
  font-size: 15px;
  line-height: 1.45;
}

/* ------------------------------------------------------------------ */
/* Code de séance                                                      */
/* ------------------------------------------------------------------ */

.bande-code {
  position: relative;
  overflow: hidden;
  background: var(--encre);
  color: var(--blanc);
}
.bande-code::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 16, 46, .16), transparent);
  pointer-events: none;
}
.bande-code__grille {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 56px;
  align-items: center;
  padding: clamp(42px, 5.5vw, 60px) 0;
}
.bande-code h2 {
  margin: 10px 0 8px;
  text-wrap: balance;
  color: var(--blanc);
  font: 800 clamp(25px, 2.8vw, 36px)/1.1 var(--titre);
  letter-spacing: -.035em;
}
.bande-code p { max-width: 46ch; margin: 0; color: var(--ardoise-clair); font-size: 16px; }
.bande-code form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.bande-code label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bande-code input {
  width: 9ch;
  min-height: 58px;
  padding: 0 12px;
  border: 2px solid #2E4C8C;
  border-radius: var(--r);
  background: #0B2A66;
  color: var(--blanc);
  font: 700 25px/1 var(--texte);
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}
.bande-code input::placeholder { color: #9AA9C9; letter-spacing: .1em; }
.bande-code input:focus { border-color: var(--rouge-clair); outline: none; box-shadow: 0 0 0 4px rgba(255, 151, 166, .22); }
.bande-code .btn--rouge { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.bande-code .code__erreur { flex: 1 0 100%; margin: 2px 0 0; color: #FFB4AB; font-size: 14px; }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.bloc { padding: var(--section) 0; }
.bloc--clair { background: var(--papier-clair); }
.bloc--sombre { background: var(--encre); color: var(--blanc); }
.bloc__entete {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.bloc__titre h2 {
  max-width: 19ch;
  margin: 0;
  font: 800 clamp(31px, 3.9vw, 50px)/1.02 var(--titre);
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.bloc__titre .chapo {
  max-width: 45em;
  margin: 18px 0 0;
  color: var(--ardoise);
  font-size: 19px;
}
.bloc--sombre .bloc__titre .chapo { color: var(--ardoise-clair); }
.bloc--sombre h2 { color: var(--blanc); }

.section-num { color: var(--rouge-fonce); }
.bloc--sombre .section-num { color: var(--rouge-clair); }

/* ------------------------------------------------------------------ */
/* Décret                                                              */
/* ------------------------------------------------------------------ */

.decret__grille {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.echeance { padding-left: clamp(16px, 2.4vw, 26px); border-left: 4px solid var(--rouge); }
.echeance__label {
  margin: 0;
  color: var(--ardoise);
  font: 700 11.5px/1.3 var(--texte);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.echeance__jour {
  margin: 12px 0 0;
  font: 800 clamp(46px, 5.6vw, 74px)/0.9 var(--titre);
  letter-spacing: -.05em;
  font-variation-settings: "opsz" 96;
}
.echeance__jour sup { font-size: .38em; vertical-align: .95em; line-height: 0; letter-spacing: 0; }
.echeance__annee {
  margin: 0;
  font: 800 clamp(64px, 8.4vw, 116px)/0.78 var(--titre);
  letter-spacing: -.065em;
  font-variation-settings: "opsz" 96;
}
.echeance__note {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--trait);
  color: var(--ardoise);
  font-size: 14px;
  line-height: 1.5;
}
.echeance__note b { color: var(--encre); }

.decret__gauche { min-width: 0; }
.echeance__visuel { margin: 34px 0 0; }
.echeance__visuel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--trait);
  border-radius: var(--r);
  box-shadow: 0 22px 40px -30px rgba(15, 27, 54, .35);
}

.decret__texte > p { margin: 0 0 16px; }
.decret__texte > p:first-child { font-size: 19px; }
.liste-legal { margin: 24px 0; padding: 0; list-style: none; }
.liste-legal li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--trait);
}
.liste-legal li:last-child { border-bottom: 1px solid var(--trait); }
.liste-legal li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 21px;
  width: 9px;
  height: 9px;
  background: var(--rouge);
  border: 1.5px solid var(--encre);
}
.note {
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--trait);
  border-left: 4px solid var(--rouge);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--papier);
  color: var(--ardoise);
  font-size: 16px;
}
.note b { color: var(--encre); }
.source { margin: 16px 0 0; color: var(--ardoise); font-size: 14px; line-height: 1.5; }
.source a { color: var(--bleu); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* Fonctionnement                                                      */
/* ------------------------------------------------------------------ */

.etapes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--encre);
}
.etapes li { padding: 28px clamp(22px, 3vw, 34px) 0 0; }
.etapes li + li { padding-left: clamp(22px, 3vw, 34px); border-left: 1px solid var(--trait); }
.etapes__num {
  display: inline-block;
  padding: 4px 7px;
  background: var(--rouge);
  color: var(--blanc);
  font: 700 12px/1 var(--texte);
  letter-spacing: .12em;
}
.etapes h3 {
  margin: 18px 0 10px;
  font: 700 clamp(20px, 1.9vw, 24px)/1.24 var(--titre);
  letter-spacing: -.02em;
}
.etapes p { margin: 0; color: var(--ardoise); font-size: 16.5px; }

.apres {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--trait-fort);
}
.apres p { margin: 0; color: var(--ardoise); font-size: 16px; }
.apres p b { color: var(--encre); }
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--rouge);
  padding-bottom: 2px;
}
.lien-fleche:hover { border-bottom-color: var(--encre); }
.lien-fleche .fleche { transition: transform .18s ease; }
.lien-fleche:hover .fleche { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Produit : trois écrans                                              */
/* ------------------------------------------------------------------ */

.produit__scene {
  display: grid;
  grid-template-columns: 1.5fr .95fr .68fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}
.appareil { margin: 0; min-width: 0; }
.appareil__vitrine { display: flex; align-items: flex-end; min-height: 350px; }
.appareil--ecran .ecran { width: 100%; aspect-ratio: 16 / 9.9; }
.appareil figcaption {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--trait);
}
.appareil__role {
  display: block;
  color: var(--rouge-fonce);
  font: 700 11.5px/1.3 var(--texte);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.appareil h3 {
  margin: 8px 0 7px;
  font: 700 clamp(19px, 1.7vw, 22px)/1.2 var(--titre);
  letter-spacing: -.02em;
}
.appareil figcaption p { margin: 0; color: var(--ardoise); font-size: 15.5px; line-height: 1.5; }

/* Écran au repos */
.ecran--repos { aspect-ratio: 16 / 9.6; }
.ecran__repos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  padding: 22px clamp(18px, 3vw, 34px);
}
.ecran__repos img, .ecran__repos svg {
  width: clamp(84px, 12vw, 126px);
  height: auto;
  aspect-ratio: 1;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
}
.ecran__repos b {
  display: block;
  color: var(--blanc);
  font: 700 clamp(13px, 1.25vw, 17px)/1.3 var(--texte);
}
.ecran__repos span { display: block; margin-top: 6px; color: #AEB8D0; font-size: clamp(10px, 1vw, 12px); }
.ecran__repos code { color: var(--blanc); font: 700 1.15em/1 var(--texte); letter-spacing: .16em; }

/* Tablette de supervision */
.tablette {
  border: 7px solid var(--encre);
  border-radius: 20px;
  background: #F7F9FD;
  color: var(--encre);
  box-shadow: 0 24px 44px -26px rgba(15, 27, 54, .5);
  overflow: hidden;
  font-size: 8.5px;
  width: min(100%, 246px);
  height: 320px;
  display: flex;
  flex-direction: column;
}
.tablette__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #DCE3F0;
  background: #fff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #67708A;
}
.tablette__barre b { color: var(--encre); font-size: 8px; }
.tablette__direct { color: var(--rouge-fonce); }
.tablette__direct::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--rouge);
  vertical-align: 1px;
}
.tablette__corps { display: flex; flex-direction: column; gap: 7px; padding: 10px; flex: 1; }
.tablette__onde { display: flex; align-items: center; gap: 2px; height: 18px; }
.tablette__onde span { width: 2px; border-radius: 1px; background: #C9CFDD; }
.tablette__onde span:nth-child(3n) { background: var(--encre); }
.tablette__ligne {
  margin: 0;
  padding: 5px 7px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #E1E7F2;
  line-height: 1.35;
  color: #3E4860;
}
.tablette__ligne b { color: var(--encre); }
.tablette__ligne--faible { opacity: .78; }
.tablette__champ {
  margin-top: auto;
  padding: 5px 7px;
  border: 1px solid #C9D3E5;
  border-radius: 3px;
  background: #fff;
  color: #626B7E;
}
.tablette__actions { display: flex; gap: 5px; }
.tablette__actions span {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--encre);
  color: #fff;
  font-weight: 700;
  font-size: 7px;
}
.tablette__actions span + span { background: var(--rouge); color: var(--blanc); }

/* Téléphone du produit */
.telephone--grand {
  position: static;
  width: 100%;
  max-width: 168px;
  margin-inline: auto;
  aspect-ratio: 9 / 17.5;
  padding: 13px 11px;
  border-width: 6px;
  border-radius: 24px;
  font-size: 10px;
}
.telephone--grand .telephone__barre { font-size: 8px; }
.telephone--grand .telephone__actuel { font-size: 10.5px; }
.telephone--grand .telephone__passe { font-size: 9px; }

/* ------------------------------------------------------------------ */
/* Dans la salle : les visages                                         */
/* ------------------------------------------------------------------ */

.humain {
  position: relative;
  overflow: hidden;
  padding: var(--section) 0 clamp(82px, 9vw, 120px);
  background: var(--encre);
  color: var(--blanc);
}
.humain::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 16, 46, .12), transparent);
  pointer-events: none;
}
.humain__grille {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
}
.humain__visuel { position: relative; min-width: 0; margin: 0; }
.humain__composition { position: relative; }
.humain__grand {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-grand);
  background: var(--encre-2);
  box-shadow: 14px 14px 0 var(--rouge-vif);
}
.humain__grand img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.humain__petit {
  position: absolute;
  right: -18px;
  bottom: -36px;
  width: 38%;
  max-width: 292px;
  overflow: hidden;
  border: 6px solid var(--encre);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 28px 50px -22px rgba(0, 0, 0, .65);
}
.humain__petit img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.humain__visuel { padding-bottom: 56px; } /* place de la petite photo qui déborde */
.humain__texte h2 {
  max-width: 12ch;
  margin: 18px 0 0;
  color: var(--blanc);
  font: 800 clamp(32px, 3.9vw, 50px)/1.02 var(--titre);
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.humain__chapo {
  max-width: 36em;
  margin: 20px 0 0;
  color: var(--ardoise-clair);
  font-size: 19px;
}
.humain__roles { margin: 30px 0 0; padding: 0; list-style: none; }
.humain__roles li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-top: 1px solid var(--trait-encre);
  color: var(--ardoise-clair);
  font-size: 15.5px;
  line-height: 1.5;
}
.humain__roles li:last-child { border-bottom: 1px solid var(--trait-encre); }
.humain__roles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--rouge-clair);
}
.humain__roles b { color: var(--blanc); }
.lien-fleche--clair { color: var(--blanc); border-bottom-color: var(--rouge-clair); margin-top: 26px; }
.lien-fleche--clair:hover { border-bottom-color: var(--blanc); }

/* ------------------------------------------------------------------ */
/* Pour les équipes                                                    */
/* ------------------------------------------------------------------ */

.equipes__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.atouts { margin: 0; padding: 0; list-style: none; }
.atouts li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--trait);
}
.atouts li:last-child { border-bottom: 1px solid var(--trait); }
.atouts__num {
  color: var(--rouge-fonce);
  font: 800 15px/1.4 var(--titre);
  letter-spacing: -.02em;
}
.atouts h3 { margin: 0 0 6px; font: 700 20px/1.25 var(--titre); letter-spacing: -.02em; }
.atouts p { margin: 0; color: var(--ardoise); font-size: 16px; }

/* Compte rendu factice, mais fidèle au produit */
.cr {
  position: relative;
  margin: 0;
  padding: 30px clamp(22px, 3vw, 34px) 26px;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 4px;
  box-shadow: 0 26px 50px -34px rgba(15, 27, 54, .42);
  font-size: 12.5px;
  line-height: 1.5;
  color: #3E4860;
}
.cr::before {
  content: "Exemple";
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 9px;
  background: var(--rouge);
  color: var(--blanc);
  font: 700 10px/1.4 var(--texte);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cr__entete { padding-bottom: 14px; border-bottom: 2px solid var(--encre); }
.cr__entete span {
  display: block;
  color: var(--ardoise);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cr__entete b {
  display: block;
  margin-top: 5px;
  color: var(--encre);
  font: 800 17px/1.2 var(--titre);
  letter-spacing: -.02em;
}
.cr__meta { margin: 10px 0 0; color: var(--ardoise); font-size: 10.5px; }
.cr__resume { margin: 10px 0 0; color: #3E4860; font-size: 11px; line-height: 1.5; }
.cr h4 {
  margin: 16px 0 4px;
  color: var(--encre);
  font: 700 11px/1.4 var(--texte);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cr p { margin: 0; }
.cr ul { margin: 4px 0 0; padding-left: 14px; }
.cr li { margin-bottom: 2px; }
.cr__votes { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 10.5px; }
.cr__votes td { padding: 3px 0; border-top: 1px solid #E3E9F3; }
.cr__votes td:last-child { text-align: right; font-weight: 700; color: var(--encre); }
.cr__pied {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #E3E9F3;
  color: #626B7E;
  font-size: 9px;
}

/* ------------------------------------------------------------------ */
/* Confidentialité                                                     */
/* ------------------------------------------------------------------ */

.confiance { position: relative; overflow: hidden; }
.confiance::before {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 16, 46, .1), transparent);
  pointer-events: none;
}
.confiance__phrase {
  max-width: 24ch;
  margin: 0 0 44px;
  color: var(--blanc);
  font: 800 clamp(28px, 3.6vw, 46px)/1 var(--titre);
  letter-spacing: -.04em;
}
.confiance__phrase em { font-style: normal; color: var(--rouge-clair); }
.engagements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--trait-encre);
}
.engagements li { padding: 24px clamp(18px, 2.2vw, 28px) 0 0; counter-increment: engagement; }
.engagements li + li { padding-left: clamp(18px, 2.2vw, 28px); border-left: 1px solid var(--trait-encre); }
.engagements li::before {
  content: "0" counter(engagement);
  display: block;
  color: var(--rouge-clair);
  font: 700 11.5px/1.4 var(--texte);
  letter-spacing: .14em;
}
.engagements b {
  display: block;
  margin: 14px 0 8px;
  color: var(--blanc);
  font: 700 18px/1.3 var(--titre);
  letter-spacing: -.01em;
}
.engagements p { margin: 0; color: var(--ardoise-clair); font-size: 15px; line-height: 1.5; }

/* ------------------------------------------------------------------ */
/* Questions fréquentes                                                */
/* ------------------------------------------------------------------ */

.faq__grille {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq__intro { position: sticky; top: 104px; }
.faq__intro h2 {
  margin: 0;
  font: 800 clamp(30px, 3.8vw, 48px)/1.02 var(--titre);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.faq__intro p { max-width: 32ch; margin: 18px 0 0; color: var(--ardoise); }
.faq__intro .lien-fleche { margin-top: 22px; font-size: 15.5px; }

.faq__liste { border-top: 1px solid var(--trait); }
.faq__liste details { border-bottom: 1px solid var(--trait); }
.faq__liste summary {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font: 700 clamp(17px, 1.55vw, 19px)/1.35 var(--titre);
  letter-spacing: -.015em;
}
.faq__liste summary::-webkit-details-marker { display: none; }
.faq__liste summary::after {
  content: "";
  justify-self: center;
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-right: 2px solid var(--encre);
  border-bottom: 2px solid var(--encre);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__liste details[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.faq__num { color: var(--rouge-fonce); font: 700 12px/1.7 var(--texte); letter-spacing: .08em; }
.faq__reponse { margin: 0 24px 22px 46px; color: var(--ardoise); font-size: 16.5px; }
.faq__reponse a { color: var(--bleu); text-decoration: underline; }
.faq__reponse a { text-underline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* Appel final                                                         */
/* ------------------------------------------------------------------ */

.final {
  background: var(--papier-clair);
  color: var(--encre);
  border-top: 1px solid var(--trait);
}
.final__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  padding: var(--section) 0;
}
.final h2 {
  max-width: 11ch;
  margin: 0;
  font: 800 clamp(42px, 6.2vw, 82px)/0.92 var(--titre);
  letter-spacing: -.055em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.final__cote p { max-width: 32em; margin: 0 0 24px; color: var(--ardoise); font-size: 18px; }
.final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.final__mail {
  display: inline-block;
  margin-top: 18px;
  color: var(--bleu);
  font-size: 14.5px;
  text-underline-offset: 4px;
}
.final__mail:hover { color: var(--rouge-fonce); }
.final__mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ardoise);
  font-size: 13.5px;
}
.final__mentions li { display: flex; align-items: center; gap: 7px; }
.final__mentions li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rouge);
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */

.pied {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  background: #04122F;
  color: var(--ardoise-clair);
  font-size: 14.5px;
}
.pied__grille {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.pied .logo { color: var(--blanc); font-size: 20px; }
.pied__marque > p { max-width: 36ch; margin: 18px 0 0; line-height: 1.55; }
.pied__access { font-size: 13px; }
.pied .pied__access a { color: var(--blanc); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pied__titre {
  margin: 4px 0 14px;
  color: var(--blanc);
  font: 700 11.5px/1.4 var(--texte);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pied nav ul { margin: 0; padding: 0; list-style: none; }
.pied nav li { margin-bottom: 9px; }
.pied a { text-decoration: none; }
.pied nav a:hover, .pied__contact a:hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 3px; }
.pied__contact a { color: var(--blanc); }
.pied__bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid #1B376B;
  color: #9FB0D0;
  font-size: 12.5px;
}
.pied__bas a { color: #DCE6F7; }
.pied__bas a:hover { color: var(--blanc); }

/* ------------------------------------------------------------------ */
/* Animations                                                          */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__texte > *, .js .hero__visuel {
    animation: entree .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .js .hero__texte > *:nth-child(2) { animation-delay: .06s; }
  .js .hero__texte > *:nth-child(3) { animation-delay: .12s; }
  .js .hero__texte > *:nth-child(4) { animation-delay: .18s; }
  .js .hero__texte > *:nth-child(5) { animation-delay: .24s; }
  .js .hero__visuel { animation-delay: .12s; }

  .js.anim .reveal { opacity: 0; transform: translateY(16px); }
  .js.anim .reveal.est-visible {
    opacity: 1;
    transform: none;
    transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ecran__direct::before, .curseur, .onde span { animation: none; }
  .btn, .lien-fleche .fleche, .btn .fleche { transition: none; }
}
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------------ */
/* Adaptations                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1120px) {
  .telephone { right: 12px; width: 124px; }
  .hero h1 { font-size: clamp(40px, 4.7vw, 56px); }
}

@media (max-width: 1300px) {
  .humain__grille { grid-template-columns: 1fr; gap: 44px; }
  .humain__visuel { max-width: 720px; }
  .humain__texte { max-width: 640px; }
  .humain__texte h2 { max-width: 16ch; }
  .nav-principal, .lien-code { display: none; }
  .menu-bouton { display: inline-flex; }
  .entete-site__actions { margin-left: auto; }
  .entete-site__barre { min-height: 70px; }
  .hero__grille { grid-template-columns: 1fr; gap: 48px; padding-bottom: 52px; }
  .hero__texte { max-width: 720px; }
  .hero__visuel { max-width: 620px; width: 100%; justify-self: center; }
  .hero h1 { font-size: clamp(42px, 6.6vw, 64px); }
  .bloc__entete { grid-template-columns: 1fr; gap: 14px; }
  .produit__scene { grid-template-columns: 1fr 1fr; }
  .appareil--telephone { grid-column: 1 / -1; }
  .appareil--telephone .appareil__vitrine { min-height: 0; justify-content: flex-start; }
  .appareil--telephone .telephone--grand { margin-inline: 0; max-width: 158px; }
  .engagements { grid-template-columns: 1fr 1fr; }
  .engagements li:nth-child(3) { padding-left: 0; border-left: 0; }
  .engagements li:nth-child(3), .engagements li:nth-child(4) { border-top: 1px solid var(--trait-encre); margin-top: 22px; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .decret__grille, .equipes__grille, .faq__grille, .final__grille { grid-template-columns: 1fr; }
  .echeance { max-width: 420px; }
  .etapes { grid-template-columns: 1fr; border-top-width: 2px; }
  .etapes li, .etapes li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
  .etapes li:last-child { border-bottom: 0; }
  .faq__intro { position: static; }
  .final__grille { align-items: start; }
  .final h2 { max-width: 14ch; }
  .chiffres { grid-template-columns: 1fr; gap: 0; padding-bottom: 28px; }
  .chiffres > div, .chiffres > div:first-child { padding: 16px 0; }
  .chiffres > div + div { border-left: 0; border-top: 1px solid var(--trait); }
  .chiffres dd { max-width: 40ch; }
}

@media (max-width: 700px) {
  .humain { padding: 64px 0 76px; }
  .humain__petit { right: 0; bottom: -26px; width: 43%; border-width: 5px; }
  .humain__visuel { padding-bottom: 44px; }
  .humain__chapo { font-size: 17.5px; }
  .hero__visuel .telephone { display: none; }
  .ecran__texte { padding-right: 0; }
  .appareil__vitrine { min-height: 0; }
  .hero__ecran::before { inset: 12px -8px -10px 12px; }
  .bande-code__grille { grid-template-columns: 1fr; }
  .bande-code form { width: 100%; }
  .bande-code input { flex: 1; width: auto; }
  .produit__scene { grid-template-columns: 1fr; }
  .appareil--telephone { grid-column: auto; }
  .appareil__vitrine { min-height: 0; }
  .ecran--repos { max-width: 520px; }
  .tablette { max-width: 440px; }
  .telephone--grand { margin-inline: 0; }
  .engagements { grid-template-columns: 1fr; }
  .engagements li, .engagements li + li { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--trait-encre); margin-top: 0; }
  .engagements li:first-child { margin-top: 0; }
  .engagements li { margin-top: 20px; }
  .engagements li:first-child { margin-top: 0; }
  .faq__reponse { margin-left: 36px; margin-right: 0; }
  .faq__liste summary { grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 8px; }
  .pied__grille { grid-template-columns: 1fr; gap: 30px; }
}

/* Petits écrans : « Connexion » passe dans le menu (l'en-tête manque de place pour deux boutons). */
@media (max-width: 760px) {
  .entete-site__actions .btn--contour { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .entete-site .logo { font-size: 18px; }
  .entete-site__actions .btn { display: none; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 48px); }
  .hero__actions .btn { width: 100%; }
  .hero__preuve { font-size: 14px; }
  .bande-code form { flex-wrap: wrap; }
  .bande-code input { flex: 1 1 100%; width: 100%; }
  .bande-code .btn { width: 100%; }
  .ecran__qr { display: none; }
  .ecran__texte { min-height: 60%; }
  .final h2 { font-size: clamp(38px, 11vw, 56px); }
  .final__actions .btn { width: 100%; }
  .pied__bas { flex-direction: column; align-items: flex-start; }
}

/* Impression : la page reste lisible, sans animations ni fonds inutiles. */
@media print {
  .entete-site__actions, .hero__actions, .bande-code, .final, .pied { break-inside: avoid; }
  .js.anim .reveal { opacity: 1 !important; transform: none !important; }
}
