/* Feuille commune du site vitrine : index, conditions, confidentialité. */
:root {
  --fond: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --texte: #0e1d18;
  --texte-doux: #4d5f59;
  --texte-pale: #7c8c87;
  --bordure: #dfe7e3;
  --accent: #059669;
  --accent-fort: #047857;
  --accent-texte: #ffffff;
  --accent-pale: #e5f5ee;
  --alerte: #b45309;
  --alerte-pale: #fff4e0;
  --alerte-bordure: #f0d48a;
  /* Le bandeau d'accroche reste vert dans les deux thèmes, comme le logo. */
  --vert-nuit: #06261d;
  --vert-profond: #0b3d2e;
  --vert-moyen: #17694f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0b1311;
    --surface: #121d1a;
    --surface-2: #172420;
    --texte: #e5eeeb;
    --texte-doux: #a0b3ad;
    --texte-pale: #74877f;
    --bordure: #22322d;
    --accent: #10b981;
    --accent-fort: #34d399;
    --accent-texte: #04140e;
    --accent-pale: #123027;
    --alerte: #fbbf24;
    --alerte-pale: #2a2312;
    --alerte-bordure: #6b5a22;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent-fort); }
.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.tabular { font-variant-numeric: tabular-nums; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ── Accroche ─────────────────────────────────────────────── */
.accroche {
  position: relative;
  color: #fff;
  background:
    radial-gradient(120% 70% at 50% 100%, var(--vert-moyen) 0%, transparent 60%),
    linear-gradient(180deg, var(--vert-nuit) 0%, var(--vert-profond) 100%);
  padding: 20px 0 0;
  overflow: hidden;
}
.accroche::before {
  /* Fines bandes verticales, en écho au fond du modèle. */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 140px);
  pointer-events: none;
}
nav.pilule {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  max-width: 760px; margin: 0 auto;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.marque { display: flex; align-items: center; gap: 9px; font-weight: 700; color: #fff; text-decoration: none; }
.marque svg { width: 28px; height: 28px; }
nav.pilule .liens { display: flex; gap: 22px; margin: 0 auto; }
nav.pilule .liens a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
nav.pilule .liens a:hover { color: #fff; }
@media (max-width: 720px) { nav.pilule .liens { display: none; } nav.pilule .bouton { margin-left: auto; } }

.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; font-size: 15px;
  transition: transform .15s, background .15s;
}
.bouton:hover { transform: translateY(-1px); }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton.clair { background: #fff; color: var(--vert-profond); }
.bouton.verre { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.bouton.plein { background: var(--accent); color: var(--accent-texte); }
.bouton.plein:hover { background: var(--accent-fort); }
.bouton.petit { padding: 8px 14px; font-size: 14px; }

.titre-accroche { position: relative; z-index: 2; text-align: center; padding: 64px 0 40px; }
.etiquette {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  padding: 5px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .02em;
  margin-bottom: 22px;
}
.etiquette::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; }
h1 {
  font-size: clamp(38px, 7vw, 68px); line-height: 1.05; margin: 0 0 20px;
  letter-spacing: -0.025em; font-weight: 700;
}
h1 .serif { display: block; letter-spacing: -0.01em; }
.titre-accroche p.sous { font-size: 18px; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.infos { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ── Fenêtre de l'application (illustration) ─────────────── */
.scene { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.fenetre {
  background: #ffffff; color: #0f1720;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.35);
  overflow: hidden;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.25); border-bottom: 0;
}
.fenetre .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f3f5f7; border-bottom: 1px solid #e4e8ec; font-size: 12px; color: #667085; }
.fenetre .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; display: block; }
.fenetre .chrome span { margin-left: 8px; }
.app { display: grid; grid-template-columns: 52px 1fr 270px; min-height: 360px; }
.rail { background: #0f1720; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; }
.rail b { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.08); display: block; }
.rail b.actif { background: #059669; }
.rail b:first-child { border-radius: 9px; background: #059669; margin-bottom: 8px; }
.centre { padding: 14px; border-right: 1px solid #eef1f4; }
.recherche { display: flex; align-items: center; gap: 8px; border: 2px solid #059669; border-radius: 9px; padding: 9px 12px; color: #667085; margin-bottom: 14px; }
.recherche kbd { margin-left: auto; font: 11px ui-monospace, Consolas, monospace; background: #f2f4f7; border-radius: 4px; padding: 1px 6px; }
table.panier { width: 100%; border-collapse: collapse; }
table.panier th { text-align: left; font-weight: 500; color: #667085; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 6px; border-bottom: 1px solid #eef1f4; }
table.panier td { padding: 9px 6px; border-bottom: 1px solid #f2f4f7; vertical-align: top; }
table.panier td small { display: block; color: #667085; font-size: 11px; }
table.panier .n { text-align: right; font-variant-numeric: tabular-nums; }
.lot { font: 11px ui-monospace, Consolas, monospace; background: #ecfdf5; color: #047857; border-radius: 4px; padding: 1px 5px; }
.lot.proche { background: #fff4e0; color: #b45309; }
.cote { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafbfc; }
.cote .ligne { display: flex; justify-content: space-between; color: #475467; font-variant-numeric: tabular-nums; }
.cote .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e4e8ec; padding-top: 10px; font-weight: 700; font-size: 15px; }
.cote .total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.cote .client { border: 1px solid #e4e8ec; border-radius: 8px; padding: 8px 10px; background: #fff; }
.cote .client small { display: block; color: #667085; font-size: 11px; }
.cote .encaisser { margin-top: auto; background: #059669; color: #fff; border-radius: 9px; padding: 11px; text-align: center; font-weight: 600; }
.cote .encaisser kbd { opacity: .7; font: 11px ui-monospace, Consolas, monospace; margin-left: 6px; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail, .cote .client, table.panier .col-lot { display: none; }
  .centre { border-right: 0; }
}

.flottant {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.96); color: #0f1720;
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  font-size: 13px; display: flex; gap: 10px; align-items: center;
  max-width: 250px;
}
.flottant small { display: block; color: #667085; font-size: 11px; }
.flottant .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.flottant .ico svg { width: 20px; height: 20px; }
.f1 { left: -195px; top: 90px; }
.f2 { right: -195px; top: 250px; }
.f3 { left: -180px; bottom: 50px; }
@media (max-width: 1400px) { .flottant { display: none; } }

/* ── Bande de faits ──────────────────────────────────────── */
.faits { background: var(--surface); border-bottom: 1px solid var(--bordure); }
.faits .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fait { padding: 28px 20px; border-left: 1px solid var(--bordure); }
.fait:first-child { border-left: 0; }
.fait strong { display: block; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fait span { color: var(--texte-doux); font-size: 14px; }
@media (max-width: 520px) { .fait { border-left: 0; border-top: 1px solid var(--bordure); } .fait:first-child { border-top: 0; } }

/* ── Sections ────────────────────────────────────────────── */
section { padding: 88px 0; }
.surtitre { color: var(--accent-fort); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.intro { color: var(--texte-doux); margin: 0 0 40px; max-width: 640px; font-size: 17px; }
.centrer { text-align: center; }
.centrer .intro { margin-left: auto; margin-right: auto; }

.alterne { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr 1fr; margin-bottom: 96px; }
.alterne:last-child { margin-bottom: 0; }
.alterne.inverse .texte { order: 2; }
@media (max-width: 860px) { .alterne { grid-template-columns: 1fr; gap: 28px; } .alterne.inverse .texte { order: 0; } }
.alterne h3 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.015em; }
.alterne p { color: var(--texte-doux); margin: 0 0 18px; }
ul.coches { list-style: none; padding: 0; margin: 0; }
ul.coches li { padding: 7px 0 7px 30px; position: relative; }
/* Coche : Heroicons mini « check », en masque pour prendre la couleur d'accent. */
ul.coches li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.vitrine {
  border-radius: 20px; padding: 28px;
  background: linear-gradient(160deg, var(--vert-profond), var(--vert-moyen));
  position: relative; overflow: hidden;
}
.panneau { background: #fff; color: #0f1720; border-radius: 12px; padding: 16px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.panneau h4 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.panneau h4 small { font-weight: 500; color: #667085; font-size: 12px; }
.panneau table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.panneau th { text-align: left; font-weight: 500; color: #667085; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 5px 4px; border-bottom: 1px solid #eef1f4; }
.panneau td { padding: 8px 4px; border-bottom: 1px solid #f2f4f7; }
.panneau .n { text-align: right; }
.panneau + .panneau { margin-top: 12px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; }
.badge.ok { background: #ecfdf5; color: #047857; }
.badge.att { background: #fff4e0; color: #b45309; }
.badge.neutre { background: #f2f4f7; color: #475467; }
.ecart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ecart div { background: #f7f8fa; border-radius: 8px; padding: 10px; }
.ecart small { display: block; color: #667085; font-size: 11px; }
.ecart strong { font-variant-numeric: tabular-nums; font-size: 16px; }

.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: 16px; padding: 24px; }
.carte h3 { margin: 0 0 6px; font-size: 17px; }
.carte p { margin: 0; color: var(--texte-doux); font-size: 15px; }
.pastille { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-pale); color: var(--accent-fort); display: grid; place-items: center; margin-bottom: 16px; }
.pastille svg { width: 24px; height: 24px; }

.offres { max-width: 520px; margin: 0 auto; }
.offre { background: var(--surface); border: 1px solid var(--bordure); border-radius: 20px; padding: 32px; }
.offre.principale { border: 2px solid var(--accent); }
.prix { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 4px; }
.prix small { font-size: 16px; font-weight: 500; color: var(--texte-doux); letter-spacing: 0; }
.offre .note { color: var(--texte-doux); margin: 0 0 20px; font-size: 15px; }

ol.etapes { counter-reset: n; list-style: none; padding: 0; margin: 0; }
ol.etapes li { counter-increment: n; position: relative; padding: 0 0 26px 56px; }
ol.etapes li::before {
  content: counter(n); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-pale); color: var(--accent-fort); border: 1px solid var(--accent);
  display: grid; place-items: center; font-weight: 700;
}
ol.etapes strong { display: block; }
ol.etapes span { color: var(--texte-doux); }
.avertissement { background: var(--alerte-pale); border: 1px solid var(--alerte-bordure); border-radius: 12px; padding: 16px 18px; margin-top: 14px; font-size: 15px; }
.empreinte { margin-top: 16px; font-size: 13px; color: var(--texte-doux); overflow-wrap: anywhere; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }

details { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--texte-doux); }
.faq { max-width: 760px; margin: 0 auto; }

.final {
  margin: 0 16px 16px; border-radius: 24px; color: #fff; text-align: center;
  padding: 80px 20px;
  background:
    radial-gradient(90% 90% at 50% 120%, var(--vert-moyen), transparent 70%),
    linear-gradient(180deg, var(--vert-nuit), var(--vert-profond));
}
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 28px; }

footer { padding: 28px 0 40px; color: var(--texte-doux); font-size: 14px; }
footer .conteneur { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
footer .marque { color: var(--texte); }

/* ── Animations ──────────────────────────────────────────── */
/* L'accroche s'anime en CSS seul : sans JavaScript, elle finit visible. */
@keyframes monte { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes surgit { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(110,231,183,.6); } 50% { box-shadow: 0 0 0 6px rgba(110,231,183,0); } }
@keyframes clignote { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.titre-accroche > * { animation: monte .8s cubic-bezier(.2,.7,.2,1) both; }
.titre-accroche > :nth-child(2) { animation-delay: .08s; }
.titre-accroche > :nth-child(3) { animation-delay: .16s; }
.titre-accroche > :nth-child(4) { animation-delay: .24s; }
.titre-accroche > :nth-child(5) { animation-delay: .32s; }
.etiquette::before { animation: pulse 2.4s infinite; }
.fenetre { animation: surgit 1.1s .35s cubic-bezier(.2,.7,.2,1) both; }
.flottant { animation: monte .7s cubic-bezier(.2,.7,.2,1) both, flotte 6s ease-in-out infinite; }
.f1 { animation-delay: 1s, 1.7s; }
.f2 { animation-delay: 1.2s, 2.6s; }
.f3 { animation-delay: 1.4s, 3.4s; }
/* Curseur de saisie dans le champ de scan : l'état de repos du Comptoir. */
.recherche .curseur { width: 1.5px; height: 15px; background: #059669; margin-left: -4px; animation: clignote 1.1s steps(1) infinite; }

/* Apparition au défilement : la classe `js` n'est posée que si le script
   tourne, donc sans JavaScript rien ne reste caché. */
.js [data-apparait] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-apparait].vu { opacity: 1; transform: none; }
.js .grille [data-apparait]:nth-child(3n+2) { transition-delay: .08s; }
.js .grille [data-apparait]:nth-child(3n) { transition-delay: .16s; }
.vitrine .panneau { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vitrine:hover .panneau { transform: translateY(-4px) rotate(-.4deg); }
.carte { transition: transform .25s, border-color .25s; }
.grille .carte:hover { transform: translateY(-4px); border-color: var(--accent); }
/* Ligne du tableau qui « arrive » quand la section apparaît. */
.js .vu tbody tr { animation: monte .5s both; }
.js .vu tbody tr:nth-child(2) { animation-delay: .1s; }
.js .vu tbody tr:nth-child(3) { animation-delay: .2s; }
.js .vu tbody tr:nth-child(4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-apparait] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Pages légales ───────────────────────────────────────── */
.entete-legal { background: linear-gradient(180deg, var(--vert-nuit), var(--vert-profond)); color: #fff; padding: 20px 0 56px; }
.entete-legal h1 { font-size: clamp(32px, 5vw, 48px); margin: 56px 0 8px; }
.entete-legal p { color: rgba(255,255,255,.7); margin: 0; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--texte-doux); }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--texte); }
.a-completer { background: var(--alerte-pale); border: 1px dashed var(--alerte-bordure); color: var(--alerte); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.brouillon { background: var(--alerte-pale); border: 1px solid var(--alerte-bordure); border-radius: 12px; padding: 14px 18px; margin-bottom: 32px; font-size: 15px; color: var(--texte); }

/* ── Pied de page ────────────────────────────────────────── */
footer .liens-pied { display: flex; flex-wrap: wrap; gap: 18px; }
footer .liens-pied a { color: var(--texte-doux); text-decoration: none; }
footer .liens-pied a:hover { color: var(--texte); }
footer .signature { width: 100%; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--bordure); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
footer .signature strong { color: var(--texte); }
