/* Check'OK — site de présentation (phase pilote). */
@font-face { font-family: "Bricolage"; src: url(polices/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(polices/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(polices/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(polices/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(polices/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --marine: #1E354C;
  --abysse: #112B41;
  --feuille: #66963F;
  --pousse: #91B65C;
  --papier: #F3F1EC;
  --craie: #FFFFFF;
  --encre: #17222E;
  --gris: #586474;
  --trait: #DCD7CC;
  --ambre: #D9771E;
  --titre: "Bricolage", "Avenir Next", "Segoe UI", sans-serif;
  --texte: "Atkinson", "Verdana", sans-serif;
  --largeur: 1160px;
}

* { 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; font-family: var(--texte); font-size: 1.125rem; line-height: 1.6; color: var(--encre); background: var(--craie); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pousse); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.08; margin: 0; color: inherit; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.cadre { width: min(var(--largeur), 100% - 40px); margin-inline: auto; }
.mesure { max-width: 62ch; }
.saut { position: absolute; left: -999px; top: 8px; background: var(--craie); padding: 8px 14px; z-index: 50; }
.saut:focus { left: 12px; }

/* ------------------------------------------------------------ En-tête */
.entete { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.entete .cadre { display: flex; align-items: center; gap: 24px; height: 74px; }
.entete .logo img { height: 40px; width: auto; }
.entete nav { display: flex; gap: 22px; margin-left: auto; }
.entete nav a { text-decoration: none; color: var(--encre); font-size: 1rem; }
.entete nav a:hover { color: var(--feuille); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-family: var(--texte); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 0; transition: transform .08s ease, background-color .15s; }
.bouton:active { transform: translateY(1px); }
.bouton.plein { background: var(--feuille); color: var(--craie); }
.bouton.plein:hover { background: #57843A; }
.bouton.contour { background: transparent; color: var(--craie); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.bouton.contour:hover { box-shadow: inset 0 0 0 2px var(--craie); }
.bouton.marine { background: var(--marine); color: var(--craie); }
.entete .bouton { min-height: 44px; padding: 0 18px; font-size: .98rem; }
@media (max-width: 860px) { .entete nav { display: none; } .entete .bouton { margin-left: auto; } .entete .logo img { height: 32px; } }

/* ------------------------------------------------------------ Ouverture */
.ouverture { background: radial-gradient(1100px 600px at 85% 10%, #234363 0%, transparent 60%), linear-gradient(180deg, var(--marine), var(--abysse)); color: var(--craie); overflow: hidden; }
.ouverture .cadre { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 96px; }
.statut { display: inline-flex; align-items: center; gap: 10px; font-size: .98rem; color: #D6E6C4; margin-bottom: 26px; }
.statut::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pousse); box-shadow: 0 0 0 5px rgba(145,182,92,.22); }
.ouverture h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 800; letter-spacing: -0.03em; max-width: 12ch; margin-bottom: 22px; }
.ouverture .chapeau { font-size: 1.22rem; color: #D7E0EA; max-width: 48ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ouverture .appareils { margin-top: 26px; font-size: .98rem; color: #AFC0D2; }

.scene { position: relative; aspect-ratio: 1.12 / 1; width: 100%; perspective: 1800px; }
.ordinateur { position: absolute; left: 0; top: 6%; width: 88%; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(10deg) translateY(40px); opacity: 0; transition: transform 1.3s cubic-bezier(.2,.8,.2,1), opacity .9s ease; }
.ecran-pc { position: relative; aspect-ratio: 16 / 10; background: #0B141D; border-radius: 14px 14px 6px 6px; padding: 2.2%; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1px #2B3846; overflow: hidden; }
.ecran-pc .pc { position: absolute; inset: 2.2%; width: 95.6%; height: auto; border-radius: 4px; transition: opacity .8s ease; }
.ecran-pc .pc-fiche { opacity: 0; }
.socle { height: 0; margin: 0 -7%; border-top: 14px solid #C9CED6; border-left: 22px solid transparent; border-right: 22px solid transparent; border-radius: 0 0 10px 10px; position: relative; }
.socle::after { content: ""; position: absolute; left: 42%; right: 42%; top: -14px; height: 5px; background: #9AA2AE; border-radius: 0 0 6px 6px; }
.avis { position: absolute; right: 5%; top: 9%; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--encre); font-size: clamp(.62rem, 1.1vw, .82rem); font-weight: 700; padding: 7px 12px 7px 8px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.25); opacity: 0; transform: translateY(-14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.avis svg { width: 18px; height: 18px; flex: none; }
.scene .telephone { position: absolute; right: 0; bottom: 0; width: 33%; max-width: none; border-radius: 30px; padding: 7px; background: #0B141D; box-shadow: 0 34px 60px rgba(0,0,0,.5), inset 0 0 0 1px #2B3846; transform: translateY(70px) rotate(4deg); opacity: 0; transition: transform 1.2s .25s cubic-bezier(.2,.8,.2,1), opacity .8s .25s ease; }
.pages { position: relative; aspect-ratio: 720 / 1465; border-radius: 24px; overflow: hidden; perspective: 900px; background: #fff; }
.page { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: left center; backface-visibility: hidden; transition: transform .95s cubic-bezier(.3,.7,.2,1), opacity .4s ease; }
.page img { width: 100%; height: 100%; }
.p2, .p3 { transform: rotateY(-105deg); opacity: 0; box-shadow: -18px 0 40px rgba(0,0,0,.18); }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace path { fill: none; stroke: #112B41; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.pdf-volant { position: absolute; left: 74%; top: 58%; width: 19%; aspect-ratio: 3 / 4; background: #fff; border-radius: 6px; box-shadow: 0 16px 34px rgba(0,0,0,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0; pointer-events: none; padding: 8px; text-align: center; }
.pdf-volant b { background: #C8372D; color: #fff; font-family: var(--titre); font-size: clamp(.7rem, 1.2vw, .95rem); padding: 3px 9px; border-radius: 5px; }
.pdf-volant span { font-size: clamp(.5rem, .9vw, .7rem); color: var(--encre); line-height: 1.2; font-weight: 700; }

/* Étapes de l'animation */
.scene.e1 .ordinateur { transform: rotateY(-12deg) rotateX(5deg); opacity: 1; }
.scene.e1 .telephone { transform: translateY(0) rotate(0); opacity: 1; }
.scene.e2 .p2 { transform: rotateY(0); opacity: 1; }
.scene.e2 .trace path { animation: signe 1.6s .7s cubic-bezier(.5,.1,.3,1) forwards; }
@keyframes signe { to { stroke-dashoffset: 0; } }
.scene.e3 .p3 { transform: rotateY(0); opacity: 1; }
.scene.e4 .pdf-volant { animation: vol 1.25s cubic-bezier(.45,.05,.3,1) forwards; }
@keyframes vol {
  0%   { left: 72%; top: 52%; opacity: 0; transform: scale(.5) rotate(-10deg); }
  18%  { opacity: 1; transform: scale(1) rotate(-6deg); }
  60%  { left: 52%; top: 6%; opacity: 1; transform: scale(.9) rotate(4deg); }
  100% { left: 40%; top: 18%; opacity: 0; transform: scale(.55) rotate(8deg); }
}
.scene.e5 .pc-fiche { opacity: 1; }
.scene.e5 .avis { opacity: 1; transform: translateY(0); }
.scene.fini .avis { opacity: 0; transition-delay: 0s; }
.scene.fini .telephone { animation: flotte 7s ease-in-out infinite; }
.scene.fini .ordinateur { animation: flotte-pc 9s ease-in-out infinite; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flotte-pc { 0%, 100% { transform: rotateY(-12deg) rotateX(5deg); } 50% { transform: rotateY(-9deg) rotateX(4deg) translateY(-4px); } }
.scene.calme * { transition: none !important; animation: none !important; }
.scene.calme .trace path { stroke-dashoffset: 0; }
.scene.calme .pdf-volant { display: none; }
@media (max-width: 900px) {
  .ouverture .cadre { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .scene { max-width: 560px; margin: 8px auto 0; }
}

/* ------------------------------------------------------------ Ce que fait Check'OK */
.bloc { padding: 104px 0; }
.bloc.papier { background: var(--papier); }
.entree-bloc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.entree-bloc .intro p { color: var(--gris); margin-top: 18px; }
.coches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.coches li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--trait); }
.coches li:nth-child(-n+2) { border-top: 0; padding-top: 4px; }
.coches svg { width: 34px; height: 34px; }
.coches b { display: block; font-family: var(--titre); font-weight: 700; font-size: 1.12rem; line-height: 1.25; margin-bottom: 4px; }
.coches span { color: var(--gris); font-size: 1rem; line-height: 1.5; display: block; }
.dispo { display: inline-block; margin-top: 8px; font-style: normal; font-size: .82rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; border: 1.5px solid currentColor; }
.dispo.pilote { color: var(--feuille); }
.dispo.lancement { color: var(--ambre); }
@media (max-width: 960px) { .entree-bloc { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .coches { grid-template-columns: 1fr; } .coches li:nth-child(2) { border-top: 1px solid var(--trait); padding-top: 20px; } }

/* ------------------------------------------------------------ Étapes */
.etapes { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes figure { margin: 0 0 22px; background: #0B141D; border-radius: 30px; padding: 7px; box-shadow: 0 18px 40px rgba(17,43,65,.18); }
.etapes figure img { border-radius: 24px; aspect-ratio: 720 / 1180; object-fit: cover; object-position: top; width: 100%; }
.etapes h3 { display: flex; gap: 12px; align-items: baseline; }
.etapes h3::before { content: counter(etape); font-family: var(--titre); font-weight: 800; font-size: 2.2rem; color: var(--feuille); line-height: 1; }
.etapes p { color: var(--gris); font-size: 1rem; margin-top: 8px; }
@media (max-width: 960px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

/* ------------------------------------------------------------ Bandeau photo */
.bandeau { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: var(--craie); background: var(--abysse); }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,43,65,0) 15%, rgba(17,43,65,.55) 50%, rgba(17,43,65,.92) 100%); }
.bandeau p, .bandeau small { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.bandeau .cadre { position: relative; z-index: 1; padding: 0 0 56px; }
.bandeau p { font-family: var(--titre); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; max-width: 26ch; margin: 0; }
.bandeau small { display: block; margin-top: 14px; font-size: 1rem; color: #D7E0EA; font-family: var(--texte); font-weight: 400; max-width: 60ch; }

/* ------------------------------------------------------------ Données, bientôt, tarifs */
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.trois > div { border-top: 3px solid var(--marine); padding-top: 18px; }
.trois p { color: var(--gris); font-size: 1rem; margin-top: 10px; }
@media (max-width: 860px) { .trois { grid-template-columns: 1fr; gap: 28px; } }

.bientot { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.bientot li { padding: 18px 0; border-top: 1px solid var(--trait); display: flex; gap: 14px; align-items: baseline; justify-content: space-between; }
.bientot li span:first-child b { display: block; font-weight: 700; }
.bientot li span:first-child { color: var(--gris); font-size: 1rem; }
.bientot li span:first-child b { color: var(--encre); font-size: 1.08rem; }
.etiquette { flex: none; font-size: .9rem; font-weight: 700; color: var(--ambre); border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 12px; }
.etiquette.verte { color: var(--feuille); }
@media (max-width: 760px) { .bientot { grid-template-columns: 1fr; } }

.tarif { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--marine); color: var(--craie); border-radius: 22px; padding: 44px 48px; }
.tarif h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tarif p { color: #D7E0EA; margin: 12px 0 0; max-width: 56ch; }
@media (max-width: 760px) { .tarif { grid-template-columns: 1fr; padding: 32px 26px; } }

/* ------------------------------------------------------------ Contact */
.contact { background: linear-gradient(180deg, var(--marine), var(--abysse)); color: var(--craie); text-align: left; }
.contact .cadre { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 88px 0; }
.contact p { color: #D7E0EA; margin-top: 16px; }
.contact .actions { justify-content: flex-end; }
@media (max-width: 860px) { .contact .cadre { grid-template-columns: 1fr; padding: 64px 0; } .contact .actions { justify-content: flex-start; } }

/* ------------------------------------------------------------ Pied de page */
.pied { background: var(--abysse); color: #AFC0D2; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.08); }
.pied .cadre { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding: 34px 0; }
.pied img { height: 30px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { color: #D7E0EA; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .credits { width: 100%; font-size: .88rem; color: #8DA0B4; }

/* ------------------------------------------------------------ Pages de texte (mentions, données) */
.page-texte { padding: 64px 0 96px; }
.page-texte h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 10px; }
.page-texte .maj { color: var(--gris); margin-bottom: 40px; }
.page-texte h2 { font-size: 1.45rem; margin: 40px 0 10px; }
.page-texte p, .page-texte li { max-width: 72ch; }
.page-texte .a-completer { background: #FFF1DE; color: #8A4A0C; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
