/* =========================================================================
   Configurateurs 3D — Street Depot
   Même direction artistique que le site : crème, brun, rouge, Archivo,
   bordures 2 px, angles droits.
   ========================================================================= */
:root {
    --cream: #f7efe6;
    --sand: #e6dbd0;
    --ink: #3a1410;
    --ink-2: #5c4038;
    --muted: #6b554c;
    --red: #b5361c;
    --red-dk: #93250f;
    --orange: #d9603f;
    --tint: #fdf2ee;
    --white: #fff;
    --line: 2px solid var(--ink);
    --header-h: 66px;
    /* Variables utilisées par les scripts existants (badge de remise) */
    --primary: var(--red);
    --text-muted: var(--muted);
    --border-color: var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sd {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Archivo', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dk); }
button { font-family: inherit; color: inherit; }
*:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: #f0d3c9; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- En-tête (identique au site) ---------- */
.sd-header { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: var(--line); }
.sd-header-in { max-width: 1440px; margin: 0 auto; height: var(--header-h); padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.sd-logo svg { width: 150px; height: auto; display: block; color: var(--ink); }
.sd-fil { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-fil a { color: var(--muted); }
.sd-fil a:hover { color: var(--red); }
.sd-fil strong { color: var(--ink); }
.sd-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.sd-nav a { color: var(--ink); }
.sd-nav a:hover { color: var(--red); }

/* ---------- Boutons ---------- */
.sd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
    padding: 12px 20px; background: var(--red); color: var(--white); border: 2px solid var(--red);
    cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.sd-btn:hover { background: var(--red-dk); border-color: var(--red-dk); color: var(--white); }
.sd-btn--ligne { background: transparent; color: var(--ink); border-color: var(--ink); }
.sd-btn--ligne:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.sd-btn--large { width: 100%; font-size: 15px; padding: 16px 20px; }

/* =========================================================================
   Configurateur : scène 3D + panneau d'options
   ========================================================================= */
.sd-config {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    height: calc(100vh - var(--header-h));
    min-height: 620px;
    border-bottom: var(--line);
}

/* ---------- Scène ---------- */
.sd-scene {
    position: relative; overflow: hidden; border-right: var(--line);
    background:
        linear-gradient(to bottom, transparent 62%, rgba(58, 20, 16, .045) 62%),
        var(--cream);
}
/* Quadrillage léger au sol, façon planche technique */
.sd-scene::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
    background-image:
        linear-gradient(rgba(58, 20, 16, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 20, 16, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
/* Nom du véhicule en filigrane */
.sd-filigrane {
    position: absolute; left: 24px; right: 24px; bottom: 6px;
    font-size: clamp(90px, 15vw, 230px); line-height: .8; font-weight: 900; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 2px rgba(58, 20, 16, .12);
    white-space: nowrap; overflow: hidden; pointer-events: none; user-select: none;
}
#configurateur-3d { position: absolute; inset: 0; z-index: 1; }
#configurateur-3d canvas { display: block; outline: none; cursor: grab; }
#configurateur-3d canvas:active { cursor: grabbing; }

.sd-scene-titre { position: absolute; top: 26px; left: 28px; z-index: 2; pointer-events: none; max-width: 60%; }
.sd-scene-titre .sd-gamme { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.sd-scene-titre h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: .92; font-weight: 900; letter-spacing: -.035em; }
.sd-fiche { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sd-fiche span { background: var(--white); border: var(--line); padding: 6px 10px; font-size: 13px; font-weight: 700; }

/* Outils de navigation 3D (droite) */
.sd-outils { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; border: var(--line); background: var(--white); }
.sd-outil { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 0; border-bottom: var(--line); cursor: pointer; transition: background .15s ease, color .15s ease; }
.sd-outil:last-child { border-bottom: 0; }
.sd-outil:hover { background: var(--ink); color: var(--cream); }
.sd-outil[aria-pressed="true"] { background: var(--red); color: var(--white); }
.sd-outil svg { width: 20px; height: 20px; }

/* Vues caméra (bas) */
.sd-vues { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; background: var(--white); border: var(--line); }
.sd-vues .nav-btn {
    background: transparent; border: 0; border-right: var(--line); padding: 12px 18px;
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.sd-vues .nav-btn:last-child { border-right: 0; }
.sd-vues .nav-btn:hover { background: var(--tint); }
.sd-vues .nav-btn.active-view { background: var(--ink); color: var(--cream); }

.sd-aide { position: absolute; left: 28px; bottom: 30px; z-index: 2; font-size: 13px; color: var(--muted); max-width: 230px; line-height: 1.4; transition: opacity .4s ease; pointer-events: none; }
.sd-aide.cache { opacity: 0; }

/* Sortie du mode focus */
#btn-retour-global {
    position: absolute; top: 26px; right: 20px; z-index: 4;
    background: var(--ink); color: var(--cream); border: var(--line); padding: 10px 14px;
    font-size: 13px; font-weight: 800; text-transform: uppercase; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease;
}
#btn-retour-global.visible { opacity: 1; pointer-events: auto; transform: none; }

/* Info-bulle au survol */
#info-bulle {
    position: fixed; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .15s ease;
    background: var(--ink); color: var(--cream); padding: 6px 10px; font-size: 13px; font-weight: 700;
}

/* Chargement */
#chargement {
    position: absolute; inset: 0; z-index: 5; background: var(--cream);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    transition: opacity .5s ease;
}
.sd-chevrons { width: 64px; height: 64px; background: var(--red); display: grid; place-items: center; }
.sd-chevrons svg { width: 40px; }
.sd-chevrons path { animation: sd-avance 1.1s ease-in-out infinite; }
.sd-chevrons path + path { animation-delay: .18s; }
@keyframes sd-avance { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.sd-progression { width: 240px; height: 10px; border: var(--line); background: var(--white); }
.sd-progression i { display: block; height: 100%; width: var(--p, 6%); background: var(--red); transition: width .2s ease; }
#chargement p { font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* ---------- Panneau d'options ---------- */
#sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--white); }
.sd-panneau-tete { padding: 22px 26px 18px; border-bottom: var(--line); }
.sd-panneau-tete h2 { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.sd-panneau-tete p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.sd-panneau-tete p strong { color: var(--ink); }

.sd-panneau-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.sd-etape { padding: 20px 26px 12px; border-bottom: 2px solid var(--sand); }
.sd-etape:last-child { border-bottom: 0; }
.sd-etape-titre { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sd-etape-titre b { font-size: 13px; font-weight: 900; color: var(--red); min-width: 20px; }
.sd-etape-titre h3 { font-size: 17px; font-weight: 900; letter-spacing: -.005em; }

/* Ligne d'option */
.option-card { margin-bottom: 10px; }
.option-toggle {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 14px 16px; border: var(--line); background: var(--white); cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.option-toggle:hover { background: var(--tint); }
.option-toggle:has(input:checked) { border-color: var(--red); background: var(--tint); }
.option-info { min-width: 0; }
.option-name { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.option-desc { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.prix-option { font-size: 13px; font-weight: 800; color: var(--red); white-space: nowrap; }
.option-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 46px; height: 26px; border: var(--line); background: var(--cream); transition: background .2s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ink); transition: transform .2s ease, background .2s ease; }
.option-toggle input:checked + .switch { background: var(--red); border-color: var(--red); }
.option-toggle input:checked + .switch::after { transform: translateX(20px); background: var(--white); }
.option-toggle input:focus-visible + .switch { outline: 2px solid var(--red); outline-offset: 2px; }

/* Sous-options : actives seulement si l'option principale l'est (géré par les scripts) */
.sous-options { margin: 2px 0 12px 14px; padding-left: 14px; border-left: var(--line); opacity: .35; pointer-events: none; transition: opacity .25s ease; }
.sd-dependance { font-size: 12px; color: var(--muted); margin: -2px 0 10px; }

/* Choix du type de toit */
.variant-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.variant-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px;
    border: var(--line); background: var(--white); cursor: pointer; text-align: center;
    transition: background .15s ease, color .15s ease;
}
.variant-btn:hover { background: var(--tint); }
.variant-btn.active { background: var(--ink); color: var(--cream); }
.variant-btn svg { width: 78px; height: 48px; }
.variant-btn .variant-nom { font-size: 14px; font-weight: 900; }
.variant-btn .prix-option { font-size: 12px; }
.variant-btn.active .prix-option { color: var(--orange); }
.variant-btn:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

/* Durée de location */
.jours-counter-large { display: grid; grid-template-columns: 52px 1fr 52px; border: var(--line); }
.counter-btn { background: var(--cream); border: 0; font-size: 24px; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.counter-btn:hover { background: var(--ink); color: var(--cream); }
.input-wrapper { display: flex; align-items: baseline; justify-content: center; gap: 6px; border-left: var(--line); border-right: var(--line); padding: 10px 0; }
.input-wrapper input { width: 3ch; text-align: right; border: 0; background: transparent; font: 900 26px 'Archivo', sans-serif; color: var(--ink); }
.input-wrapper .unite { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.location-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.remise-badge { font-size: 12px; font-weight: 800; padding: 4px 8px; border: 2px solid var(--ink); }

/* Pied du panneau : récapitulatif, total, devis */
.sidebar-footer { border-top: var(--line); background: var(--cream); padding: 10px 26px 12px; }
.sd-recap summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 800; padding-bottom: 10px; }
.sd-recap summary::-webkit-details-marker { display: none; }
.sd-recap summary::after { content: "+"; font-size: 20px; font-weight: 700; line-height: 1; }
.sd-recap[open] summary::after { content: "−"; }
.sd-recap ul { list-style: none; max-height: 150px; overflow-y: auto; margin-bottom: 12px; border-top: 2px solid var(--sand); }
.sd-recap li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 2px solid var(--sand); font-size: 13px; }
.sd-recap li span:last-child { font-weight: 800; white-space: nowrap; }
.sd-recap li.remise span:last-child { color: var(--red); }
.prix-container { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.prix-label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.prix-label small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.prix-total { font-size: 36px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.sd-rassurance { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Fenêtre de devis ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(58, 20, 16, .55); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-content { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); border: var(--line); padding: 30px; }
.modal-content h2 { font-size: 28px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.modal-content > p { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-bottom: 18px; }
.close-btn { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: var(--line); background: var(--white); font-size: 16px; cursor: pointer; }
.close-btn:hover { background: var(--ink); color: var(--cream); }
.sd-modal-recap { border: var(--line); background: var(--cream); padding: 12px 14px; margin-bottom: 18px; font-size: 13px; }
.sd-modal-recap strong { display: flex; justify-content: space-between; font-size: 15px; font-weight: 900; padding-top: 8px; margin-top: 6px; border-top: 2px solid var(--sand); }
.sd-modal-recap ul { list-style: none; }
.sd-modal-recap li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.form-group { display: grid; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 800; }
.form-group input { font: 16px 'Archivo', sans-serif; padding: 12px 14px; border: var(--line); background: var(--white); color: var(--ink); }
.form-group input:focus { outline: none; border-color: var(--red); }
.btn-primary { width: 100%; }

/* ---------- Détails produit ---------- */
.contenu-produit { border-bottom: var(--line); }
.details-section { max-width: 1240px; margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.texte-details h2 { font-size: 44px; line-height: .98; font-weight: 900; letter-spacing: -.03em; margin-bottom: 16px; }
.texte-details > p { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 36em; margin-bottom: 24px; }
.liste-specs { list-style: none; border: var(--line); background: var(--white); }
.liste-specs li { padding: 14px 18px; border-bottom: 2px solid var(--sand); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.liste-specs li:last-child { border-bottom: 0; }
.liste-specs strong { color: var(--ink); }
.image-details { border: var(--line); background: var(--sand); }
.image-details img { display: block; width: 100%; height: auto; }
.sd-garanties { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.sd-garanties div { background: var(--white); outline: var(--line); padding: 22px 24px; }
.sd-garanties h3 { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.sd-garanties p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Pied de page (identique au site) ---------- */
.sd-footer { background: var(--ink); color: var(--cream); }
.sd-footer-in { max-width: 1240px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.sd-footer p { margin-top: 18px; font-size: 15px; line-height: 1.6; max-width: 32em; opacity: .8; }
.sd-footer h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; color: var(--orange); }
.sd-footer nav { display: grid; gap: 8px; font-size: 15px; }
.sd-footer a { color: var(--cream); }
.sd-footer a:hover { color: var(--orange); }
.sd-footer-bas { border-top: 2px solid #5c2a20; padding: 18px 24px; text-align: center; font-size: 13px; opacity: .7; }

/* ---------- Écrans moyens et mobiles ---------- */
@media (max-width: 1100px) {
    .sd-config { grid-template-columns: minmax(0, 1fr) 380px; }
    .sd-nav a:not(.sd-btn) { display: none; }
}
@media (max-width: 860px) {
    :root { --header-h: 58px; }
    .sd-logo svg { width: 120px; }
    .sd-fil { display: none; }
    .sd-config { display: block; height: auto; min-height: 0; }
    .sd-scene { height: 62vh; min-height: 380px; border-right: 0; border-bottom: var(--line); }
    .sd-scene-titre { top: 16px; left: 16px; max-width: 75%; }
    .sd-fiche { display: none; }
    .sd-outils { top: auto; bottom: 80px; right: 12px; transform: none; flex-direction: row; }
    .sd-outil { border-bottom: 0; border-right: var(--line); width: 42px; height: 42px; }
    .sd-outil:last-child { border-right: 0; }
    .sd-vues { bottom: 16px; }
    .sd-vues .nav-btn { padding: 10px 12px; font-size: 12px; }
    .sd-aide { display: none; }
    #sidebar { min-height: auto; }
    .sd-panneau-corps { overflow: visible; }
    .sidebar-footer { position: sticky; bottom: 0; z-index: 20; padding: 10px 16px 12px; }
    .sd-recap summary { padding-bottom: 6px; font-size: 13px; }
    .prix-container { margin-bottom: 10px; }
    .prix-total { font-size: 28px; }
    .sd-btn--large { padding: 13px 16px; }
    .sd-rassurance { display: none; }
    .sd-etape, .sd-panneau-tete { padding-left: 16px; padding-right: 16px; }
    .sd-recap ul { max-height: 120px; }
    .details-section { grid-template-columns: 1fr; gap: 32px; padding: 44px 20px; }
    .texte-details h2 { font-size: 34px; }
    .sd-garanties { grid-template-columns: 1fr; padding: 0 20px 44px; }
    .sd-footer-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
.sd-footer .sd-logo svg { color: var(--cream); width: 170px; }

/* =========================================================================
   v5 — Parcours en étapes, toit en un seul choix, zones, mode nuit
   ========================================================================= */
/* Onglets d'étapes */
.sd-etapes-nav { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: var(--line); }
.sd-etapes-nav li + li { border-left: var(--line); }
.sd-etape-onglet { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 10px; background: var(--white); border: 0; cursor: pointer; text-align: left; font-size: 13px; font-weight: 800; transition: background .15s ease, color .15s ease; }
.sd-etape-onglet b { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid currentColor; font-size: 12px; font-weight: 900; }
.sd-etape-onglet span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-etape-onglet:hover { background: var(--tint); }
.sd-etape-onglet.fait b { background: var(--red); border-color: var(--red); color: var(--white); }
.sd-etape-onglet.active { background: var(--ink); color: var(--cream); }
.sd-etape-onglet.active.fait b { border-color: var(--orange); background: var(--orange); }

/* Étape affichée */
.sd-etape { padding: 22px 26px 18px; border-bottom: 0; }
h3.sd-etape-titre { display: block; margin: 0 0 6px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.sd-etape-intro { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-bottom: 18px; max-width: 36em; }

/* Toit : un seul choix en trois cartes */
.variant-selector--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.variant-selector--3 .variant-btn { padding: 12px 6px 10px; gap: 6px; }
.variant-selector--3 .variant-btn svg { width: 62px; height: 38px; }
.variant-selector--3 .variant-nom { font-size: 13px; }

/* Sous-options : visibles uniquement quand elles sont utilisables */
.sous-options { display: none; margin: 0 0 14px; padding: 0 0 0 14px; }
.sous-options.ouvert { display: block; animation: sd-ouvre .25s ease; }
@keyframes sd-ouvre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sd-dependance { font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 0 0 8px; }
.sd-lien-nuit { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--cream); border: 0; padding: 5px 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.sd-lien-nuit::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset -3px -1px 0 0 var(--cream); }
.sd-lien-nuit[aria-pressed="true"] { background: var(--red); }

/* Zones de marquage */
.option-card.indispo .option-toggle { opacity: .5; cursor: not-allowed; background: repeating-linear-gradient(135deg, var(--white) 0 8px, #f6eee6 8px 16px); }
.option-card.indispo .prix-option { display: none; }
.zone-condition { color: var(--red) !important; font-weight: 700; }

/* Aperçu du congélateur, dans la scène */
.sd-scene-actions { position: absolute; top: 26px; right: 20px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sd-puce { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--white); border: var(--line); font-size: 13px; font-weight: 800; cursor: pointer; user-select: none; }
.sd-puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sd-puce span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--ink); background: var(--white); }
.sd-puce:has(input:checked) span::before { background: var(--red); border-color: var(--red); }
.sd-puce:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.sd-scene-actions ~ #btn-retour-global, .sd-scene-actions + .sd-outils + .sd-vues ~ #btn-retour-global { top: 124px; }

/* Récapitulatif (dernière étape) */
.sd-recap { margin-top: 20px; }
.sd-recap h4 { font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.sd-recap ul { max-height: none; overflow: visible; }

/* Pied : total + navigation entre étapes */
.sd-pied-actions { display: flex; gap: 10px; }
.sd-pied-actions .sd-btn--large { flex: 1; width: auto; }
.sd-pied-actions .sd-btn--ligne { flex: none; padding: 12px 16px; }
[hidden] { display: none !important; }

/* Mode nuit */
.sd-scene { transition: background-color .6s ease; }
.sd-scene.sd-nuit { background: radial-gradient(ellipse at 50% 30%, #3b2019 0%, #1f0f0b 55%, #120806 100%); }
.sd-scene.sd-nuit::before { background-image: linear-gradient(rgba(247, 239, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 239, 230, .06) 1px, transparent 1px); }
.sd-scene.sd-nuit .sd-filigrane { -webkit-text-stroke-color: rgba(247, 239, 230, .1); }
.sd-scene.sd-nuit .sd-scene-titre h1 { color: var(--cream); }
.sd-scene.sd-nuit .sd-gamme { color: var(--orange); }
.sd-scene.sd-nuit .sd-aide { color: rgba(247, 239, 230, .7); }
.sd-scene.sd-nuit .sd-fiche span { background: #2a1510; color: var(--cream); border-color: var(--cream); }

@media (max-width: 860px) {
    .sd-etapes-nav { grid-template-columns: repeat(4, minmax(84px, 1fr)); overflow-x: auto; }
    .sd-etape { padding: 18px 16px 12px; }
    .sd-scene-actions { top: auto; bottom: 132px; right: 12px; }
    .sd-pied-actions .sd-btn--ligne { padding: 10px 12px; }
}
/* Onglets : numéro au-dessus du libellé pour éviter les libellés tronqués */
.sd-etape-onglet { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px 9px; }
.sd-etape-onglet span { font-size: 12px; white-space: normal; overflow: visible; }

/* =========================================================================
   v6 — Barre 3D unifiée, sélection toujours visible, boutons explicites
   ========================================================================= */
/* Barre 3D : vues + outils réunis en bas de la scène */
.sd-barre3d { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; align-items: stretch; max-width: calc(100% - 40px); }
.sd-barre3d .sd-vues, .sd-barre3d .sd-outils { position: static; transform: none; display: flex; flex-direction: row; }
.sd-barre3d .sd-outil { border-bottom: 0; border-right: var(--line); width: 44px; height: auto; min-height: 44px; }
.sd-barre3d .sd-outil:last-child { border-right: 0; }
.sd-aide { bottom: 84px; }

/* Indicateur d'étape */
.sd-etapes-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.sd-etapes-progression { height: 4px; background: var(--sand); margin-top: 6px; }
.sd-etapes-progression i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s ease; }
.sd-etapes-nav { margin-top: 10px; }

/* Votre sélection */
.sd-selection-bloc { padding: 12px 26px; border-bottom: 2px solid var(--sand); background: var(--white); }
.sd-selection-bloc h3 { font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
#selection { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-puce-choix { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 10px; border: 2px solid var(--ink); background: var(--tint); font-size: 12px; font-weight: 800; cursor: pointer; transition: background .15s ease, color .15s ease; }
.sd-puce-choix b { font-size: 15px; line-height: 1; color: var(--red); }
.sd-puce-choix:hover { background: var(--ink); color: var(--cream); }
.sd-puce-choix:hover b { color: var(--orange); }
.sd-selection-vide { font-size: 13px; color: var(--muted); }

/* Bouton d'état explicite à la place de l'interrupteur */
.switch { width: auto; height: auto; min-width: 86px; padding: 7px 10px; text-align: center; background: var(--white); border: var(--line); font-size: 12px; font-weight: 800; }
.switch::after { content: "Ajouter"; position: static; display: inline; width: auto; height: auto; background: none; transform: none !important; }
.option-toggle input:checked + .switch { background: var(--red); border-color: var(--red); color: var(--white); }
.option-toggle input:checked + .switch::after { content: "Ajouté ✓"; background: none; }
.option-card[data-zone] .switch::after { content: "Choisir"; }
.option-card[data-zone] .option-toggle input:checked + .switch::after { content: "Choisie ✓"; }
.option-card.indispo .switch { opacity: .5; }

/* Le total réagit quand il change */
.prix-total.maj { animation: sd-flash .6s ease; }
@keyframes sd-flash { 0% { color: var(--red); transform: translateY(-2px); } 100% { color: var(--ink); transform: none; } }

/* Zone de dépôt du visuel (Affi'bike, Affi'café) */
.sd-depot { position: relative; min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 18px; border: 2px dashed var(--ink); background: var(--cream) center / contain no-repeat; cursor: pointer; text-align: center; transition: background-color .15s ease; margin-bottom: 14px; }
.sd-depot:hover { background-color: var(--tint); }
.sd-depot-texte { background: rgba(255, 255, 255, .9); padding: 10px 14px; border: 2px solid var(--ink); pointer-events: none; }
.sd-depot-texte strong { display: block; font-size: 14px; font-weight: 900; }
.sd-depot-texte span { font-size: 12px; color: var(--muted); }
#btn-remove-image { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 2px solid var(--ink); background: var(--white); font-weight: 900; cursor: pointer; z-index: 2; }
#btn-remove-image:hover { background: var(--ink); color: var(--cream); }

/* Cartes de véhicules (page accessoire) et fiche technique */
.sd-cartes { display: grid; gap: 10px; }
.sd-carte { display: block; padding: 14px 16px; border: var(--line); background: var(--white); color: var(--ink); transition: background .15s ease; }
.sd-carte:hover { background: var(--tint); color: var(--ink); }
.sd-carte strong { display: block; font-size: 15px; font-weight: 900; }
.sd-carte span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.sd-carte em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--red); }
.sd-carte[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.sd-fiche-tech { list-style: none; border: var(--line); }
.sd-fiche-tech li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 2px solid var(--sand); font-size: 13px; }
.sd-fiche-tech li:last-child { border-bottom: 0; }
.sd-fiche-tech li span:last-child { font-weight: 800; text-align: right; }
.sd-source { font-size: 11px; color: var(--muted); margin-top: 8px; }

@media (max-width: 860px) {
    .sd-barre3d { bottom: 12px; overflow-x: auto; }
    .sd-barre3d .sd-vues .nav-btn { padding: 10px 10px; }
    .sd-barre3d .sd-outil { width: 40px; }
    .sd-barre3d .sd-outils #outil-plein-ecran { display: none; }
    .sd-selection-bloc { padding: 10px 16px; }
}
.sd-etape-onglet { padding: 8px 7px 9px; }
.sd-etape-onglet span { font-size: 11.5px; hyphens: manual; overflow-wrap: anywhere; }
.sd-puce-fixe { background: var(--ink); color: var(--cream); cursor: default; padding-right: 10px; }
.sd-puce-fixe:hover { background: var(--ink); color: var(--cream); }

/* =========================================================================
   v7 — Mode sombre (fond noir), accessoires, habillage par face
   ========================================================================= */
.sd-scene.sd-nuit { background: #0b0706; }
.sd-scene.sd-nuit::before { background-image: linear-gradient(rgba(247, 239, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 239, 230, .05) 1px, transparent 1px); }

/* Emplacement accessoire : 6 cartes, sous-choix fontaine, orientation */
.variant-selector--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.variant-selector--6 .variant-btn { padding: 10px 6px 9px; gap: 5px; }
.variant-selector--6 .variant-btn img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.variant-selector--6 .variant-btn.active img { mix-blend-mode: normal; background: var(--cream); }
.variant-selector--6 .variant-nom { font-size: 12px; }
.variant-selector--2 { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0; }
.variant-selector--2 .variant-btn { flex-direction: row; justify-content: center; padding: 10px; }
.sd-orientation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 12px 14px; border: var(--line); background: var(--cream); }
.sd-orientation span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sd-orientation b { color: var(--ink); }
.sd-orientation .sd-btn { padding: 9px 14px; font-size: 13px; }

/* Habillage : une carte par pièce, une puce par face */
.sd-zone { border: var(--line); background: var(--white); padding: 12px 14px; margin-bottom: 10px; }
.sd-zone-titre { font-size: 14px; font-weight: 900; margin-bottom: 8px; }
.sd-faces { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-face { position: relative; cursor: pointer; }
.sd-face input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sd-face span { display: inline-block; padding: 7px 10px; border: 2px solid var(--ink); background: var(--white); font-size: 12px; font-weight: 800; transition: background .15s ease, color .15s ease; }
.sd-face:hover span { background: var(--tint); }
.sd-face input:checked + span { background: var(--red); border-color: var(--red); color: var(--white); }
.sd-face input:checked + span::after { content: " ✓"; }
.sd-face input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.sd-face:has(input:disabled) { cursor: not-allowed; }
.sd-face input:disabled + span { opacity: .4; background: var(--white); }
.sd-zones-vide { font-size: 13px; color: var(--muted); padding: 10px 0; }
.sd-depot.survol { background-color: var(--tint); }

/* =========================================================================
   v9 — Liste d'accessoires, quantités, fiche produit, panier, recommandations
   ========================================================================= */
/* Liste d'accessoires (une ligne = un produit) */
.sd-liste-acc { border: var(--line); background: var(--white); margin-bottom: 12px; }
.sd-ligne-acc { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 2px solid var(--sand); cursor: pointer; transition: background .15s ease; }
.sd-ligne-acc:last-child { border-bottom: 0; }
.sd-ligne-acc:hover { background: var(--tint); }
.sd-ligne-acc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sd-ligne-acc img { width: 56px; height: 56px; object-fit: contain; background: var(--cream); border: 2px solid var(--sand); }
.sd-ligne-acc strong { display: block; font-size: 14px; font-weight: 900; }
.sd-ligne-acc small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sd-ligne-acc .prix-option { font-size: 12px; }
.sd-ligne-acc .sd-etat { font-size: 12px; font-weight: 800; padding: 7px 10px; border: 2px solid var(--ink); background: var(--white); white-space: nowrap; }
.sd-ligne-acc .sd-etat::after { content: "Ajouter"; }
.sd-ligne-acc:has(input:checked) { background: var(--tint); }
.sd-ligne-acc:has(input:checked) .sd-etat { background: var(--red); border-color: var(--red); color: var(--white); }
.sd-ligne-acc:has(input:checked) .sd-etat::after { content: "Sur le plateau ✓"; }
.sd-ligne-acc:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: -2px; }
.sd-sous-titre { font-size: 13px; font-weight: 900; margin: 16px 0 8px; }
.sd-note { font-size: 12px; color: var(--muted); margin: -4px 0 12px; }

/* Ligne avec quantité − / + */
.sd-ligne-qte { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 2px solid var(--sand); }
.sd-ligne-qte:last-child { border-bottom: 0; }
.sd-ligne-qte img { width: 56px; height: 56px; object-fit: contain; background: var(--cream); border: 2px solid var(--sand); }
.sd-ligne-qte strong { display: block; font-size: 14px; font-weight: 900; }
.sd-ligne-qte small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sd-qte { display: inline-grid; grid-template-columns: 34px 40px 34px; border: var(--line); background: var(--white); }
.sd-qte button { border: 0; background: var(--cream); font-size: 18px; font-weight: 800; cursor: pointer; }
.sd-qte button:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.sd-qte button:disabled { opacity: .35; cursor: default; }
.sd-qte input { width: 100%; text-align: center; border: 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); font: 900 16px 'Archivo', sans-serif; color: var(--ink); background: var(--white); }
.sd-ligne-qte:has(input:not([value="0"])) { background: var(--tint); }

/* Fiche produit (objets : pas d'étapes) */
.sd-fiche-mode .sd-panneau-corps { padding: 18px 26px 10px; }
.sd-prix-fiche { font-size: 26px !important; font-weight: 900; color: var(--ink) !important; letter-spacing: -.02em; margin-top: 6px !important; }
.sd-prix-fiche small { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.sd-bloc { margin-bottom: 18px; }
.sd-bloc > h3 { font-size: 14px; font-weight: 900; margin-bottom: 8px; }
.sd-bloc-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-pied-actions--fiche { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sd-fiche-mode .sd-pied-actions .sd-btn--large { width: 100%; }

/* Bouton panier (en-tête) */
.sd-panier-bouton { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: var(--line); background: var(--white); font: 800 14px 'Archivo', sans-serif; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.sd-panier-bouton:hover { background: var(--ink); color: var(--cream); }
.sd-panier-compte { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 12px; border: 2px solid var(--cream); }
.sd-panier-compte[hidden] { display: none !important; }

/* Panneau du panier */
.sd-panier { position: fixed; inset: 0; z-index: 90; }
.sd-panier-fond { position: absolute; inset: 0; background: rgba(58, 20, 16, .5); }
.sd-panier-boite { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--cream); border-left: var(--line); display: flex; flex-direction: column; animation: sd-glisse .25s ease; overflow-y: auto; }
@keyframes sd-glisse { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sd-panier-tete { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 6px; }
.sd-panier-tete h2 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.sd-panier-tete .close-btn { position: static; }
.sd-panier-aide { padding: 0 22px 14px; font-size: 14px; color: var(--ink-2); border-bottom: var(--line); }
.sd-panier.vient-ajouter .sd-panier-aide::before { content: "Ajouté ✓ "; font-weight: 900; color: var(--red); }
.sd-panier-liste { flex: 1; padding: 14px 22px; display: grid; gap: 10px; align-content: start; }
.sd-panier-vide { font-size: 14px; color: var(--muted); }
.sd-panier-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 10px; background: var(--white); border: var(--line); }
.sd-panier-item img, .sd-panier-noimg { width: 76px; height: 60px; object-fit: contain; background: var(--cream); display: block; }
.sd-panier-item strong { display: block; font-size: 14px; font-weight: 900; }
.sd-panier-detail { display: block; font-size: 12px; color: var(--muted); margin: 3px 0 4px; line-height: 1.35; }
.sd-panier-modifier { font-size: 12px; font-weight: 800; }
.sd-panier-prix { text-align: right; display: grid; align-content: space-between; justify-items: end; gap: 6px; }
.sd-panier-prix b { font-size: 15px; font-weight: 900; white-space: nowrap; }
.sd-panier-prix button { border: 0; background: none; font: 700 12px 'Archivo', sans-serif; color: var(--red); text-decoration: underline; cursor: pointer; }
.sd-panier-pied { padding: 16px 22px 22px; border-top: var(--line); display: grid; gap: 8px; }
.sd-panier-form { padding: 0 22px 24px; }
.sd-panier-form h3 { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.sd-panier-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
body.sd-panier-ouvert { overflow: hidden; }

/* Vous aimerez aussi */
.sd-reco { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }
.sd-reco-tete { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.sd-reco-tete h2 { font-size: 32px; font-weight: 900; letter-spacing: -.03em; }
.sd-reco-fleches { display: flex; gap: 8px; }
.sd-reco-fleches button { width: 44px; height: 44px; border: var(--line); background: var(--white); font-size: 24px; line-height: 1; cursor: pointer; }
.sd-reco-fleches button:hover { background: var(--ink); color: var(--cream); }
.sd-reco-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 23%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.sd-reco-carte { scroll-snap-align: start; display: flex; flex-direction: column; border: var(--line); background: var(--white); color: var(--ink); transition: transform .15s ease; }
.sd-reco-carte:hover { color: var(--ink); transform: translateY(-3px); }
.sd-reco-img { height: 170px; background: var(--sand); border-bottom: var(--line); overflow: hidden; }
.sd-reco-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-reco-carte strong { padding: 12px 14px 2px; font-size: 16px; font-weight: 900; }
.sd-reco-carte span { padding: 0 14px; font-size: 14px; color: var(--ink-2); }
.sd-reco-carte em { padding: 10px 14px 14px; margin-top: auto; font-style: normal; font-size: 13px; font-weight: 800; color: var(--red); }
@media (max-width: 860px) {
    .sd-reco-rail { grid-auto-columns: 70%; }
    .sd-reco-tete h2 { font-size: 26px; }
    .sd-panier-bouton span { display: none; }
}
/* Dernière étape : « Ajouter au panier » en pleine largeur, Retour + devis dessous */
.sd-pied-actions { flex-wrap: wrap; }
.sd-pied-actions #btn-panier:not([hidden]) { flex-basis: 100%; order: -1; }

/* v10 — « Votre sélection » : une seule ligne qui défile (le panneau ne grandit plus) */
#selection { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
#selection .sd-puce-choix { flex: none; white-space: nowrap; }
#selection .sd-selection-vide { white-space: nowrap; }
.sd-selection-bloc { padding-top: 10px; padding-bottom: 8px; }
.sd-selection-bloc h3 { margin-bottom: 6px; }

/* v17 — Configurateur intégré dans la vitrine de l'accueil */
.sd-embed .sd-header, .sd-embed .contenu-produit, .sd-embed .sd-footer, .sd-embed #recommandations { display: none !important; }
.sd-embed { --header-h: 0px; }
.sd-embed .sd-config { height: 100vh; }

/* v20 — Configurateur unique : choix du produit dans le panneau */
.sd-choix-produit { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.sd-choix-produit select { flex: 1; font: 800 14px 'Archivo', sans-serif; color: var(--ink); padding: 8px 10px; border: var(--line); background: var(--cream); cursor: pointer; }
.sd-choix-produit select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* v23 — page produit : image du produit à la place de la 3D */
.sd-produit-image { position: absolute; left: 6%; right: 6%; top: 22%; bottom: 6%; width: 88%; height: 72%; object-fit: contain; }
.sd-lien-retour { font-size: 14px; font-weight: 800; }
.sd-pied-actions--fiche a.sd-btn { text-align: center; text-decoration: none; }

/* v25 — cartes produit (accueil, devis en ligne, fiches produit) */
/* ===== Catalogue en cartes ===== */
.cat { max-width: 1240px; margin: 0 auto; padding: 64px 24px 24px; }
.cat-tete { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.cat-tete h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.cat-tete p { color: var(--ink-2); max-width: 32em; margin-top: 8px; }
.cat-tete a { font-weight: 800; white-space: nowrap; }
.cat-grille { display: grid; gap: 18px; }
.cat-grille--vehicules { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.cat-grille--materiel { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.carte { position: relative; display: flex; flex-direction: column; color: var(--ink); background: var(--white); border: var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.carte:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 6px 6px 0 var(--ink); }
.carte-scene { position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 70% 60% at 50% 55%, #fffaf3 0%, var(--cream) 75%); border-bottom: var(--line); overflow: hidden; }
.carte-scene img { position: relative; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; transition: transform .3s ease; }   /* produit entier, jamais rogné */
.carte:hover .carte-scene img { transform: scale(1.04); }
.carte-badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; }
.carte-corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte-gamme { font-size: 12px; font-weight: 800; color: var(--red); }
.carte h3 { font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.carte p { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.carte-pied { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.carte-prix { font-size: 14px; font-weight: 900; }
.carte-lien { font-size: 13px; font-weight: 800; color: var(--red); white-space: nowrap; }
/* véhicules : grandes cartes, bandeau rouge */
.carte--vehicule { border-top: 8px solid var(--red); }
.carte--vehicule .carte-scene { height: 300px; padding: 14px 18px 0; }
.carte--vehicule .carte-badge { background: var(--red); color: var(--white); }
.carte--vehicule h3 { font-size: 28px; }
/* petit matériel : cartes compactes, fond crème, badge au trait */
.cat--materiel { padding-top: 40px; padding-bottom: 64px; }
.carte--materiel { background: #fbf6ef; border-color: var(--ink); }
.carte--materiel .carte-scene { height: 210px; padding: 10px 12px 0; background: radial-gradient(ellipse 70% 60% at 50% 55%, #ffffff 0%, #f3e9dc 80%); }
.carte--materiel .carte-badge { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.carte--materiel h3 { font-size: 20px; }
.carte-etiquette { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 11px; font-weight: 900; padding: 5px 9px; background: var(--ink); color: var(--cream); letter-spacing: .02em; }
.carte--materiel .carte-etiquette { background: var(--orange); color: var(--ink); }
.carte-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.carte-puces span { font-size: 11px; font-weight: 800; padding: 3px 7px; border: 2px solid var(--sand); color: var(--ink-2); background: var(--cream); }
.cat-separateur { max-width: 1240px; margin: 0 auto; border: 0; border-top: var(--line); }
    
/* v26 — fiche produit (structure des pages produit street-depot.fr) */
#sd-details.contenu-produit { max-width: none; padding: 0; }
.pp-hero { max-width: 1240px; margin: 0 auto; padding: 40px 24px 48px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pp-hero-img { background: radial-gradient(ellipse 70% 62% at 50% 52%, #fffaf3 0%, var(--cream) 78%); border: var(--line); display: grid; place-items: center; min-height: 460px; padding: 20px; }
.pp-hero-img img { max-width: 100%; max-height: 520px; height: auto; display: block; }
.pp-fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.pp-fil a { color: var(--ink-2); } .pp-fil strong { color: var(--ink); }
.pp-etiquette { display: inline-block; background: var(--red); color: var(--white); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; margin-bottom: 12px; }
.pp-hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: .95; font-weight: 900; letter-spacing: -.035em; margin-bottom: 14px; }
.pp-intro { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-bottom: 16px; }
.pp-puces { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.pp-puces li { padding-left: 22px; position: relative; line-height: 1.45; } .pp-puces li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.pp-prix { font-size: 22px; font-weight: 900; margin-bottom: 16px; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; } .pp-actions .sd-btn { width: auto; text-decoration: none; }
.pp-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pp-sec { max-width: 1240px; margin: 0 auto; padding: 48px 24px; border-top: 2px solid var(--sand); }
.pp-sec h2, .pp-bande h2, .pp-final h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1; font-weight: 900; letter-spacing: -.03em; margin-bottom: 20px; }
.pp-chapo { color: var(--ink-2); max-width: 46em; margin: -6px 0 20px; line-height: 1.55; }
.pp-table { width: 100%; border-collapse: collapse; background: var(--white); border: var(--line); }
.pp-table th, .pp-table td { text-align: left; padding: 13px 16px; border-bottom: 2px solid var(--sand); font-size: 15px; }
.pp-table th { width: 34%; font-weight: 800; background: #fbf6ef; }
.pp-source { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pp-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-option { background: var(--white); border: var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pp-option h3 { font-size: 18px; font-weight: 900; } .pp-option p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.pp-option span { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 900; color: var(--red); }
.pp-acc { background: #fbf6ef; border: var(--line); display: flex; flex-direction: column; }
.pp-acc-img { height: 170px; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: var(--line); background: radial-gradient(ellipse 70% 60% at 50% 55%, #fff 0%, #f3e9dc 80%); }
.pp-acc-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pp-acc h3 { font-size: 17px; font-weight: 900; padding: 12px 14px 0; } .pp-acc p { font-size: 14px; color: var(--ink-2); padding: 4px 14px 0; line-height: 1.45; }
.pp-acc span { margin-top: auto; padding: 10px 14px 14px; font-size: 13px; font-weight: 900; }
.pp-bande { max-width: 1240px; margin: 24px auto; padding: 36px 40px; background: var(--ink); color: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.pp-bande p { opacity: .9; max-width: 40em; line-height: 1.55; } .pp-bande .pp-sur { color: var(--orange, #d9603f); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 8px; }
.pp-bande h2 { color: var(--cream); margin-bottom: 10px; } .pp-bande .sd-btn { width: auto; flex: none; text-decoration: none; }
.pp-final { text-align: center; max-width: 1240px; margin: 0 auto; padding: 56px 24px 72px; border-top: 2px solid var(--sand); }
.pp-final p { color: var(--ink-2); margin: -8px 0 20px; } .pp-final .sd-btn { width: auto; text-decoration: none; }
@media (max-width: 860px) { .pp-hero { grid-template-columns: 1fr; gap: 24px; } .pp-hero-img { min-height: 300px; } .pp-grille--3 { grid-template-columns: 1fr; } .pp-bande { flex-direction: column; align-items: flex-start; padding: 28px 22px; } }

/* v27 — pastille de couleur (parasol) */
.sd-pastille { display: block; width: 26px; height: 26px; margin: 4px auto 0; border: 2px solid var(--ink); }

/* ---------- Durée en étape 1 (v9) ---------- */
.sd-jours-rapides { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sd-jour-rapide { min-width: 52px; padding: 7px 12px; background: var(--white); border: var(--line); font-size: 13px; font-weight: 800; cursor: pointer; transition: background .15s ease, color .15s ease; }
.sd-jour-rapide:hover { background: var(--tint); }
.sd-jour-rapide.active { background: var(--ink); color: var(--cream); }
.sd-sur-duree { font-size: 12px; font-weight: 700; color: var(--red); white-space: nowrap; }
.sd-rappel-duree { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 16px; border: var(--line); background: var(--white); font-size: 14px; font-weight: 800; }
.sd-rappel-duree .sd-btn { padding: 6px 12px; font-size: 12px; }
.variant-btn .sd-sur-duree { display: block; font-size: 11px; }
@media (max-width: 480px) {
    .sd-etape-onglet { gap: 4px; padding: 8px 4px; font-size: 11px; }
    .sd-etape-onglet b { width: 18px; height: 18px; font-size: 10px; }
    .sd-etape-onglet span { overflow-wrap: normal; word-break: normal; }
}
.sd-optionnel { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 2px solid var(--ink); background: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .02em; vertical-align: middle; }
.sd-note--apercu { margin-top: 14px; }
.sd-optionnel--inclus { background: var(--ink); color: var(--cream); }
.option-card[data-obligatoire] .option-toggle { cursor: default; }
.option-card[data-obligatoire] .switch { opacity: .55; }

/* ---------- Quantité et durée : présentation uniforme (v16) ---------- */
.sd-reglage { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--sable, #e6dbd0); }
.sd-reglage-nom { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sd-reglage-nom label { font-size: 15px; font-weight: 800; color: var(--ink); }
.sd-reglage .remise-badge { padding: 2px 6px; font-size: 11px; border-width: 2px; }
.sd-reglage .remise-badge:empty { display: none; }
.sd-reglage .sd-qte, .sd-compteur { display: inline-grid; grid-template-columns: 40px 52px 40px; height: 40px; border: var(--line); background: var(--white); flex: none; }
.sd-compteur button { border: 0; background: var(--cream); font-size: 18px; font-weight: 800; color: var(--ink); cursor: pointer; }
.sd-compteur button:hover { background: var(--ink); color: var(--cream); }
.sd-compteur input { width: 100%; text-align: center; border: 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); font: 900 16px 'Archivo', sans-serif; color: var(--ink); background: var(--white); }
#sd-cal-ancre:empty { display: none; }
.sd-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-bottom: 2px solid var(--sable, #e6dbd0); }
.sd-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink); }
.sd-dates input { width: 100%; height: 40px; padding: 0 8px; border: var(--line); border-radius: 0; background: var(--white); font: 600 14px 'Archivo', sans-serif; color: var(--ink); }
.sd-reglage + .sd-jours-rapides { margin-top: 12px; }

/* ---------- Marquage : libellé et choix sur une même ligne (v17) ---------- */
.sd-zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 6px; padding: 10px 12px; margin-bottom: 8px; }
.sd-zone[hidden] { display: none; }
.sd-zone-titre { margin: 0; font-size: 14px; line-height: 1.3; }
.sd-zone-titre .prix-option { display: block; font-size: 12px; }
.sd-zone .sd-note { grid-column: 1 / -1; grid-row: 2; margin: 0; }
.sd-zone .sd-faces { grid-column: 2; grid-row: 1; justify-content: flex-end; }
