/* Icosa · site · charte Monolithe (choisie par Arthur le 18/10, la même que le film).
   Noir #050505, blanc cassé #F4F4F2 (la structure et le travail d'Icosa), fumée #9A9A96, trait #333333,
   ambre #FFB547 seule couleur, réservée à la personne et à ses décisions.
   Unbounded en capitales pour les titres et les mots clés, Inter pour le texte. Polices du film, allégées (OFL). */
@font-face { font-family: "Unbounded Icosa"; src: url("fonts/unbounded-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unbounded Icosa"; src: url("fonts/unbounded-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded Icosa"; src: url("fonts/unbounded-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Icosa"; src: url("fonts/inter-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #050505; --fond-2: #0B0B0B; --blanc: #F4F4F2; --texte: #DADAD6; --fumee: #9A9A96; --sourd: #66665F;
  --trait: #333333; --trait-2: #222222; --ambre: #FFB547;
  --titre: "Unbounded Icosa", "Arial Black", sans-serif; --corps: "Inter Icosa", system-ui, -apple-system, sans-serif;
  --page: 1180px; --gout: clamp(16px, 4vw, 40px); --hdr: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { background: var(--fond); color: var(--texte); font: 400 17px/1.6 var(--corps); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blanc); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gout)); margin: 0 auto; padding: 0 var(--gout); }
.amb { color: var(--ambre); }

/* ------------------------------------------------------------------ typographie */
.eyebrow { font: 600 12px/1.2 var(--corps); letter-spacing: .26em; text-transform: uppercase; color: var(--fumee); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--blanc); flex: none; }
.eyebrow.amb::before { background: var(--ambre); }
h1, h2, h3, .t { font-family: var(--titre); font-weight: 500; text-transform: uppercase; color: var(--blanc); letter-spacing: .01em; }
h1 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.07; }
h2 { font-size: clamp(25px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--texte); max-width: 40em; }
.mot { font-family: var(--titre); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px;
  font: 500 13px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn-plein { background: var(--blanc); color: var(--fond); border: 1.5px solid var(--blanc); }
.btn-plein:hover { background: transparent; color: var(--blanc); }
.btn-plein svg { width: 14px; height: 14px; }
.btn-off { border: 1.5px solid var(--trait); color: var(--fumee); cursor: not-allowed; }
.btn-off .bientot { font: 600 10px/1 var(--corps); letter-spacing: .2em; color: var(--fond); background: var(--fumee); padding: 5px 7px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 11px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ------------------------------------------------------------------ en-tête */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--hdr); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.colle { background: rgba(5,5,5,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--trait-2); }
.hdr .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 500 17px/1 var(--titre); letter-spacing: .32em; color: var(--blanc); }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { padding: 14px 0; font: 500 13px/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--fumee); white-space: nowrap; transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--blanc); }
.nav a[aria-current="page"] { text-decoration: underline 1.5px; text-underline-offset: 8px; }
@media (min-width: 961px) and (max-width: 1080px) { .nav { gap: 20px; } }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger i { display: block; width: 22px; height: 1.5px; background: var(--blanc); position: relative; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--blanc); }
.burger i::before { top: -7px; } .burger i::after { top: 7px; }

/* ------------------------------------------------------------------ haut de page */
.hero { position: relative; padding: calc(var(--hdr) + clamp(40px, 7vw, 96px)) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-txt { position: relative; z-index: 2; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { margin-bottom: 32px; }
.rassure { margin-top: 22px; font-size: 14px; color: var(--fumee); display: flex; align-items: center; gap: 10px; }
.rassure b { width: 7px; height: 7px; border-radius: 50%; background: var(--ambre); flex: none; box-shadow: 0 0 12px rgba(255,181,71,.7); }
.cerveau { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: end; }
.cerveau canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cerveau .leg { position: absolute; font: 600 10px/1 var(--corps); letter-spacing: .22em; text-transform: uppercase; color: var(--fumee); white-space: nowrap; }
.cerveau .leg.vous { color: var(--ambre); }
.sol { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(255,255,255,.035)); pointer-events: none; }

/* ------------------------------------------------------------------ défilé */
.defile { border-top: 1px solid var(--trait-2); border-bottom: 1px solid var(--trait-2); padding: 20px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile-in { display: flex; width: max-content; animation: defile 46s linear infinite; }
.defile ul { display: flex; list-style: none; gap: 0; }
.defile li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 500 clamp(13px, 1.4vw, 16px)/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--blanc); white-space: nowrap; }
.defile li::after { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--sourd); transform: rotate(45deg); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ le film */
.film { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.film-tete { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.film-tete .dure { font: 500 12px/1 var(--corps); letter-spacing: .2em; text-transform: uppercase; color: var(--fumee); }
.ecran { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid var(--trait); overflow: hidden; }
.ecran img, .ecran video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecran video { object-fit: contain; background: #000; }
.ecran video::cue { font-family: var(--corps); background: rgba(5,5,5,.78); color: var(--blanc); }
.lire { position: absolute; inset: 0; display: flex; align-items: start; justify-content: start; padding: clamp(12px, 2.4%, 28px); }
.lire span { display: inline-flex; align-items: center; gap: 14px; background: var(--blanc); color: var(--fond); padding: 0 22px 0 8px; min-height: 52px;
  font: 500 12px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; transition: transform .25s; }
.lire span i { width: 38px; height: 38px; display: grid; place-items: center; background: var(--fond); }
.lire span i svg { width: 12px; height: 12px; margin-left: 2px; }
.lire:hover span { transform: translateY(-3px); }
.coins i { position: absolute; width: 14px; height: 14px; border-color: var(--blanc); border-style: solid; pointer-events: none; z-index: 3; }
.coins i:nth-child(1) { left: -1px; top: -1px; border-width: 2px 0 0 2px; } .coins i:nth-child(2) { right: -1px; top: -1px; border-width: 2px 2px 0 0; }
.coins i:nth-child(3) { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; } .coins i:nth-child(4) { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.film-pied { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--trait-2); }
.film-pied div { padding: 22px 22px 22px 0; display: flex; gap: 14px; align-items: baseline; font-size: 15px; color: var(--fumee); }
.film-pied div + div { padding-left: 22px; border-left: 1px solid var(--trait-2); }
.film-pied b { font: 500 12px/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--blanc); white-space: nowrap; }

/* ------------------------------------------------------------------ sections */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-tete { max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-tete h2 { margin: 18px 0 18px; }
.sec-tete.centre { margin-left: auto; margin-right: auto; text-align: center; }
.sec-tete.centre .lead { margin: 0 auto; }
.sec-pied { margin-top: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }

/* fenêtres d'interface (reprises du film) */
.win { border: 1px solid var(--trait); background: var(--fond-2); }
.wbar { height: 44px; border-bottom: 1px solid var(--trait); display: flex; align-items: center; gap: 9px; padding: 0 16px; font: 600 10.5px/1 var(--corps); letter-spacing: .2em; text-transform: uppercase; color: var(--fumee); white-space: nowrap; overflow: hidden; }
.wbar i { width: 8px; height: 8px; border: 1.2px solid #55554F; border-radius: 50%; flex: none; }
.wbar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.wbody { padding: clamp(18px, 2.4vw, 28px); }
.who { font: 600 10.5px/1 var(--corps); letter-spacing: .22em; text-transform: uppercase; color: var(--fumee); margin-bottom: 9px; }

/* la preuve : sans / avec */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.duel > *, .cartes > *, .hero .wrap > *, .film-pied > * { min-width: 0; }
.demande { border-left: 2px solid var(--trait); padding: 2px 0 2px 14px; font-size: 16px; color: var(--blanc); margin-bottom: 26px; }
.rep { min-height: 210px; }
.rep p { font-size: 16px; line-height: 1.7; }
.rep.sans p { color: #8A8A86; }
.barres { display: grid; gap: 11px; }
.barres > span { display: block; height: 9px; background: #262624; }
.barres .hl { height: auto; background: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barres .hl em { font-style: normal; font-size: 15px; color: var(--blanc); background: rgba(244,244,242,.12); border-bottom: 1.5px solid var(--blanc); padding: 1px 6px; }
.barres .hl small { font: 600 9.5px/1 var(--corps); letter-spacing: .2em; text-transform: uppercase; color: var(--blanc); border: 1px solid var(--blanc); padding: 6px 8px; white-space: nowrap; }
.etiq { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--trait); display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 500 12px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--fumee); }
.etiq.amb { color: var(--ambre); border-top-color: rgba(255,181,71,.45); }
.pont { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: start; }
.pont p:not(.eyebrow) { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--blanc); max-width: 34em; }
.pont .regles { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; }
.pont .regles span { font: 600 10.5px/1 var(--corps); letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--blanc); color: var(--blanc); padding: 8px 10px; }
.pont .regles span.amb { border-color: var(--ambre); color: var(--fond); background: var(--ambre); }

/* ce qu'il fait : cartes Monolithe (un filet blanc en tête, pas de boîte), chacune avec son écran animé */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px); }
.carte { border-top: 3px solid var(--blanc); padding-top: 22px; display: flex; flex-direction: column; }
.carte .num { font: 500 11px/1 var(--titre); letter-spacing: .16em; color: var(--fumee); margin-bottom: 14px; }
.carte h3 { margin-bottom: 12px; }
.carte > p { font-size: 15.5px; color: var(--texte); margin-bottom: 22px; }
.carte .win { margin-top: auto; }
.mini { padding: 18px; min-height: 268px; position: relative; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--trait); font-size: 14.5px; color: var(--texte); }
.ligne:last-child { border-bottom: 0; }
.ligne .g { flex: 1; min-width: 0; }
.chk { width: 22px; height: 22px; flex: none; }
.chk rect, .chk path { fill: none; stroke: var(--blanc); stroke-width: 2; }
.chk path { stroke-dasharray: 30; stroke-dashoffset: 0; }
.regle { color: var(--ambre); font-weight: 500; }
.toast { border: 1px solid var(--blanc); background: var(--fond); padding: 12px 14px; margin-top: 14px; }
.toast .t1 { font: 600 10.5px/1 var(--corps); letter-spacing: .22em; text-transform: uppercase; color: var(--blanc); display: flex; align-items: center; gap: 9px; }
.toast .t1 b { width: 9px; height: 9px; background: var(--blanc); }
.toast .t2 { font-size: 14px; color: var(--texte); margin-top: 7px; }
.corr { font-size: 14.5px; }
.corr .barre { color: var(--sourd); text-decoration: line-through; text-decoration-color: var(--blanc); text-decoration-thickness: 1.5px; }
.ecart { display: inline-block; font: 500 12px/1 var(--titre); letter-spacing: .04em; color: var(--blanc); border: 1px solid var(--blanc); padding: 6px 8px; }
.etat { font: 600 9.5px/1 var(--corps); letter-spacing: .2em; text-transform: uppercase; color: var(--fumee); white-space: nowrap; }

/* ------------------------------------------------------------------ pied de planche */
.planche { border-top: 1px solid var(--trait-2); padding: 34px 0 48px; font-size: 14px; color: var(--fumee); }
.planche b { color: var(--blanc); font-weight: 600; }

/* ------------------------------------------------------------------ apparitions au défilement (le contenu reste visible sans script) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
/* le haut de page apparaît seul, sans attendre le défilement */
.js .hero .rv { opacity: 1; transform: none; transition: none; animation: monte .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero .rv.d1 { animation-delay: .1s; } .js .hero .rv.d2 { animation-delay: .22s; } .js .hero .rv.d3 { animation-delay: .34s; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }
/* écrans animés : l'état final est l'état par défaut (lisible sans script) ; le script pose .joue pour jouer la séquence */
.joue .seq { animation: monte .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--t, 0s); }
.joue .chk path { animation: coche .45s ease both; animation-delay: calc(var(--t, 0s) + .2s); }
.joue .tape { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: tape 1.1s steps(40, end) both; animation-delay: var(--t, 0s); }
@keyframes monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes coche { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes tape { from { max-width: 0; } to { max-width: 100%; } }

/* ------------------------------------------------------------------ téléphone et tablette */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  /* tablette : le menu passe dans le burger dès que les liens sont masqués (sinon plus aucune navigation entre 721 et 960 px) */
  .nav .btn { display: none; }
  .burger { display: inline-flex; }
  .nav.ouvert { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--fond); border-bottom: 1px solid var(--trait); padding: 8px var(--gout) 24px; }
  .nav.ouvert a:not(.btn) { display: block; padding: 18px 0; border-bottom: 1px solid var(--trait-2); font-size: 14px; }
  .nav.ouvert .btn { display: inline-flex; margin-top: 20px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .cerveau { order: -1; justify-self: center; max-width: 380px; margin: -10px auto -24px; }
  .cartes { grid-template-columns: 1fr; max-width: 560px; }
}
/* les trois phrases sous le film ne tiennent plus côte à côte sous 800 px */
@media (max-width: 800px) {
  .film-pied { grid-template-columns: 1fr; }
  .film-pied div { padding: 16px 0; }
  .film-pied div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--trait-2); }
}
@media (max-width: 720px) {
  :root { --hdr: 60px; }
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--hdr) + 16px); }
  .cerveau { max-width: 250px; margin: -16px auto -20px; }
  .ctas .btn { flex: 1 1 100%; }
  .duel { grid-template-columns: 1fr; }
  .rep { min-height: 0; }
  .lire span { min-height: 46px; font-size: 11px; }
  .pont { grid-template-columns: 1fr; }
  .pont .regles { grid-column: 1; }
  .pont .eyebrow { display: none; }
  .etiq { flex-wrap: wrap; font-size: 11px; }
  .mini { min-height: 0; }
  .wbar { font-size: 9.5px; letter-spacing: .16em; }
}
.calme .defile-in { animation: none; }
.js.calme .rv, .js.calme .hero .rv { opacity: 1; transform: none; transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .defile-in { animation: none; }
  .js .rv, .js .hero .rv { opacity: 1; transform: none; transition: none; animation: none; }
  .joue .seq, .joue .chk path, .joue .tape { animation: none; }
}
