/* ═══════════════════════════════════════════════════════════════════
   WOptimizE — site vitrine · direction artistique « Arena »
   Esprit sport (Stride) : fond blanc, titres noirs condensés en majuscules,
   boutons carrés noirs, gros numéros façon maillot.
   Le coucher de soleil (Night City) n'apparaît que dans les visuels.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg: #ffffff;
    --bg-alt: #f4f4f4;
    --card: #ffffff;
    --card-2: #f2f2f2;
    --text: #111111;
    --muted: #5f6066;
    --line: rgba(17, 17, 17, .12);
    --line-strong: rgba(17, 17, 17, .85);
    --accent: #111111;
    --accent-ink: #ffffff;
    --signal: #ff6a13;
    --good: #138a4a;
    --warn: #b45f00;
    --bad: #c8102e;
    --glass: rgba(255, 255, 255, .9);
    --sunset: radial-gradient(90% 80% at 72% 100%, #ffb347 0%, #ff7a18 18%, #ff2e88 42%, #5a1f8c 70%, #0f0a1e 100%);
    --sunset-line: linear-gradient(90deg, #ff2e88, #ff7a18 55%, #ffb347);
    --radius: 4px;
    --radius-sm: 2px;
    --max: 1200px;
    --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Condensé sportif : titres, libellés, boutons, chiffres */
    --cond: "Bahnschrift Condensed", "Bahnschrift", "Arial Narrow", Impact, sans-serif;
    --mono: "Bahnschrift", "Segoe UI", Arial, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; }

h1, h2, h3 { line-height: 1.02; margin: 0 0 .45em; }
h1, h2 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: .88; }
h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: .92; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 720px; line-height: 1.5; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--sunset-line); display: inline-block; }
/* Mot mis en valeur : couleurs du coucher de soleil */
.gradient-text { background: var(--sunset-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section.alt { background: var(--bg-alt); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ───────────── Barre supérieure ───────────── */
.topbar {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 max(20px, calc((100% - var(--max)) / 2));
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
.brand span { font-family: var(--cond); }
.brand:hover { text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.pill-link {
    font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 9px 14px; border-radius: 0;
    background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.pill-link:hover { text-decoration: none; filter: brightness(1.08); }
.burger {
    width: 44px; height: 40px; border: 2px solid var(--text); background: transparent; cursor: pointer;
    display: grid; place-content: center; gap: 6px; border-radius: 0;
}
.burger:hover { border-color: var(--line-strong); }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .3s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ───────────── Menu plein écran ───────────── */
.menu {
    position: fixed; inset: 0; z-index: 40;
    background: var(--bg);
    padding: 84px max(24px, calc((100% - var(--max)) / 2)) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow-y: auto;
}
.menu[hidden], .field[hidden] { display: none; }
.menu-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
/* Visibles par défaut : l'animation n'est qu'un bonus (désactivée si l'appareil demande moins d'animations) */
.menu-links li { border-bottom: 1px solid var(--line); animation: menuIn .45s ease both; }
.menu-links li:nth-child(2) { animation-delay: .04s; } .menu-links li:nth-child(3) { animation-delay: .08s; }
.menu-links li:nth-child(4) { animation-delay: .12s; } .menu-links li:nth-child(5) { animation-delay: .16s; }
.menu-links li:nth-child(6) { animation-delay: .2s; } .menu-links li:nth-child(7) { animation-delay: .24s; }
.menu-links a {
    display: flex; align-items: baseline; gap: 18px;
    padding: 14px 0;
    font-family: var(--cond); font-size: clamp(20px, 2vw, 24px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
    color: var(--text); text-decoration: none;
}
.menu-links a::after { content: "→"; margin-left: auto; font-weight: 400; opacity: 0; transform: translateX(-10px); transition: .2s; }
.menu-links a:hover { text-decoration: none; color: var(--signal); }
.menu-links a:hover::after, .menu-links a[aria-current="page"]::after { opacity: 1; transform: none; }
.menu-links a[aria-current="page"] { color: var(--signal); }
.menu-links small { font-family: var(--cond); font-size: 14px; color: var(--signal); font-weight: 700; letter-spacing: .08em; min-width: 34px; }
.menu-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
@keyframes menuIn { from { opacity: 0; transform: translateY(12px); } }
body.menu-open { overflow: hidden; }

main { min-height: 70vh; padding-top: 60px; outline: none; }
main:focus-visible { outline: none; }

/* ───────────── Boutons ───────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 20px;
    border-radius: 0; border: 2px solid transparent;
    font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
    cursor: pointer;
    background: var(--accent); color: var(--accent-ink);
    transition: filter .15s ease, background .2s, border-color .2s;
}
.btn::after { content: "→"; font-weight: 400; }
.btn:hover { text-decoration: none; filter: none; background: #333; }
.btn:active { filter: brightness(.95); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn.secondary:hover { background: var(--text); color: var(--bg); }
.btn.ghost { background: var(--card-2); color: var(--text); border-color: var(--card-2); }
.btn.ghost:hover { background: #e4e4e4; }
.btn.ghost::after, .btn.small::after { content: none; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.linkish { background: none; border: 0; color: var(--text); cursor: pointer; padding: 0; font-family: var(--cond); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ───────────── Héros ───────────── */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.hero h1 { margin: 0; }
.hero .lead { margin: 0 0 24px; color: var(--text); }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-meta span::before { content: "✓ "; color: var(--signal); font-weight: 800; }

/* Panneau de mesures façon moniteur système (valeurs d'exemple) */
.hud { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-size: 13px; overflow: hidden; }
.hud-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.hud-head .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: middle; }
.hud-row { display: grid; grid-template-columns: 70px 1fr 54px; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px dashed var(--line); }
.hud-row:last-of-type { border-bottom: 0; }
.hud-row b { font-weight: 600; color: var(--muted); }
.hud-bar { height: 6px; background: var(--card-2); position: relative; }
.hud-bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); background: var(--accent); }
.hud-bar.warn i { background: var(--signal); }
.hud-row span { text-align: right; }
.hud-row .hud-wide { grid-column: 2 / 4; text-align: left; }
.hud-score { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 16px; border-top: 1px solid var(--line); }
.hud-score strong { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; }

/* Gros numéro façon maillot, en contour orange */
.tile .num, .feature .ico {
    font: 800 64px/1 var(--cond); font-style: normal; letter-spacing: -0.02em;
    color: transparent; -webkit-text-stroke: 2px var(--signal);
}
.hero-shot { margin-top: 70px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.window-bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ───────────── Modules produits ───────────── */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 48px; }
.product { background: var(--bg); padding: 34px 30px; min-height: 380px; display: flex; flex-direction: column; }
.product .tag { align-self: flex-start; font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--text); padding: 4px 10px; }
.product h3 { font: 800 clamp(26px, 2.6vw, 34px)/.95 var(--cond); text-transform: uppercase; margin: 16px 0 12px; }
.product ul { list-style: none; padding: 0; margin: 14px 0 30px; display: grid; border-top: 1px solid var(--line); }
.product li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.product li::before { content: "✓"; color: var(--signal); font-weight: 800; }
.product .btn-row { margin-top: auto; }

/* Étapes */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; margin-top: 44px; scroll-snap-type: x mandatory; }
.tile { scroll-snap-align: start; background: var(--card-2); padding: 26px 24px; min-height: 240px; }
.tile .num { margin-bottom: 26px; }
.tile h3, .feature h3 { font: 800 22px/1 var(--cond); text-transform: uppercase; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.feature { background: var(--bg); padding: 28px 26px; }
.feature .ico { font-size: 48px; margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.cta-band {
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 70px);
    background: var(--sunset); color: #fff;
}
.cta-band .eyebrow, .cta-band .lead { color: #fff; }
.cta-band .btn { background: #fff; color: var(--text); }
.cta-band .btn.secondary { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn.secondary:hover { background: #fff; color: var(--text); }

/* Apparition au défilement (bonus visuel uniquement) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───────────── Page Optimiser ───────────── */
.page-head { padding: clamp(40px, 6vw, 80px) 0 30px; }
.honest { border-left: 3px solid var(--signal); padding: 4px 0 4px 20px; margin: 30px 0; font-size: 16px; color: var(--text); max-width: 900px; }
.checklist { list-style: none; padding: 0; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.checklist li { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.checklist li:last-child { border-bottom: 0; }
.checklist strong { font-weight: 700; }
.checklist span { color: var(--muted); font-size: 16px; }
.download-card { margin: 60px auto 0; max-width: 640px; text-align: center; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 46px 32px; }
.win-logo { width: 64px; height: 64px; margin: 0 auto 20px; }
.download-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; margin: 14px 0 28px; }
.badge-x64 { font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); }
.note { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* ───────────── Formulaires ───────────── */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input, textarea.input, select.input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.form-msg { min-height: 24px; font-weight: 600; }
.form-msg.ok { color: var(--good); } .form-msg.err { color: var(--bad); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }

/* ───────────── Config Creator : assistant ───────────── */
.wizard { max-width: 900px; margin: 0 auto; }
.progress { height: 3px; background: var(--line); margin: 12px 0 34px; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: var(--sunset-line); transition: width .35s ease; }
.step-label { font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.question { font: 800 clamp(28px, 3.4vw, 42px)/.95 var(--cond); text-transform: uppercase; letter-spacing: -0.01em; margin: 6px 0 10px; }
.hint { color: var(--muted); margin-bottom: 28px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice {
    text-align: left; cursor: pointer; position: relative;
    background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 18px; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--text); }
.choice[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.choice[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.choice[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 12px; right: 16px; color: var(--signal); font-size: 18px; font-weight: 800; }
.choice .code { display: block; font: 800 30px/1 var(--cond); color: transparent; -webkit-text-stroke: 1.5px var(--signal); margin-bottom: 12px; }
.choice strong { display: block; font-size: 16px; }
.choice small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    cursor: pointer; border: 1px solid var(--line-strong); background: var(--card);
    border-radius: 0; padding: 9px 14px; font-family: var(--mono); font-weight: 600; font-size: 13px;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sub-q { margin-top: 30px; }
.sub-q h3 { font-size: 18px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 14px; }

/* Onglets Nouvelle config / Mes configs */
.creator-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.creator-top .eyebrow { margin: 0; }
.creator-tabs { margin: 0; min-width: min(360px, 100%); }

/* Double curseur */
.range-box { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px 26px; }
.range-values { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.range-values strong { font-family: var(--mono); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.dual { position: relative; height: 34px; }
.dual .track { position: absolute; left: 0; right: 0; top: 15px; height: 4px; background: var(--line); }
.dual .fill { position: absolute; top: 15px; height: 4px; background: var(--sunset-line); left: var(--a, 0%); right: calc(100% - var(--b, 100%)); }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 34px; }
.dual input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 4px; background: var(--card); border: 2px solid var(--accent); cursor: grab; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 4px; background: var(--card); border: 2px solid var(--accent); cursor: grab; }
.single input[type=range] { width: 100%; accent-color: var(--accent); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.range-note { font-size: 13px; margin: 12px 0 0; }
.scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.explain div { background: var(--card); padding: 16px 18px; font-size: 15px; }
.explain strong { display: block; margin-bottom: 4px; }

/* Chargement */
.loading { max-width: 660px; margin: 0 auto; padding: 30px 0 80px; }
.spinner { width: 100%; height: 3px; margin: 0 0 34px; background: var(--line); position: relative; overflow: hidden; }
.spinner::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--sunset-line); animation: scan 1.2s ease-in-out infinite; }
@keyframes scan { from { left: -30%; } to { left: 100%; } }
.load-steps { list-style: none; padding: 0; margin: 30px 0 0; font-family: var(--mono); font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.load-steps li { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.load-steps li:last-child { border-bottom: 0; }
.load-steps li::before { content: "○  "; }
.load-steps li.active { color: var(--text); }
.load-steps li.active::before { content: "●  "; color: var(--signal); }
.load-steps li.done { color: var(--text); }
.load-steps li.done::before { content: "✓  "; color: var(--good); font-weight: 800; }

/* ───────────── Résultats : comparatif aligné ───────────── */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.compare { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); column-gap: 14px; }
.cell { padding: 16px 20px; background: var(--card); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 1px dashed var(--line); order: 0; }
.cell.opt-head { border-top: 1px solid var(--line-strong); border-radius: var(--radius) var(--radius) 0 0; padding-top: 24px; }
.cell.opt-foot { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding-bottom: 26px; }
.cell.opt-head .opt-title { font: 800 28px/1 var(--cond); text-transform: uppercase; }
.cell.opt-head .opt-sub { color: var(--muted); font-size: 14px; }
.cell.opt-head .opt-price { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.cell.featured { border-left: 2px solid var(--text); border-right: 2px solid var(--text); }
.cell.featured.opt-head { border-top: 6px solid transparent; border-image: var(--sunset-line) 1; border-left: 2px solid var(--text); border-right: 2px solid var(--text); }
.cell.featured.opt-head .row-label { color: var(--signal); }
.cell.featured.opt-foot { border-bottom: 2px solid var(--text); }
.cell .row-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cell .comp-name { font-weight: 650; margin: 6px 0 2px; line-height: 1.3; }
.cell .comp-specs { font-size: 13px; color: var(--muted); line-height: 1.45; font-family: var(--mono); }
.cell p.comp-specs { font-family: var(--font); font-size: 14px; }
.cell .comp-more + .comp-more { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
/* Un composant : image centrée, nom + prix cliquables (cf. maquette) */
.part { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 0 4px; }
.part + .part { margin-top: 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.part-img { margin: 4px 0 6px; width: 100%; max-width: 220px; aspect-ratio: 4 / 3; border-radius: 12px; background: #f4f4f6; display: grid; place-items: center; overflow: hidden; }
.part-img img { width: 86%; height: 86%; object-fit: contain; }
.part-link { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); text-decoration: none; }
a.part-link:hover { text-decoration: none; }
a.part-link:hover .part-name { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.part-name { font-weight: 650; line-height: 1.3; }
.part-price { font-family: var(--cond); font-weight: 800; font-size: 17px; color: var(--signal); }
.part-price.incl { color: var(--muted); font-weight: 600; }
.part-specs { font-size: 12.5px; color: var(--muted); line-height: 1.45; font-family: var(--mono); }
.part .offers { justify-content: center; margin-top: 4px; }
.offers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.price-tag { font-family: var(--mono); font-weight: 700; font-size: 16px; margin-right: 6px; }
.store {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em;
    padding: 4px 8px; border-radius: 4px;
    background: transparent; color: var(--text); border: 1px solid var(--line-strong);
}
.store { text-decoration: none; }
.store:hover { text-decoration: none; background: var(--text); color: #fff; }
.store i { width: 6px; height: 6px; border-radius: 1px; display: inline-block; }
.store.idealo { border-color: var(--text); }
.store.idealo i { background: #ff6600; } .store.amazon i { background: #ff9900; } .store.ldlc i { background: #1d4ed8; } .store.shop i { background: var(--good); } .store.ledenicheur i { background: #0a7cc2; } .store.pccomponentes i { background: #ff6000; } .store.google i { background: #4285f4; }
.store.best { border-color: var(--good); }
.price-src { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-src.live { color: var(--good); }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 13px; }
.checks li { padding-left: 22px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; top: 0; }
.checks li.warn::before { content: "!"; color: var(--warn); left: 4px; }
.checks li.bad::before { content: "✕"; color: var(--bad); }
.gauge { height: 6px; background: var(--card-2); margin: 8px 0 6px; }
.gauge > i { display: block; height: 100%; width: var(--g, 0%); background: var(--good); }
.gauge.mid > i { background: var(--warn); } .gauge.high > i { background: var(--bad); }
.alt { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.total-line strong { font-size: 22px; color: var(--text); letter-spacing: -0.02em; text-transform: none; }

.recap-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.recap-table th, .recap-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.recap-table thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.recap-table tbody th { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); width: 18%; }
.recap-table tr:last-child th, .recap-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.advice { display: grid; margin-top: 20px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); counter-reset: adv; }
.advice li { padding: 16px 20px 16px 58px; border-bottom: 1px solid var(--line); position: relative; counter-increment: adv; }
.advice li:last-child { border-bottom: 0; }
.advice li::before { content: counter(adv, decimal-leading-zero); position: absolute; left: 18px; font: 800 20px/1 var(--cond); color: var(--signal); top: 17px; }
.price-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Estimation des images/s : une barre par jeu, l'objectif marqué d'un trait */
.fps { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fps-res { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.fps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fps-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.fps-top strong { font: 800 18px/1 var(--cond); white-space: nowrap; }
.fps-top small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.fps-bar { position: relative; height: 8px; margin-top: 6px; background: var(--card-2); }
.fps-bar > i { display: block; height: 100%; width: var(--w, 0%); background: var(--good); }
.fps-bar.mid > i { background: var(--warn); } .fps-bar.low > i { background: var(--bad); }
.fps-bar > b { position: absolute; top: -3px; bottom: -3px; left: var(--t, 40%); width: 2px; background: var(--text); }
.fps-why { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.fps-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }

/* Raisonnement de l'agent */
.journal { list-style: none; padding: 0; margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.journal li { padding: 13px 18px 13px 44px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.journal li:last-child { border-bottom: 0; }
.journal li::before { content: "›"; position: absolute; left: 20px; top: 10px; font: 800 20px/1 var(--cond); color: var(--signal); }
.rejected { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; }
.rejected li { padding-left: 22px; position: relative; color: var(--muted); }
.rejected li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
.rejected strong { color: var(--text); }

/* Mes configs */
.config-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.config-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.config-item .where { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.config-item .btn-row { margin-top: auto; padding-top: 12px; }

/* ───────────── Avis ───────────── */
.reviews-top { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.score-big { font-family: var(--mono); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stars { color: var(--signal); letter-spacing: 2px; font-size: 18px; }
.star-input { display: flex; gap: 4px; }
.star-input button { font-size: 32px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--line-strong); padding: 0 2px; }
.star-input button.on { color: var(--signal); }
.bars { display: grid; gap: 6px; margin-top: 16px; font-family: var(--mono); font-size: 12px; }
.bars div { display: grid; grid-template-columns: 26px 1fr 30px; gap: 8px; align-items: center; }
.bars .bar { height: 5px; background: var(--card-2); overflow: hidden; }
.bars .bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--signal); }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.review + .review { margin-top: 10px; }
.review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-head strong { font-size: 17px; }
.review time { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.reply { margin-top: 14px; padding: 14px 18px; background: var(--card-2); border-left: 3px solid var(--signal); }
.reply b { color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.admin-tools { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ───────────── Soutenir ───────────── */
.donate { position: relative; }
.donate-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
    min-height: 300px; margin-top: 44px; padding: 40px 28px;
    border: 2px dashed var(--line-strong); border-radius: 0; background: var(--card-2); color: var(--text);
}
.donate-box.live { border: 0; background: var(--sunset); color: #fff; text-decoration: none; }
.donate-box.live .muted, .donate-box.live .eyebrow { color: #fff; }
.donate-box.live .btn { background: #fff; color: var(--text); }
.donate-box .btn { margin-top: 14px; }
/* Portrait flottant en haut à gauche (photo : /img/moi.png) */
.avatar-float {
    position: absolute; top: 26px; left: max(20px, calc((100% - var(--max)) / 2));
    width: clamp(84px, 11vw, 150px); aspect-ratio: 1; margin: 0; border-radius: 50%;
    overflow: hidden; background: var(--card-2); border: 1px solid var(--line-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    animation: floaty 6s ease-in-out infinite;
    display: grid; place-items: center;
}
.avatar-float img { width: 100%; height: 100%; object-fit: cover; }
.avatar-empty { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.avatar-float.empty { border-style: dashed; }
.avatar-float.empty img { display: none; }
.avatar-float.empty .avatar-empty { display: block; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ───────────── Contact ───────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq details { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.mail-card { font-family: var(--mono); font-size: clamp(16px, 2vw, 22px); font-weight: 600; word-break: break-all; }

/* ───────────── Compte ───────────── */
.auth { max-width: 480px; margin: 0 auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 26px; }
.tabs button { border: 0; background: transparent; padding: 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.admin-badge { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 4px; background: var(--signal); color: #000; vertical-align: middle; }

/* ───────────── Pied de page ───────────── */
.footer { border-top: 6px solid transparent; border-image: var(--sunset-line) 1; padding: 56px 0 40px; margin-top: 40px; background: var(--bg); }
.footer-grid { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid p { color: var(--muted); font-size: 15px; margin-top: 14px; }
.footer-grid h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-grid a:not(.brand) { display: block; color: var(--text); font-size: 15px; margin: 8px 0; text-decoration: none; }
.footer-grid a:not(.brand):hover { text-decoration: underline; text-decoration-color: var(--signal); }
.footer-legal { width: min(var(--max), calc(100% - 40px)); margin: 36px auto 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.section-title { font-size: clamp(20px, 2.2vw, 26px); margin: 64px 0 14px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* ───────────── Mobile ───────────── */
@media (max-width: 900px) {
    body { font-size: 16px; background-size: 40px 40px; }
    .duo, .features, .contact-grid, .reviews-top, .footer-grid, .hero-grid { grid-template-columns: 1fr; }
    .explain { grid-template-columns: 1fr; }
    .checklist li { grid-template-columns: 1fr; gap: 4px; }
    .product { min-height: 0; padding: 30px 24px; }
    .pill-link { display: none; }
    .donate { padding-top: 140px; }
    .avatar-float { left: 50%; margin-left: -48px; width: 96px; }
    .part-img { max-width: 200px; }

    /* Comparatif : une option entière, puis la suivante (ordre calculé en JS : option × 100 + ligne) */
    .compare { grid-template-columns: 1fr; }
    .cell { order: var(--ord, 0); }
    .cell.opt-foot { margin-bottom: 22px; }
}

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

@media print {
    .topbar, .menu, .footer, .wizard-nav, .btn, .offers { display: none !important; }
    main { padding-top: 0; }
}

/* Nom de l'application : casse « WOptimizE » conservée même dans les titres en majuscules */
.nm { text-transform: none; }

/* Soutien : bandeau en bas de chaque page et encart sous les résultats du Config Creator (jamais de fenêtre surgissante) */
.support-band { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 36px 0; }
.support-band[hidden] { display: none; }
.support-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.support-text { margin: 6px 0 0; max-width: 62ch; color: var(--muted); }
.support-inline { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    margin: 32px 0; padding: 18px 20px; background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--signal); }
.support-inline p { margin: 0; max-width: 70ch; }
