/* ==========================================================================
   AgimCoding — design system (thème clair, palette ardoise)
   ========================================================================== */

:root {
    /* Thème sombre AgimCoding (l'ancien thème clair est sauvegardé dans theme-original/). */
    color-scheme: dark;
    --c-ink: #FAFAFA;        /* titres */
    --c-text: #FAFAFA;       /* texte principal (blanc cassé) */
    --c-muted: #B8B8C5;      /* texte secondaire (gris clair) */
    --c-subtle: #474756;     /* bordures fortes, éléments inactifs */
    --c-line: #2D2D38;       /* bordures (gris anthracite) */
    --c-soft: #1C1C25;       /* fonds de champs, zones neutres */
    --c-bg: #08080B;         /* fond principal (noir profond) */
    --c-surface: #15151C;    /* cartes et sections (anthracite) */
    --c-accent: #E92B7B;     /* accent de marque (fuchsia du logo) */
    --c-accent-hover: #FF5299; /* survol des boutons (fuchsia clair) */
    --c-accent-soft: rgba(233, 43, 123, 0.14);
    --c-on-primary: #FFFFFF; /* texte sur fond fuchsia */
    --c-danger: #FF6B81;
    --c-danger-soft: #3A141F;

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    --container: 1480px;
    /* Échelle globale de l'interface (1 = 100 %). Toutes les tailles étant en px, on zoome l'ensemble. */
    --ui-scale: 0.85;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; zoom: var(--ui-scale); }

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--c-text); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--c-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

h1 { font-size: clamp(32px, 4.5vw, 48px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }

p { margin: 0; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, 18px); grid-template-columns: repeat(auto-fill, minmax(var(--min, 250px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; }

.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.strong { font-weight: 600; color: var(--c-ink); }
.mono { font-family: var(--font-display); letter-spacing: 0.06em; }
.eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted);
}
.eyebrow--pill { align-self: flex-start; border: 1px solid var(--c-subtle); padding: 6px 14px; border-radius: 999px; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--band { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section__head .stack { max-width: 640px; --gap: 10px; }
.price { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); }
.price--old { color: var(--c-muted); text-decoration: line-through; font-weight: 400; font-family: var(--font-body); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .12s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-accent); color: var(--c-on-primary); }
.btn--primary:hover { color: #fff; background: var(--c-accent-hover); }
.btn--outline { background: transparent; color: var(--c-text); border-color: var(--c-subtle); }
.btn--outline:hover { border-color: var(--c-accent-hover); color: var(--c-accent-hover); }
.btn--ghost { background: transparent; color: var(--c-text); }
.btn--danger { background: transparent; color: var(--c-danger); border-color: var(--c-danger); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--square { border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-line);
    background: var(--c-surface); color: var(--c-text);
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

.inline-form { display: inline; }

/* ---------- Cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 24px; }
.card--flat { background: var(--c-bg); }
.card--dark { background: linear-gradient(140deg, #3B0F25 0%, var(--c-surface) 80%); color: var(--c-on-primary); border-color: var(--c-accent); }
.card--dark h2, .card--dark h3, .card--dark .price { color: #fff; }
.card--dark .muted { color: var(--c-muted); }
.card--dark a { color: #fff; }
.card__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card__title h2 { font-size: 20px; }

/* ---------- Badges & chips ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.badge--strong { background: var(--c-accent); color: var(--c-on-primary); }
.badge--muted { background: var(--c-muted); color: var(--c-on-primary); }
.badge--soft { background: var(--c-line); color: var(--c-text); }
.badge--outline { border: 1px dashed var(--c-muted); color: var(--c-text); padding: 3px 10px; }
.badge--danger { background: var(--c-danger-soft); color: var(--c-danger); }

.chip-input { position: absolute; opacity: 0; pointer-events: none; }
.chip {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
    background: var(--c-surface); border: 1px solid var(--c-line); font-weight: 600; font-size: 14px; color: var(--c-text);
    text-decoration: none;
}
.chip--square { border-radius: 12px; }
.chip-input:checked + .chip, .chip.is-active { background: var(--c-accent); color: var(--c-on-primary); border-color: var(--c-accent); }
.chip-input:focus-visible + .chip { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.chip-input:disabled + .chip { background: transparent; color: var(--c-muted); border-style: dashed; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row > label, .form-label { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.form-help { font-size: 13px; color: var(--c-muted); }
.form-errors { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--c-danger); font-weight: 600; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.input, select.input, textarea.input {
    width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--c-subtle); background: var(--c-bg); color: var(--c-ink);
    font: inherit; font-size: 15px;
}
textarea.input { padding: 12px 14px; min-height: 110px; resize: vertical; }
.input:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); background: var(--c-surface); }
.input.is-invalid { border-color: var(--c-danger); }
.is-mono { font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }

.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--c-accent); flex: none; }

.option-card {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 64px; padding: 12px 16px; border-radius: var(--radius); cursor: pointer;
    background: var(--c-surface); border: 1px solid var(--c-line);
}
.option-card small { display: block; color: var(--c-muted); font-size: 13px; }
.chip-input:checked + .option-card { background: var(--c-accent); color: var(--c-on-primary); border-color: var(--c-accent); }
.chip-input:checked + .option-card small { color: var(--c-line); }
.chip-input:focus-visible + .option-card { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Flash ---------- */
.flashes { display: flex; flex-direction: column; gap: 8px; margin: 16px auto 0; }
.flash { padding: 14px 18px; border-radius: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.flash--success { background: var(--c-accent); color: var(--c-on-primary); }
.flash--warning, .flash--error, .flash--info { background: var(--c-surface); border: 1px dashed var(--c-muted); color: var(--c-ink); }

/* ---------- Header / nav ---------- */
.topbar { background: var(--c-surface); border-bottom: 1px solid var(--c-line); font-size: 13px; color: var(--c-muted); }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; font-weight: 600; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { padding: 2px 8px; border-radius: 6px; color: var(--c-muted); text-decoration: none; font-weight: 600; }
.lang-switch a[aria-current="true"] { background: var(--c-accent); color: var(--c-on-primary); }

.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: var(--c-accent); color: var(--c-on-primary); display: flex; align-items: center; justify-content: center; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; color: var(--c-ink); }
.brand__name span { color: var(--c-muted); }
.brand__logo { display: block; height: 22px; width: auto; }
.brand__logo--footer { height: 20px; align-self: flex-start; }
@media (max-width: 600px) { .brand__logo { height: 18px; } }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a[aria-current="page"] { border-bottom-color: var(--c-accent); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { height: 44px; padding: 0 14px; border-radius: 12px; background: var(--c-accent); color: var(--c-on-primary); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.cart-btn:hover { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; order: 3; }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(ellipse at 75% 30%, rgba(233, 43, 123, 0.22) 0%, var(--c-surface) 45%, var(--c-bg) 100%); border-bottom: 1px solid var(--c-line); }
.hero .container { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__text h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.02; letter-spacing: -0.03em; }
.hero__lead { font-size: 19px; color: var(--c-muted); max-width: 560px; }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero__photo { margin: 0; width: 100%; max-width: 640px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); background: var(--c-soft); }
.hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.trust { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--c-muted); padding-top: 12px; }
.trust span { display: flex; align-items: center; gap: 8px; }

.device {
    width: 100%; max-width: 500px; background: var(--c-surface); border: 10px solid var(--c-line); border-radius: 26px;
    padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.device__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.device__tile { border-radius: 14px; background: var(--c-bg); min-height: 70px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--c-text); }
.device__tile--big { grid-column: span 2; min-height: 150px; background: linear-gradient(160deg, var(--c-subtle), var(--c-line)); align-items: flex-end; justify-content: flex-start; padding: 14px; flex-direction: column; }
.device__tile--music { min-height: 150px; background: var(--c-line); }
.progress { height: 6px; border-radius: 999px; background: var(--c-line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--c-accent); border-radius: 999px; }

/* ---------- Product cards ---------- */
.product-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.product-card__media {
    position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--c-bg); border: 1px solid var(--c-line);
    display: flex; align-items: center; justify-content: center; color: var(--c-muted); overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge { position: absolute; top: 10px; left: 10px; }
.product-card__name { color: var(--c-ink); font-weight: 600; font-size: 17px; line-height: 1.3; text-decoration: none; flex: 1; }
.product-card__name::after { content: ''; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--c-line); position: relative; z-index: 1; }

.brand-card { text-decoration: none; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 170px; }
.brand-card__name { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--c-ink); }

.offer-card {
    text-decoration: none; background: linear-gradient(135deg, var(--c-line) 0%, var(--c-surface) 70%);
    border: 1px solid var(--c-subtle); border-radius: 26px; padding: 30px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
}
.offer-card__media { flex: 0 1 200px; aspect-ratio: 4 / 3; border-radius: 18px; background: var(--c-bg); border: 1px dashed var(--c-subtle); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--c-muted); }
.offer-card__media img { width: 100%; height: 100%; object-fit: cover; }

.service-card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c-line); color: var(--c-text); display: flex; align-items: center; justify-content: center; }
.service-card--dark { background: linear-gradient(140deg, #3B0F25 0%, var(--c-surface) 80%); color: var(--c-on-primary); border-color: var(--c-accent); }
.service-card--dark h3, .service-card--dark .price { color: #fff; }
.service-card--dark .service-card__icon { background: var(--c-bg); color: var(--c-text); }
.service-card--dark p { color: var(--c-muted); }
.service-card--dark a { color: #fff; }

.pay-list { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-list img { display: block; width: 48px; height: 30px; border-radius: 4px; }

/* ---------- Shop ---------- */
.filters { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.filters fieldset { border: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 6px; }
.filters fieldset:first-of-type { border-top: none; padding-top: 0; }
.filters legend { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); padding: 0 0 8px; }
.breadcrumb { font-size: 13px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); }

.gallery__main { aspect-ratio: 1 / 1; max-height: 520px; width: 100%; border-radius: 26px; background: radial-gradient(ellipse at 50% 30%, var(--c-line), var(--c-surface) 70%); border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: var(--c-muted); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery__thumbs button { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-surface); padding: 0; overflow: hidden; cursor: pointer; }
.gallery__thumbs button[aria-pressed="true"] { border: 2px solid var(--c-accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-subtle); border-radius: 999px; height: 56px; }
.qty button { width: 50px; height: 54px; border: none; background: transparent; font-size: 22px; cursor: pointer; color: var(--c-text); }
.qty input { width: 40px; border: none; background: transparent; text-align: center; font: inherit; font-weight: 600; color: var(--c-ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--c-line); }
.tabs button { min-height: 48px; padding: 0 16px; border: none; background: transparent; font: inherit; font-weight: 600; cursor: pointer; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--c-ink); border-bottom-color: var(--c-accent); }
.tab-panel[hidden] { display: none; }
.prose { max-width: 760px; color: var(--c-muted); }
.prose p + p { margin-top: 12px; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose ul { padding-left: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ''; width: 18px; height: 18px; flex: none; margin-top: 3px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table th { text-align: left; color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 10px 12px; }
.table td { padding: 13px 12px; border-top: 1px solid var(--c-line); vertical-align: middle; }
.table tr.is-selected td { background: var(--c-soft); }
.table .num { text-align: right; white-space: nowrap; }
.plate { font-family: var(--font-display); font-weight: 600; background: var(--c-accent); color: var(--c-on-primary); padding: 3px 8px; border-radius: 6px; letter-spacing: .06em; white-space: nowrap; }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-muted); }
.steps li span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-subtle); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.steps li.is-done, .steps li.is-current { background: var(--c-accent); color: var(--c-on-primary); border-color: var(--c-accent); font-weight: 600; }
.steps li.is-done span, .steps li.is-current span { background: var(--c-on-primary); color: var(--c-accent); border-color: transparent; }

.tracker { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; }
.tracker__bar { height: 6px; border-radius: 999px; background: var(--c-line); }
.tracker__bar.is-done { background: var(--c-accent); }
.tracker__label { font-size: 12px; color: var(--c-muted); }
.tracker__label.is-current { color: var(--c-ink); font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.timeline li { display: flex; align-items: center; gap: 10px; color: var(--c-muted); }
.timeline li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c-subtle); flex: none; }
.timeline li.is-done { color: var(--c-ink); }
.timeline li.is-done::before { background: var(--c-accent); border-color: var(--c-accent); }

/* ---------- Booking slots ---------- */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.day-tab { min-height: 72px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-surface); font: inherit; color: var(--c-text); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; line-height: 1.15; }
.day-tab strong { font-family: var(--font-display); font-size: 22px; }
.day-tab small { font-size: 12px; color: inherit; }
.day-tab[aria-selected="true"] { background: var(--c-accent); color: var(--c-on-primary); border-color: var(--c-accent); }
.day-tab.is-full { color: var(--c-muted); border-style: dashed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot-group[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); margin-top: 0; }
.site-footer .container { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: 15px; color: var(--c-muted); }
.footer-grid h3 { font-family: var(--font-body); font-size: 15px; color: var(--c-ink); letter-spacing: 0; margin-bottom: 8px; }
.footer-grid a { color: var(--c-muted); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Account ---------- */
.side-menu { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.side-menu a { text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; }
.side-menu a[aria-current="page"] { background: var(--c-line); font-weight: 600; color: var(--c-ink); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-subtle); color: var(--c-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }

.empty { padding: 32px; text-align: center; color: var(--c-muted); border: 1px dashed var(--c-subtle); border-radius: var(--radius); }

dl.kv { margin: 0; display: flex; flex-direction: column; gap: 10px; }
dl.kv div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
dl.kv div:last-child { border-bottom: none; padding-bottom: 0; }
dl.kv dt { color: var(--c-muted); }
dl.kv dd { margin: 0; font-weight: 600; text-align: right; color: var(--c-ink); }
.card--dark dl.kv div { border-color: var(--c-line); }
.card--dark dl.kv dt { color: var(--c-muted); }
.card--dark dl.kv dd { color: #fff; }

@media print {
    .site-header, .topbar, .site-footer, .no-print { display: none !important; }
    body { background: #fff; }
}

/* Cart line: thumbnail + name */
.cart-item { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.cart-item__thumb { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--c-line); display: grid; place-items: center; overflow: hidden; color: var(--c-muted); }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item__body { display: grid; gap: 4px; min-width: 0; }
.cart-item__body .strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .cart-item__thumb { flex-basis: 56px; width: 56px; height: 56px; } }

/* Cart: trash button */
.cart-remove { color: var(--c-muted); }
.cart-remove:hover, .cart-remove:focus-visible { color: var(--c-danger); border-color: currentColor; }

/* Shop: vehicle make chips */
.make-chips { flex-wrap: wrap; }
.chip__count { font-size: 12px; font-weight: 600; opacity: .6; margin-left: 2px; }
.chip.is-active .chip__count { opacity: .8; }
.chip--ghost { background: transparent; border-style: dashed; }

/* Product page: variant choice */
.variant-picker .option-card { padding-top: 12px; padding-bottom: 12px; }
.option-card.is-disabled { opacity: .5; cursor: not-allowed; }
.cart-item__variant { color: var(--c-muted); }

/* Option cards: keep prices on one line ("+ 50,00 €") */
.option-card > strong { white-space: nowrap; }

/* Fiche technique produit */
.spec-table { width: 100%; max-width: 820px; border-collapse: collapse; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; color: var(--c-muted); font-weight: 600; background: var(--c-soft); }
.spec-table td { color: var(--c-ink); }
@media (max-width: 600px) { .spec-table th { width: 45%; } .spec-table th, .spec-table td { padding: 10px 12px; } }

/* Trouver mon véhicule (accueil) */
.finder { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 28px 32px; display: grid; gap: 18px; }
.finder__title { margin: 0 0 4px; font-size: 26px; }
.finder__intro p { margin: 0; }
.finder__fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.finder__fields .form-row { margin: 0; }
.finder__submit { height: 48px; white-space: nowrap; }
.finder__help { margin: 0; }
@media (max-width: 760px) { .finder { padding: 22px 18px; } .finder__fields { grid-template-columns: 1fr; } }

/* Formulaires sur fond sombre (récapitulatif du checkout) : libellés et cases lisibles */
.card--dark label, .card--dark .check, .card--dark .form-label, .card--dark .checkout-terms { color: #fff; }
.card--dark .check input, .card--dark input[type="checkbox"] { accent-color: var(--c-accent); }
.card--dark .form-error, .card--dark .form-errors { color: #ffb4ab; }

/* ---------- Support : conversation, liste des demandes, bulle de contact ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 6px; }
.msg--theirs { align-self: flex-start; }
.msg--mine { align-self: flex-end; align-items: flex-end; }
.msg__bubble { padding: 14px 16px; border-radius: 16px; background: var(--c-surface); border: 1px solid var(--c-line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.msg--mine .msg__bubble { background: var(--c-accent); color: var(--c-on-primary); border-color: var(--c-accent); border-bottom-right-radius: 4px; }
.msg--theirs .msg__bubble { border-bottom-left-radius: 4px; }
.msg--note { align-self: stretch; max-width: none; }
.msg--note .msg__bubble { background: #2A2412; border: 1px dashed #C9A227; color: var(--c-text); }
.msg__meta { font-size: 12px; color: var(--c-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.msg__files { display: flex; flex-wrap: wrap; gap: 8px; }
.msg__file { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); color: var(--c-text); }
.msg__file img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.msg__file--image { padding: 4px; }
.thread-event { align-self: center; font-size: 12px; color: var(--c-muted); background: var(--c-soft); padding: 4px 12px; border-radius: 999px; text-align: center; }
.ticket-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 4px; border-bottom: 1px solid var(--c-line); align-items: center; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row__subject { font-weight: 600; color: var(--c-ink); }
.ticket-row.is-unread .ticket-row__subject::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-danger, #B3261E); margin-right: 8px; vertical-align: middle; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 30px; line-height: 1; cursor: pointer; color: var(--c-line); transition: color .15s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #E0A800; }
.stars input:focus-visible + label { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.count-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-danger, #B3261E); color: #fff; font-size: 12px; font-weight: 600; margin-left: 6px; }

.support-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.support-bubble__toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--c-accent); color: var(--c-on-primary); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.support-bubble__toggle:hover { transform: translateY(-2px); }
.support-bubble__toggle .icon { width: 26px; height: 26px; }
.support-bubble__panel { position: absolute; right: 0; bottom: 74px; width: min(380px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 120px)); overflow: auto; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); padding: 20px; }
.support-bubble__panel[hidden] { display: none; }
.support-bubble__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.support-bubble__close { border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--c-muted); padding: 4px 8px; }
.support-bubble form { display: flex; flex-direction: column; gap: 12px; }
.support-bubble .form-row { margin: 0; }
.support-bubble__errors { color: var(--c-danger, #B3261E); font-size: 14px; }
.support-bubble__done { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 600px) { .support-bubble { right: 14px; bottom: 14px; } .msg { max-width: 92%; } }
@media print { .support-bubble { display: none; } }

/* ---------- Help suggestions (support form, bubble) ---------- */
.help-suggest { border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 12px; background: var(--c-soft); margin: 4px 0 12px; }
.help-suggest ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.help-suggest a { font-weight: 600; }
.help-suggest p { margin: 2px 0 0; }

/* ---------- Thème sombre : compléments ---------- */
.flash--success { background: var(--c-accent-soft); color: var(--c-text); border: 1px solid var(--c-accent); }
.main-nav a:hover { color: var(--c-accent-hover); }
.badge--muted { background: var(--c-subtle); color: var(--c-text); }
::selection { background: var(--c-accent); color: #fff; }
.input::placeholder { color: #7C7C8C; }
/* Photos produit : cadre blanc (les photos sont détourées sur fond blanc) */
.product-card__media, .gallery__thumbs button, .cart-item__thumb { background: #FFFFFF; }
.gallery__main { background: #FFFFFF; }
/* Impression : retour au noir sur blanc */
@media print {
    :root { color-scheme: light; --c-ink: #06141B; --c-text: #11212D; --c-muted: #4A5C6A; --c-subtle: #9BA8AB; --c-line: #CCD0CF; --c-soft: #EEF1F1; --c-bg: #FFFFFF; --c-surface: #FFFFFF; --c-accent: #11212D; --c-on-primary: #FFFFFF; --c-danger: #8A2D2D; }
    body { background: #fff; color: #11212D; }
}
