/* ============================================================
   MATRIXCODEGAME — habillage de la page d'accueil (2026)
   Direction « La phrase est la mise en page » (tasteskill v2).
   Une seule famille : Newsreader (variable, auto-hébergée).
   Un fond, une encre, un accent. Pas de dégradé, pas d'ombre,
   pas de filet, pas de chasse fixe.
   ============================================================ */

@font-face{
  font-family:'Newsreader';
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url('../fonts/newsreader-latin-standard-normal.woff2') format('woff2-variations');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Newsreader';
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url('../fonts/newsreader-latin-ext-standard-normal.woff2') format('woff2-variations');
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  /* Les couleurs viennent du sujet : le vert de MatrixCodeGame.
     Les proportions viennent de la direction tirée. */
  color-scheme:dark;
  --bg:#080a08;
  --surface:#121613;
  --surface-2:#1d231e;
  --ink:#f1f4ef;
  --muted:#99a39a;
  --accent:#5cf08f;
  --accent-ink:#07100a;

  --marge:32px;
  --colonne:min(1360px, 100% - var(--marge) * 2);

  --t-display:min(10.6vw, 9.7rem);
  --t-head:clamp(2.1rem, 5.2vw, 4.6rem);
  --t-sous:clamp(1.75rem, 3.2vw, 2.875rem);
  --t-body:clamp(1.0625rem, .35vw + .98rem, 1.1875rem);
  --t-small:.9375rem;

  --ease:cubic-bezier(.16,.84,.24,1);
}

@media(max-width:700px){ :root{ --marge:20px; } }

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Newsreader',Georgia,'Times New Roman',serif;
  font-size:var(--t-body);
  line-height:1.55;
  font-variant-numeric:oldstyle-nums;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{margin:0;font-weight:400;letter-spacing:-.035em;line-height:.98}
p{margin:0}
::selection{background:var(--accent);color:var(--accent-ink)}

:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

.wrap{width:var(--colonne);margin-inline:auto}

/* ---------- boutons : plats, carrés, une seule forme ---------- */
.action{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:56px;padding:0 30px;border:0;border-radius:0;
  background:var(--accent);color:var(--accent-ink);
  font-family:inherit;font-size:var(--t-body);font-weight:500;letter-spacing:-.01em;
  text-decoration:none;cursor:pointer;
  transition:transform .18s var(--ease),filter .18s var(--ease);
}
.action:hover{filter:brightness(1.08)}
.action:active{transform:translateY(1px) scale(.995)}
.action--quiet{background:var(--surface-2);color:var(--ink)}
.action--sur-accent{background:var(--accent-ink);color:var(--accent)}
.lien-texte{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.bouton-nu{border:0;background:none;padding:0;cursor:pointer;font:inherit;color:inherit}

/* ---------- en-tête ---------- */
.tete{
  position:relative;z-index:5;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;
  padding-top:26px;
}
.marque{font-size:1.0625rem;letter-spacing:-.02em;text-decoration:none}
.tete nav{display:flex;align-items:center;gap:26px;font-size:var(--t-small)}
.tete nav a{text-decoration:none;color:var(--muted)}
.tete nav a.action{color:var(--accent-ink)}
.tete nav a:hover{color:var(--ink)}
.lang-switch{display:flex;gap:10px}
.lang-switch button{
  border:0;background:none;padding:0;cursor:pointer;
  font-family:inherit;font-size:var(--t-small);color:var(--muted);
}
.lang-switch button.on{color:var(--ink)}
.tete .action{min-height:44px;padding:0 20px;font-size:var(--t-small)}
@media(max-width:700px){
  .tete nav{gap:18px;flex-wrap:wrap}
  .tete{gap:14px}
}

/* ---------- 1. héros : la phrase est la mise en page ---------- */
.heros{min-height:88svh;display:flex;flex-direction:column;justify-content:center;padding:40px 0 72px}
.heros h1{
  font-size:var(--t-display);
  font-weight:450;
  line-height:.95;
  letter-spacing:-.045em;
}
.ligne > span{will-change:transform}
.mot{white-space:nowrap}
.ligne{display:block;overflow:hidden;padding:0 .1em;margin:0 -.1em}
.ligne > span{display:block}
.fente{
  display:inline-block;vertical-align:baseline;
  width:1.35em;height:1em;
  position:relative;top:.1em;margin:0 .1em;
  overflow:hidden;
}
.fente img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;border-radius:.22em;
  opacity:0;transition:opacity .5s var(--ease);
}
.fente img.vue{opacity:1}
.heros p{margin-top:36px;max-width:46ch;line-height:1.5;color:var(--ink)}
.heros .actions{margin-top:40px;display:flex;flex-wrap:wrap;align-items:center;gap:28px}

/* ---------- rangée de titre : le titre à gauche, sa phrase à droite ---------- */
.rangee-titre{display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:end}
.rangee-titre h2{font-size:var(--t-head);max-width:13ch}
.rangee-titre p{color:var(--muted);padding-bottom:.5em}
@media(max-width:980px){
  .rangee-titre{grid-template-columns:1fr;gap:18px;align-items:start}
  .rangee-titre p{padding-bottom:0}
}

/* ---------- 2. catalogue : une rangée par application ---------- */
.catalogue{padding:32px 0 112px}
.rangs{list-style:none;margin:48px 0 0;padding:0}
.rangs a{
  display:grid;grid-template-columns:1fr auto;gap:10px 28px;align-items:baseline;
  padding:26px 24px;text-decoration:none;background:var(--surface);
  transition:background .2s var(--ease),color .2s var(--ease);
}
.rangs li:nth-child(even) a{background:var(--surface-2)}
.rangs a:hover,.rangs a:focus-visible{background:var(--accent);color:var(--accent-ink)}
.rangs .nom{font-size:var(--t-sous);line-height:1.05;letter-spacing:-.035em}
.rangs .dit{color:var(--muted);max-width:74ch;grid-column:1}
.rangs a:hover .dit,.rangs a:focus-visible .dit{color:var(--accent-ink)}
.rangs .meta{color:var(--muted);font-size:var(--t-small);text-align:right;white-space:nowrap}
.rangs a:hover .meta,.rangs a:focus-visible .meta{color:var(--accent-ink)}
@media(max-width:700px){
  .rangs{margin-top:32px}
  .rangs a{grid-template-columns:1fr;gap:8px;padding:22px 18px}
  .rangs .meta{text-align:left}
}

/* ---------- 3. installer : les étapes en une barre ---------- */
.installer{padding:0 0 112px}
.barre{display:flex;gap:6px;margin-top:52px}
.barre .etape{
  flex:1 1 0;min-width:0;padding:22px;
  display:flex;flex-direction:column;justify-content:space-between;gap:34px;min-height:240px;
}
.barre .etape b{font-weight:400;font-size:var(--t-sous);line-height:1.02;letter-spacing:-.03em}
.barre .etape p{line-height:1.45;max-width:30ch}
.barre .e1{background:var(--accent);color:var(--accent-ink);flex-grow:1}
.barre .e2{background:var(--surface-2);flex-grow:1}
.barre .e2 p,.barre .e3 p{color:var(--muted)}
.barre .e3{background:var(--surface);flex-grow:2}
@media(max-width:860px){
  .barre{flex-direction:column;gap:6px;margin-top:36px}
  .barre .etape{flex:0 0 auto;min-height:0;gap:10px;padding:20px 18px}
  .barre .etape b{font-size:var(--t-body);font-weight:500}
  .barre .etape p{max-width:none}
}

.appareils{display:grid;grid-template-columns:4fr 8fr;gap:60px;margin-top:88px;align-items:start}
.appareils > *{min-width:0}
.choix{list-style:none;margin:0;padding:0}
.choix li + li{margin-top:4px}
.choix button{
  border:0;background:none;padding:2px 0;cursor:pointer;font-family:inherit;
  font-size:var(--t-sous);font-weight:400;letter-spacing:-.035em;line-height:1.15;
  color:var(--muted);transition:color .25s var(--ease)
}
.choix li.on button,.choix button:hover{color:var(--ink)}
.etapes{margin:0;padding:0 0 0 1.6em;max-width:62ch}
.etapes li{padding:14px 0}
.etapes li::marker{color:var(--accent)}
.etapes{font-size:var(--t-body)}
.etapes b{font-weight:500}
.note-appareil{margin-top:26px;color:var(--muted);max-width:62ch}
@media(max-width:980px){
  .appareils{grid-template-columns:1fr;gap:28px;margin-top:56px}
  .choix{display:flex;gap:22px;flex-wrap:wrap}
  .choix li + li{margin-top:0}
  .choix button{font-size:1.25rem}
}

/* ---------- 4. questions ---------- */
.questions{padding:0 0 104px}
.liste-q{margin-top:52px;margin-left:33.33%}
@media(max-width:980px){
  .liste-q{margin-left:0;margin-top:40px}
  .liste-q details[open]{margin-inline:calc(var(--marge) * -1);padding-inline:var(--marge)}
}
.liste-q details{padding:0}
.liste-q details + details{margin-top:24px}
.liste-q summary{
  list-style:none;cursor:pointer;display:flex;gap:24px;align-items:baseline;justify-content:space-between;
  line-height:1.35;letter-spacing:-.01em;font-weight:500;
}
.liste-q summary::-webkit-details-marker{display:none}
.liste-q summary span.chevron{flex:none;color:var(--accent);transition:transform .25s var(--ease)}
.liste-q details[open] summary span.chevron{transform:rotate(45deg)}
.liste-q details[open]{background:var(--surface);padding:24px;margin-inline:-24px}
.liste-q details[open] + details{margin-top:24px}
.liste-q .reponse{margin-top:16px;max-width:48ch;color:var(--muted)}
.liste-q .reponse a{color:var(--ink)}

/* ---------- 5. don : l'idée inversée ---------- */
.don{background:var(--accent);color:var(--accent-ink);padding:96px 0 48px}
.don .wrap{min-height:58svh;display:flex;flex-direction:column}
.don h2{font-size:var(--t-display);line-height:.92;letter-spacing:-.05em;max-width:11ch}
.don .pied{margin-top:auto;padding-top:64px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:30px}
.don .pied p{max-width:44ch;line-height:1.4}
.don .petit{margin-top:14px;font-size:var(--t-small);opacity:.72}

/* ---------- 6. avis : une colonne, rien d'autre ---------- */
.avis{padding:104px 0 104px}
.avis .colonne{max-width:580px;margin-inline:auto}
.avis h2{font-size:var(--t-sous);line-height:1.1;letter-spacing:-.03em}
.avis .suite{color:var(--muted);margin-top:14px}
.champ{margin-top:26px}
.champ > label{display:block;margin-bottom:10px;font-size:var(--t-small);color:var(--muted)}
input,select,textarea{
  width:100%;padding:15px 16px;border:1px solid var(--surface-2);border-radius:0;
  background:var(--surface);color:var(--ink);font-family:inherit;font-size:var(--t-body);
}
textarea{min-height:140px;resize:vertical}
select{appearance:none;background-image:none}
input::placeholder,textarea::placeholder{color:var(--muted)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:none}
.etoiles{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:8px}
.etoiles input{position:absolute;opacity:0;width:0;height:0}
.etoiles label{line-height:0;color:var(--surface-2);cursor:pointer;transition:color .15s var(--ease)}
.etoiles .etoile{width:32px;height:32px;display:block;fill:currentColor}
.etoiles input:checked ~ label,.etoiles label:hover,.etoiles label:hover ~ label{color:var(--accent)}
.hp{position:absolute;left:-9999px}
.bloc{width:100%;margin-top:32px}
.msg-form{margin-top:18px;padding:14px 16px;background:var(--surface-2);font-size:var(--t-small)}

/* ---------- 7. contact : le coupon ---------- */
.contact{padding:0 0 112px}
.coupon{background:var(--surface);padding:56px;display:grid;grid-template-columns:4fr 7fr;gap:44px;align-items:start}
.coupon h2{font-size:var(--t-sous);line-height:1.04;letter-spacing:-.035em;max-width:14ch}
.coupon .cote{color:var(--muted);margin-top:22px;max-width:34ch}
.coupon .cote a{color:var(--ink)}
.deux{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media(max-width:980px){
  .coupon{grid-template-columns:1fr;gap:32px;padding:32px 24px}
  .deux{grid-template-columns:1fr}
}

/* ---------- 8. pied de page : le contact en titre ---------- */
.pied-page{background:var(--surface);padding:48px 0 40px}
.pied-haut{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;color:var(--muted);font-size:var(--t-small)}
.pied-haut p{max-width:40ch}
.pied-haut a{color:var(--muted)}
.courriel{
  display:block;margin:clamp(64px,11vh,130px) 0 0;
  font-size:var(--t-display);line-height:.95;letter-spacing:-.05em;
  text-decoration:none;
}
.courriel span{display:inline-block;white-space:nowrap}
.courriel:hover{color:var(--accent)}
.pied-bas{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;margin-top:46px;color:var(--muted);font-size:var(--t-small)}
.pied-bas a{color:var(--muted)}
.pied-bas a:hover{color:var(--ink)}

/* ---------- entrées ---------- */
.js .entre{opacity:0;transform:translateY(22px)}
.js .entre.la{opacity:1;transform:none;transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .ligne > span{transform:translateY(102%)}
.js .heros.la .ligne > span{transform:none;transition:transform .9s var(--ease)}
.js .heros.la .ligne:nth-child(2) > span{transition-delay:.11s}

.js .heros .entre{transition-delay:.45s}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
  .entre{opacity:1;transform:none}
  .ligne > span{transform:none}
}

/* Sur téléphone, la question ouverte va bord à bord sans dépasser. */
@media(max-width:980px){
  .liste-q details[open]{margin-inline:calc(var(--marge) * -1);padding:20px var(--marge)}
}

/* ============================================================
   PAGES INTÉRIEURES — fiche d'application, confidentialité,
   merci, 404. Mêmes jetons, mêmes règles que l'accueil.
   ============================================================ */

/* ---------- fiche d'application ---------- */
.retour{display:inline-block;margin:28px 0 0;color:var(--muted);text-decoration:none;font-size:var(--t-small)}
.retour:hover{color:var(--ink)}
.fiche-tete{padding:28px 0 0}
.fiche-tete h1{font-size:var(--t-head);max-width:14ch}
.fiche-meta{margin-top:18px;color:var(--muted);font-size:var(--t-small)}
.fiche-corps{display:grid;grid-template-columns:7fr 5fr;gap:64px;align-items:start;margin-top:56px;padding-bottom:104px}
.fiche-corps > *{min-width:0}
.fiche-texte p{margin:0 0 1em}
.fiche-texte p:last-child{margin-bottom:0}
.fiche-texte ul{margin:0 0 1em;padding-left:1.3em}
.fiche-texte li{margin-bottom:.5em}
.fiche-texte b{font-weight:500}
.fiche-actions{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-top:36px}
.fiche-plats{margin-top:26px;color:var(--muted);font-size:var(--t-small)}
.ecran{background:var(--surface);padding:40px 0 0;display:flex;justify-content:center;overflow:hidden}
.ecran img{width:min(330px,100%);height:auto;display:block}
.indispo{color:var(--muted)}
@media(max-width:980px){
  .fiche-corps{grid-template-columns:1fr;gap:36px;margin-top:36px;padding-bottom:72px}
  .fiche-corps .ecran{order:-1}
  .ecran{padding-top:28px}
  .ecran img{width:min(260px,70%)}
}

/* ---------- avis publiés ---------- */
.avis-liste{margin-top:40px}
.avis-un{padding:22px 0}
.avis-un + .avis-un{margin-top:10px}
.avis-un:nth-child(odd){background:var(--surface);padding-inline:20px;margin-inline:-20px}
.avis-haut{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;color:var(--muted);font-size:var(--t-small)}
.avis-haut .qui{color:var(--ink)}
.avis-note{color:var(--accent);letter-spacing:.1em}
.avis-un p{margin-top:10px}

/* ---------- pages de texte (confidentialité) ---------- */
.texte{max-width:68ch;margin-inline:auto;padding:28px 0 104px}
.texte h1{font-size:var(--t-head);max-width:12ch}
.texte .date{margin-top:16px;color:var(--muted);font-size:var(--t-small)}
.texte section{margin-top:56px}
.texte h2{font-size:var(--t-sous);line-height:1.1;max-width:18ch}
.texte section p{margin-top:16px;color:var(--muted)}
.texte section p a,.texte .chapeau a{color:var(--ink)}
.texte .chapeau{margin-top:30px;font-size:1.375rem;line-height:1.45;color:var(--ink)}
.texte .fin{margin-top:64px}

/* ---------- pages courtes (merci, 404) ---------- */
.courte{min-height:64svh;display:flex;flex-direction:column;justify-content:center;padding:56px 0 88px;max-width:62ch}
.courte h1{font-size:var(--t-head);line-height:1.02}
.courte p{margin-top:32px;max-width:46ch;color:var(--ink)}
.courte .actions{margin-top:40px;display:flex;flex-wrap:wrap;gap:24px;align-items:center}
