:root {
  --nuit: #0b1522;
  --nuit-2: #10203a;
  --surface: rgb(255 255 255 / .045);
  --bord: rgb(255 255 255 / .1);
  --texte: #eef1f5;
  --texte-2: #b4bfcd;
  --or: #e2c27d;
  --or-2: #b8924a;
  --ok: #7ed6a2;
  --ko: #ff9a8f;
  --rayon: 18px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
html:not(.anim) { scroll-behavior: smooth; }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 17px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--or); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.cadre { width: min(1180px, 100% - 40px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 40px); }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--nuit-2); color: var(--texte); padding: 8px 14px; z-index: 50; }
.evitement:focus { left: 8px; }

.entete { position: fixed; inset: 0 0 auto; z-index: 40; background: linear-gradient(var(--nuit), transparent); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font: 600 1.15rem var(--serif); }
.marque b { color: var(--or); font-weight: 600; }
.marque img { border-radius: 50%; background: #fff; }
nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--texte-2); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--texte); }
.nav-cta { color: var(--or) !important; font-weight: 600; }
@media (max-width: 680px) { .entete nav a:not(.nav-cta) { display: none; } }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; isolation: isolate;
  background: radial-gradient(ellipse at 70% 30%, #1b3358 0%, transparent 60%), radial-gradient(ellipse at 10% 90%, #2a2140 0%, transparent 55%), var(--nuit); }
.poussiere { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: none; }
.anim .poussiere { display: block; }
.hero-in { max-width: 900px; }
.surtitre { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--or); font-weight: 600; }
.chapo { font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--texte-2); max-width: 660px; margin-bottom: 2em; }
.defiler { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; margin: 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--texte-2); }
.defiler::after { content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0; background: linear-gradient(var(--or), transparent); }

.bouton { position: relative; display: inline-block; background: linear-gradient(135deg, var(--or), var(--or-2)); color: #1a1408; border: 0; border-radius: 999px; padding: 16px 30px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 10px 40px rgb(226 194 125 / .25); }
.bouton span { display: inline-block; pointer-events: none; }
.bouton:hover { box-shadow: 0 14px 50px rgb(226 194 125 / .4); }
.bouton[disabled] { opacity: .7; cursor: progress; }

.desordre { position: relative; }
.scene { min-height: 100svh; display: grid; place-items: center; padding: 100px 20px; position: relative; overflow: hidden; }
.scene-titre { text-align: center; max-width: 16ch; margin-inline: auto; position: relative; z-index: 2; }
.papiers { list-style: none; margin: 30px auto 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; }
.papier { background: #f4ecd8; color: #3a3122; font: 500 .9rem/1.3 var(--sans); padding: 12px 16px; border-radius: 4px; box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.papier:nth-child(3n) { background: #fff6a8; }
.papier:nth-child(4n) { background: #dfeaf5; }
.ordre { max-width: 720px; text-align: center; margin: 40px auto 0; }
.ordre-titre { font: 600 clamp(1.5rem, 3.4vw, 2.5rem)/1.2 var(--serif); color: var(--or); }
.ordre-texte { color: var(--texte-2); font-size: 1.1rem; }
.anim .scene { height: 100svh; padding: 0 20px; }
.anim .papiers { position: absolute; inset: 0; margin: 0; max-width: none; display: block; }
.anim .papier { position: absolute; left: 50%; top: 50%; white-space: nowrap; will-change: transform; }
.anim .ordre { position: absolute; left: 50%; top: 50%; width: min(720px, 100% - 40px); margin: 0; translate: -50% -50%; opacity: 0; }

.bloc { padding: clamp(70px, 10vw, 140px) 0; position: relative; }
.intro { color: var(--texte-2); max-width: 720px; margin-bottom: 2.2em; font-size: 1.1rem; }

.frise { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: e; }
.etape { border-top: 1px solid var(--bord); padding-top: 22px; }
.etape-num { font: 600 .85rem var(--sans); letter-spacing: .15em; color: var(--or); }
.etape h3 { margin-top: 10px; font-size: 1.6rem; }
.etape p { color: var(--texte-2); }

.grille-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 30px; backdrop-filter: blur(6px); transform-style: preserve-3d; }
.carte p { color: var(--texte-2); margin: 0; }
.carte h3 { color: var(--texte); }
.inclinable { transition: border-color .3s ease; }
.inclinable:hover { border-color: rgb(226 194 125 / .45); }

.realisations { padding: clamp(70px, 10vw, 140px) 0; overflow: hidden; }
.piste-cadre { width: min(1180px, 100% - 40px); margin-inline: auto; }
.piste { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.carte-outil { display: flex; flex-direction: column; gap: 12px; min-height: 290px; }
.carte-outil h3 { margin: 6px 0 0; font-size: 1.6rem; }
.outil-num { font: 600 3rem/1 var(--serif); color: rgb(226 194 125 / .25); }
.etiquette { align-self: flex-start; font-size: .75rem; font-weight: 600; color: var(--or); border: 1px solid rgb(226 194 125 / .5); border-radius: 999px; padding: 3px 12px; }

.apropos { display: grid; grid-template-columns: 150px 1fr; gap: 44px; align-items: center; max-width: 920px; }
.apropos img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgb(226 194 125 / .2), 0 20px 60px rgb(0 0 0 / .4); }
.apropos p { color: var(--texte-2); font-size: 1.1rem; }
@media (max-width: 680px) { .apropos { grid-template-columns: 1fr; } .apropos img { width: 110px; } }

.bloc-contact { background: radial-gradient(ellipse at 50% 0%, #1b3358 0%, transparent 70%); }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-large { grid-column: 1 / -1; }
@media (max-width: 680px) { .formulaire { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; }
label small { font-weight: 400; color: var(--texte-2); }
input, select, textarea { font: inherit; color: var(--texte); background: rgb(255 255 255 / .06); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; width: 100%; }
select option { background: var(--nuit-2); }
input:focus, select:focus, textarea:focus { border-color: var(--or); outline: 2px solid rgb(226 194 125 / .3); }
[aria-invalid="true"] { border-color: var(--ko); }
.err { color: var(--ko); font-size: .88rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: .88rem; color: var(--texte-2); margin: 0; }
.formulaire .bouton { justify-self: start; }
.alerte { padding: 14px 18px; border-radius: 12px; border: 1px solid currentColor; }
.alerte-ok { color: var(--ok); }
.alerte-ko { color: var(--ko); }

.page-texte { padding: clamp(110px, 14vw, 160px) 0 80px; }
.page-texte h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-texte h2 { font-size: 1.35rem; margin-top: 2em; color: var(--or); }
.page-texte p, .page-texte li { color: var(--texte-2); }
.page-texte li { margin-bottom: .4em; }

.pied { border-top: 1px solid var(--bord); padding: 30px 0; font-size: .92rem; color: var(--texte-2); }
.pied-in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.pied p { margin: 0; }
.pied a { color: var(--texte-2); }

.anim .apparait { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.anim .hero .surtitre, .anim .titre-split, .anim .hero .chapo, .anim .hero .bouton { visibility: hidden; }
@media (min-width: 900px) { .hero-in { max-width: min(900px, 58vw); } .hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); } }
@media (max-width: 899px) {
  .anim .hero { padding-top: calc(72px + min(50vw, 190px) * 1.2); align-items: start; }
  .anim .papier { white-space: normal; width: calc(50vw - 24px); text-align: center; font-size: .82rem; }
}
@media (max-width: 899px) { .defiler { display: none; } }
.apropos h3 { color: var(--or); margin-top: 1.4em; }
