/* ==========================================================================
   PAGE PARTICULIERS (particulier.html) : bandes propres à la page.
   Système partagé : borne/css/borne.css ; tableau des formules : borne/css/formules.css.
   ========================================================================== */

/* ---------- Premier écran : l'afficheur des prix et l'offre combinée imprimée sur la borne ---------- */
.afficheur--prix .afficheur-texte { font-size: clamp(0.84rem, 3.1cqi, 1.1rem); }
.borne-combo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px 18px 14px 14px;
    border-radius: 12px;
    background: var(--marine);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 26px -18px rgba(0, 0, 0, 0.6);
}
.combo-repere { display: grid; justify-items: center; gap: 8px; }
.combo-texte-bloc { display: grid; gap: 4px; justify-items: start; }
.combo-titre { font-family: var(--condense); font-weight: 800; font-size: clamp(1.4rem, 1rem + 0.9vw, 1.8rem); line-height: 1; text-transform: uppercase; color: var(--blanc); }
.combo-texte { color: var(--bleu-texte); font-size: 0.98rem; line-height: 1.35; }
/* Intérieur + extérieur : les deux caps du tableau des formules, réunies */
.combo-schema { display: flex; align-items: center; gap: 6px; }
.combo-cap { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--bleu); color: var(--blanc); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }
.combo-cap svg { width: 58%; height: 58%; }
.combo-plus { width: 1.3rem; height: 1.3rem; color: var(--anneau-start); }
.combo-plus svg { width: 100%; height: 100%; }

/* ---------- L'atelier vient à vous : intro (inox) ---------- */
.intro { row-gap: 22px; align-items: end; }
.intro-lead {
    grid-column: 1 / span 7;
    max-width: 30ch;
    font-size: clamp(1.45rem, 1rem + 1.1vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--marine);
}
.intro-lead strong { font-weight: 600; }
.brand-gradient { font-family: var(--condense); font-weight: 800; letter-spacing: 0.02em; }
.intro-text { grid-column: 8 / span 5; max-width: 62ch; color: var(--ardoise); }
.intro-text strong { color: var(--marine); }

/* ---------- Bandes des formules : étiquette de fiche calée sur le sous-titre ---------- */
.fiche-sous-titre .etiquette { margin-left: 8px; vertical-align: 0.12em; }
.fiche-note.tarif-note { display: flex; align-items: flex-start; gap: 8px; }
.fiche-note.tarif-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--vif); }

/* ---------- Abonnement (blanc) : le cycle, puis les trois programmes ---------- */
.abonnement { row-gap: 40px; align-items: start; }
.abonnement-tete { grid-column: 1 / span 4; display: grid; gap: 10px; }
.abonnement-question {
    font-family: var(--condense);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ardoise);
}

/* Le cycle : quatre stations sur un rail ; la quatrième revient chaque mois */
.cycle {
    --stations: 4;
    grid-column: 5 / span 8;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--stations), minmax(0, 1fr));
    column-gap: var(--col-gap);
}
/* Le rail qui relie les stations (dessiné à part : un fond derrière le texte fausserait les mesures de contraste) */
.cycle::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    top: calc(1.6rem - 1.5px);
    width: calc(100% * (var(--stations) - 1) / var(--stations));
    height: 3px;
    background: var(--inox-2);
}
.cycle-etape { position: relative; display: grid; gap: 14px; align-content: start; }
.cycle-num {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--marine);
    color: var(--blanc);
    font-family: var(--condense);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 0 0 5px var(--blanc), 0 0 0 7px var(--inox-2);
}
.cycle-etape p { color: var(--ardoise); max-width: 26ch; }
.cycle-etape strong {
    display: inline-block;
    margin-bottom: 4px;
    font-family: var(--condense);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--marine);
}
.cycle-etape--retour .cycle-num { background: var(--vif); box-shadow: 0 0 0 5px var(--blanc), 0 0 0 7px var(--anneau-vif); }
.cycle-retour {
    position: absolute;
    top: -30px;
    left: 0.2rem;
    width: 5rem;
    height: auto;
    fill: none;
    stroke: var(--vif);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.engagement { grid-column: 1 / span 4; display: grid; gap: 16px; align-self: stretch; align-content: start; }
.sub-engagement { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ardoise); }
.sub-engagement svg { flex: none; width: 30px; height: 30px; color: var(--vif); }
.sub-engagement strong { color: var(--marine); font-weight: 700; }
.frequences { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.frequences .afficheur { padding: 0.55rem 0.9rem; }
.frequences .afficheur-texte { font-size: 1rem; }

/* Les trois programmes d'abonnement : une seule plaque, trois colonnes séparées par des filets */
.abonnements {
    grid-column: 5 / span 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
}
.abonnement-formule { display: grid; gap: 16px; align-content: start; padding: 28px clamp(18px, 1.8vw, 28px); border-left: 1px solid var(--inox-2); }
.abonnement-formule:first-child { border-left: 0; }
.abonnement-formule h3 { font-size: clamp(1.35rem, 1rem + 0.7vw, 1.7rem); line-height: 1.05; }
.abonnement-formule .liste-voyants { color: var(--marine); font-weight: 500; }
.option-offerte { align-items: flex-start !important; color: var(--marine); }
.option-offerte::before { display: none; }
.option-offerte-picto { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--vif); color: var(--blanc); }
.option-offerte-picto svg { width: 62%; height: 62%; }
.option-offerte div { font-weight: 600; }
.option-offerte small { display: block; margin-top: 4px; font-size: 0.9rem; font-weight: 400; line-height: 1.4; color: var(--ardoise); }

.abonnement-pied { grid-column: 5 / span 8; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
/* Le poussoir aligné à droite ne passe pas sous le bouton WhatsApp flottant */
@media (min-width: 901px) {
    .abonnement-pied { padding-right: var(--reserve-wa); }
}
.abonnement-note { display: flex; align-items: center; gap: 10px; color: var(--ardoise); }
.abonnement-note svg { flex: none; width: 24px; height: 24px; color: var(--vif); }

/* ---------- Guide : quelle formule pour votre véhicule ? (inox) ---------- */
.guide { row-gap: 32px; align-items: center; }
.guide-texte { grid-column: 1 / span 5; display: grid; gap: 22px; }
.guide-machine { grid-column: 7 / span 6; display: grid; gap: 22px; }

.picker-recommendation { padding: 0; }
.recommendation-content { display: grid; gap: 14px; padding: 24px clamp(20px, 2.2vw, 30px) 26px; cursor: pointer; border-radius: var(--rayon-plaque); }
.recommendation-content:hover .btn-add-reco { background: var(--vif-clair); }
.reco-label {
    font-family: var(--condense);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ardoise);
}
.afficheur--reco .afficheur-texte { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; width: 100%; font-size: clamp(1rem, 0.85rem + 0.4vw, 1.25rem); }
.afficheur--reco { padding-block: 0.9rem; }
.reco-description { color: var(--ardoise); }
.btn-add-reco { width: 100%; }
.poussoir-contenu { display: contents; }

/* L'image de l'état : la marque de l'outil qui l'a produite reste hors champ, comme sur le site */
.picker-display { display: grid; }
.picker-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--marine);
    box-shadow: 0 0 0 1px rgba(0, 37, 81, 0.12), var(--ombre-plaque);
    cursor: zoom-in;
}
.picker-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.15);
    transition: opacity 0.2s ease;
}
.picker-image.active { opacity: 1; }
.picker-loupe {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--marine);
    color: var(--blanc);
    box-shadow: 0 0 0 3px var(--blanc), 0 10px 22px -10px rgba(0, 0, 0, 0.8);
}
.picker-loupe svg { width: 24px; height: 24px; }
.picker-image-container:hover .picker-loupe { background: var(--vif); }

/* Le curseur : une glissière inox à crans, un bouton rond marine */
.picker-slider-container { display: grid; gap: 12px; padding: 0 6px; }
.picker-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 34px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}
.picker-slider::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 6px;
    background: var(--inox-1);
    box-shadow: inset 0 1px 3px rgba(0, 37, 81, 0.25), inset 0 0 0 1px var(--inox-2);
}
.picker-slider::-moz-range-track {
    height: 12px;
    border-radius: 6px;
    background: var(--inox-1);
    box-shadow: inset 0 1px 3px rgba(0, 37, 81, 0.25), inset 0 0 0 1px var(--inox-2);
}
.picker-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 34px;
    height: 34px;
    margin-top: -11px;
    border-radius: 50%;
    background: var(--marine);
    box-shadow: 0 0 0 4px var(--blanc), 0 8px 16px -6px rgba(0, 0, 0, 0.55);
    cursor: grab;
}
.picker-slider::-moz-range-thumb {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--marine);
    box-shadow: 0 0 0 4px var(--blanc), 0 8px 16px -6px rgba(0, 0, 0, 0.55);
    cursor: grab;
}
.picker-slider:hover::-webkit-slider-thumb { background: var(--vif); }
.picker-slider:hover::-moz-range-thumb { background: var(--vif); }
.picker-slider:focus-visible { outline: none; }
.picker-slider:focus-visible::-webkit-slider-thumb { background: var(--vif); box-shadow: 0 0 0 4px var(--blanc), 0 0 0 7px var(--vif); }
.picker-slider:focus-visible::-moz-range-thumb { background: var(--vif); box-shadow: 0 0 0 4px var(--blanc), 0 0 0 7px var(--vif); }
/* Les crans : un voyant sous chaque arrêt du curseur (bord gauche, milieu, bord droit de la course du bouton),
   allumé au niveau choisi (data-niveau posé par borne/js/pages/particulier.js) */
.picker-labels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-family: var(--condense);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--marine);
}
.picker-labels span { display: grid; gap: 8px; justify-items: center; text-align: center; }
.picker-labels span:first-child { justify-items: start; text-align: left; }
.picker-labels span:last-child { justify-items: end; text-align: right; }
.picker-labels span::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--inox-1);
    box-shadow: inset 0 0 0 2px var(--inox-3);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
/* Le bouton fait 34 px : ses arrêts extrêmes sont à 17 px des bords de la glissière */
.picker-labels span:first-child::before { margin-left: 11px; }
.picker-labels span:last-child::before { margin-right: 11px; }
.picker-labels span:nth-child(2) { color: var(--vif); }
.picker-slider-container[data-niveau="3"] .picker-labels span:nth-child(1)::before,
.picker-slider-container[data-niveau="4"] .picker-labels span:nth-child(2)::before,
.picker-slider-container[data-niveau="5"] .picker-labels span:nth-child(3)::before {
    background: var(--vif);
    box-shadow: 0 0 0 3px var(--anneau-vif);
}

/* ---------- Comment ça se passe ? (châssis) ---------- */
.comment { row-gap: 36px; }
.comment .section-title { grid-column: 1 / span 8; }
.comment .plaque-instructions { grid-column: 1 / -1; }

/* ---------- Bande finale : rendez-vous, Myttic Home, zone (émail) ---------- */
.finale { row-gap: 32px; align-items: center; }
.finale-rdv { grid-column: 1 / span 6; display: grid; gap: 22px; justify-items: start; }
.finale-rdv .section-description a { color: var(--blanc); font-weight: 600; }
.finale-rdv .section-description a:hover { color: var(--bleu-texte); }
.finale-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.finale-plaques { grid-column: 8 / span 5; display: grid; gap: 18px; }
.plaque-home { display: grid; gap: 16px; justify-items: start; }
.plaque-home-texte { color: var(--bleu-texte); }
.plaque-home-texte strong { color: var(--blanc); }
.plaque-home-picto { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: 6px; vertical-align: middle; border-radius: 50%; background: var(--bleu); color: var(--blanc); }
.plaque-home-picto svg { width: 60%; height: 60%; }
.zone-section-simple { display: grid; gap: 16px; justify-items: start; }
.afficheur--zone { align-self: stretch; }
.afficheur--zone .afficheur-texte { font-size: clamp(0.9rem, 0.75rem + 0.35vw, 1.08rem); }

/* ---------- Vue agrandie du guide (script.js pose .open) ---------- */
.picker-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 26, 59, 0.92);
    cursor: zoom-out;
}
.picker-lightbox.open { display: flex; }
.picker-lightbox img {
    max-width: min(1100px, 88vw);
    max-height: 82vh;
    object-fit: cover;
    border-radius: var(--rayon-plaque);
    transform: scale(1.15);
    clip-path: inset(6% 6% 6% 6% round 14px);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--marine);
    color: var(--blanc);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox-close:hover { background: var(--vif); }
.lightbox-close:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; }

/* ==========================================================================
   ÉCRANS INTERMÉDIAIRES ET TÉLÉPHONE
   ========================================================================== */
@media (max-width: 1260px) {
    .cycle-etape strong { font-size: 1.15rem; }
    .abonnements { grid-template-columns: minmax(0, 1fr); }
    .abonnement-formule { border-left: 0; border-top: 1px solid var(--inox-2); }
    .abonnement-formule:first-child { border-top: 0; }
}

@media (max-width: 1080px) {
    .intro-lead, .intro-text { grid-column: 1 / -1; }
    .abonnement-tete, .cycle, .engagement, .abonnements, .abonnement-pied { grid-column: 1 / -1; }
    .guide-texte, .guide-machine { grid-column: 1 / -1; }
    .guide-machine { order: -1; }
    .finale-rdv, .finale-plaques { grid-column: 1 / -1; }
}

@media (min-width: 901px) and (max-height: 820px) {
    .borne-combo { padding-block: 10px; }
    .combo-titre { font-size: 1.35rem; }
}

@media (max-width: 900px) {
    .intro { row-gap: 18px; }
    .borne-combo { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .combo-repere { display: flex; align-items: center; gap: 12px; }
    .cycle { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
    .cycle::before { display: none; }
    .cycle-etape { grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 16px; align-items: start; }
    .cycle-etape p { max-width: none; }
    .cycle-retour { display: none; }
    .abonnement-formule { padding: 22px 18px; }
    .guide-machine { order: 0; }
    .comment .section-title { grid-column: 1 / -1; }
    .finale-actions .poussoir { width: 100%; }
}

/* Barre de réservation du téléphone, écran étroit : son libellé, formule et prix compris (« Réserver DÉTAILING · 70€ »,
   posé par borne/js/pages/particulier.js), tient sur une ligne jusqu'à 320 px */
@media (max-width: 374px) {
    .mobile-cta-bar { gap: 0.5rem; padding-right: 0.9rem; font-size: clamp(0.875rem, 4.6vw, 1.1rem); letter-spacing: 0.03em; }
}
