/* Vitrine et connexion · Collège de la Salle (maquette Kora Lab)
   Nuit brune, or de l'étoile, grands titres. Une seule famille : Libre Franklin. */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/libre-franklin-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --nuit: #1a0f09;
  --brun: #26150d;
  --brun-2: #35211a;
  --creme: #f3ecdc;
  --kaki: #cdbb98;
  --kaki-2: #a8977a;
  --or: #e3a820;
  --or-2: #f2c04c;
  --filet-n: rgba(243, 236, 220, 0.14);
  --papier: #f4eee2;
  --encre: #20140c;
  --encre-2: #5a4a3e;
  --filet-c: #dcd0bb;
  --rouge: #e0705f;
  --police: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cadre: 1200px;
  --marge: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 17px; line-height: 1.55; color: var(--creme); background: var(--nuit); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, canvas { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }
.cadre { width: 100%; max-width: var(--cadre); margin: 0 auto; padding: 0 var(--marge); }
.icone { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.maquette { background: #0f0805; color: var(--kaki); font-size: 0.8125rem; text-align: center; padding: 7px var(--marge); border-bottom: 1px solid var(--filet-n); }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid var(--or); background: var(--or); color: var(--nuit);
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms var(--ease);
}
.btn:hover { background: var(--or-2); border-color: var(--or-2); }
.btn:active { transform: scale(0.97); }
.btn-ligne { background: transparent; color: var(--creme); border-color: rgba(243, 236, 220, 0.38); }
.btn-ligne:hover { background: rgba(243, 236, 220, 0.08); border-color: var(--creme); }
.btn-sombre { background: var(--encre); border-color: var(--encre); color: var(--creme); }
.btn-sombre:hover { background: var(--brun-2); border-color: var(--brun-2); }
.btn-petit { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

/* --- En-tête --------------------------------------------------------------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(26, 15, 9, 0.92); border-bottom: 1px solid transparent; transition: border-color 250ms ease; }
.entete.defile { border-bottom-color: var(--filet-n); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.marque svg { width: 36px; height: 36px; }
.marque b { display: block; font-weight: 800; font-size: 1rem; line-height: 1.1; letter-spacing: -0.01em; }
.marque small { display: block; color: var(--kaki); font-size: 0.8125rem; line-height: 1.2; }
.entete nav { display: flex; align-items: center; gap: 6px; }
.entete nav a:not(.btn) { display: none; min-height: 44px; align-items: center; padding: 0 14px; text-decoration: none; color: var(--kaki); font-weight: 600; font-size: 0.9375rem; border-radius: 999px; transition: color 200ms ease; }
.entete nav a:not(.btn):hover { color: var(--creme); }
@media (min-width: 860px) { .entete nav a:not(.btn) { display: inline-flex; } }

/* --- Ouverture ------------------------------------------------------------- */
.ouverture { position: relative; min-height: calc(100svh - 68px - 32px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.ouverture canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ouverture::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 15, 9, 0) 0%, rgba(26, 15, 9, 0) 30%, rgba(26, 15, 9, 0.88) 62%); }
.ouverture .cadre { position: relative; z-index: 1; padding-top: 42svh; padding-bottom: 48px; }
.ouverture h1 { font-size: clamp(2.75rem, 11vw, 7rem); line-height: 0.94; font-weight: 800; letter-spacing: -0.045em; max-width: 9.5ch; }
.ouverture .chapo { margin-top: 22px; max-width: 46ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--kaki); }
.ouverture .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .ouverture::after { background: linear-gradient(90deg, rgba(26, 15, 9, 0.92) 0%, rgba(26, 15, 9, 0.6) 40%, rgba(26, 15, 9, 0) 62%); }
  .ouverture .cadre { padding-top: 64px; padding-bottom: 64px; }
}

/* Titre cinétique : chaque mot monte de sous sa ligne (d'après le modèle AnimatedWebs « Kinetic Type Course Spotlight »). */
.cinetique .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.cinetique .mot > span { display: inline-block; transform: translateY(108%); transition: transform 900ms var(--ease); transition-delay: calc(var(--i) * 80ms + 250ms); }
.cinetique.joue .mot > span { transform: none; }
.apparait { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms var(--ease); transition-delay: var(--retard, 0ms); }
.joue .apparait, .apparait.joue { opacity: 1; transform: none; }

/* --- Quatre espaces (section collante) -------------------------------------- */
.intro-espaces { padding: clamp(72px, 12vw, 140px) 0 24px; }
.intro-espaces h2, .section-titre { font-size: clamp(2.125rem, 6vw, 4.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; max-width: 14ch; }
.intro-espaces p { margin-top: 18px; color: var(--kaki); max-width: 48ch; font-size: 1.125rem; }
.espaces { position: relative; height: calc(4 * 85svh + 100svh); }
.espaces-collant { position: sticky; top: 68px; height: calc(100svh - 68px); display: grid; gap: 14px; align-content: center; padding: 16px 0 20px; }
.scene { order: -1; display: grid; place-items: center; }
.liste-espaces { display: grid; gap: 4px; padding: 0 var(--marge); }
.liste-espaces button {
  width: 100%; display: grid; grid-template-columns: 14px 1fr; gap: 4px 14px; align-items: baseline; text-align: left;
  background: none; border: 0; padding: 10px 0; color: var(--creme); opacity: 0.42; transition: opacity 300ms ease;
}
.liste-espaces button[aria-current="true"] { opacity: 1; }
.liste-espaces .point { width: 12px; height: 12px; border-radius: 50%; background: var(--c); transform: translateY(1px); }
.liste-espaces b { font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.liste-espaces span:last-child { grid-column: 2; color: var(--kaki); font-size: 0.9375rem; line-height: 1.45; display: none; }
.liste-espaces button[aria-current="true"] span:last-child { display: block; }
@media (max-width: 899px) {
  .liste-espaces { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .liste-espaces li { display: contents; }
  .liste-espaces button { width: auto; }
  .liste-espaces button { grid-template-columns: 10px auto; padding: 8px 0; min-height: 44px; align-items: center; }
  .liste-espaces .point { width: 10px; height: 10px; transform: none; }
  .liste-espaces b { font-size: 1rem; }
  .liste-espaces span:last-child { display: none !important; }
  .description-active { padding: 0 var(--marge); color: var(--kaki); font-size: 0.9375rem; min-height: 4.4em; }
}
@media (min-width: 900px) {
  .espaces-collant { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; max-width: var(--cadre); margin: 0 auto; padding: 0 var(--marge); }
  .scene { order: 0; }
  .liste-espaces { padding: 0; gap: 10px; }
  .liste-espaces button { padding: 14px 0; }
  .description-active { display: none; }
}

/* Téléphone */
.telephone { width: min(300px, calc((100svh - 170px) / 2.06)); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 10px; background: #0d0704; border: 1px solid rgba(243, 236, 220, 0.2); position: relative; }
@media (max-width: 899px) { .telephone { width: min(250px, 62vw, calc((100svh - 300px) / 2.06)); } }
.telephone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%); background: #0d0704; border-radius: 12px; z-index: 3; }
.ecrans { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #f5f1ea; color: #1f140d; }
.ecran { position: absolute; inset: 0; padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(16px) scale(0.985); transition: opacity 450ms ease, transform 600ms var(--ease); font-size: 12px; line-height: 1.35; }
.ecran.actif { opacity: 1; transform: none; }
.ecran .e-barre { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; }
.ecran .e-jeton { width: 24px; height: 24px; border-radius: 7px; background: var(--a); color: #fff; display: grid; place-items: center; }
.ecran .e-jeton svg { width: 15px; height: 15px; }
.ecran .e-salut { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin-top: 4px; }
.ecran .e-carte { background: var(--a); color: #fff; border-radius: 12px; padding: 10px 12px; display: grid; gap: 1px; }
.ecran .e-carte small { opacity: 0.85; font-size: 10.5px; }
.ecran .e-carte strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.ecran .e-titre { font-weight: 700; font-size: 11px; color: #5a4a3e; margin-top: 4px; }
.ecran .e-ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid #e6ddce; border-radius: 10px; padding: 8px 10px; }
.ecran .e-ligne b { font-weight: 700; }
.ecran .e-ligne small { display: block; color: #5a4a3e; font-size: 10.5px; }
.ecran .e-note { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ecran .e-arrive { transform: translateY(-10px); opacity: 0; transition: transform 500ms var(--ease), opacity 400ms ease; }
.ecran.e-1 .e-arrive { transform: none; opacity: 1; }
.ecran .e-arrive.e-neuf { border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 18%, transparent); }
.ecran .e-montant { background: #fff; border: 1px solid #e6ddce; border-radius: 12px; padding: 10px 12px; }
.ecran .e-montant strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ecran .e-montant small { color: #5a4a3e; font-size: 10.5px; }
.ecran .e-moyens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ecran .e-moyen { border: 1.5px solid #d8ccb8; border-radius: 9px; padding: 7px 8px; font-weight: 700; font-size: 11px; text-align: center; background: #fff; }
.ecran .e-moyen.choisi { border-color: var(--a); background: color-mix(in srgb, var(--a) 10%, #fff); }
.ecran .e-bouton { display: grid; place-items: center; min-height: 36px; border-radius: 999px; background: var(--a); color: #fff; font-weight: 800; transition: transform 160ms ease, opacity 300ms ease; }
.ecran.e-1 .e-bouton { transform: scale(0.95); opacity: 0.75; }
.ecran.e-2 .e-bouton { transform: none; opacity: 0.4; }
.ecran .e-recu { display: flex; gap: 8px; align-items: center; background: #e6f2ec; color: #124733; border-radius: 10px; padding: 9px 10px; font-weight: 700; transform: translateY(8px); opacity: 0; transition: transform 500ms var(--ease), opacity 400ms ease; }
.ecran.e-2 .e-recu { transform: none; opacity: 1; }
.ecran .e-recu svg { width: 16px; height: 16px; stroke-width: 2.6; }
.ecran .e-appel { display: grid; gap: 5px; }
.ecran .e-appel div { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e6ddce; border-radius: 9px; padding: 6px 8px; }
.ecran .e-bascule { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 4px 8px; background: #1c6a4c; color: #fff; transition: background-color 300ms ease; }
.ecran.e-1 .e-bascule.e-absent { background: #b23a2e; }
.ecran .e-absent::after { content: "Présent"; }
.ecran.e-1 .e-absent::after { content: "Absent"; }
.ecran .e-toast { margin-top: auto; background: #1f140d; color: #f3ecdc; border-radius: 10px; padding: 9px 10px; font-weight: 700; transform: translateY(10px); opacity: 0; transition: transform 500ms var(--ease), opacity 400ms ease; }
.ecran.e-2 .e-toast { transform: none; opacity: 1; }
.ecran .e-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ecran .e-chiffres div { background: #fff; border: 1px solid #e6ddce; border-radius: 10px; padding: 7px 9px; }
.ecran .e-chiffres small { color: #5a4a3e; font-size: 10px; display: block; }
.ecran .e-chiffres b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ecran .e-demande { background: #fff; border: 1px solid #e6ddce; border-radius: 10px; padding: 9px 10px; display: grid; gap: 6px; }
.ecran .e-demande small { color: #5a4a3e; font-size: 10.5px; }
.ecran .e-etat { justify-self: start; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 3px 8px; background: #fbf0d9; color: #5e3800; }
.ecran .e-etat::after { content: "En attente"; }
.ecran.e-2 .e-etat { background: #e6f2ec; color: #124733; }
.ecran.e-2 .e-etat::after { content: "Acceptée"; }
.ecran .e-actions { display: flex; gap: 6px; }
.ecran .e-actions span { flex: 1; text-align: center; border-radius: 999px; padding: 6px; font-weight: 800; font-size: 10.5px; border: 1.5px solid #d8ccb8; }
.ecran .e-actions span:first-child { background: var(--a); border-color: var(--a); color: #fff; transition: transform 160ms ease; }
.ecran.e-1 .e-actions span:first-child { transform: scale(0.93); }

/* --- Phrase qui s'allume au défilement -------------------------------------- */
.phrase { padding: clamp(96px, 16vw, 200px) 0; }
.phrase p { font-size: clamp(1.875rem, 5.2vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; max-width: 22ch; }
.phrase p span { color: var(--creme); opacity: 0.16; transition: opacity 350ms ease; }
.phrase p span.allume { opacity: 1; }

/* --- Admissions (fond clair) -------------------------------------------------- */
.clair { background: var(--papier); color: var(--encre); }
.admissions { padding: clamp(80px, 12vw, 140px) 0; }
.admissions .section-titre { color: var(--encre); max-width: 16ch; }
.admissions .chapo { margin-top: 16px; color: var(--encre-2); max-width: 52ch; font-size: 1.125rem; }
.parcours { position: relative; margin-top: 44px; padding-left: 64px; }
.parcours ol { display: grid; gap: 28px; }
.parcours::before, .parcours .trait { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--filet-c); }
.parcours .trait { background: var(--encre); transform-origin: top; transform: scaleY(var(--p, 0)); }
.parcours li { position: relative; }
.parcours .num { position: absolute; left: -64px; top: -6px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--papier); border: 2px solid var(--filet-c); color: var(--encre-2); transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; }
.parcours li.atteint .num { background: var(--encre); border-color: var(--encre); color: var(--or); }
.parcours h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; }
.parcours p { color: var(--encre-2); margin-top: 2px; }
@media (min-width: 960px) {
  .admissions .grille { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
}

.formulaire { margin-top: 48px; display: grid; gap: 28px; }
@media (min-width: 960px) { .formulaire { margin-top: 0; } }
.formulaire fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.formulaire legend { font-weight: 800; font-size: 1.125rem; margin-bottom: 6px; padding: 0; }
.champs-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .champs-2 { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 700; font-size: 0.9375rem; }
.champ .facultatif { font-weight: 400; color: var(--encre-2); }
.clair .champ input, .clair .champ select, .clair .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #c7b9a1; background: #fff; color: var(--encre);
  transition: border-color 200ms ease;
}
.clair .champ textarea { min-height: 104px; resize: vertical; }
.clair .champ input:hover, .clair .champ select:hover, .clair .champ textarea:hover { border-color: var(--encre-2); }
.clair .champ [aria-invalid="true"] { border-color: #b23a2e; }
.clair .erreur { color: #9c2a20; font-weight: 700; font-size: 0.875rem; }
.clair :focus-visible { outline-color: #9a6a00; }
.confirmation { margin-top: 32px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--encre); color: var(--creme); }
.confirmation svg { color: var(--or); margin-top: 2px; }
.confirmation button { margin-top: 10px; background: none; border: 0; padding: 10px 0; color: var(--or); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* --- Pied de page --------------------------------------------------------------- */
.pied { padding: 56px 0 48px; border-top: 1px solid var(--filet-n); color: var(--kaki); font-size: 0.9375rem; }
.pied .cadre { display: grid; gap: 20px; }
@media (min-width: 760px) { .pied .cadre { grid-template-columns: 1fr auto; align-items: end; } }

/* --- Connexion ------------------------------------------------------------------ */
.cx { min-height: calc(100svh - 32px); display: grid; }
.cx-visuel { position: relative; overflow: hidden; isolation: isolate; min-height: 30svh; display: flex; flex-direction: column; justify-content: space-between; padding: 20px var(--marge) 26px; }
.cx-visuel canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cx-visuel > *:not(canvas) { position: relative; z-index: 1; }
.cx-visuel h1 { font-size: clamp(2.25rem, 9vw, 4.75rem); line-height: 0.96; font-weight: 800; letter-spacing: -0.045em; max-width: 8ch; }
.cx-visuel p { color: var(--kaki); margin-top: 12px; max-width: 30ch; display: none; }
.cx-form { background: var(--brun); padding: 28px var(--marge) 40px; }
.cx-form .interieur { max-width: 480px; margin: 0 auto; }
.cx-form h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .cx { grid-template-columns: minmax(0, 1fr) minmax(440px, 560px); }
  .cx-visuel { padding: 32px 48px 48px; min-height: 0; }
  .cx-visuel p { display: block; }
  .cx-form { display: flex; align-items: center; padding: 48px; }
  .cx-form .interieur { width: 100%; }
}
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; border: 0; padding: 0; }
.tuiles label {
  position: relative; display: grid; gap: 10px; align-content: space-between; min-height: 104px; padding: 14px; border-radius: 16px;
  background: rgba(243, 236, 220, 0.05); border: 1.5px solid var(--filet-n); cursor: pointer;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.tuiles label:hover { border-color: rgba(243, 236, 220, 0.4); }
.tuiles input { position: absolute; opacity: 0; pointer-events: none; }
.tuiles .pic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--creme); transition: background-color 300ms ease; }
.tuiles b { display: block; font-weight: 800; font-size: 1.0625rem; }
.tuiles small { display: block; color: var(--kaki); font-size: 0.8125rem; line-height: 1.3; transition: color 300ms ease; }
.tuiles label:has(input:checked) { background: var(--c); border-color: var(--c); }
.tuiles label:has(input:checked) .pic { background: rgba(255, 255, 255, 0.18); }
.tuiles label:has(input:checked) small { color: rgba(255, 255, 255, 0.86); }
.tuiles label:has(input:focus-visible) { outline: 3px solid var(--or); outline-offset: 3px; }
.tuiles .coche { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; transform: scale(0); transition: transform 300ms var(--ease); }
.tuiles .coche svg { width: 14px; height: 14px; stroke-width: 3; }
.tuiles label:has(input:checked) .coche { transform: scale(1); }
.cx-form .champs { margin-top: 22px; display: grid; gap: 14px; }
.cx-form .champ input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(243, 236, 220, 0.26); background: rgba(243, 236, 220, 0.06); color: var(--creme); transition: border-color 200ms ease; }
.cx-form .champ input:hover { border-color: rgba(243, 236, 220, 0.5); }
.cx-form .btn { width: 100%; margin-top: 6px; }
.alerte { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 0.9375rem; }
.alerte.erreur { background: rgba(224, 112, 95, 0.14); color: #ffd3cc; border: 1px solid rgba(224, 112, 95, 0.5); }
.alerte.ok { background: rgba(120, 200, 160, 0.12); color: #cdeedd; border: 1px solid rgba(120, 200, 160, 0.4); }
.demo { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--filet-n); font-size: 0.9375rem; color: var(--kaki); }
.demo ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.demo button.puce { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--filet-n); background: none; color: var(--creme); font-weight: 600; transition: border-color 200ms ease, background-color 200ms ease; }
.demo button.puce:hover { border-color: var(--creme); background: rgba(243, 236, 220, 0.06); }
.demo .lien { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--kaki); text-decoration: underline; text-underline-offset: 3px; }
.demo .lien:hover { color: var(--creme); }

/* --- Pièces jointes de la demande (fond clair) ---------------------------------------------------- */
.icone { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pieces { display: grid; gap: 14px; }
.libelle-pieces { font-weight: 800; }
.piece { display: grid; gap: 6px; }
.piece > .libelle { font-weight: 700; font-size: 0.9375rem; }
.depot { display: grid; gap: 6px; }
.depot-zone { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1.5px dashed #b9aa90; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color 200ms ease; }
.depot-zone:hover { border-color: var(--encre); }
.depot input:focus-visible + .depot-zone { outline: 3px solid #9a6a00; outline-offset: 2px; }
.depot-zone b { display: block; font-size: 0.9375rem; }
.depot-zone small { display: block; color: var(--encre-2); font-size: 0.8125rem; }
.depot-liste { display: grid; gap: 6px; }
.depot-liste li { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border: 1px solid var(--filet-c); border-radius: 12px; background: #fff; font-size: 0.9375rem; }
.depot-liste li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot-liste li small { color: var(--encre-2); }
.depot-liste li.echec { color: #9c2a20; }
.depot-liste .retirer { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; color: var(--encre-2); }
.confirmation.erreur { background: #9c2a20; color: #fff; }
.titre-demo { font-size: 1rem; color: var(--creme); }

/* --- Vérification d'un document ------------------------------------------------------------------- */
.verification { padding-top: 48px; padding-bottom: 80px; max-width: 760px; }
.verification h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.verification .chapo { color: var(--kaki); margin-top: 12px; }
.ligne-verifier { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.ligne-verifier .champ { flex: 1 1 240px; }
.ligne-verifier input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(243, 236, 220, 0.3); background: rgba(243, 236, 220, 0.06); color: var(--creme); font-size: 1.125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.verdict { margin-top: 26px; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; }
.verdict .icone { width: 28px; height: 28px; margin-top: 2px; }
.verdict h2 { font-size: 1.375rem; font-weight: 800; }
.verdict p { margin-top: 4px; }
.verdict.vrai { background: #e3f1ea; color: #124733; }
.verdict.faux { background: #fbe7e4; color: #7a1d17; }
.verdict dl { margin-top: 14px; display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); color: var(--encre); }
.verdict dt { font-size: 0.8125rem; color: var(--encre-2); }
.verdict dd { margin: 0; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .cinetique .mot > span, .apparait { transform: none !important; opacity: 1 !important; transition: none !important; }
  .phrase p span { opacity: 1 !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }
.marque .logo-ecole { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #fff; }
