/* ACV Tech - feuille de style du site (refonte nov. 2026)
   Ordre : base > mise en page > header > composants > pages > animations > responsive */

:root {
    --anthracite: #4A4E53;
    --anthracite-fonce: #33373B;
    --nuit: #1F2326;
    --texte: #1F2326;
    --texte-doux: #4C5358;
    --gris: #6A7176;
    --glacier: #AFC6CE;
    --glacier-pale: #E6EEF1;
    --bleu-titre: #5E7C86;
    --bleu-icone: #3F5E68;
    --orange: #C2570C;
    --orange-fonce: #A84A08;
    --orange-pale: #FBEFE4;
    --vert: #1E7A3E;
    --fond: #F6F5F2;
    --blanc: #fff;
    --bord: #E3E1DB;
    --bord-clair: #EEECE7;
    --rayon: 18px;
    --rayon-s: 12px;
    --header-h: 64px;
    --ombre: 0 12px 30px rgba(31, 35, 38, .08);
}


/* --- base --- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texte);
    background: var(--fond);
    -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.015em;
    font-weight: 800;
}

h1 { font-size: clamp(32px, 4.6vw, 56px); }
h2 { font-size: clamp(27px, 3.2vw, 42px); }
h3 { font-size: 20px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    background: var(--orange);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }


/* --- mise en page --- */

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.wrap-etroit { max-width: 860px; }

.section { padding: 96px 0 72px; }
.section-s { padding-top: 56px; padding-bottom: 56px; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--bleu-titre);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.intro {
    margin-top: 16px;
    max-width: 640px;
    font-size: 17px;
    color: var(--texte-doux);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 36px;
}
.section-head h2 { max-width: 680px; }

.fond-blanc {
    background: var(--blanc);
    border-top: 1px solid var(--bord);
    border-bottom: 1px solid var(--bord);
}

.fond-sombre { background: var(--anthracite); color: #fff; }
.fond-sombre .eyebrow { color: var(--glacier); }
.fond-sombre .intro { color: #DCE4E7; }


/* --- boutons et liens --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }

.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 16px; }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-fonce); }

.btn-sombre { background: var(--nuit); color: #fff; }
.btn-sombre:hover { background: #000; }

.btn-clair { background: #fff; color: var(--texte); border-color: #C9C6BE; }
.btn-clair:hover { border-color: var(--texte); }

.btn-contour-blanc { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-contour-blanc:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}
.lien-fleche::after {
    content: "→";
    transition: transform .2s;
}
.lien-fleche:hover::after,
a:hover .lien-fleche::after { transform: translateX(4px); }


/* --- header --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--anthracite);
    color: #fff;
    transition: transform .3s ease, box-shadow .3s;
}
.site-header.cache { transform: translateY(-100%); }
.site-header.scrolle { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.logo { flex: none; }
.logo img { height: 42px; width: auto; }

.menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
}
.menu > a {
    position: relative;
    color: #fff;
    text-decoration: none;
    padding: 8px 0;
}
.menu > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    background: var(--glacier);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.menu-contact { display: none; }

.menu > a:hover::after,
.menu > a[aria-current="page"]::after { transform: scaleX(1); }

.outils {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icone-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}
.icone-btn:hover { background: rgba(255, 255, 255, .1); }

/* compteur panier (le JS du panier s'en sert déjà) */
.bp-count {
    position: absolute;
    top: 3px; right: 1px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
}

.btn-appel { min-height: 42px; padding: 10px 18px; margin-left: 6px; }

/* menu compte */
.compte { position: relative; }
.compte summary { list-style: none; }
.compte summary::-webkit-details-marker { display: none; }

.compte-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 8px;
    background: #fff;
    color: var(--texte);
    border-radius: var(--rayon-s);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.compte-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}
.compte-menu a:hover { background: var(--fond); }
.compte-menu hr { border: 0; border-top: 1px solid var(--bord-clair); margin: 6px 4px; }

.burger { display: none; }
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* --- panier latéral --- */

#nav-wrapper-panier {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(20, 22, 24, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
#nav-wrapper-panier.active { opacity: 1; visibility: visible; }

.nav-latteral-panier {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    width: min(440px, 92vw);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--texte);
    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.nav-latteral-panier.ouvert { transform: none; }

.panier-tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--bord-clair);
}
.panier-tete h2 { font-size: 20px; }
.panier-tete .icone-btn { color: var(--texte); }
.panier-tete .icone-btn:hover { background: var(--fond); }

.nav-links-panier { flex: 1; overflow-y: auto; padding: 0 4px; }

.choix-panier {
    display: flex;
    gap: 10px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--bord-clair);
}
.choix-panier .btn { flex: 1; }


/* --- message flash --- */

.flash {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    left: 50%;
    z-index: 120;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    border-radius: var(--rayon-s);
    background: var(--vert);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--ombre);
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.flash.erreur { background: #9B2C1F; }
.flash.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }


/* --- cartes --- */

.cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.carte {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.carte:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre);
    border-color: #D5D2CA;
}
.carte p { color: var(--texte-doux); }
.carte .lien-fleche { margin-top: auto; }

.carte-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--glacier-pale);
    color: var(--bleu-icone);
}

.carte-sombre { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.carte-sombre p { color: #DCE4E7; }
.carte-sombre .carte-icone { background: #5B6066; color: #CFDDE2; }
.carte-sombre .lien-fleche { color: #F2B07A; }


/* --- accueil : hero --- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(720px, calc(100vh - var(--header-h)));
    overflow: hidden;
    background: var(--nuit);
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    animation: zoom-lent 14s ease-out both;
}

video.hero-media { opacity: 0; transition: opacity 1.2s; }
video.hero-media.lecture { opacity: 1; }

/* assombrit le bas de l'image pour que le texte reste lisible */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 24, .1) 0%, rgba(20, 22, 24, .3) 45%, rgba(20, 22, 24, .86) 100%);
}

.hero-contenu {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 120px;
    padding-bottom: 64px;
}
.hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 5.4vw, 68px);
    line-height: 1.05;
    letter-spacing: -.02em;
}
.hero .lead {
    max-width: 620px;
    margin: 0;
    color: #E4EAEC;
    font-size: clamp(17px, 1.6vw, 20px);
}

.badge-avis {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.badge-avis:hover { background: rgba(255, 255, 255, .2); }
.badge-avis .etoiles { color: #F2B544; letter-spacing: 1px; }

/* le texte du hero arrive en décalé au chargement */
.hero-contenu > * { animation: monte .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-contenu > :nth-child(2) { animation-delay: .1s; }
.hero-contenu > :nth-child(3) { animation-delay: .2s; }
.hero-contenu > :nth-child(4) { animation-delay: .3s; }


/* --- accueil : arguments --- */

.arguments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 36px 40px;
    padding-top: 72px;
    padding-bottom: 72px;
}
.arguments h3 { font-size: 19px; margin: 12px 0 8px; }
.arguments p { color: var(--texte-doux); font-size: 15px; }

.numero {
    display: block;
    padding-top: 14px;
    border-top: 2px solid var(--glacier);
    font-weight: 800;
    color: var(--bleu-titre);
    font-variant-numeric: tabular-nums;
}


/* --- réalisations (vignettes) --- */

.vignettes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.vignette {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
}
.vignette-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: var(--glacier-pale);
}
.vignette-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.vignette:hover .vignette-img img { transform: scale(1.05); }

.vignette-meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--bleu-titre);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.vignette-titre { font-size: 19px; font-weight: 800; line-height: 1.3; }


/* --- équipe --- */

.equipe { padding: 88px 0; }

.equipe-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 28px 20px;
    margin-top: 44px;
}

.membre img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 14px;
    filter: grayscale(1) contrast(1.05);
    transition: filter .5s;
}
.membre:hover img { filter: none; }
.membre h3 { font-size: 18px; }
.membre p { margin-top: 6px; font-size: 14px; color: #CFDDE2; }


/* --- partenaires (défilement continu) --- */

.partenaires {padding: 48px 0;overflow: hidden;width: 1240px;margin: 0 auto;}
.partenaires .eyebrow { text-align: center; margin-bottom: 26px; }

.bandeau {
    display: flex;
    width: max-content;
    animation: defile 40s linear infinite;
}
.bandeau:hover { animation-play-state: paused; }

.bandeau-groupe {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
}
.bandeau img {
    height: 42px;
    width: auto;
    filter: grayscale(1);
    opacity: .55;
    transition: filter .3s, opacity .3s;
}
.bandeau img:hover { filter: none; opacity: 1; }

.partenaires-masque {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}


/* --- contact / magasin --- */

.magasin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 22px;
    overflow: hidden;
}

.magasin-infos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 48px 40px;
}
.magasin-infos h2 { font-size: clamp(26px, 2.8vw, 36px); }

.horaires {
    width: 100%;
    max-width: 360px;
    border-collapse: collapse;
    font-size: 15px;
}
.horaires td { padding: 6px 0; border-bottom: 1px solid var(--bord-clair); }
.horaires td + td { text-align: right; }
.horaires .ferme { color: var(--gris); }
.horaires tr.aujourdhui td { font-weight: 800; }
.horaires tr.aujourdhui td:first-child::after {
    content: "aujourd'hui";
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--orange-pale);
    color: #8A4B0E;
    font-size: 11px;
    font-weight: 700;
    vertical-align: 2px;
}
.horaires-note { font-size: 14px; color: var(--texte-doux); }

.contacts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 18px;
    font-size: 15px;
}
.contacts dt { color: var(--gris); }
.contacts dd { margin: 0; }
.contacts a { font-weight: 700; text-decoration: none; }
.contacts a:hover { color: var(--orange); }

.magasin-carte { min-height: 380px; background: var(--glacier-pale); }
.magasin-carte iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

/* formulaire */
.formulaire-bloc {
    margin-top: 24px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 22px;
}
.formulaire-bloc h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 6px; }

.formulaire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 14px; font-weight: 700; }

.champ input,
.champ select,
.champ textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #D9D6CF;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--bleu-titre);
    box-shadow: 0 0 0 3px rgba(94, 124, 134, .18);
}

.piege { position: absolute; left: -9999px; }


/* --- pages intérieures --- */

.page-tete {
    padding: 56px 0 40px;
    background: var(--anthracite);
    color: #fff;
}
.page-tete .eyebrow { color: var(--glacier); }
.page-tete h1 { font-size: clamp(30px, 4vw, 48px); max-width: 860px; }
.page-tete .intro { color: #DCE4E7; }

.ariane {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #CFD4D7;
}
.ariane a { color: #fff; text-decoration: none; }
.ariane a:hover { text-decoration: underline; }
.ariane span[aria-hidden] { opacity: .6; }

.texte-riche { font-size: 17px; color: var(--texte-doux); }
.texte-riche h2 { font-size: clamp(22px, 2.4vw, 28px); color: var(--texte); margin: 40px 0 12px; }
.texte-riche h3 { color: var(--texte); margin: 28px 0 10px; }
.texte-riche ul { padding-left: 20px; }
.texte-riche li { margin-bottom: 6px; }
.texte-riche a { color: var(--orange); }



/* =========================================================
   Boutique
   ========================================================= */

/* --- barre de recherche (recherche-barre.php) --- */

.recherche {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #D9D6CF;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transition: border-color .2s, box-shadow .2s;
}
.recherche:focus-within {
    border-color: var(--bleu-titre);
    box-shadow: 0 0 0 4px rgba(94, 124, 134, .15), 0 8px 24px rgba(0, 0, 0, .06);
}
.recherche input {
    flex: 1;
    min-width: 0;
    height: 62px;
    padding: 0 16px 0 56px;
    border: 0;
    border-radius: 999px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%236A7176' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 22px center;
    color: var(--texte); /* la barre peut être posée sur un fond sombre (en-tête boutique) */
    font-size: 17px;
}
.recherche input:focus { outline: none; }
.recherche input::-webkit-search-cancel-button { cursor: pointer; }
.recherche .btn { margin-right: 7px; min-height: 48px; padding: 0 26px; }
.recherche .btn svg { display: none; }

.recherche-liste {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon-s);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}
.recherche-liste[hidden] { display: none; }

.suggestion {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.35;
}
.suggestion img { width: 64px; height: 64px; object-fit: contain; }
.suggestion-texte { display: flex; flex-direction: column; min-width: 0; }
.suggestion-texte strong,
.suggestion-texte span {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: black;}
.suggestion-texte span { color: var(--texte-doux); }
.suggestion-prix { font-weight: 800; white-space: nowrap; }

.suggestion-tout {
    display: block;
    margin-top: 4px;
    padding: 12px 10px;
    border-top: 1px solid var(--bord-clair);
    border-radius: 0 0 10px 10px;
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}
.suggestion:hover, .suggestion.active,
.suggestion-tout:hover, .suggestion-tout.active { background: var(--fond); }
.recherche-aucun { padding: 12px 10px; color: var(--texte-doux); font-size: 14px; }

.zone-recherche { padding-top: 32px; }
.zone-recherche-fiche { padding-top: 20px; }
.zone-recherche-fiche .recherche { max-width: none; box-shadow: none; }
.zone-recherche-fiche .recherche input { height: 52px; font-size: 16px; }
.zone-recherche-fiche .recherche .btn { min-height: 40px; }

/* --- en-tête de la boutique : la recherche au premier plan --- */

.boutique-tete { padding-bottom: 28px; }
.boutique-tete h1 { margin-bottom: 10px; }
.boutique-tete .intro { max-width: 640px; margin: 0; }
.boutique-recherche { padding-top: 28px; }
.boutique-recherche .recherche {max-width: 1240px;margin: 0;border-color: transparent;}

.raccourcis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 920px;
    margin-top: 16px;
    font-size: 14px;
}
.raccourcis span { color: #CFD4D7; margin-right: 4px; }
.raccourcis a {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.raccourcis a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

@media (max-width: 720px) {
    /* la barre de recherche prend toute la largeur de l'écran, sans arrondi */
    .wrap.zone-recherche { padding-left: 0; padding-right: 0; }
    .zone-recherche .recherche,
    .zone-recherche .recherche input,
    .zone-recherche .recherche .btn,
    .zone-recherche .recherche-liste { border-radius: 0; }
    .zone-recherche .recherche { border-left: 0; border-right: 0; box-shadow: none; }
    .zone-recherche .recherche .btn { align-self: stretch; min-height: 0; margin: 0; }
    .zone-recherche .recherche input { padding-left: 18px; background-image: none; } /* le bouton dit déjà « Rechercher » : plus de place pour le texte */
    .zone-recherche .recherche-liste { top: 100%; border-left: 0; border-right: 0; }

    /* sur téléphone, l'en-tête boutique passe en clair : titre, recherche, raccourcis */
    .page-tete.boutique-tete { padding-top: 20px; padding-bottom: 0; background: var(--fond); color: var(--texte); border-bottom: 1px solid var(--bord); }
    .boutique-tete .ariane { color: var(--gris); }
    .boutique-tete .ariane a { color: var(--texte-doux); }
    .boutique-tete h1 { font-size: 28px; margin-bottom: 0; }
    .boutique-tete .intro { display: none; }
    .boutique-recherche { padding-top: 16px; }
    .boutique-recherche .recherche { border-color: var(--bord); }

    .zone-recherche .recherche .btn { width: 56px; padding: 0; justify-content: center; }
    .zone-recherche .recherche .btn svg { display: block; }
    .zone-recherche .recherche-btn-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

    .raccourcis {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -18px;
        padding: 12px 18px 14px;
        scrollbar-width: none;
        /* le dernier raccourci s'efface vers la droite : on comprend que ça défile */
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .raccourcis::-webkit-scrollbar { display: none; }
    .raccourcis span { display: none; }
    .raccourcis a { flex: 0 0 auto; padding: 7px 14px; border-color: #D9D6CF; background: #fff; color: var(--texte); font-weight: 600; }
}


/* --- page de résultats (recherche.php) --- */

.barre-resultats {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.barre-resultats .filtres-pilules { margin-bottom: 0; flex: 1; }
.tri-form select {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #D9D6CF;
    border-radius: 10px;
    background: #fff;
}
.recherche-correction { margin: 0 0 18px; color: var(--texte-doux); font-size: 15px; }
.pagination-trou { border: 0 !important; background: none !important; min-width: 20px !important; }

.recherche-vide {
    max-width: 640px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
}
.recherche-vide h2 { font-size: 24px; margin-bottom: 12px; }
.recherche-vide p { color: var(--texte-doux); margin-bottom: 14px; }

@media (max-width: 720px) {
    .recherche input { height: 54px; padding-left: 48px; background-position: 16px center; font-size: 16px; }
    .recherche .btn { padding: 0 16px; min-height: 42px; margin-right: 5px; }
    .suggestion { grid-template-columns: 64px minmax(0, 1fr); font-size: 16px; }
    .suggestion img { width: 64px; height: 64px; }
    .suggestion-prix { grid-column: 2; font-size: 16px; }
    .suggestion-tout { font-size: 15px; }
    .recherche-vide { padding: 24px; }
    /* le tri passe au-dessus, les catégories ont toute la largeur */
    .barre-resultats { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
    .tri-form select { width: 100%; }
}


/* --- catégories --- */

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.categorie {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon-s);
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}
.categorie:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.categorie img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 14px;
    background: #fff;
    transition: transform .4s;
}
.categorie:hover img { transform: scale(1.05); }
.categorie span {
    padding: 10px 14px 14px;
    font-weight: 700;
    font-size: 15px;
    border-top: 1px solid var(--bord-clair);
}


/* --- listes de produits --- */

.produits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.produit {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s;
}
.produit:hover { box-shadow: var(--ombre); border-color: #D5D2CA; }

.produit-img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
}
.produit-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.produit:hover .produit-img img { transform: scale(1.04); }

.pastille {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.pastille-promo { background: var(--orange); color: #fff; }
.pastille-coeur { background: #FCE8EA; color: #A3202F; }

.produit-corps {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 16px 18px 18px;
    border-top: 1px solid var(--bord-clair);
}
.produit-nom { font-size: 16px; line-height: 1.3; font-weight: 800; }
.produit-nom a { text-decoration: none; }
.produit-nom a:hover { color: var(--orange); }
.produit-desc { margin: 0; font-size: 14px; color: var(--texte-doux); line-height: 1.45; }

.prix {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: auto;
    padding-top: 6px;
}
.prix-actuel { font-size: 20px; font-weight: 800; }
.prix-promo { color: var(--orange); }
.prix-ancien { color: var(--gris); font-size: 14px; }
.prix-tva { font-size: 12px; color: var(--gris); }

.dispo {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 8px;
}
.dispo::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.dispo span { width: 100%; padding-left: 16px; font-weight: 500; color: var(--gris); }
.dispo-ok { color: var(--vert); }
.dispo-bas { color: #8A6D00; }
.dispo-commande { color: #9A4409; }
.dispo-info { color: var(--bleu-titre); }

.zone-ajout {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.zone-ajout input {
    width: 64px;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid #D9D6CF;
    border-radius: 10px;
    text-align: center;
}
.zone-ajout .btn { flex: 1; min-height: 44px; padding: 10px 14px; }

.variantes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--bord);
    font-size: 13px;
}
.variantes-titre { font-weight: 700; color: var(--gris); }
.variante {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--bord-clair);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color .2s;
}
.variante:hover { border-color: var(--bleu-titre); }
.variante small { color: var(--gris); }

/* sur deux colonnes étroites, le stock passe sous le nom */
@media (max-width: 720px) {
    .variante { flex-direction: column; gap: 2px; }
}

.liste-vide {
    padding: 40px;
    text-align: center;
    color: var(--texte-doux);
    background: #fff;
    border: 1px dashed var(--bord);
    border-radius: var(--rayon);
}

.barre-tri {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gris);
}
.barre-tri select {
    padding: 8px 12px;
    border: 1px solid #D9D6CF;
    border-radius: 10px;
    background: #fff;
}

.note-bloc {
    margin: -8px 0 24px;
    font-size: 14px;
    color: var(--texte-doux);
}


/* --- filtre des filtres de spa --- */

.filtre-form {
    display: grid;
    gap: 18px;
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
}
.filtre-dims { display: flex; flex-wrap: wrap; gap: 14px; }
.filtre-dims .champ { width: 180px; }

.filetages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.filetages input { position: absolute; opacity: 0; }
.filetages label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 2px solid var(--bord-clair);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.filetages img { width: 64px; height: 64px; object-fit: contain; }
.filetages input:checked + label { border-color: var(--bleu-titre); background: var(--glacier-pale); }
.filetages input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }


/* --- fiche produit --- */

.fiche {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    padding: 32px 0 56px;
}

.ariane-claire {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 24px;
    font-size: 14px;
    color: var(--gris);
}
.ariane-claire a { color: var(--texte-doux); text-decoration: none; }
.ariane-claire a:hover { color: var(--orange); }

.galerie { display: flex; flex-direction: column; gap: 12px; }
.galerie-principale {
    display: block;
    width: 100%;
    padding: 32px;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 22px;
    cursor: zoom-in;
}
.galerie-principale img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s;
}
.galerie-miniatures {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.galerie-miniatures button {
    aspect-ratio: 1;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s;
}
.galerie-miniatures button[aria-current="true"] { border: 2px solid var(--texte); }
.galerie-miniatures img { width: 100%; height: 100%; object-fit: contain; }

.fiche-infos { display: flex; flex-direction: column; gap: 20px; }
.fiche-infos h1 { font-size: clamp(28px, 3vw, 40px); }
.fiche-sous-titre { margin: -10px 0 0; font-size: 17px; color: var(--texte-doux); }
.fiche-infos .prix { margin-top: 0; }
.fiche-infos .prix-actuel { font-size: 34px; }

.fiche-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px;
    color: var(--gris);
}
.fiche-meta .dispo { font-size: 15px; }

.fiche-choix { display: flex; flex-direction: column; gap: 6px; }
.fiche-choix label { font-size: 14px; font-weight: 700; }
.fiche-choix select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D9D6CF;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
}

.fiche-actions { display: flex; flex-direction: column; gap: 10px; }
.fiche-actions .zone-ajout input { min-height: 54px; width: 80px; }
.fiche-actions .zone-ajout .btn { min-height: 54px; font-size: 16px; }

.rassurance {
    display: grid;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
}
.rassurance div { display: flex; gap: 12px; }
.rassurance svg { flex: none; color: var(--bleu-icone); margin-top: 1px; }
.rassurance span { color: var(--texte-doux); }

.fiche-onglets {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--bord);
    border-bottom: 1px solid var(--bord);
    transition: top .3s;
}
.site-header.cache ~ main .fiche-onglets { top: 0; }
.fiche-onglets nav { display: flex; gap: 4px 32px; overflow-x: auto; }
.fiche-onglets a {
    padding: 16px 0;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    font-size: 15px;
    color: var(--texte-doux);
    text-decoration: none;
    white-space: nowrap;
}
.fiche-onglets a.actif { color: var(--texte); border-bottom-color: var(--orange); }

.fiche-section { padding: 56px 0 8px; }
.fiche-section > h2 { font-size: 26px; margin-bottom: 20px; }

/* description saisie dans le CRM (HTML libre) */
.description-detail { font-size: 16px; color: var(--texte-doux); max-width: 900px; }
.description-detail h2,
.description-detail h3 { color: var(--texte); margin: 32px 0 12px; font-size: 22px; }
.description-detail img { border-radius: 12px; margin: 16px 0; }
.description-detail ul { padding-left: 20px; }
.description-detail a { color: var(--orange); }

.description-detail table,
.acv-tab-detail {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 14px;
    overflow: hidden;
    font-size: 15px;
}
.description-detail th,
.acv-tab-detail th {
    padding: 12px 16px;
    background: var(--anthracite);
    color: #fff;
    text-align: left;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.description-detail td,
.acv-tab-detail td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--bord-clair);
    vertical-align: top;
}
.description-detail tr:nth-child(even) td { background: #FAF9F7; }
.description-detail td:last-child { color: var(--texte); font-weight: 700; }
.acv-tab-wrapper { overflow-x: auto; }

/* pièces détachées */
.pieces {
    display: grid;
    gap: 10px;
}
.piece {
    display: grid;
    grid-template-columns: 72px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 10px 16px 10px 10px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.piece:hover { border-color: #D5D2CA; box-shadow: var(--ombre); }
.piece img { width: 72px; height: 72px; object-fit: contain; }
.piece-nom { font-weight: 700; line-height: 1.35; }
.piece-num {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--glacier-pale);
    color: var(--bleu-icone);
    font-size: 12px;
}
.piece-prix { font-weight: 800; white-space: nowrap; }

.documents { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.document {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
}
.document:hover { border-color: var(--bleu-titre); }
.document b {
    flex: none;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #F3E3E0;
    color: #9B2C1F;
    font-size: 11px;
}

.avis { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.avis-carte {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 16px;
}
.avis-carte .etoiles { color: #E0A21B; letter-spacing: 2px; }
.avis-carte p { margin: 8px 0 0; color: var(--texte-doux); }

/* visionneuse d'images */
.visionneuse {
    width: min(1000px, 94vw);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
}
.visionneuse::backdrop { background: rgba(20, 22, 24, .8); }
.visionneuse img { width: 100%; max-height: 82vh; object-fit: contain; padding: 24px; }
.visionneuse-barre {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-top: 1px solid var(--bord-clair);
}
.visionneuse-barre .icone-btn { color: var(--texte); }
.visionneuse-barre .icone-btn:hover { background: var(--fond); }

@media (max-width: 900px) {
    .fiche { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
    .galerie-principale { padding: 20px; }
    .piece { grid-template-columns: 56px 1fr; }
    .piece img { width: 56px; height: 56px; }
    .piece-prix, .piece .dispo { grid-column: 2; }
}

@media (max-width: 720px) {
    .produits { grid-template-columns: 1fr 1fr; gap: 12px; }
    .produit-img img { padding: 10px; }
    .produit-corps { padding: 12px; }
    .produit-nom { font-size: 14px; }
    .produit-desc { font-size: 13px; }
    .prix-actuel { font-size: 17px; }
    .zone-ajout { flex-direction: column; }
    .zone-ajout input { width: 100%; }
    .categories { grid-template-columns: repeat(2, 1fr); }
}


/* --- page spas --- */

.spas-tete { background: #fff; border-bottom: 1px solid var(--bord); }
.spas-tete-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
}
.spas-tete h1 { font-size: clamp(30px, 4vw, 50px); }
.spas-tete img { animation: monte 1s .15s cubic-bezier(.2, .8, .2, 1) both; }

.sur-mesure {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.liste-coches {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.liste-coches li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--fond);
    border-radius: 12px;
    font-weight: 600;
}
.liste-coches li::before {
    content: "";
    flex: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--glacier-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233F5E68' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center;
}

@media (max-width: 900px) {
    .spas-tete-grille,
    .sur-mesure { grid-template-columns: 1fr; }
    .spas-tete-grille { padding-top: 32px; }
}


/* --- réalisations --- */

.chantier-meta { margin: 14px 0 0; color: #CFD4D7; }

.chantier { padding-top: 32px; padding-bottom: 24px; }
.chantier-photo {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    cursor: zoom-in;
}
.chantier-photo img { width: 100%; max-height: 600px; object-fit: cover; }
.chantier-miniatures {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.chantier-miniatures a,
.galerie-grille a {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: zoom-in;
}
.chantier-miniatures img,
.galerie-grille img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.chantier-miniatures a:hover img,
.galerie-grille a:hover img { transform: scale(1.06); }
.chantier-texte { margin-top: 36px; line-height: 1.75; }

.galerie-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.encart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 16px;
    padding: 28px;
    background: var(--glacier-pale);
    border-radius: var(--rayon);
}
.encart h2 { font-size: 22px; margin-bottom: 6px; }
.encart p { color: var(--texte-doux); max-width: 520px; }

.vignette-nb {
    position: absolute;
    right: 10px; bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(20, 22, 24, .65);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.vignette-img { position: relative; }
.vignette-resume { margin: 0; font-size: 15px; color: var(--texte-doux); }
h2.vignette-titre { font-size: 19px; letter-spacing: 0; }

.filtres-pilules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.filtres-pilules a {
    padding: 9px 16px;
    border: 1px solid #D9D6CF;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.filtres-pilules a span { color: var(--gris); margin-left: 4px; }
.filtres-pilules a[hidden] { display: none; }
.filtres-pilules a, .pilules-plus { white-space: nowrap; }

/* bouton « +N » des catégories repliées (recherche.php) */
.pilules-plus {
    padding: 9px 16px;
    border: 1px dashed #B9B5AC;
    border-radius: 999px;
    background: transparent;
    color: var(--texte);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.pilules-plus::after { content: " ▾"; font-size: 11px; }
.pilules-plus[aria-expanded="true"]::after { content: " ▴"; }
.pilules-plus:hover { border-style: solid; border-color: var(--texte); }
.filtres-pilules a:hover { border-color: var(--texte); }
.filtres-pilules a[aria-current] { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.filtres-pilules a[aria-current] span { color: var(--glacier); }

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}
.pagination a,
.pagination span {
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid #D9D6CF;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}
.pagination span[aria-current] { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }


/* --- tarifs --- */

.tarifs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.tarif {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
}
.tarif-principal { border-color: var(--anthracite); box-shadow: inset 0 4px 0 var(--anthracite); }
.tarif-lettre {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bleu-titre);
}
.tarif-plage { color: var(--texte-doux); }
.tarif-plage strong { color: var(--texte); font-size: 18px; }
.tarif-prix { margin-top: auto; font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.tarif-prix small { font-size: 15px; font-weight: 600; color: var(--gris); letter-spacing: 0; }


/* --- blocs texte / image en alternance (modifications spa) --- */

.alterne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    padding: 40px 0;
}
.alterne + .alterne { border-top: 1px solid var(--bord); }
.alterne-inverse .alterne-img { order: 2; }
.alterne-seul { grid-template-columns: minmax(0, 760px); }
.alterne-img img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--rayon);
}
.alterne-texte h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 12px 0 16px; }
.alterne-texte p { color: var(--texte-doux); font-size: 16px; }
.alterne-texte .numero { display: inline-block; padding-right: 24px; }

@media (max-width: 900px) {
    .alterne { grid-template-columns: 1fr; gap: 24px; }
    .alterne-inverse .alterne-img { order: 0; }
}


/* --- connexion / inscription --- */

.auth {
    display: flex;
    justify-content: center;
    padding: 64px 18px 88px;
}
.auth-carte {
    width: 100%;
    max-width: 540px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 22px;
}
.auth-carte h1 { font-size: clamp(28px, 3vw, 36px); }
.auth-carte .intro { margin-top: 8px; }
.formulaire-colonne { grid-template-columns: 1fr; }
.auth-liens {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--bord-clair);
    font-size: 15px;
    color: var(--texte-doux);
}
.auth-liens p { margin-bottom: 6px; }
.auth-liens a { color: var(--orange); font-weight: 700; }

.alerte {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 15px;
}
.alerte p { margin: 0; }
.alerte strong + p { margin-top: 4px; }
.alerte-ok { background: #EAF6EE; border-color: #9FD3B0; color: #1D5B2C; }
.alerte-erreur { background: #FDEDEB; border-color: #F0B1A8; color: #7A1C1C; }
.alerte-info { background: var(--glacier-pale); border-color: #C3D6DD; color: #1F3F4A; }
.alerte a { color: inherit; font-weight: 700; }


/* --- suivi de chantier --- */

.fil-chantier {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
    border-left: 2px solid var(--glacier);
}
.fil-chantier li {
    position: relative;
    padding: 0 0 40px;
}
.fil-chantier li::before {
    content: "";
    position: absolute;
    left: -36px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px var(--fond);
}
.fil-chantier time { font-size: 13px; font-weight: 700; color: var(--bleu-titre); }
.fil-chantier h2 { font-size: 22px; margin: 6px 0 10px; }
.fil-chantier p { color: var(--texte-doux); }
.fil-chantier .galerie-grille { margin-top: 16px; }

@media (max-width: 720px) {
    .auth-carte { padding: 28px 22px; }
}

/* --- footer --- */

.site-footer {
    background: var(--anthracite-fonce);
    color: #CFD4D7;
    font-size: 14px;
}

.footer-haut {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 56px 0 40px;
}
.footer-haut h2 {
    margin-bottom: 14px;
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.footer-haut ul { list-style: none; margin: 0; padding: 0; }
.footer-haut li { margin-bottom: 8px; }
.footer-haut a { color: #CFD4D7; text-decoration: none; }
.footer-haut a:hover { color: #fff; }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }

.footer-bas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #9EA5AA;
}
.footer-bas a { color: #9EA5AA; }


/* --- barre d'actions mobile --- */



/* --- accueil : avis clients --- */

.temoignages-grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.temoignage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
}
.temoignage .etoiles { color: #F2B544; letter-spacing: 2px; }
.temoignage blockquote { margin: 0; flex: 1; }
.temoignage blockquote p { margin: 0; font-size: 16px; line-height: 1.65; }
.temoignage figcaption { font-weight: 700; color: var(--texte-doux); }

/* --- accueil : entretien et dépannage --- */

.sav {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.sav-texte h2 { margin: 0 0 16px; }
.sav-texte p { color: var(--texte-doux); font-size: 17px; max-width: 560px; margin-bottom: 28px; }

.sav-liens { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bord); }
.sav-liens li { border-bottom: 1px solid var(--bord); }
.sav-liens a {
    position: relative;
    display: block;
    padding: 20px 40px 20px 0;
    color: inherit;
    text-decoration: none;
}
.sav-liens a::after {
    content: "→";
    position: absolute;
    right: 8px;
    top: 50%;
    color: var(--orange);
    transform: translateY(-50%);
    transition: transform .25s;
}
.sav-liens a:hover::after { transform: translate(6px, -50%); }
.sav-liens strong { display: block; font-size: 17px; margin-bottom: 4px; }
.sav-liens span { color: var(--texte-doux); font-size: 15px; }

.produits + .note-bloc { margin: 24px 0 0; }

@media (max-width: 960px) {
    .sav { grid-template-columns: 1fr; gap: 36px; }
}

/* sur téléphone, les avis défilent de côté au lieu de s'empiler */
@media (max-width: 720px) {
    .temoignages-grille {
        display: flex;
        gap: 14px;
        margin: 0 -18px;
        padding: 0 18px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .temoignages-grille::-webkit-scrollbar { display: none; }
    .temoignage { flex: 0 0 84%; scroll-snap-align: center; padding: 22px; }
}


/* --- animations --- */

@keyframes monte {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes zoom-lent {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes defile {
    to { transform: translateX(-50%); }
}

/* apparition au scroll : le JS ajoute .visible.
   Sans JS (classe "js" absente), tout reste affiché normalement. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .bandeau { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .bandeau-groupe[aria-hidden] { display: none; }
}


/* --- tablette --- */

@media (max-width: 1080px) {
    .menu { gap: 20px; }
    .btn-appel { display: none; }
}

@media (max-width: 960px) {
    .burger { display: inline-flex; flex-direction: column; justify-content: center; }
    .outils { margin-left: auto; }

    .menu {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px 24px 40px;
        background: var(--anthracite);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .menu.ouvert { visibility: visible; opacity: 1; transform: none; }
    .menu > a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        font-size: 19px;
    }
    .menu > a::after { display: none; }

    .menu-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
    .menu-contact .btn { width: 100%; }

    .footer-haut { grid-template-columns: 1fr 1fr; }
}


/* --- mobile --- */

@media (max-width: 720px) {
    :root { --header-h: 58px; }

    /* seulement les côtés : un padding-top posé sur un .wrap (zone-recherche…) doit rester */
    .wrap { padding-left: 18px; padding-right: 18px; }
    .section { padding: 64px 0 48px; }
    .logo img { height: 36px; }


    .magasin-infos,
    .formulaire-bloc { padding: 28px 22px; }
    .formulaire { grid-template-columns: 1fr; }

    .footer-haut { grid-template-columns: 1fr; padding-top: 40px; }

    .equipe-grille { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
    .membre p { font-size: 13px; }

}


/* =========================================================
   Rythme vertical
   Une seule source pour les espacements : pas de padding en
   style="" dans les pages, sinon le mobile ne peut plus le réduire.
   ========================================================= */

.section-suite { padding-top: 48px; } /* section juste sous un en-tête de page */
.texte-riche > :first-child { margin-top: 0; }

@media (max-width: 720px) {
    .section { padding-top: 48px; padding-bottom: 40px; }
    .section-suite { padding-top: 28px; }
    .section-head { margin-bottom: 24px; }

    .page-tete { padding-top: 28px; padding-bottom: 28px; }
    .ariane { margin-bottom: 12px; }

    .equipe { padding-top: 56px; padding-bottom: 56px; }
    .equipe-grille { margin-top: 28px; }
    .arguments { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
    .alterne { padding-top: 28px; padding-bottom: 28px; gap: 24px; }

    .fiche { padding-top: 16px; padding-bottom: 32px; gap: 24px; }
    .fiche-section { padding-top: 36px; }

    .magasin-infos { padding: 28px 22px; }
    .magasin-carte,
    .magasin-carte iframe { min-height: 240px; }
}


/* =========================================================
   Accueil : la grande phrase (index.php + js/manifeste.js)
   Les mots soulignés se marquent au feutre, puis ouvrent une petite carte.
   ========================================================= */

.manifeste { background: #fff; border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.manifeste .wrap { position: relative; }

.manifeste-phrase {
    max-width: 1080px;
    margin: 14px 0 0;
    font-size: clamp(26px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.02em;
    color: var(--texte);
}

.mot {
    padding: 0 0 .06em;
    background-color: transparent;
    /* un soulignement fin qui se trace de gauche à droite */
    background-image: linear-gradient(var(--orange), var(--orange));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 0% 2px;
    cursor: pointer;
    transition: background-size .6s cubic-bezier(.3, .7, .2, 1) calc(var(--i, 0) * .15s + .2s), color .2s;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.manifeste.vu .mot { background-size: 100% 2px; }
.manifeste.vu .mot:hover,
.manifeste.vu .mot.ouvert { background-size: 100% 3px; }
.mot:hover,
.mot.ouvert { color: var(--orange); }
.mot:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.manifeste-cartes { position: relative; }
.manifeste-astuce { margin: 14px 0 0; color: var(--gris); font-size: 14px; }
.manifeste-astuce { transition: opacity .3s; }
.manifeste-astuce::before { content: "↖ "; color: var(--orange); }
.manifeste-cartes:has(.mot-carte:not([hidden])) .manifeste-astuce { display: none; }
.mot-carte {
    position: absolute;
    z-index: 5;
    width: 320px;
    padding: 18px 20px;
    background: var(--anthracite-fonce);
    color: #fff;
    border-radius: var(--rayon-s);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    animation: monte .25s ease-out both;
}
.mot-carte[hidden] { display: none; }
.mot-carte-large { width: 380px; }
.mot-carte strong { display: block; margin-bottom: 6px; font-size: 17px; }
.mot-carte p { margin: 0 0 10px; color: #DCE4E7; font-size: 15px; line-height: 1.5; }
.mot-carte .lien-fleche { color: #F59A52; }
.mot-logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.mot-logos img { height: 34px; width: auto; padding: 6px 10px; background: #fff; border-radius: 8px; }

/* ordinateur : la phrase à gauche, les cartes dans une colonne à droite */
@media (min-width: 721px) {
    .manifeste-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 56px; }
    .manifeste-grille .eyebrow { grid-column: 1 / -1; }
    .manifeste-cartes { grid-column: 2; grid-row: 2; }
    .mot-carte, .mot-carte-large { width: 100%; }
}
@media (min-width: 721px) and (max-width: 1080px) {
    .manifeste-grille { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 32px; }
}

@media (max-width: 720px) {
    .manifeste-phrase { font-size: clamp(24px, 7vw, 30px); line-height: 1.38; }
    .mot-carte { position: static; width: auto; margin-top: 18px; }
    .manifeste-astuce::before { content: "↑ "; }
}

@media (prefers-reduced-motion: reduce) {
    .mot { transition: none; }
}

/* =========================================================
   Accueil : vue éclatée du spa (inc/vue-eclatee.php)
   Fond « plan technique » : quadrillage léger sur anthracite.
   ========================================================= */

.eclatee {
    background-color: var(--anthracite-fonce);
    background-image:
        linear-gradient(rgba(175, 198, 206, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(175, 198, 206, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    color: #fff;
    overflow: hidden;
}
.eclatee .eyebrow { color: var(--glacier); }
.eclatee h2 { max-width: 460px; }
.eclatee .intro { color: #DCE4E7; margin: 16px 0 28px; max-width: 440px; }

.eclatee-grille {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.eclatee-liste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eclatee-liste button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 0;
    border: 0;
    background: none;
    color: #DCE4E7;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.eclatee-liste button span {
    flex: 0 0 26px;
    height: 26px;
    border: 1px solid rgba(175, 198, 206, .5);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    transition: background .2s, border-color .2s;
}
.eclatee-liste button:hover { color: #fff; }
.eclatee-liste button[aria-pressed="true"] { color: #fff; font-weight: 700; }
.eclatee-liste button[aria-pressed="true"] span { background: var(--orange); border-color: var(--orange); }

.eclatee-dessin { position: relative; }
.eclatee-dessin svg { display: block; width: 100%; height: auto; overflow: visible; }

/* le dessin : traits fins façon notice technique, trois tons pour le volume */
.eclatee svg polygon,
.eclatee svg polyline,
.eclatee svg line { stroke: #C9D8DD; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; transition: fill .3s, stroke .3s, opacity .3s; }
.eclatee .f-cote { fill: #3E444A; }
.eclatee .f-haut { fill: #4E555C; }
.eclatee .f-face { fill: #575F66; }
.eclatee .humide.f-cote { fill: #44515A; }
.eclatee .humide.f-face { fill: #5D6C76; }
.eclatee .arete { stroke-width: .8; opacity: .6; }
.eclatee .detail { fill: none; stroke-width: .7; opacity: .55; }
.eclatee .detail-ligne,
.eclatee .detail-plein { fill: none; stroke-width: .7; opacity: .7; }
.eclatee .etiquette { fill: #C9D8DD; fill-opacity: .12; stroke-width: .7; }
.eclatee .led { fill: #6FE08F; }
.eclatee .filtre.f-cote { fill: #E9E4D8; fill-opacity: .2; }
.eclatee .filtre.f-face { fill: #E9E4D8; fill-opacity: .3; }
.eclatee .trou { fill: #24282B; }
.eclatee .f-fond { fill: #2E3236; stroke-dasharray: 3 3; opacity: .7; }
.eclatee .panneau { fill: #3B332C; }
.eclatee .lame { stroke: #8A7A6A; stroke-width: .7; opacity: .8; }
.eclatee .socle { fill: #2A2D30; }
.eclatee .f-coque { fill: #E8EEF0; fill-opacity: .9; stroke: #fff; }
.eclatee .paroi { fill: #9FB4BC; }
.eclatee .eau { fill: #7FB7C6; stroke: #B7DCE6; }
.eclatee .siege { fill: #9DCAD6; stroke: #CFE9F0; stroke-width: .8; }
.eclatee .buse { fill: #5E7C86; stroke: #E8EEF0; stroke-width: .6; }
.eclatee .clavier.f-haut { fill: #2B2F33; }
.eclatee .ecran { fill: #6FA9C9; stroke: none; }
.eclatee .f-couv { fill: #6E6458; }
.eclatee .poignee { fill: none; stroke-width: 2; }
.eclatee .bras { fill: none; stroke-width: 3.2; }
.eclatee .grille { fill: #32373B; }
.eclatee .tuyau { fill: none; stroke: #7E9198; stroke-width: 5; }
.eclatee .tuyau.gros { stroke-width: 7.5; }
.eclatee .tuyau-reflet { fill: none; stroke: #D9E5E9; stroke-width: 1.2; opacity: .55; }
.eclatee .tuyau-reflet.gros { stroke-width: 1.8; }
.eclatee .cable { fill: none; stroke: #B5651D; stroke-width: 1.2; opacity: .8; }
.eclatee .axe { stroke-dasharray: 2 5; stroke-width: .8; opacity: 0; transition: opacity .6s 1.2s; }
.eclatee.eclate .axe { opacity: .5; }

/* repères : numéro en marge + ligne de rappel vers la pièce */
.eclatee .repere { cursor: pointer; opacity: 0; transition: opacity .5s 1.3s; }
.eclatee.eclate .repere { opacity: 1; }
.eclatee .rappel { fill: none; stroke-width: .8; opacity: .7; }
.eclatee .point { fill: #C9D8DD; }
.eclatee .pastille { fill: var(--anthracite-fonce); stroke: #C9D8DD; stroke-width: 1.2; transition: fill .2s, stroke .2s; }
.eclatee .repere text { fill: #fff; font-weight: 800; text-anchor: middle; pointer-events: none; }
.eclatee .reperes-tel { display: none; }
@media (max-width: 720px) {
    .eclatee .reperes-ordi { display: none; }
    .eclatee .reperes-tel { display: inline; }
}
.eclatee .repere:hover .pastille { stroke: var(--orange); }

/* ouverture du spa */
.eclatee .piece { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) var(--delai, 0s), opacity .3s; cursor: pointer; }
/* les panneaux s'écartent pleins et foncés, puis s'effacent pour montrer l'intérieur */
.eclatee .volet { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) var(--delai, 0s), opacity 1.4s ease .9s; }
.eclatee.eclate .piece { transform: translate(var(--dx), var(--dy)); }
.eclatee.eclate .volet-gauche { transform: translate(-70px, 40px); opacity: .16; }
.eclatee.eclate .volet-droite { transform: translate(70px, 40px); opacity: .16; }

/* pièce choisie en orange, le reste s'efface */
.eclatee.choix .piece:not(.actif):not(.contient-actif),
.eclatee.choix .repere:not(.actif),
.eclatee.choix .habillage-fond,
.eclatee.choix .plomberie { opacity: .3; transition: opacity .3s; }
.eclatee.choix .volet { opacity: .06; }
.eclatee .actif polygon,
.eclatee .actif polyline { stroke: #F59A52; }
.eclatee .actif .f-cote, .eclatee .actif .f-haut, .eclatee .actif .f-face,
.eclatee .actif .buse { fill: rgba(194, 87, 12, .55); }
.eclatee .repere.actif .pastille { fill: var(--orange); stroke: #fff; }
.eclatee .repere.actif .rappel { stroke: #F59A52; opacity: 1; }

/* fiche de la pièce */
.eclatee-fiche {
    position: absolute;
    left: 0; top: 0;
    width: min(320px, 100%);
    padding: 22px 22px 20px;
    background: #fff;
    color: var(--texte);
    border-radius: var(--rayon);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    animation: monte .35s ease-out both;
}
.eclatee-fiche[hidden] { display: none; }
.eclatee-fiche h3 { margin: 0 0 8px; font-size: 20px; }
.eclatee-fiche p { color: var(--texte-doux); font-size: 15px; margin-bottom: 14px; }
.eclatee-num {
    display: inline-block;
    width: 28px; height: 28px;
    margin: 0 0 10px !important;
    border-radius: 50%;
    background: var(--orange);
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800;
    line-height: 28px;
    text-align: center;
}
.eclatee-fermer {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--fond);
    color: var(--texte);
    cursor: pointer;
}

@media (max-width: 960px) {
    .eclatee-grille { grid-template-columns: 1fr; gap: 8px; }
    .eclatee .intro { margin-bottom: 8px; }
}

@media (max-width: 720px) {
    .eclatee-dessin { margin: 0 -10px; }
    /* la liste devient une rangée de pastilles qu'on fait défiler, sous le dessin */
    .eclatee-grille { display: flex; flex-direction: column; align-items: stretch; }
    .eclatee-texte { display: contents; }
    .eclatee-texte > * { order: 1; }
    .eclatee-dessin { order: 2; }
    .eclatee-liste {
        order: 3;
        display: flex;
        gap: 8px;
        margin: 8px -18px 0;
        padding: 0 18px 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .eclatee-liste::-webkit-scrollbar { display: none; }
    .eclatee-liste li { flex: 0 0 auto; }
    .eclatee-liste button {
        padding: 7px 14px 7px 7px;
        border: 1px solid rgba(175, 198, 206, .35);
        border-radius: 999px;
        white-space: nowrap;
        font-size: 14px;
    }
    .eclatee-liste button[aria-pressed="true"] { border-color: var(--orange); background: rgba(194, 87, 12, .2); }
    .eclatee-fiche { position: relative; width: auto; margin: 0 10px; order: 4; }
}

@media (prefers-reduced-motion: reduce) {
    .eclatee .piece, .eclatee .volet, .eclatee .repere { transition: none; }
}

/* =========================================================
   Accueil : les « histoires » (index.php + js/histoires.js)
   Sur ordinateur on ne voit que le grand visuel.
   Sur téléphone : des écrans plein cadre qu'on fait glisser,
   avec les petites barres de progression en haut.
   ========================================================= */

.histoire:not(.hero),
.histoires-barres { display: none; }

@media (max-width: 720px) {
    .histoires { position: relative; background: var(--nuit); }

    .histoires-piste {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }
    .histoires-piste::-webkit-scrollbar { display: none; }

    .histoire,
    .histoire:not(.hero) {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex: 0 0 100%;
        height: calc(100vh - var(--header-h));
        height: calc(100svh - var(--header-h));
        min-height: 500px;
        max-height: 900px;
        overflow: hidden;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        color: #fff;
    }

    /* barres de progression, une par histoire */
    .histoires-barres {
        position: absolute;
        top: 10px; left: 12px; right: 12px;
        z-index: 5;
        display: flex;
        gap: 4px;
        pointer-events: none;
    }
    .histoires-barres span {
        flex: 1;
        height: 3px;
        overflow: hidden;
        border-radius: 3px;
        background: rgba(255, 255, 255, .35);
    }
    .histoires-barres i { display: block; width: 0; height: 100%; background: #fff; }
    .histoires-barres .vue i { width: 100%; }
    .histoires-barres .en-cours i { animation: barre-histoire var(--duree, 6s) linear forwards; }
    .histoires.pause .histoires-barres .en-cours i { animation-play-state: paused; }
    .histoires-clair .histoires-barres span { background: rgba(31, 35, 38, .18); }
    .histoires-clair .histoires-barres i { background: var(--texte); }

    /* 1. le spa : titre dans le ciel, boutons en bas, le spa au milieu sans rien dessus */
    .histoire-une .hero-media { animation: zoom-lent 14s ease-out both; object-position: center; }
    .histoire-une video.hero-media { display: none; }
    .histoire-une::after {
        background: linear-gradient(180deg, rgba(15, 17, 19, .78) 0%, rgba(15, 17, 19, .2) 30%, rgba(15, 17, 19, 0) 42%,
                                            rgba(15, 17, 19, 0) 64%, rgba(15, 17, 19, .82) 100%);
    }
    .histoire-une .hero-contenu {
        position: absolute;
        inset: 0;
        gap: 12px;
        padding-top: 30px;
        padding-bottom: 26px;
    }
    .histoire-une h1 { font-size: clamp(27px, 7.8vw, 34px); line-height: 1.08; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
    .histoire-une .lead { display: none; }
    .histoire-une .badge-avis { padding: 6px 12px; font-size: 13px; backdrop-filter: blur(6px); }
    .histoire-une .actions { margin-top: auto; gap: 10px; }
    .histoire-une .actions .btn { flex: 1 1 100%; min-height: 52px; font-size: 16px; }
    .histoire-une .btn-contour-blanc { background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }

    /* texte commun des autres histoires */
    .histoire-texte { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 18px 30px; }
    .histoire-sur { margin: 0; color: var(--glacier); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
    .histoire-titre { margin: 0 0 6px; font-size: clamp(26px, 7.4vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }

    /* 2. dernier chantier : la photo en plein écran */
    .histoire-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom-lent 14s ease-out both; }
    .histoire-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15, 17, 19, .45) 0%, rgba(15, 17, 19, 0) 25%, rgba(15, 17, 19, 0) 50%, rgba(15, 17, 19, .88) 100%);
    }

    /* 3. avis : la note en très grand */
    .histoire-avis {
        background:
            radial-gradient(120% 70% at 85% 10%, rgba(194, 87, 12, .55), transparent 60%),
            radial-gradient(90% 60% at 0% 100%, rgba(175, 198, 206, .25), transparent 60%),
            var(--nuit);
    }
    .histoire-avis .histoire-texte { justify-content: flex-end; height: 100%; }
    .histoire-note { margin: 0; font-size: 34vw; font-weight: 800; line-height: .85; letter-spacing: -.06em; }
    .histoire-note span { color: #F2B544; font-size: .38em; vertical-align: top; margin-left: .06em; }
    .histoire-avis blockquote { margin: 12px 0 0; font-size: 19px; line-height: 1.45; font-weight: 500; }
    .histoire-avis blockquote::before { content: "« "; color: var(--orange); font-weight: 800; }
    .histoire-avis blockquote::after { content: " »"; color: var(--orange); font-weight: 800; }
    .histoire-auteur { margin: 0 0 8px; color: #CFD4D7; font-weight: 700; }

    /* 4. boutique : un produit qui flotte sur fond clair */
    .histoire.histoire-boutique { background: var(--fond); color: var(--texte); }
    .histoire-boutique .histoire-sur { color: var(--bleu-titre); }
    .histoire-produit {
        position: absolute;
        top: 9%; left: 50%;
        width: 80%; height: 48%;
        object-fit: contain;
        mix-blend-mode: multiply; /* le fond blanc de la photo disparaît dans le fond de la page */
        transform: translateX(-50%);
        animation: flotte 5s ease-in-out infinite;
    }
}

@keyframes barre-histoire { from { width: 0; } to { width: 100%; } }
@keyframes flotte {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .histoire-une .hero-media, .histoire-fond, .histoire-produit { animation: none; }
}
