/* ====================================================================
   JW Merge — design "editorial + surligneur".
   Refs : Unseen Studio (la typo porte tout) + The Browser Company
   (chaleur, voix humaine). Reste intuitif pour la cible.
   Typo : Newsreader (display) + Hanken Grotesk (corps) + JetBrains Mono.
   Motif : vrai coup de marqueur (filtre SVG #feutre). Aucun CDN.
   Couleur : bandes teintées pleine largeur + marqueurs colorés + pied
   sombre, dans le langage du surligneur (jamais "bonbon").
   ==================================================================== */

:root {
  --paper:  #f4f0e7;
  --paper-2:#fbf9f3;
  --ink:    #16140e;
  --ink-2:  #5b5446;
  --ink-3:  #8d8675;
  --rule:   #d9d0bf;

  --hl-y: #ffd84a;
  --hl-g: #aadd80;
  --hl-b: #8ccff0;
  --hl-o: #ffac5e;
  --hl-p: #f0a0cd;
  --hl-v: #c3a4e3;

  /* lavis très doux des couleurs de marqueur, pour les bandes */
  --tint-y: #f7eecf;
  --tint-g: #e9f2da;
  --tint-b: #e2eef7;
  --tint-o: #f8ead6;
  --tint-p: #f4e3ee;

  --danger: #b4452f;

  --ease:  cubic-bezier(.16, 1, .3, 1);
  --ease2: cubic-bezier(.5, .1, .2, 1);
  --maxw:  1180px;
  --pad-band: clamp(60px, 9vh, 116px);

  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-size: 18px; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--hl-y); }

h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 400; letter-spacing: -.014em; }
.serif-i { font-style: italic; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 620px) { .wrap { padding: 0 24px; } }

.mono { font-family: "JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---- bandes pleine largeur ----------------------------------------- */
.band { padding: var(--pad-band) 0; }
.band-paper { background: var(--paper); }
.band-2 { background: var(--paper-2); }
.tint-y { background: var(--tint-y); } .tint-g { background: var(--tint-g); }
.tint-b { background: var(--tint-b); } .tint-o { background: var(--tint-o); } .tint-p { background: var(--tint-p); }

/* ---- grain papier --------------------------------------------------- */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* ---- marqueur ------------------------------------------------------- */
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: .06em; bottom: -.02em;
  background: var(--hl-y); mix-blend-mode: multiply; filter: url(#feutre);
  transform: rotate(-1.6deg) scaleX(0); transform-origin: left center; transition: transform .7s var(--ease2);
}
.hl.on::before { transform: rotate(-1.6deg) scaleX(1); }
.hl.g::before { background: var(--hl-g); } .hl.b::before { background: var(--hl-b); }
.hl.o::before { background: var(--hl-o); } .hl.p::before { background: var(--hl-p); }


/* ---- révélation au scroll ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* rideau de fusion : 5 couleurs JW qui balayent l'écran */
#wipe { position: fixed; inset: 0; z-index: 95; display: flex; transform: scaleX(0); transform-origin: left; pointer-events: none; }
#wipe i { flex: 1; }

/* bandeau 5 couleurs récurrent dans l'UI */
.seam { display: flex; }
.seam i { flex: 1; height: 6px; filter: url(#feutre); }

/* ---- loader / intro (page d'accueil) -------------------------------- */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: grid; place-items: center; }
#loader .ld-word { font-family: "Newsreader"; font-size: clamp(44px, 9vw, 96px); position: relative; display: inline-block; }
#loader .ld-hl { position: absolute; left: -3%; right: -3%; bottom: 16%; height: 26%; background: var(--hl-y); mix-blend-mode: multiply; filter: url(#feutre); transform: scaleX(0); transform-origin: left; z-index: -1; }
#loader .ld-num { margin-top: 24px; text-align: center; }
#loader.done { transform: translateY(-101%); transition: transform .9s var(--ease); }

/* ---- en-tête -------------------------------------------------------- */
header.site { padding: 24px 0; position: relative; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.word { font-family: "Newsreader"; font-size: 24px; font-weight: 500; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0; }
.word b { font: inherit; }
.brand-mark { width: 28px; height: 28px; flex: none; display: block; border-radius: 7px; }
.barnav { display: flex; gap: 26px; align-items: center; }
.barnav a { color: var(--ink-2); text-decoration: none; position: relative; font-family: "JetBrains Mono"; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.barnav a::after { content:""; position:absolute; left:0; right:100%; bottom:-3px; height:2px; background: var(--hl-y); transition: right .4s var(--ease); }
.barnav a:hover { color: var(--ink); } .barnav a:hover::after { right: 0; }
@media (max-width: 620px) { .barnav .hide-sm { display: none; } }

/* toggle FR / EN */
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--rule); background: transparent;
  padding: 5px 10px; cursor: pointer; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); transition: border-color .3s; }
.lang-toggle:hover { border-color: var(--ink); }
.lang-sep { color: var(--ink-3); pointer-events: none; }
.lang-opt { transition: color .2s, font-weight .2s; }
.lang-opt.active { color: var(--ink); font-weight: 700; }
footer.site .lang-toggle { border-color: rgba(244,240,231,.2); }
footer.site .lang-toggle:hover { border-color: rgba(244,240,231,.5); }
footer.site .lang-opt.active { color: var(--paper); }

/* numéro de section + pastille couleur */
.kick { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.kick::before { content: ""; width: 13px; height: 13px; flex: none; background: var(--hl-y); filter: url(#feutre); }
.kick.k-g::before { background: var(--hl-g); } .kick.k-b::before { background: var(--hl-b); }
.kick.k-o::before { background: var(--hl-o); } .kick.k-p::before { background: var(--hl-p); }
.kick::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---- boutons -------------------------------------------------------- */
.btn { font-family: "Hanken Grotesk"; font-weight: 600; font-size: 16.5px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); padding: 16px 30px; display: inline-flex; align-items: center; gap: 11px;
  position: relative; overflow: hidden; cursor: pointer; text-decoration: none;
  transition: transform .5s var(--ease), opacity .3s; }
.btn::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: var(--hl-y); mix-blend-mode: multiply; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.btn:not(:disabled):hover { transform: translateY(-3px); } .btn:not(:disabled):hover::after { transform: scaleX(1); }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost::after { display: none; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:not(:disabled):hover .arrow { transform: translateX(4px); }
.btn .spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(244,240,231,.4); border-top-color: var(--paper); border-radius: 50%; animation: rot .8s linear infinite; }
.btn.busy .spin { display: block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* appel à l'action : un surligneur repasse en boucle sous le libellé, en changeant
   de couleur à chaque passage — attire l'œil sur le bouton (accueil + outil). */
.btn.cta { isolation: isolate; }
.cta-hl { position: absolute; left: 16px; right: 16px; bottom: 9px; height: 7px; border-radius: 2px;
  background: var(--hl-y); filter: url(#feutre); transform: scaleX(0); transform-origin: left center;
  pointer-events: none; opacity: .9; z-index: 1;
  animation: ctaPulse 3.6s var(--ease2) infinite, ctaHue 18s steps(1, end) infinite; }
.btn.cta:not(:disabled):hover .cta-hl { animation-play-state: paused; transform: scaleX(1); transform-origin: left center; }
.btn.cta:disabled .cta-hl { display: none; }
@keyframes ctaPulse {
  0%     { transform: scaleX(0); transform-origin: left center; }
  18%    { transform: scaleX(1); transform-origin: left center; }
  54%    { transform: scaleX(1); transform-origin: right center; }
  72%    { transform: scaleX(0); transform-origin: right center; }
  72.01% { transform-origin: left center; }
  100%   { transform: scaleX(0); transform-origin: left center; }
}
@keyframes ctaHue {
  0%   { background: var(--hl-y); } 20% { background: var(--hl-g); }
  40%  { background: var(--hl-b); } 60% { background: var(--hl-o); }
  80%  { background: var(--hl-p); } 100% { background: var(--hl-y); }
}

/* ====================================================================
   PAGE D'ACCUEIL
   ==================================================================== */
.home { padding-top: clamp(30px, 5vh, 70px); padding-bottom: 10px; }
.home h1 { font-size: clamp(46px, 9vw, 104px); line-height: .98; margin: 0; letter-spacing: -.03em; }
.home h1 .line { display: block; overflow: hidden; padding: 0 .04em; }
.home h1 .inner { display: block; transform: translateY(116%); }
.ready .home h1 .inner { transform: translateY(0); transition: transform 1s var(--ease); }
.ready .home h1 .line:nth-child(2) .inner { transition-delay: .08s; }
.ready .home h1 .line:nth-child(3) .inner { transition-delay: .16s; }
.home .lede { font-size: 21px; color: var(--ink-2); max-width: 52ch; margin: 34px 0 0; line-height: 1.5; opacity: 0; transform: translateY(14px); }
.ready .home .lede { opacity: 1; transform: none; transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s; }
.home .cta { margin-top: 44px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; opacity: 0; transform: translateY(14px); }
.ready .home .cta { opacity: 1; transform: none; transition: opacity .9s var(--ease) .7s, transform .9s var(--ease) .7s; }
.home .cta .note { font-family: "JetBrains Mono"; font-size: 12px; color: var(--ink-2); }

/* "comment ça marche" */
.how .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid rgba(22,20,14,.16); }
@media (max-width: 760px) { .how .grid { grid-template-columns: 1fr; } }
.how .cell { padding: 42px 48px 10px 0; border-right: 1px solid rgba(22,20,14,.16); }
.how .cell:not(:first-child) { padding-left: 48px; }
.how .cell:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 760px) { .how .cell, .how .cell:not(:first-child) { border-right: 0; border-top: 1px solid rgba(22,20,14,.16); padding: 36px 0 10px; } .how .cell:first-child { border-top: 0; } }
.how .n { font-family: "JetBrains Mono"; font-size: 14px; letter-spacing: .12em; font-weight: 700; }
.how .cell:nth-child(1) .n { color: #c79a00; }
.how .cell:nth-child(2) .n { color: #4f9a3f; }
.how .cell:nth-child(3) .n { color: #2f8bc0; }
.how .cell h3 { font-size: 28px; margin: 18px 0 12px; }
.how .cell p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* ---- FAQ (accordéon replié par défaut) ------------------------------ */
.faq .faq-h { font-size: clamp(28px, 5vw, 50px); line-height: 1.04; letter-spacing: -.02em; margin: 6px 0 0; }
.faq .faq-lede { color: var(--ink-2); font-size: 19px; max-width: 58ch; margin: 16px 0 34px; }
.qa-list { border-top: 1px solid rgba(22,20,14,.16); }
.qa { border-bottom: 1px solid rgba(22,20,14,.16); }
.qa > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 18px; padding: 26px 2px; font-family: "Newsreader"; font-size: clamp(20px, 2.5vw, 27px); color: var(--ink); }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary:hover { color: #000; }
.qa-mark { font-family: "JetBrains Mono"; font-size: 26px; line-height: 1; width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; border: 1.5px solid var(--ink); transition: transform .35s var(--ease), background .3s; }
.qa > summary:hover .qa-mark { background: var(--hl-y); }
.qa[open] .qa-mark { transform: rotate(45deg); background: var(--hl-p); }
.qa-a { padding: 0 2px 30px; max-width: 72ch; }
.qa-a p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.62; }
.qa-a em { font-style: italic; font-family: "Newsreader", Georgia, serif; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa-a { animation: qaIn .45s var(--ease) both; }
}
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ====================================================================
   OUTIL (app.html)
   ==================================================================== */
.tool-intro { padding-top: clamp(20px, 4vh, 48px); }
.step .lead { font-size: 20px; color: var(--ink-2); max-width: 52ch; margin: 8px 0 0; }
.step h2 { font-size: clamp(28px, 4vw, 46px); margin: 0; }

/* dropzone — les sauvegardes importées s'affichent À L'INTÉRIEUR de la case */
.dropzone { margin-top: 32px; border: 1.5px solid var(--ink); background: var(--paper-2); padding: 0;
  text-align: left; cursor: pointer; position: relative; transition: background .35s, transform .5s var(--ease); }
.dropzone:hover, .dropzone:focus, .dropzone.drag { background: #fff; outline: none; }
.dropzone.has-files, .dropzone.has-files:hover, .dropzone.has-files:focus { background: var(--paper-2); }
.dropzone.drag { transform: translateY(-3px); background: #fff; }

.dz-prompt { padding: 52px 36px; }
.dropzone .plus { width: 42px; height: 42px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: "JetBrains Mono"; font-size: 24px; margin-bottom: 20px; flex: none; transition: width .3s, height .3s, font-size .3s; }
.dropzone .big { font-family: "Newsreader"; font-size: 29px; }
.dropzone .small { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.dropzone code { font-family: "JetBrains Mono"; font-size: 13px; background: transparent; }

/* deux libellés de la case : vide ↔ rempli */
.dz-more { display: none; }
.dropzone.has-files .dz-empty { display: none; }
.dropzone.has-files .dz-more { display: inline; }
.dropzone.has-files .dz-empty-only { display: none; }

/* état rempli : la case devient un cadre qui contient la liste + un pied « ajouter » */
.dropzone.has-files .dz-prompt { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-top: 1px dashed var(--rule); }
.dropzone.has-files .dz-prompt .plus { width: 30px; height: 30px; font-size: 18px; margin-bottom: 0; }
.dropzone.has-files .big { font-size: 18px; color: var(--ink-2); }

/* liste des fichiers, rendue à l'intérieur de la dropzone */
.file-list { list-style: none; padding: 0 28px; margin: 0; cursor: default; }
.file-list:empty { display: none; }
.dropzone.has-files .file-list { padding-top: 12px; }
.file-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule); }
.file-list .file-item:first-child { border-top: 0; }
.file-item .grow { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.file-item .dot { width: 14px; height: 14px; border-radius: 3px; filter: url(#feutre); align-self: center; }
.file-item .dev { font-family: "Newsreader"; font-size: 22px; }
.file-item .badge-schema { font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.file-item .meta { font-family: "JetBrains Mono"; font-size: 12.5px; color: var(--ink-2); width: 100%; margin-top: 4px; }
.file-item .remove { border: none; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 1.1rem; padding: .1rem .4rem; align-self: center; transition: color .2s; }
.file-item .remove:hover { color: var(--danger); }

.actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.download-row { justify-content: flex-start; }
.hint { font-family: "JetBrains Mono"; font-size: 12px; color: var(--ink-2); letter-spacing: .03em; }

/* résultat : fiche technique */
.specs { margin: 10px 0 0; border-top: 1.5px solid var(--ink); }
.spec { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.spec .k { font-family: "JetBrains Mono"; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.spec .v { font-family: "Newsreader"; font-size: clamp(40px, 5.6vw, 64px); line-height: .85; letter-spacing: -.03em; }

.muted-note { color: var(--ink-2); font-size: 16px; margin: 0 0 18px; }
ul.muted-note { padding-left: 1.1em; }
.tag-bible { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #b9761f; border: 1px solid var(--hl-o); padding: .1rem .4rem; margin-left: .5rem; }

/* ---- convergence (haut des résultats) ------------------------------- */
.converge { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: 20px 0 30px; min-height: 28px; }
.converge:empty { display: none; }
.cv-stack { display: flex; flex-direction: column; gap: 6px; }
.cv-src { font-family: "JetBrains Mono"; font-size: 13px; letter-spacing: .02em; color: var(--ink-2); display: inline-flex; align-items: center; gap: 9px; opacity: 0; }
.cv-src::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: var(--c); filter: url(#feutre); flex: none; }
.cv-arrow { color: var(--ink-3); font-size: 20px; opacity: 0; }
.cv-one { font-family: "Newsreader"; font-size: 24px; opacity: 0; }

/* ---- peaufinage : panneau replié par défaut (zéro perte par défaut) -- */
.refine { margin-top: 22px; border-top: 1.5px solid var(--ink); }
.refine-toggle { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px;
  background: transparent; border: 0; cursor: pointer; text-align: left; padding: 26px 2px; color: var(--ink); }
.refine-toggle .rt-main { font-family: "Newsreader"; font-size: 26px; grid-column: 1; }
.refine-toggle .rt-sub { grid-column: 1; }
.refine-toggle .rt-chev { grid-column: 2; grid-row: 1 / span 2; font-family: "JetBrains Mono"; font-size: 30px; line-height: 1;
  width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--ink); transition: transform .4s var(--ease), background .3s; }
.refine-toggle:hover .rt-chev { background: var(--hl-y); }
.refine.open .rt-chev { transform: rotate(45deg); }
.refine-body { display: grid; gap: 18px; padding-bottom: 8px; }

/* lien vers la FAQ détaillée (gestion des conflits) */
.cf-learn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: "JetBrains Mono";
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none;
  border-bottom: 1.5px solid var(--hl-b); padding-bottom: 3px; transition: color .2s, gap .25s var(--ease); }
.cf-learn:hover { color: var(--ink); gap: 12px; }

.rsec { padding: 30px 34px; }
@media (max-width: 620px) { .rsec { padding: 24px 20px; } }
.rsec .kick { margin-bottom: 14px; }
.rsec.info-only { margin-top: 26px; }
.info-list { margin: 0; }

.cflist { display: grid; gap: 0; }
.cfrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px 18px; padding: 16px 0; border-top: 1px solid rgba(22,20,14,.14); }
.cflist .cfrow:first-child { border-top: 0; }
.cf-loc { font-family: "Newsreader"; font-size: 19px; }
.cf-sw { display: inline-flex; gap: 6px; }
.cf-sw .sw { width: 22px; height: 14px; border-radius: 3px; filter: url(#feutre); }
.cf-pick { font-family: "JetBrains Mono"; font-size: 12.5px; color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--ink); padding: 8px 12px; cursor: pointer; }
.cf-pick:focus { outline: 2px solid var(--hl-b); outline-offset: 2px; }
@media (max-width: 620px) { .cfrow { grid-template-columns: 1fr auto; } .cf-pick { grid-column: 1 / -1; } }

.cf-auto { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0 2px; border-top: 1px solid rgba(22,20,14,.14); cursor: pointer; }
.cf-auto input { margin-top: .3rem; accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.cf-auto span { font-size: 15.5px; }

/* notes : versions réelles côte à côte */
.ncf { padding: 18px 0; border-top: 1px solid rgba(22,20,14,.14); }
.ncf:first-child { border-top: 0; }
.ncf .cf-loc { margin-bottom: 12px; }
.ncols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ncol { display: block; cursor: pointer; padding: 14px 16px; background: var(--paper-2); border: 1.5px solid var(--rule);
  transition: border-color .25s, transform .25s var(--ease); position: relative; }
.ncol:hover { transform: translateY(-2px); }
.ncol input { position: absolute; opacity: 0; pointer-events: none; }
.ncol:has(input:checked) { border-color: var(--ink); }
.ncol:has(input:checked)::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 7px;
  background: var(--hl-y); mix-blend-mode: multiply; filter: url(#feutre); }
.nc-both:has(input:checked)::after { background: var(--hl-g); }
.nc-head { display: block; margin-bottom: 7px; }
.nc-text { display: block; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.nc-text.muted { color: var(--ink-2); }

/* moment « rien à arbitrer » */
.nilconf { padding: 30px 0 6px; }
.nil-h { font-size: clamp(30px, 5vw, 50px); margin: 6px 0 14px; line-height: 1.05; }

/* ---- overlay -------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(244,240,231,.9); display: grid; place-items: center; gap: 1.1rem; z-index: 80; backdrop-filter: blur(2px); }
.overlay p { font-family: "JetBrains Mono"; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
/* chargement : 5 traits de marqueur (couleurs JW) qui se posent à tour de rôle */
.loader-marks { display: flex; flex-direction: column; gap: 11px; width: 240px; }
.loader-marks i { height: 16px; background: var(--c); filter: url(#feutre); transform: scaleX(0); transform-origin: left center; animation: lm 1.8s var(--ease2) infinite both; }
.loader-marks i:nth-child(2) { animation-delay: .12s; } .loader-marks i:nth-child(3) { animation-delay: .24s; }
.loader-marks i:nth-child(4) { animation-delay: .36s; } .loader-marks i:nth-child(5) { animation-delay: .48s; }
@keyframes lm { 0% { transform: scaleX(0); } 32%, 68% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

.error-banner { border: 1.5px solid var(--danger); color: var(--danger); padding: .9rem 1.1rem; margin-top: 1.2rem; font-size: 15px; background: #fff; }

/* ---- pied (sombre, peuplé) ------------------------------------------ */
footer.site { background: var(--ink); color: var(--paper); margin-top: 0; }
footer.site .fgrid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; padding: 66px 0 44px; }
@media (max-width: 980px) and (min-width: 721px) { footer.site .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { footer.site .fgrid { grid-template-columns: 1fr; gap: 36px; } }
footer.site .fcol:nth-child(4) h4::before { background: var(--hl-g); }
footer.site .fbrand .word { color: var(--paper); }
footer.site .fbrand p { color: rgba(244,240,231,.6); max-width: 34ch; margin: 16px 0 20px; font-size: 15.5px; line-height: 1.5; }
footer.site .fdot { display: inline-flex; gap: 7px; }
footer.site .fdot span { width: 16px; height: 16px; border-radius: 3px; filter: url(#feutre); }
footer.site .fcol h4 { font-family: "Newsreader"; font-weight: 500; font-size: 19px; margin: 0 0 16px; color: var(--paper); display: flex; align-items: center; gap: 9px; }
footer.site .fcol h4::before { content: ""; width: 11px; height: 11px; background: var(--hl-y); filter: url(#feutre); }
footer.site .fcol:nth-child(3) h4::before { background: var(--hl-b); }
footer.site .fcol a, footer.site .fcol span.li { display: block; color: rgba(244,240,231,.62); text-decoration: none; font-size: 15px; padding: 6px 0; transition: color .2s; }
footer.site .fcol a:hover { color: var(--paper); }
footer.site .fbottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 56px; border-top: 1px solid rgba(244,240,231,.15); }
footer.site .mono { color: rgba(244,240,231,.45); }

.fly { position: fixed; z-index: 80; border-radius: 3px; pointer-events: none; filter: url(#feutre); }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .hl::before { transform: rotate(-1.6deg) scaleX(1); }
  .home h1 .inner { transform: none; } .home .lede, .home .cta, .reveal { opacity: 1; transform: none; }
  .cta-hl { transform: scaleX(1) !important; transform-origin: left center; }
  .cur { display: none !important; } #loader { display: none !important; } html { scroll-behavior: auto; }
}

/* ====================================================================
   Pages légales (mentions légales, confidentialité) + bascule de langue
   par blocs (FR/EN pilotée par <html lang>). ==================== */
[data-only] { display: none; }
html[lang="fr"] [data-only="fr"],
html[lang="en"] [data-only="en"] { display: revert; }

.legal { padding: clamp(48px, 7vh, 92px) 0; }
.legal .col { max-width: 760px; }
.legal .kick { margin-bottom: 18px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 .5em; }
.legal h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 1.9em 0 .5em; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal a { color: inherit; text-decoration: underline; text-decoration-color: var(--hl-b);
  text-decoration-thickness: 2px; text-underline-offset: 2px; }
.legal a:hover { text-decoration-color: var(--ink); }
.legal ul { padding-left: 1.1em; }
.legal li { margin: .35em 0; }
.legal .updated { font-style: italic; font-family: "Newsreader", Georgia, serif; color: var(--ink-3); }
.legal .lead { font-family: "Newsreader", Georgia, serif; font-size: clamp(19px, 2.2vw, 23px);
  color: var(--ink); margin-bottom: 1.6em; }

/* lien promo discret dans le pied */
.fbrand .by { display: inline-block; margin-top: 2px; }
.fcol a.disabled { pointer-events: none; }
