/* USTS, page d'inscription à la formation express « L'IA expliquée simplement ».
   Charte : noir, blanc, vert. Angles droits, filets noirs, blocs de couleur pleine. */
:root { --pad: clamp(20px, 5vw, 64px); --fil: 2px; color-scheme: light; }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: var(--noir); color: var(--blanc); font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
ol, ul { list-style: none; padding: 0; }
button, input { font: inherit; color: inherit; border-radius: 0; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-titre); text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }
.blanc :focus-visible, .vert :focus-visible, .carte :focus-visible { outline-color: #000; }
.carte.succes :focus-visible { outline-color: var(--vert); }
.cadre { width: min(1180px, 100% - 2 * var(--pad)); margin-inline: auto; }
.saut { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--vert); color: #000; padding: 10px 16px; font-weight: 600; }
.saut:focus { left: 8px; }

/* ---------- boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .8em; font-family: var(--f-titre); font-weight: 600; font-size: .95rem; line-height: 1.2; padding: 1.05em 1.5em; background: var(--vert); color: #000; border: var(--fil) solid var(--vert); text-decoration: none; text-align: left; transition: transform .2s, background-color .2s, color .2s; }
.bouton svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .2s; }
.bouton:hover svg { transform: translateX(4px); }
.bouton:active { transform: scale(.98); }
.bouton.petit { font-size: .8rem; padding: .85em 1.2em; }
.bouton.large { width: 100%; justify-content: space-between; font-size: 1rem; padding: 1.15em 1.4em; }
.bouton.sombre, .carte .bouton { background: #000; color: #fff; border-color: #000; }
.carte.succes .bouton { background: var(--vert); color: #000; border-color: var(--vert); }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* ---------- en-tête ---------- */
.tete { background: #000; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.tete-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo img { height: 40px; width: auto; }
@media (min-width: 900px) { .tete { position: sticky; top: 0; z-index: 20; } html { scroll-padding-top: 96px; } }
@media (max-width: 479px) { .tete .bouton { display: none; } .tete-in { min-height: 60px; } .logo img { height: 34px; } }

/* ---------- l'offre et le formulaire ---------- */
.hero { position: relative; background: #000; overflow: hidden; }
.grille { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 72px 72px; background-position: center top; -webkit-mask-image: radial-gradient(80% 90% at 25% 30%, #000 15%, transparent 80%); mask-image: radial-gradient(80% 90% at 25% 30%, #000 15%, transparent 80%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.sur { display: flex; align-items: center; gap: .7em; font-weight: 600; font-size: .95rem; color: var(--brume); }
.sur::before { content: ''; width: .8em; height: .8em; background: var(--vert); flex: none; }
h1 { font-weight: 800; font-size: clamp(2rem, 0.95rem + 4.3vw, 4.05rem); line-height: 1.05; letter-spacing: -0.025em; margin-top: .45em; }
h1 span { display: block; }
h1 span + span { margin-top: .22em; }
.chapo { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.5; color: var(--brume); max-width: 34em; margin-top: 1.4em; }
.trois { font-family: var(--f-titre); font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); line-height: 1.4; color: var(--vert); margin-top: 1.3em; }
@keyframes monte { from { opacity: 0; transform: translateY(20px); } }
.m1, .m2, .m3, .m4, .m5 { animation: monte .7s cubic-bezier(.2, .7, .2, 1) both; }
.m2 { animation-delay: .08s; } .m3 { animation-delay: .2s; } .m4 { animation-delay: .34s; } .m5 { animation-delay: .46s; }

.carte { background: var(--vert); color: #000; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.carte h2 { font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.12; letter-spacing: -0.015em; }
.carte-s { font-weight: 500; font-size: 1rem; line-height: 1.45; margin-top: -4px; }
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.champ { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.champ > span { font-weight: 600; font-size: .86rem; }
.champ i { font-style: normal; font-weight: 400; }
.champ input { width: 100%; height: 50px; padding: 0 14px; font-size: 1rem; background: #fff; color: #000; border: var(--fil) solid #000; outline-offset: 2px; }
.champ input:focus-visible { outline: 3px solid #000; }
.champ.ko input { box-shadow: inset 0 -5px 0 #000; }
.err { display: flex; gap: 6px; align-items: baseline; font-weight: 600; font-size: .82rem; line-height: 1.3; }
.err::before { content: '!'; flex: none; width: 1.25em; height: 1.25em; display: inline-grid; place-items: center; background: #000; color: var(--vert); font-family: var(--f-titre); font-size: .8em; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.avis, .erreur { font-weight: 600; font-size: .9rem; line-height: 1.4; padding: 12px 14px; background: #000; color: #fff; border-left: 6px solid #fff; }
.mention { font-size: .78rem; line-height: 1.5; }
.carte.succes { background: #000; color: #fff; border: var(--fil) solid var(--vert); gap: 18px; }
.coche { width: 54px; height: 54px; background: var(--vert); color: #000; display: grid; place-items: center; }
.coche svg { width: 28px; height: 28px; }
.carte.succes .carte-s { color: var(--brume); font-weight: 400; margin-top: 0; }
.carte.succes .carte-s b { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.carte.succes .mention { color: var(--brume); }
@media (max-width: 899px) { .hero-in { grid-template-columns: 1fr; } }
@media (max-width: 379px) { .rangee { grid-template-columns: 1fr; } }

/* ---------- blocs ---------- */
.bloc { padding-block: clamp(56px, 8vw, 112px); }
.bloc.blanc { background: #fff; color: #000; }
.bloc.noir { background: #000; color: #fff; }
.bloc.vert { background: var(--vert); color: #000; }
.bloc.noir + .bloc.noir { padding-top: 0; }
.titre { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); }
.titre h2, .apres-in h2, .final-in h2 { font-weight: 800; font-size: clamp(1.65rem, 1rem + 2.7vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; }
.titre p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.5; max-width: 38em; color: var(--encre); }
.noir .titre p { color: var(--brume); }
.si-ok, .si-ko { display: none; }
.juste .si-ok, .rate .si-ko { display: inline; }

/* ---------- vrai ou faux ---------- */
.vfs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.vf { border: var(--fil) solid #000; padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 20px; transition: background-color .3s; }
.vf-q { font-family: var(--f-titre); font-weight: 600; font-size: clamp(1rem, 0.92rem + 0.35vw, 1.14rem); line-height: 1.38; flex: 1; }
.vf-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vf-b button { font-family: var(--f-titre); font-weight: 800; font-size: 1rem; padding: .85em .5em; border: var(--fil) solid #000; background: #fff; transition: background-color .2s, color .2s, opacity .3s; }
.vf-b button:hover { background: #000; color: #fff; }
.vf.fait .vf-b button { pointer-events: none; opacity: .3; }
.vf.fait .vf-b button.bon { opacity: 1; background: var(--vert); color: #000; }
.vf.fait .vf-b button.choisi:not(.bon) { opacity: .75; text-decoration: line-through; text-decoration-thickness: .12em; }
.vf-r { display: none; font-size: .95rem; line-height: 1.5; border-top: var(--fil) solid #000; padding-top: 16px; }
.vf-r b { font-weight: 600; }
.vf.fait .vf-r { display: block; animation: monte .45s cubic-bezier(.2, .7, .2, 1) both; }
.vf.fait { background: var(--papier); }
.vf-fin { margin-top: clamp(18px, 2.4vw, 28px); background: #000; color: #fff; padding: clamp(18px, 2.4vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; animation: monte .5s cubic-bezier(.2, .7, .2, 1) both; }
.vf-fin p { font-size: 1.05rem; line-height: 1.45; max-width: 34em; }
.vf-fin b { font-family: var(--f-titre); font-weight: 800; color: var(--vert); }
@media (max-width: 899px) { .vfs { grid-template-columns: 1fr; } }

/* ---------- programme ---------- */
.chapitres { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.chapitres li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.chapitres b { width: 56px; height: 56px; display: grid; place-items: center; background: var(--vert); color: #000; font-family: var(--f-titre); font-weight: 800; font-size: 1.4rem; }
.chapitres h3 { font-weight: 600; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.25; }
.chapitres p { color: var(--brume); font-size: .98rem; line-height: 1.5; margin-top: 6px; }
@media (max-width: 799px) {
  .chapitres { grid-template-columns: 1fr; }
  .chapitres li { grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .chapitres b { width: 46px; height: 46px; font-size: 1.15rem; }
}

/* ---------- ce que vous saurez ---------- */
.apres-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.acquis { display: flex; flex-direction: column; }
.acquis li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-top: var(--fil) solid #000; font-family: var(--f-titre); font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); line-height: 1.3; }
.acquis li:last-child { border-bottom: var(--fil) solid #000; }
.acquis svg { width: 44px; height: 44px; padding: 11px; background: #000; color: var(--vert); }
@media (max-width: 799px) { .apres-in { grid-template-columns: 1fr; } .acquis li { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; } .acquis svg { width: 38px; height: 38px; padding: 9px; } }

/* ---------- qui vous l'explique ---------- */
.preuves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.preuves li { display: flex; flex-direction: column; gap: 16px; }
.preuves img { width: 120px; height: 120px; }
.preuves .duo { display: flex; }
.preuves .duo img + img { margin-left: -34px; }
.gros { font-family: var(--f-titre); font-weight: 800; font-size: 4.6rem; line-height: 120px; height: 120px; color: var(--vert); letter-spacing: -0.03em; }
.preuves h3 { font-weight: 800; font-size: 1.08rem; line-height: 1.25; }
.preuves p { color: var(--brume); font-size: .95rem; line-height: 1.5; margin-top: 6px; }
.confiance { font-family: var(--f-titre); font-weight: 600; font-size: .95rem; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 36px); align-items: center; margin-top: 22px; }
.logos img { width: 100%; max-height: 56px; object-fit: contain; opacity: .85; }
.source { color: var(--brume); font-size: .78rem; margin-top: 28px; }
@media (max-width: 999px) { .preuves { grid-template-columns: 1fr 1fr; } .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; } }
@media (max-width: 559px) {
  .preuves { grid-template-columns: 1fr; gap: 26px; }
  .preuves li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
  .preuves img { width: 96px; height: 96px; }
  .preuves .duo img { width: 62px; height: 62px; }
  .preuves .duo img + img { margin-left: -28px; }
  .gros { font-size: 2.6rem; height: auto; line-height: 1; }
}

/* ---------- questions ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
.faq-in .titre { margin-bottom: 0; position: sticky; top: 112px; }
.faq details { border-top: var(--fil) solid #000; }
.faq details:last-child { border-bottom: var(--fil) solid #000; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-family: var(--f-titre); font-weight: 600; font-size: clamp(1rem, 0.93rem + 0.3vw, 1.14rem); line-height: 1.3; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--encre); max-width: 44em; }
@media (max-width: 799px) { .faq-in { grid-template-columns: 1fr; } .faq-in .titre { position: static; margin-bottom: 8px; } .faq details p { padding-right: 0; } }

/* ---------- dernier appel, pied ---------- */
.final-in { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.final-in h2 { font-size: clamp(1.8rem, 1rem + 3.4vw, 3.4rem); }
.final-in .bouton { width: auto; min-width: min(100%, 340px); }
.pied { background: #000; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-block: 36px; font-size: .9rem; color: var(--brume); }
.pied-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pied img { height: 38px; width: auto; }
.liens { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- bouton collé en bas, sur téléphone ---------- */
.colle { display: none; }
@media (max-width: 899px) {
  .colle { display: block; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px)); background: #000; border-top: var(--fil) solid var(--vert); transform: translateY(110%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .colle-on .colle { transform: none; }
  .pied { padding-bottom: 104px; }
}

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

/* ---------- pages de texte (mentions légales, confidentialité) et messages du serveur ---------- */
.texte { background: #fff; color: #000; padding-block: clamp(40px, 6vw, 80px); min-height: 60vh; }
.texte .cadre { width: min(760px, 100% - 2 * var(--pad)); }
.texte h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); margin: 0 0 .8em; }
.texte h2 { font-weight: 800; font-size: 1.15rem; margin: 2em 0 .6em; }
.texte p, .texte li { color: #1b1f1c; margin-bottom: .8em; }
.texte ul { list-style: square; padding-left: 1.2em; }
.texte mark { background: #FFE14D; color: #000; padding: 0 .25em; font-weight: 600; }
.texte .retour { display: inline-flex; margin-top: 1.6em; }
.message { min-height: 70vh; display: grid; place-items: center; padding-block: clamp(40px, 8vw, 96px); }
.message .carte { width: min(560px, 100% - 2 * var(--pad)); }

/* Formulaire relié au service des formulaires USTS */
.usts-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: #000; }
.consent a { color: #000; font-weight: 600; }
.err-consent { margin-top: -6px; }
altcha-widget { display: block; --altcha-color-base: #fff; --altcha-color-text: #000; --altcha-border-radius: 0; --altcha-max-width: 100%; }
.statut:empty { display: none; }
.statut { font-weight: 600; font-size: .9rem; line-height: 1.4; padding: 12px 14px; background: #000; color: #fff; border-left: 6px solid #fff; }
.statut[data-state="success"] { border-left-color: var(--vert); }
.statut[data-state="error"] { border-left-color: #ff4d4d; }
.statut[data-state="sending"] { border-left-color: #fff; opacity: .85; }
