/* ==========================================================================
   Top Clario — Boutique de logiciels + Arcade
   Feuille commune à toutes les pages. Aucune dépendance sauf Google Fonts.
   Jetons : papier crème (jour), marine (nuit), or Top Clario, violet.
   ========================================================================== */

:root {
  /* Couleurs — thème jour */
  --papier: #F4F0E8;
  --papier-2: #ECE6DA;
  --papier-3: #E2D9C7;
  --carte: #FBF9F4;
  --encre: #0B1526;
  --encre-2: #465061;
  --encre-3: #6E7685;
  --ligne: #D9D0BF;
  --ligne-forte: #BCAF97;
  --or: #E8B957;
  --or-texte: #85590C;
  --or-doux: #F2E3BD;
  --violet: #5B4BE0;
  --violet-doux: #E4E0FA;
  --ok: #2F7D4F;
  --ok-doux: #DCEEE2;
  --atelier: #A4560C;
  --atelier-doux: #F5E4D0;
  --bientot: #596375;
  --bientot-doux: #E4E7EC;
  --btn: #0B1526;
  --btn-texte: #F4F0E8;
  --sombre: #0B1526;
  --sur-sombre: #F4F0E8;
  --voile: rgba(11, 21, 38, .45);
  --ombre: 0 1px 0 rgba(11, 21, 38, .04), 0 14px 32px -18px rgba(11, 21, 38, .28);
  --lueur: rgba(232, 185, 87, .38);

  /* Arcade : même monde dans les deux thèmes */
  --nuit: #07111F;
  --nuit-2: #0E1B33;
  --nuit-3: #16264A;
  --neon-or: #FFD27A;
  --neon-violet: #9B8CFF;
  --neon-cyan: #56D7FF;
  --neon-rose: #FF6FA8;
  --neon-vert: #7CF2A6;
  --creme: #F4F0E8;

  /* Typo */
  --f-titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-pixel: "Silkscreen", "JetBrains Mono", ui-monospace, monospace;

  --t-xs: .75rem;
  --t-s: .875rem;
  --t-m: 1.0625rem;
  --t-l: 1.25rem;
  --t-xl: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  --t-2xl: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --t-3xl: clamp(2.5rem, 1.5rem + 4.4vw, 5.2rem);

  --page: 1200px;
  --colonne: 720px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --r: 6px;
  --r-l: 14px;
  --vite: 180ms;
  --doux: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #0A1322;
    --papier-2: #0F1A2D;
    --papier-3: #16233B;
    --carte: #0E1829;
    --encre: #F1ECE2;
    --encre-2: #B3BBCA;
    --encre-3: #8C95A6;
    --ligne: #22314A;
    --ligne-forte: #34466A;
    --or-texte: #F0C66E;
    --or-doux: #33291A;
    --violet: #AFA4FF;
    --violet-doux: #221E47;
    --ok: #79D6A3;
    --ok-doux: #14342A;
    --atelier: #F2A65A;
    --atelier-doux: #382514;
    --bientot: #A3ADBF;
    --bientot-doux: #1B2538;
    --btn: #E8B957;
    --btn-texte: #0B1526;
    --sombre: #14223D;
    --voile: rgba(2, 6, 14, .6);
    --ombre: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
    --lueur: rgba(232, 185, 87, .22);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --papier: #0A1322;
  --papier-2: #0F1A2D;
  --papier-3: #16233B;
  --carte: #0E1829;
  --encre: #F1ECE2;
  --encre-2: #B3BBCA;
  --encre-3: #8C95A6;
  --ligne: #22314A;
  --ligne-forte: #34466A;
  --or-texte: #F0C66E;
  --or-doux: #33291A;
  --violet: #AFA4FF;
  --violet-doux: #221E47;
  --ok: #79D6A3;
  --ok-doux: #14342A;
  --atelier: #F2A65A;
  --atelier-doux: #382514;
  --bientot: #A3ADBF;
  --bientot-doux: #1B2538;
  --btn: #E8B957;
  --btn-texte: #0B1526;
  --sombre: #14223D;
  --voile: rgba(2, 6, 14, .6);
  --ombre: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --lueur: rgba(232, 185, 87, .22);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--or); color: #0B1526; }
h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
p { margin: 0; }
.visuel-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--btn); color: var(--btn-texte); padding: 10px 14px; border-radius: var(--r); }
.saut:focus { left: 8px; }

/* ---------- Mise en page ---------- */
.page { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gouttiere); }
.colonne { max-width: var(--colonne); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-serree { padding-block: clamp(36px, 5vw, 64px); }
.pile { display: grid; gap: 16px; }
.pile-l { display: grid; gap: 28px; }
.rangee { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.separe { border: 0; border-top: 1px solid var(--ligne); margin: 0; }

/* ---------- Typo utilitaire ---------- */
.surtitre {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--encre-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.surtitre .point, .point-or {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 4px var(--lueur);
  flex: none;
}
.chapeau { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--encre-2); max-width: 60ch; }
.titre-section { font-size: var(--t-2xl); }
.titre-moyen { font-size: var(--t-xl); }
.mono { font-family: var(--f-mono); }
.chiffres { font-variant-numeric: tabular-nums; }
.discret { color: var(--encre-3); font-size: var(--t-s); }
.texte-or { color: var(--or-texte); }
em.souligne, .souligne {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--or-doux) 62%);
  padding-inline: .06em;
}
.prose { font-size: var(--t-m); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--t-xl); margin-top: 2.2em; }
.prose h3 { font-size: var(--t-l); margin-top: 1.8em; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--or-texte); }
.prose a { color: var(--violet); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }

/* ---------- Boutons ---------- */
.btn {
  --fond: var(--btn);
  --texte: var(--btn-texte);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  background: var(--fond);
  color: var(--texte);
  border: 1px solid var(--fond);
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--vite) var(--doux), box-shadow var(--vite), background var(--vite), color var(--vite);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px var(--voile); }
.btn:active { transform: translateY(0); }
.btn .fleche { transition: transform var(--vite) var(--doux); }
.btn:hover .fleche { transform: translateX(4px); }
.btn-ligne { --fond: transparent; --texte: var(--encre); border-color: var(--ligne-forte); }
.btn-ligne:hover { border-color: var(--encre); }
.btn-or { --fond: var(--or); --texte: #0B1526; }
.btn-petit { min-height: 36px; padding: 8px 14px; font-size: .72rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.lien-fleche {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--encre); display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 1px solid var(--ligne-forte); padding-bottom: 4px;
}
.lien-fleche:hover { border-color: var(--or); }

/* ---------- Puces / étiquettes ---------- */
.puce {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--ligne-forte); color: var(--encre-2);
  padding: 5px 10px; border-radius: 3px; white-space: nowrap;
}
.statut { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; font-weight: 700; white-space: nowrap; }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.statut-disponible { color: var(--ok); background: var(--ok-doux); }
.statut-atelier { color: var(--atelier); background: var(--atelier-doux); }
.statut-bientot { color: var(--bientot); background: var(--bientot-doux); }
.statut-gratuit { color: var(--violet); background: var(--violet-doux); }

/* Étiquette de prix : trou perforé à gauche, comme en magasin */
.etiquette {
  --trou: 5px;
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: .9rem;
  background: var(--or);
  color: #0B1526;
  padding: 5px 12px 5px 20px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle var(--trou) at 12px 50%, transparent 98%, #000 100%);
          mask: radial-gradient(circle var(--trou) at 12px 50%, transparent 98%, #000 100%);
  white-space: nowrap;
}
.etiquette small { font-weight: 500; font-size: .68rem; letter-spacing: .04em; }
.etiquette-gratuit { background: var(--violet-doux); color: var(--violet); }
.etiquette-neutre { background: var(--papier-3); color: var(--encre-2); }

/* ---------- Bandeau d'aperçu ---------- */
.apercu {
  background: repeating-linear-gradient(-45deg, var(--or) 0 14px, #F3CC72 14px 28px);
  color: #0B1526;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em;
  padding: 7px var(--gouttiere);
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
}
.apercu button { background: #0B1526; color: #F4F0E8; border: 0; border-radius: 3px; padding: 3px 9px; font-family: var(--f-mono); font-size: .68rem; cursor: pointer; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--papier) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
          backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--vite), box-shadow var(--vite);
}
.entete.defile { border-color: var(--ligne); }
.entete-int { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); flex: none; }
.marque svg { width: 34px; height: 34px; }
.marque-nom { font-family: var(--f-titre); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1; }
.marque-sous { display: block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-3); margin-top: 3px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--encre-2); padding: 8px 12px; border-radius: 3px; position: relative;
}
.nav a:hover { color: var(--encre); }
.nav a[aria-current="page"] { color: var(--encre); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--or); }
.entete .btn { margin-left: 8px; }
.bouton-theme, .bouton-menu {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r);
  border: 1px solid var(--ligne); background: transparent; cursor: pointer; color: var(--encre); flex: none;
}
.bouton-theme svg, .bouton-menu svg { width: 18px; height: 18px; }
.bouton-menu { display: none; }
@media (max-width: 1020px) {
  .nav, .entete .btn-entete { display: none; }
  .bouton-menu { display: inline-grid; margin-left: auto; }
}
.menu-mobile {
  position: fixed; inset: 0; z-index: 60; background: var(--papier);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gouttiere) calc(env(safe-area-inset-bottom, 0px) + 24px);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.menu-mobile .haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu-mobile a.lien { font-family: var(--f-titre); font-size: 2rem; font-weight: 700; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--ligne); letter-spacing: -.02em; }
.menu-mobile a.lien small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--encre-3); margin-left: 10px; font-weight: 500; }
.menu-mobile .btn { margin-top: 18px; }

/* ---------- Pied ---------- */
.pied { background: var(--nuit); color: #C9CFDC; padding-block: 64px 28px; margin-top: 0; }
.pied a { color: #E9E4DA; text-decoration: none; }
.pied a:hover { color: var(--neon-or); }
.pied-grille { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.pied h3 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #8A93A8; font-weight: 500; margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.pied .marque { color: #F4F0E8; }
.pied .marque-sous { color: #8A93A8; }
.pied-texte { margin-top: 16px; max-width: 34ch; font-size: .95rem; color: #AEB6C6; }
.tampon {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 118px; height: 118px; border-radius: 50%; border: 1.5px dashed var(--or); color: var(--or);
  font-family: var(--f-mono); font-size: .54rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 8px;
  transform: rotate(-9deg); margin-top: 22px; line-height: 1.5;
}
.tampon strong { font-family: var(--f-titre); font-size: 1rem; letter-spacing: -.01em; text-transform: none; }
.pied-bas { margin-top: 48px; padding-top: 22px; border-top: 1px solid #1B2A45; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: #8A93A8; }
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; } .pied-grille > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pied-grille { grid-template-columns: 1fr; } }

/* ---------- Encadrés (repères, avertissements) ---------- */
.encadre { background: var(--or-doux); padding: 20px 22px; border-radius: var(--r); }
.encadre .surtitre { color: var(--or-texte); margin-bottom: 8px; display: flex; }
.encadre-violet { background: var(--violet-doux); }
.encadre-violet .surtitre { color: var(--violet); }
.encadre-neutre { background: var(--papier-2); }
.encadre-neutre .surtitre { color: var(--encre-2); }

/* ---------- Tableaux ---------- */
.tableau-conteneur { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--r); background: var(--carte); }
.tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau caption { text-align: left; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); padding: 14px 18px 4px; }
.tableau th { text-align: left; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); font-weight: 700; padding: 12px 18px; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: 13px 18px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td.nombre, .tableau th.nombre { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Grilles de cartes ---------- */
.grille { display: grid; gap: clamp(16px, 2vw, 24px); }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; } }

/* ---------- Boîte de logiciel (visuel produit) ---------- */
.boite {
  --teinte: #0B1526;
  --encre-boite: #F4F0E8;
  --accent-boite: #E8B957;
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: var(--teinte);
  color: var(--encre-boite);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 10px 0 0 rgba(255, 255, 255, .07), inset 11px 0 0 rgba(0, 0, 0, .18);
  transform-style: preserve-3d;
}
.boite::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; background: var(--motif, none); }
.boite[data-motif="rayures"] { --motif: repeating-linear-gradient(115deg, var(--accent-boite) 0 2px, transparent 2px 16px); }
.boite[data-motif="points"] { --motif: radial-gradient(circle, var(--accent-boite) 1.6px, transparent 2px) 0 0 / 16px 16px; }
.boite[data-motif="grille"] { --motif: linear-gradient(var(--accent-boite) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--accent-boite) 1px, transparent 1px) 0 0 / 22px 22px; }
.boite[data-motif="damier"] { --motif: conic-gradient(var(--accent-boite) 25%, transparent 0 50%, var(--accent-boite) 0 75%, transparent 0) 0 0 / 26px 26px; }
.boite[data-motif="soleil"] { --motif: repeating-conic-gradient(from 0deg at 85% 110%, var(--accent-boite) 0 6deg, transparent 6deg 16deg); }
.boite[data-motif="ondes"] { --motif: repeating-radial-gradient(circle at 100% 0, var(--accent-boite) 0 2px, transparent 2px 18px); }
.boite-sigle {
  position: absolute; left: 22px; bottom: 12px;
  font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); letter-spacing: -.05em; line-height: .9;
  color: var(--encre-boite);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .18);
}
.boite-sku { position: absolute; top: 12px; left: 22px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; opacity: .8; }
.boite-coin { position: absolute; top: 10px; right: 12px; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; background: var(--accent-boite); color: #0B1526; padding: 3px 7px; border-radius: 2px; font-weight: 700; }
.boite-reflet { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%); transform: translateX(-100%); transition: transform .8s var(--doux); pointer-events: none; }

/* ---------- Carte produit ---------- */
.produit {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  padding: 12px 12px 16px;
  transition: transform .35s var(--doux), box-shadow .35s var(--doux), border-color var(--vite);
  position: relative;
}
.produit:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: var(--ligne-forte); }
.produit:hover .boite-reflet { transform: translateX(100%); }
.produit .boite { perspective: 600px; }
.produit-corps { display: grid; gap: 8px; padding-inline: 6px; flex: 1; align-content: start; }
.produit-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.produit-cat { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3); }
.produit h3 { font-size: 1.22rem; letter-spacing: -.015em; }
.produit h3 a { text-decoration: none; }
.produit h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-l); }
.produit p { color: var(--encre-2); font-size: .95rem; line-height: 1.5; }
.produit-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-inline: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.produit-pied .btn { position: relative; z-index: 2; }

/* ---------- Défilant (marquee) ---------- */
.defilant { overflow: hidden; border-block: 1px solid var(--ligne); background: var(--papier-2); }
.defilant-piste { display: flex; gap: 40px; width: max-content; padding-block: 14px; animation: defile 60s linear infinite; }
.defilant:hover .defilant-piste { animation-play-state: paused; }
.defilant span { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); white-space: nowrap; display: inline-flex; gap: 40px; align-items: center; }
.defilant span::after { content: "✦"; color: var(--or-texte); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Tiroir (fiche produit) ---------- */
.tiroir-fond { position: fixed; inset: 0; background: var(--voile); z-index: 70; opacity: 0; transition: opacity .25s; }
.tiroir-fond.ouvert { opacity: 1; }
.tiroir {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--papier); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .45);
  transform: translateX(100%); transition: transform .38s var(--doux);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}
.tiroir.ouvert { transform: none; }
.tiroir-haut { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--ligne); }
.tiroir-corps { overflow-y: auto; padding: 22px 22px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 20px; align-content: start; }
.tiroir-corps h2 { font-size: var(--t-xl); }
.tiroir-corps ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.fermer { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--ligne); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--encre); }
@media (max-width: 620px) {
  .tiroir { top: auto; width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .tiroir.ouvert { transform: none; }
}

/* ---------- Formulaires ---------- */
.champ { display: grid; gap: 6px; }
.champ label, .etiquette-champ { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); font-weight: 500; }
.saisie, .champ input, .champ select, .champ textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  background: var(--carte); color: var(--encre);
  border: 1px solid var(--ligne-forte); border-radius: var(--r);
  font-size: 1rem;
  transition: border-color var(--vite), box-shadow var(--vite);
}
.champ textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.saisie:focus, .champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-doux); }
.aide { font-size: .85rem; color: var(--encre-3); }
.champ input, .champ select, .champ textarea { min-width: 0; }
.segments { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.segments button, .filtre {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--ligne-forte); background: transparent; color: var(--encre-2);
  padding: 8px 12px; border-radius: 3px; cursor: pointer; min-height: 38px;
  transition: background var(--vite), color var(--vite), border-color var(--vite);
}
.segments button[aria-pressed="true"], .filtre[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.segments button:hover, .filtre:hover { border-color: var(--encre); }

/* ---------- Questions (FAQ) ---------- */
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--f-titre); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.3rem; color: var(--or-texte); transition: transform var(--vite); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--encre-2); max-width: 64ch; }

/* ---------- Bandeau d'appel final ---------- */
.appel {
  background: var(--sombre); color: var(--sur-sombre);
  border-radius: var(--r-l); padding: clamp(32px, 6vw, 72px);
  position: relative; overflow: hidden; isolation: isolate;
}
.appel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 185, 87, .42), transparent 65%); z-index: -1; }
.appel h2 { font-size: var(--t-2xl); max-width: 18ch; }
.appel p { color: color-mix(in srgb, var(--sur-sombre) 78%, transparent); max-width: 52ch; margin-top: 14px; }
.appel .btn { --fond: var(--or); --texte: #0B1526; margin-top: 26px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--encre); color: var(--papier); padding: 12px 18px; border-radius: var(--r);
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em;
  transition: opacity .25s, transform .25s var(--doux); pointer-events: none; max-width: calc(100% - 32px);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Apparition au défilement : visible au repos, simple glissement ---------- */
.js .attend { transform: translateY(18px); }
.js .revele { transition: transform .9s var(--doux); }

/* ---------- Fil d'Ariane ---------- */
.ariane { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3); display: flex; gap: 8px; flex-wrap: wrap; }
.ariane a { text-decoration: none; color: var(--encre-2); }
.ariane a:hover { color: var(--encre); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .attend { transform: none; }
}
