/* ==========================================================================
   ROTS STONE — identité visuelle
   Bootstrap 5.3 fournit la grille et les composants ; ce fichier porte le style.
   Typo : Archivo (axe de largeur 62–125) — titres en largeur étendue,
   texte courant en largeur normale.
   ========================================================================== */

:root {
    --rots-dark: #151515;
    --rots-charcoal: #292929;
    --rots-light: #F5F2EC;
    --rots-stone: #D8D1C5;
    --rots-earth: #A68A64;
    --rots-brown: #8A5A3B;

    --rots-muted-on-dark: rgba(245, 242, 236, .68);
    --rots-muted-on-light: #5d5750;
    --rots-line-light: rgba(21, 21, 21, .14);
    --rots-line-dark: rgba(245, 242, 236, .16);

    --font-main: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
    --header-h: 64px;
    --ease-out: cubic-bezier(.2, .7, .1, 1);
    --section-y: clamp(4.5rem, 10vw, 9rem);

    /* Surcharges Bootstrap */
    --bs-body-font-family: var(--font-main);
    --bs-body-color: var(--rots-charcoal);
    --bs-body-bg: var(--rots-light);
    --bs-border-color: var(--rots-line-light);
    --bs-link-color-rgb: 41, 41, 41;
    --bs-link-hover-color-rgb: 138, 90, 59;
    --bs-gutter-x: 2rem;
}

@media (min-width: 1200px) {
    :root { --header-h: 76px; }
}

/* Lumière du hero : propriétés animables */
@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 68%; }
@property --ly { syntax: "<percentage>"; inherits: true; initial-value: 38%; }

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
    font-family: var(--font-main);
    font-size: 1.0625rem;
    line-height: 1.62;
    font-stretch: 100%;
    color: var(--rots-charcoal);
    background: var(--rots-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body:not(.has-hero) main { padding-top: var(--header-h); }

img { max-width: 100%; height: auto; }

a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

p { max-width: 68ch; }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: .75rem 1rem;
    background: var(--rots-light);
    color: var(--rots-dark);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

main:focus { outline: none; }

/* ---------- Typographie ---------- */
.display-title {
    font-stretch: 118%;
    font-weight: 780;
    font-size: clamp(2.1rem, 5.4vw, 4.4rem);
    line-height: .98;
    letter-spacing: -.012em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Titre de colonne étroite (texte à gauche d'une grande photo) */
.savoir-faire .display-title { font-size: clamp(2rem, 3.4vw, 3.2rem); }

.lead-text {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: 1.5;
    color: inherit;
}

.small-text { font-size: .9rem; color: var(--rots-muted-on-light); }

.block-title {
    font-size: 1rem;
    font-weight: 700;
    font-stretch: 112%;
    margin: 2.5rem 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--rots-line-light);
}
.block-title--lg { font-size: 1.35rem; border: 0; padding: 0; margin: 0 0 2rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: .15rem;
}
.link-arrow::after { content: "\F138"; font-family: "bootstrap-icons"; transition: transform .3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Boutons ---------- */
.btn-rots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.6rem;
    font-size: .78rem;
    font-weight: 650;
    font-stretch: 112%;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: background-color .3s, color .3s, border-color .3s;
}
.btn-rots--sm { padding: .7rem 1rem; font-size: .7rem; }

.btn-rots--light { background: var(--rots-light); color: var(--rots-dark); }
.btn-rots--light:hover, .btn-rots--light:focus-visible { background: var(--rots-stone); color: var(--rots-dark); }

.btn-rots--ghost-light { border-color: rgba(245, 242, 236, .55); color: var(--rots-light); }
.btn-rots--ghost-light:hover, .btn-rots--ghost-light:focus-visible { background: rgba(245, 242, 236, .1); border-color: var(--rots-light); color: var(--rots-light); }

.btn-rots--dark { background: var(--rots-dark); color: var(--rots-light); }
.btn-rots--dark:hover, .btn-rots--dark:focus-visible { background: var(--rots-brown); color: var(--rots-light); }

.btn-rots--ghost-dark { border-color: var(--rots-dark); color: var(--rots-dark); }
.btn-rots--ghost-dark:hover, .btn-rots--ghost-dark:focus-visible { background: var(--rots-dark); color: var(--rots-light); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1030;
    color: var(--rots-light);
    transition: background-color .4s, backdrop-filter .4s, box-shadow .4s;
}

.site-header .navbar { min-height: var(--header-h); padding: 0; }

.site-header.is-scrolled,
body:not(.has-hero) .site-header,
.site-header.is-menu-open {
    background: rgba(21, 21, 21, .78);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 1px 0 var(--rots-line-dark);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--rots-light);
    text-decoration: none;
    font-stretch: 125%;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.brand:hover { color: var(--rots-light); }

/* Marque : empilement de plaquettes décalées (appareillage) */
.brand__mark {
    width: 22px;
    height: 18px;
    background:
        linear-gradient(var(--rots-earth) 0 0) 0 0 / 14px 4px no-repeat,
        linear-gradient(var(--rots-light) 0 0) 8px 7px / 14px 4px no-repeat,
        linear-gradient(var(--rots-stone) 0 0) 3px 14px / 14px 4px no-repeat;
}

.navbar-toggler {
    border: 0;
    padding: .75rem .25rem;
    display: inline-flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: none !important;
}
.toggler-bar {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--rots-light);
    transition: transform .35s var(--ease-out);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.site-header .nav-link {
    color: var(--rots-muted-on-dark);
    font-size: .95rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--rots-line-dark);
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--rots-light); }

.nav-cta { margin: 1.5rem 0 2rem; width: 100%; }

@media (min-width: 1200px) {
    .site-header .nav-link {
        font-size: .84rem;
        padding: .5rem .7rem !important;
        border: 0;
        position: relative;
    }
    .site-header .nav-link.active::after {
        content: "";
        position: absolute;
        left: .7rem; right: .7rem; bottom: .2rem;
        height: 1px;
        background: var(--rots-earth);
    }
    .nav-cta { margin: 0 0 0 1.25rem; width: auto; padding: .75rem 1.1rem; }
}

@media (min-width: 1400px) {
    .site-header .nav-link { padding: .5rem .9rem !important; font-size: .88rem; }
}

@media (max-width: 1199.98px) {
    .navbar-collapse { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--dark { background: var(--rots-dark); color: var(--rots-light); }
.section--dark p { color: var(--rots-muted-on-dark); }
.section--stone { background: var(--rots-stone); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__text { max-width: 52ch; }

@media (min-width: 992px) {
    .section-head--split,
    .section--dark .section-head {
        display: grid;
        grid-template-columns: 7fr 5fr;
        gap: 3rem;
        align-items: end;
    }
    .section-head .display-title { margin: 0; }
}

/* ==========================================================================
   HERO — la matière sous une lumière rasante qui suit le regard
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--rots-dark);
    color: var(--rots-light);
    padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 7vh, 5rem);
}

.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: saturate(.7) contrast(1.08);
    transform: scale(1.1);
    animation: hero-settle 2.8s var(--ease-out) forwards;
}

/* Lumière : un halo doux posé en "overlay" révèle le relief sous le curseur */
.hero__light {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 244, 225, .55) 0%, rgba(255, 244, 225, .12) 22%, transparent 42%);
    mix-blend-mode: overlay;
    opacity: 0;
    animation: fade-in 1.6s .6s ease forwards;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(21, 21, 21, .95) 0%, rgba(21, 21, 21, .6) 38%, rgba(21, 21, 21, .25) 70%, rgba(21, 21, 21, .5) 100%);
}

.hero__inner { display: grid; gap: 2rem; }

.hero__title {
    margin: 0;
    font-size: clamp(2.3rem, 9.4vw, 8.5rem);
    font-weight: 800;
    font-stretch: 112%;
    line-height: .9;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
/* padding haut : laisse la place aux accents des capitales (È, À) malgré l'overflow */
.hero__line { display: block; overflow: hidden; padding: .14em 0 .04em; margin-top: -.14em; }
.hero__line > span {
    display: block;
    transform: translateY(105%);
    animation: line-up 1.1s var(--ease-out) forwards;
}
.hero__line:nth-child(1) > span { animation-delay: .35s; }
.hero__line:nth-child(2) > span { animation-delay: .5s; color: var(--rots-stone); }

.hero__aside {
    max-width: 34rem;
    opacity: 0;
    animation: fade-up 1s 1s var(--ease-out) forwards;
}
.hero__subtitle { font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 500; line-height: 1.45; margin-bottom: .75rem; }
.hero__text { color: var(--rots-muted-on-dark); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 575.98px) {
    .hero__actions .btn-rots { width: 100%; }
}

@media (min-width: 768px) {
    .hero__title { font-stretch: 125%; }
}

@media (min-width: 992px) {
    .hero__inner { grid-template-columns: repeat(12, 1fr); row-gap: 3rem; }
    .hero__title { grid-column: 1 / -1; }
    .hero__aside { grid-column: 8 / -1; }
}

/* Sans souris : la lumière dérive lentement toute seule */
@media (hover: none) {
    .hero__light { animation: fade-in 1.6s .6s ease forwards, light-drift 14s 2s ease-in-out infinite alternate; }
}

@keyframes hero-settle { to { transform: scale(1); } }
@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes light-drift {
    0% { --lx: 25%; --ly: 30%; }
    50% { --lx: 70%; --ly: 45%; }
    100% { --lx: 55%; --ly: 20%; }
}

/* ==========================================================================
   SAVOIR-FAIRE
   ========================================================================== */
.savoir-faire__figure { margin: 0; position: relative; }
.savoir-faire__figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* Photo 3D (depth-photo.js) : le canvas WebGL se pose exactement sur la photo */
.depth-photo__frame { position: relative; overflow: hidden; }
.depth-photo__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity .8s ease;
}
.is-3d .depth-photo__canvas { opacity: 1; }
.savoir-faire__figure figcaption {
    margin-top: .75rem;
    font-size: .85rem;
    color: var(--rots-muted-on-light);
}

@media (min-width: 992px) {
    .savoir-faire__figure img { aspect-ratio: 3 / 4; }
    .savoir-faire__figure { margin-right: calc(var(--bs-gutter-x) * -.5); }
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--rots-line-light);
}
.stats__item { display: flex; flex-direction: column-reverse; gap: .25rem; }
.stats dt { font-weight: 500; font-size: .9rem; color: var(--rots-muted-on-light); }
.stats dd {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 750;
    font-stretch: 125%;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--rots-dark);
}

/* ==========================================================================
   CARTES COLLECTION
   ========================================================================== */
.collection-card { height: 100%; }

.collection-card__link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    color: var(--rots-light);
    text-decoration: none;
    background: var(--rots-charcoal);
}
.collection-card__link:hover { color: var(--rots-light); }

@media (min-width: 576px) { .collection-card__link { aspect-ratio: 4 / 5; } }

.collection-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .4s var(--ease-out);
}

.collection-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 21, 21, .88) 0%, rgba(21, 21, 21, .25) 55%, rgba(21, 21, 21, .05) 100%);
    transition: background-color .4s ease, opacity .4s ease;
}

.collection-card__content {
    position: absolute;
    inset: auto 0 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.collection-card__count { font-size: .8rem; color: var(--rots-stone); }

.collection-card__name {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    font-stretch: 125%;
    text-transform: uppercase;
    line-height: 1;
}

.collection-card__tagline { font-size: .95rem; color: var(--rots-muted-on-dark); }

.collection-card__reveal { display: grid; gap: 1rem; margin-top: .75rem; }
.collection-card__desc { font-size: .92rem; line-height: 1.5; color: var(--rots-light); }
.collection-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 650;
    font-stretch: 112%;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* Survol (souris uniquement) : zoom, voile sombre, description et bouton apparaissent */
@media (hover: hover) and (pointer: fine) {
    .collection-card__reveal {
        grid-template-rows: 0fr;
        opacity: 0;
        margin-top: 0;
        transition: grid-template-rows .4s var(--ease-out), opacity .4s ease, margin-top .4s var(--ease-out);
    }
    .collection-card__reveal > * { min-height: 0; overflow: hidden; }
    .collection-card__reveal { grid-template-rows: 0fr 0fr; }

    .collection-card__link:hover .collection-card__img,
    .collection-card__link:focus-visible .collection-card__img { transform: scale(1.06); }

    .collection-card__link:hover .collection-card__shade,
    .collection-card__link:focus-visible .collection-card__shade { background-color: rgba(21, 21, 21, .45); }

    .collection-card__link:hover .collection-card__reveal,
    .collection-card__link:focus-visible .collection-card__reveal {
        grid-template-rows: 1fr 1fr;
        opacity: 1;
        margin-top: .75rem;
    }
}

/* ==========================================================================
   CARTES PRODUIT
   ========================================================================== */
.product-card { position: relative; height: 100%; display: flex; flex-direction: column; }

.product-card__frame {
    position: relative;
    z-index: 1;                       /* au-dessus du lien étendu de la carte */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--rots-stone);
    transition: box-shadow .5s var(--ease-out);
}

.product-card__media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: var(--rots-stone);
}
.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease-out);
}

/* Reflet qui suit la souris */
.product-card__light {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(255, 248, 235, .5), transparent 50%);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity .5s ease;
}

/* Description technique (tap sur mobile, focus clavier) */
.product-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1.1rem;
    color: var(--rots-light);
    visibility: hidden;
    pointer-events: none;             /* un clic sur le voile ouvre toujours la fiche */
    transition: visibility 0s .45s;
}
.product-card__overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 21, 21, .94) 0%, rgba(21, 21, 21, .66) 55%, rgba(21, 21, 21, .18) 100%);
    opacity: 0;
    transition: opacity .45s ease;
}
.product-card__overlay > * {
    position: relative;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s ease, transform .55s var(--ease-out);
}
.product-card__overlay-title {
    margin: 0;
    font-weight: 780;
    font-stretch: 118%;
    text-transform: uppercase;
    font-size: 1.05rem;
    line-height: 1.1;
}
.product-card__actions { display: grid; gap: .45rem; pointer-events: auto; }
.product-card__actions .btn-rots { width: 100%; padding: .6rem .75rem; }

/* Ouvert : au toucher (bouton +), au clavier (focus) ou au survol (voir plus bas) */
.product-card.is-open .product-card__overlay,
.product-card:focus-within .product-card__overlay { visibility: visible; transition: visibility 0s; }
.product-card.is-open .product-card__overlay { pointer-events: auto; }
.product-card.is-open .product-card__overlay::before,
.product-card:focus-within .product-card__overlay::before { opacity: 1; }
.product-card.is-open .product-card__overlay > *,
.product-card:focus-within .product-card__overlay > * { opacity: 1; transform: none; }

.product-card__toggle {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(245, 242, 236, .92);
    color: var(--rots-dark);
    font-size: 1.1rem;
    transition: transform .35s var(--ease-out), background-color .3s;
}
.product-card.is-open .product-card__toggle { transform: rotate(45deg); background: var(--rots-light); }

@media (hover: hover) and (pointer: fine) {
    .product-card__toggle { display: none; }

    .product-card:hover .product-card__frame { box-shadow: 0 26px 46px -26px rgba(21, 21, 21, .55); }

    /* Produits sans vue 3D : zoom de la photo + description */
    .product-card:not(.has-stone):hover .product-card__media img { transform: scale(1.08); }
    .product-card:not(.has-stone):hover .product-card__light { opacity: 1; }
    .product-card:not(.has-stone):hover .product-card__overlay { visibility: visible; transition: visibility 0s; }
    .product-card:not(.has-stone):hover .product-card__overlay::before { opacity: 1; }
    .product-card:not(.has-stone):hover .product-card__overlay > * { opacity: 1; transform: none; }

    /* Produits avec vue 3D : la photo s'efface, la pierre apparaît et suit la souris ;
       seuls les boutons restent, en bas, pour ne pas masquer la pierre */
    .product-card.is-stone-active .product-card__media { opacity: 0; }
    .product-card.is-stone-active .product-card__stone { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
    .product-card.is-stone-active .product-card__overlay { visibility: visible; transition: visibility 0s; }
    .product-card.is-stone-active .product-card__overlay::before {
        opacity: 1;
        background: linear-gradient(to top, rgba(21, 21, 21, .55), transparent 32%);
    }
    .product-card.is-stone-active .product-card__overlay-title,
    .product-card.is-stone-active .spec-list--overlay { display: none; }
    .product-card.is-stone-active .product-card__actions {
        opacity: 1;
        transform: none;
        grid-template-columns: 1fr 1fr;
        transition-delay: .1s;
    }
}

/* ---------- Scène 3D de la carte ---------- */
.product-card__media { transition: opacity .35s ease; }
.product-card__stone {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    background: radial-gradient(ellipse at 50% 40%, #F5F2EC 0%, #E4DDD1 60%, #D3CABB 100%);
    transition: opacity .3s ease, visibility 0s .3s;
    pointer-events: none;
}
.product-card__stone-hint {
    position: absolute;
    top: .8rem;
    left: .9rem;
    z-index: 1;
    font-size: .75rem;
    font-weight: 600;
    color: var(--rots-muted-on-light);
}

.product-card__body { padding: 1rem 0 0; }
.product-card__ref {
    margin: 0 0 .2rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--rots-brown);
}
.product-card__name {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 750;
    font-stretch: 118%;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.product-card__name a { text-decoration: none; color: inherit; }
.product-card__name a:hover { color: var(--rots-brown); }
.product-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* carte entière cliquable */

.product-card__price {
    margin: .45rem 0 0;
    font-size: .92rem;
    font-weight: 650;
    color: var(--rots-dark);
}

.product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .9rem;
    margin: 0;
    font-size: .88rem;
    color: var(--rots-muted-on-light);
}

/* Listes de caractéristiques */
.spec-list { margin: 0; display: grid; }
.spec-list > div {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) 1fr;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--rots-line-light);
}
.spec-list dt { font-weight: 500; color: var(--rots-muted-on-light); font-size: .92rem; }
.spec-list dd { margin: 0; font-size: .95rem; }

.spec-list--overlay > div {
    grid-template-columns: 5.5rem 1fr;
    gap: .5rem;
    padding: .28rem 0;
    border-color: var(--rots-line-dark);
}
.spec-list--overlay dt { color: var(--rots-muted-on-dark); font-size: .8rem; }
.spec-list--overlay dd { font-size: .85rem; }

/* ==========================================================================
   PROFESSIONNELS
   ========================================================================== */
.pro-actions { border-top: 1px solid var(--rots-dark); }
.pro-actions__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--rots-dark);
    color: var(--rots-dark);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 650;
    font-stretch: 112%;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: padding .35s var(--ease-out), color .3s;
}
.pro-actions__item i { font-size: 1.3rem; }
.pro-actions__item:hover { padding-left: .75rem; color: var(--rots-brown); }

/* ==========================================================================
   CATALOGUE
   ========================================================================== */
.page-head {
    background: var(--rots-dark);
    color: var(--rots-light);
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head .display-title { margin: 0; }
.page-head__text { color: var(--rots-muted-on-dark); margin: 0; max-width: 46ch; }
.page-head__row { display: grid; gap: 1.25rem; }

@media (min-width: 992px) {
    .page-head__row { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    font-size: .85rem;
    color: var(--rots-muted-on-dark);
}
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--rots-light); }
.crumbs--dark { color: var(--rots-muted-on-light); }
.crumbs--dark a:hover { color: var(--rots-brown); }

/* Barre de filtres collante */
.filters {
    position: sticky;
    top: var(--header-h);
    z-index: 1010;
    background: rgba(245, 242, 236, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rots-line-light);
}

.filters__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 0;
}

.chips {
    display: flex;
    gap: .4rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
}
.chips::-webkit-scrollbar { display: none; }

@media (min-width: 1200px) {
    .chips { -webkit-mask-image: none; mask-image: none; }
}

.chips__sep { flex: 0 0 1px; align-self: stretch; margin: .3rem .4rem; background: var(--rots-line-light); }

.chip { position: relative; flex: 0 0 auto; margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
    display: block;
    padding: .55rem 1rem;
    font-size: .88rem;
    font-weight: 550;
    border: 1px solid var(--rots-line-light);
    border-radius: 2px;
    white-space: nowrap;
    transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: var(--rots-dark); }
.chip input:checked + span,
.chip.is-active span { background: var(--rots-dark); color: var(--rots-light); border-color: var(--rots-dark); }
a.chip { color: inherit; text-decoration: none; }
a.chip:focus-visible { outline: none; }
a.chip:focus-visible span { outline: 2px solid var(--rots-earth); outline-offset: 2px; }
.chip input:focus-visible + span { outline: 2px solid var(--rots-earth); outline-offset: 2px; }

.filters__more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    font-size: .88rem;
    font-weight: 600;
    background: none;
    border: 1px solid var(--rots-dark);
    border-radius: 2px;
    color: var(--rots-dark);
}
.filters__more[aria-expanded="true"] { background: var(--rots-dark); color: var(--rots-light); }

.filters__advanced { padding: .25rem 0 1rem; }
.filters .form-label { font-size: .8rem; font-weight: 600; margin-bottom: .3rem; color: var(--rots-muted-on-light); }
.filters .form-control,
.filters .form-select {
    border-radius: 2px;
    border-color: var(--rots-line-light);
    background-color: #fff;
    font-size: .95rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.filters .form-control:focus,
.filters .form-select:focus { border-color: var(--rots-earth); box-shadow: 0 0 0 3px rgba(166, 138, 100, .25); }

.filters__status {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 0 .75rem;
    font-size: .88rem;
}
.filters__count { margin: 0; font-weight: 600; }
.filters__reset { color: var(--rots-brown); }

@media (max-width: 767.98px) {
    /* Sur mobile, la barre collante reste compacte : le panneau avancé défile avec la page */
    .filters { position: relative; top: auto; }
}

.catalogue { padding-bottom: var(--section-y); }
.catalogue__grid { padding-top: 2rem; transition: opacity .25s ease; }
.catalogue__grid[aria-busy="true"] { opacity: .45; }

.demo-note {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin: 2rem 0 0;
    padding: .85rem 1rem;
    max-width: none;
    font-size: .88rem;
    background: rgba(216, 209, 197, .55);
    border-left: 2px solid var(--rots-earth);
}

.catalogue-empty {
    padding: 4rem 0;
    max-width: 36rem;
}
.catalogue-empty__title { font-size: 1.4rem; font-weight: 700; font-stretch: 112%; margin-bottom: .5rem; }
.catalogue-empty .btn-rots { margin-top: 1rem; }

/* ==========================================================================
   ERREUR
   ========================================================================== */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-page__code {
    font-size: clamp(5rem, 16vw, 11rem);
    font-weight: 800;
    font-stretch: 125%;
    line-height: .9;
    color: var(--rots-stone);
    margin: 0 0 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--rots-dark);
    color: var(--rots-muted-on-dark);
    padding: clamp(4rem, 8vw, 6rem) 0 2rem;
    font-size: .95rem;
}
.site-footer a { color: var(--rots-muted-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--rots-light); }
.site-footer__brand {
    color: var(--rots-light);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    font-stretch: 125%;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
}
.site-footer__lead { max-width: 36ch; }
.site-footer__title { font-size: .85rem; font-weight: 600; color: var(--rots-light); margin-bottom: 1rem; }
.site-footer__links li + li { margin-top: .5rem; }
.site-footer__contact { display: grid; gap: .5rem; font-style: normal; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rots-line-dark);
    font-size: .82rem;
}

/* ==========================================================================
   WHATSAPP
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1040;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rots-charcoal);
    color: var(--rots-light);
    font-size: 1.55rem;
    box-shadow: 0 0 0 1px rgba(245, 242, 236, .15), 0 10px 28px rgba(0, 0, 0, .3);
    transition: transform .3s var(--ease-out), background-color .3s;
}
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { background: var(--rots-brown); color: var(--rots-light); transform: translateY(-2px); }

/* ==========================================================================
   ANIMATIONS AU SCROLL (déclenchées par animations.js)
   Masquées uniquement si JS est actif : le contenu reste visible sans JS.
   ========================================================================== */
.js .reveal,
.js .reveal-left,
.js .reveal-right,
.js .reveal-scale {
    opacity: 0;
    transition: opacity .9s ease, transform 1.1s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
.js .reveal { transform: translateY(28px); }
.js .reveal-left { transform: translateX(-36px); }
.js .reveal-right { transform: translateX(36px); }
.js .reveal-scale { transform: scale(.96); }

.js .is-visible { opacity: 1; transform: none; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .hero__media img { transform: none; }
    .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale { opacity: 1; transform: none; }
}

/* ==========================================================================
   FICHE PRODUIT
   ========================================================================== */
.product-hero { padding: 2rem 0 clamp(3.5rem, 7vw, 6rem); }

/* Galerie : miniatures dessous (mobile), à gauche (desktop) */
.gallery { display: grid; gap: .75rem; }
.gallery__thumbs { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumb {
    flex: 0 0 76px;
    padding: 0;
    border: 1px solid transparent;
    background: var(--rots-stone);
    opacity: .6;
    transition: opacity .25s, border-color .25s;
}
.gallery__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--rots-dark); }

@media (min-width: 992px) {
    .gallery { grid-template-columns: 84px minmax(0, 1fr); align-items: start; }
    .gallery__thumbs { order: -1; flex-direction: column; overflow: visible; }
    .gallery__thumb { flex-basis: auto; }
    .gallery:not(:has(.gallery__thumbs)) { grid-template-columns: 1fr; }
}

/* Zoom texture */
.zoom {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--rots-stone);
    touch-action: pan-y;
}
.zoom__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom__lens {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-color: var(--rots-stone);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.zoom.is-zooming .zoom__lens { opacity: 1; }
.zoom.is-locked { touch-action: none; cursor: grab; }

@media (hover: hover) and (pointer: fine) {
    .zoom { cursor: zoom-in; }
}

.zoom__toggle {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .55rem 1rem;
    border: 0;
    border-radius: 2px;
    background: rgba(21, 21, 21, .78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--rots-light);
    font-size: .85rem;
    font-weight: 600;
}
.zoom__toggle:hover { background: var(--rots-dark); }

.zoom__hint {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    margin: 0;
    padding: .4rem .7rem;
    font-size: .8rem;
    background: rgba(245, 242, 236, .88);
    color: var(--rots-dark);
    pointer-events: none;
    transition: opacity .3s ease;
}
.zoom.is-zooming .zoom__hint { opacity: 0; }
@media (hover: none) { .zoom__hint { display: none; } }

/* Colonne d'informations */
@media (min-width: 992px) {
    .product-info { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.product-info__collection { margin: 0 0 .75rem; font-weight: 600; }
.product-info__collection a { color: var(--rots-brown); }
.product-info__name {
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    font-weight: 800;
    font-stretch: 118%;
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -.01em;
    margin: 0 0 1rem;
    overflow-wrap: break-word;
}
.product-info__ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    font-weight: 600;
    color: var(--rots-muted-on-light);
    margin-bottom: 1.5rem;
}
.product-info__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.25rem; }
.product-info__visualize { font-size: .95rem; }

@media (max-width: 575.98px) {
    .product-info__actions .btn-rots { width: 100%; }
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--rots-charcoal);
}
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.availability.is-in-stock::before { background: #5E7D4F; }
.availability.is-on-order::before { background: var(--rots-earth); }
.availability.is-unavailable { color: var(--rots-muted-on-light); }
.availability.is-unavailable::before { background: #9a948c; }

.key-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--rots-line-light);
}
.key-facts dt { font-size: .8rem; font-weight: 500; color: var(--rots-muted-on-light); }
.key-facts dd { margin: .2rem 0 0; font-weight: 650; font-size: .98rem; }

/* Caractéristiques & origine */
.product-specs { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.block-heading {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 780;
    font-stretch: 118%;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}
.section--stone .spec-list > div { border-color: rgba(21, 21, 21, .16); }
.spec-list--dense > div { padding: .6rem 0; }

.origin-mini__map {
    aspect-ratio: 16 / 9;
    margin-bottom: 1.25rem;
    background: #cfc7ba;
    z-index: 0;
}
.origin-mini__text { font-size: .95rem; margin: 1rem 0 1.25rem; }

/* Timeline « De la matière à votre mur » — verticale, puis horizontale dès 1200px */
.journey__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: grid;
    gap: 2rem;
}
.journey__steps::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: .5rem;
    bottom: .5rem;
    width: 1px;
    background: var(--rots-line-dark);
}
.journey__step {
    position: relative;
    display: grid;
    align-content: start;
    grid-template-columns: 2.4rem 1fr;
    column-gap: 1.25rem;
}
.journey__num {
    grid-row: span 2;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    background: var(--rots-dark);
    border: 1px solid var(--rots-earth);
    color: var(--rots-stone);
    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}
.journey__title {
    font-size: 1.05rem;
    font-weight: 750;
    font-stretch: 112%;
    text-transform: uppercase;
    margin: .45rem 0 .35rem;
    color: var(--rots-light);
}
.section--dark .journey__text { margin: 0; font-size: .95rem; line-height: 1.55; }
.journey__step:last-child .journey__num { background: var(--rots-earth); color: var(--rots-dark); }

@media (min-width: 1200px) {
    .journey__steps { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.5rem; }
    .journey__steps::before { left: 0; right: 0; top: 1.2rem; bottom: auto; width: auto; height: 1px; }
    .journey__step { grid-template-columns: 1fr; }
    .journey__num { grid-row: auto; margin-bottom: 1.25rem; }
    .journey__title { margin-top: 0; font-size: .95rem; }
    .section--dark .journey__text { font-size: .88rem; }
}

/* Réalisations liées */
.project-teaser { display: block; color: inherit; text-decoration: none; }
.project-teaser img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: .9rem; transition: filter .4s; }
.project-teaser:hover img { filter: brightness(.9); }
.project-teaser__name { display: block; font-weight: 700; font-stretch: 112%; text-transform: uppercase; }
.project-teaser__meta { display: block; font-size: .88rem; color: var(--rots-muted-on-light); }

/* Bandeau d'appel à l'action */
.product-cta { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.product-cta__inner {
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--rots-dark);
    display: grid;
    gap: 1rem;
}
.product-cta__inner p { margin: 0 0 .5rem; }
.product-cta__title {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 800;
    font-stretch: 118%;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

/* ==========================================================================
   PAGE COLLECTIONS
   ========================================================================== */
.collection-row { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.collection-row + .collection-row { border-top: 1px solid var(--rots-line-light); }

.collection-row__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--rots-stone); }
.collection-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.collection-row__media:hover img { transform: scale(1.04); }

.collection-row__count { margin: 0 0 .5rem; font-weight: 600; color: var(--rots-brown); }
.collection-row__name {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    font-stretch: 125%;
    text-transform: uppercase;
    line-height: .9;
    margin: 0 0 .75rem;
}
.collection-row__tagline { font-size: 1.2rem; font-weight: 500; margin-bottom: 1rem; }

.swatches {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.swatch { display: block; color: inherit; text-decoration: none; }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: .5rem; }
.swatch__name { display: block; font-size: .85rem; font-weight: 700; line-height: 1.25; }
.swatch__ref { display: block; font-size: .75rem; color: var(--rots-muted-on-light); }
.swatch:hover .swatch__name { color: var(--rots-brown); }

/* ==========================================================================
   PAGE ORIGINE — carte + liste
   ========================================================================== */
.origin-explorer { display: grid; background: var(--rots-dark); }
.origin-explorer__map { height: 62svh; min-height: 360px; background: #cfc7ba; z-index: 0; }
.origin-explorer__panel { background: var(--rots-light); }

@media (min-width: 992px) {
    .origin-explorer { grid-template-columns: minmax(0, 1fr) 420px; height: calc(100svh - var(--header-h)); min-height: 560px; }
    .origin-explorer__map { height: 100%; }
    .origin-explorer__panel { overflow-y: auto; border-left: 1px solid var(--rots-line-light); }
}

.origin-list { list-style: none; margin: 0; padding: 0; }
.origin-item {
    width: 100%;
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--rots-line-light);
    border-left: 3px solid transparent;
    color: inherit;
    transition: background-color .25s, border-color .25s;
}
.origin-item:hover { background: rgba(216, 209, 197, .45); }
.origin-item.is-active { background: var(--rots-stone); border-left-color: var(--rots-brown); }
.origin-item__img { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; }
.origin-item__body { display: grid; gap: .15rem; min-width: 0; }
.origin-item__place { font-size: .8rem; font-weight: 600; color: var(--rots-brown); }
.origin-item__name { font-weight: 750; font-stretch: 112%; text-transform: uppercase; line-height: 1.2; }
.origin-item__meta { font-size: .88rem; color: var(--rots-muted-on-light); }

/* ---------- Leaflet aux couleurs Rots Stone ---------- */
.leaflet-container { font-family: var(--font-main); }
.leaflet-tile-pane { filter: grayscale(1) sepia(.18) contrast(.92) brightness(1.03); }
.leaflet-control-attribution { font-size: .68rem; }
.leaflet-bar a { border-radius: 0 !important; color: var(--rots-dark); }

.rots-pin { background: none; border: 0; }
.rots-pin__dot {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(138, 90, 59, .25);
    position: relative;
    transition: transform .3s var(--ease-out);
}
.rots-pin__dot::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--rots-brown);
    border: 2px solid var(--rots-light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.rots-pin.is-active .rots-pin__dot { transform: scale(1.3); background: rgba(21, 21, 21, .22); }
.rots-pin.is-active .rots-pin__dot::after { background: var(--rots-dark); }

.rots-popup .leaflet-popup-content-wrapper { border-radius: 2px; padding: 0; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.rots-popup .leaflet-popup-content { margin: 0; font-size: .88rem; line-height: 1.45; }
.rots-popup .leaflet-popup-content p { margin: 0 0 .5rem; }
.rots-popup .leaflet-popup-close-button { color: var(--rots-light) !important; font-size: 22px !important; width: 32px !important; height: 32px !important; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.origin-popup__img { display: block; width: 100%; height: 140px; object-fit: cover; }
.origin-popup__body { padding: 1rem 1.1rem 1.1rem; }
.origin-popup__place { margin: 0; font-size: .75rem; font-weight: 600; color: var(--rots-brown); }
.origin-popup__name { margin: .15rem 0 .6rem; font-size: 1rem; font-weight: 750; font-stretch: 112%; text-transform: uppercase; }
.origin-popup__facts { margin: 0 0 .6rem; }
.origin-popup__facts > div { display: grid; grid-template-columns: 5rem 1fr; gap: .5rem; padding: .2rem 0; border-bottom: 1px solid var(--rots-line-light); }
.origin-popup__facts dt { font-weight: 500; color: var(--rots-muted-on-light); }
.origin-popup__facts dd { margin: 0; }
.origin-popup__text { margin: .6rem 0; }
.origin-popup__label { margin: .75rem 0 .25rem; font-weight: 600; }
.origin-popup__products { margin: 0; padding-left: 1rem; }
.origin-popup__products a { color: var(--rots-brown); }

/* ==========================================================================
   AVANT / APRÈS — BeforeAfterSlider
   ========================================================================== */
.ba-figure { margin: 0; }

.ba {
    --pos: 50%;
    position: relative;
    aspect-ratio: var(--ba-ratio, 16 / 10);
    overflow: hidden;
    background: var(--rots-stone);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;             /* swipe horizontal pour nous, défilement vertical pour la page */
    cursor: ew-resize;
    -webkit-tap-highlight-color: transparent;
}

.ba__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.ba__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
    will-change: clip-path;
}

.ba__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: rgba(245, 242, 236, .92);
    box-shadow: 0 0 14px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.ba__handle {
    position: absolute;
    top: 50%;
    left: clamp(30px, var(--pos), calc(100% - 30px)); /* la poignée reste visible aux extrémités */
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--rots-light);
    color: var(--rots-dark);
    font-size: 1.35rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%);
    transition: transform .25s var(--ease-out), background-color .25s;
    cursor: ew-resize;
}
.ba__handle:focus-visible { outline: 2px solid var(--rots-earth); outline-offset: 4px; }
.ba.is-dragging .ba__handle,
.ba__handle:hover { transform: translate(-50%, -50%) scale(1.08); }

.ba__label {
    position: absolute;
    bottom: clamp(.9rem, 2.5vw, 1.5rem);
    z-index: 1;
    font-size: .78rem;
    font-weight: 600;
    font-stretch: 112%;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rots-light);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
    pointer-events: none;
    transition: opacity .25s ease;
}
.ba__label--before { left: clamp(.9rem, 2.5vw, 1.5rem); }
.ba__label--after { right: clamp(.9rem, 2.5vw, 1.5rem); }
.ba.hide-before-label .ba__label--before,
.ba.hide-after-label .ba__label--after { opacity: 0; }

.ba-figure__caption { margin-top: .75rem; font-size: .88rem; color: var(--rots-muted-on-light); }

@media (max-width: 575.98px) {
    /* Sur téléphone : cadrage plus haut, plus de surface à balayer */
    .ba { aspect-ratio: 4 / 5; }
    .ba__handle { width: 48px; height: 48px; font-size: 1.15rem; }
}

/* ---------- Fiche produit : coloris de la série ---------- */
.colorways { margin: 1.75rem 0 0; }
.colorways__label { margin: 0 0 .6rem; font-size: .92rem; }
.colorways__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.colorway {
    display: block;
    width: 64px;
    border: 1px solid var(--rots-line-light);
    padding: 2px;
    background: #fff;
    transition: border-color .2s;
}
.colorway img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.colorway:hover { border-color: var(--rots-dark); }
.colorway.is-current { border: 2px solid var(--rots-dark); padding: 1px; }

/* ---------- Fiche produit : calculateur de cartons ---------- */
.calc {
    margin: 1.75rem 0 0;
    padding: 1.1rem 1.2rem;
    background: rgba(216, 209, 197, .45);
    border-left: 2px solid var(--rots-earth);
}
.calc__label { display: block; font-weight: 650; margin-bottom: .6rem; }
.calc__row { display: flex; align-items: center; gap: .6rem; max-width: 14rem; }
.calc__input { border-radius: 2px; border-color: var(--rots-line-light); }
.calc__input:focus { border-color: var(--rots-earth); box-shadow: 0 0 0 3px rgba(166, 138, 100, .25); }
.calc__unit { font-weight: 600; }
.calc__result { margin: .7rem 0 0; font-size: .92rem; }

/* ==========================================================================
   LOGO
   ========================================================================== */
.brand__logo { display: block; height: 40px; width: auto; }
@media (min-width: 1200px) { .brand__logo { height: 46px; } }

.site-footer__logo { display: block; width: 150px; height: auto; margin-bottom: 1.5rem; }

/* ==========================================================================
   RÉALISATIONS
   ========================================================================== */
.project-filters {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 1.25rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--rots-line-light);
}
.project-filters::-webkit-scrollbar { display: none; }
.project-filters .chip span { display: inline-flex; gap: .4rem; align-items: baseline; }
.project-filters .chip small { font-size: .75rem; opacity: .7; }

/* Grille « masonry » en colonnes CSS : chaque photo garde ses proportions */
.masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 576px) { .masonry { columns: 2; } }
@media (min-width: 1200px) { .masonry { columns: 3; column-gap: 1.5rem; } }
.masonry__item { break-inside: avoid; margin-bottom: 1.25rem; }
@media (min-width: 1200px) { .masonry__item { margin-bottom: 1.5rem; } }
.masonry__item[hidden] { display: none; }

.project-card { position: relative; display: block; color: var(--rots-light); text-decoration: none; overflow: hidden; background: var(--rots-charcoal); }
.project-card:hover { color: var(--rots-light); }
.project-card img { display: block; width: 100%; height: auto; transition: transform 2.2s var(--ease-out); }
.project-card__info {
    position: absolute;
    inset: auto 0 0;
    padding: 2.5rem 1.2rem 1.1rem;
    background: linear-gradient(to top, rgba(21, 21, 21, .88), transparent);
    display: grid;
    gap: .2rem;
}
.project-card__cat { font-size: .78rem; font-weight: 600; color: var(--rots-stone); }
.project-card__name { font-size: 1.05rem; font-weight: 750; font-stretch: 112%; text-transform: uppercase; line-height: 1.15; }
.project-card__more { display: inline-flex; gap: .4rem; font-size: .8rem; font-weight: 600; margin-top: .3rem; }

@media (hover: hover) and (pointer: fine) {
    .project-card__info { transform: translateY(35%); opacity: .0; transition: transform .6s var(--ease-out), opacity .5s ease; }
    .project-card:hover img, .project-card:focus-visible img { transform: scale(1.06); }
    .project-card:hover .project-card__info, .project-card:focus-visible .project-card__info { transform: none; opacity: 1; }
}

/* Détail d'une réalisation */
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0; }
.project-meta dt { font-size: .8rem; font-weight: 500; color: var(--rots-muted-on-dark); }
.project-meta dd { margin: .15rem 0 0; font-weight: 600; color: var(--rots-light); }

.project-gallery { display: grid; gap: 1rem; }
@media (min-width: 768px) { .project-gallery--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-gallery--multi > :first-child { grid-column: 1 / -1; } }
.project-gallery__item { display: block; padding: 0; border: 0; background: var(--rots-stone); cursor: zoom-in; overflow: hidden; }
.project-gallery__item img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.project-gallery__item:hover img { transform: scale(1.03); }

.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 15, 15, .96);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__img { position: absolute; inset: 3.5rem 1rem 1rem; width: calc(100% - 2rem); height: calc(100% - 4.5rem); object-fit: contain; }
.lightbox__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--rots-light);
    color: var(--rots-dark);
    font-size: 1.2rem;
}

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.about-intro__logo { width: min(260px, 60%); height: auto; }
.about-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 0; }
@media (min-width: 992px) { .about-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.about-figures dt { font-weight: 500; font-size: .9rem; color: var(--rots-muted-on-dark); order: 2; }
.about-figures div { display: flex; flex-direction: column; gap: .3rem; border-top: 1px solid var(--rots-line-dark); padding-top: 1rem; }
.about-figures dd { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 780; font-stretch: 125%; line-height: 1; color: var(--rots-light); }

.series-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.series-table th, .series-table td { padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--rots-line-light); text-align: left; vertical-align: top; }
.series-table th { font-size: .8rem; font-weight: 600; color: var(--rots-muted-on-light); }
.series-table td:first-child a { font-weight: 750; font-stretch: 112%; text-transform: uppercase; color: var(--rots-dark); text-decoration: none; }
.series-table td:first-child a:hover { color: var(--rots-brown); }
.table-scroll { overflow-x: auto; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 992px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 1px solid var(--rots-dark); padding-top: 1.1rem; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--rots-brown); margin-bottom: .5rem; }
.steps h3 { font-size: 1.1rem; font-weight: 750; font-stretch: 112%; text-transform: uppercase; }


/* ==========================================================================
   STONE3D — la plaquette en volume
   ========================================================================== */
[data-stone3d] { --stone-perspective: 1400px; }
.stone3d__scene {
    position: absolute;
    inset: 0;
    perspective: var(--stone-perspective);
    perspective-origin: 50% 40%;
}
.stone3d__body {
    --sw: 200px;
    --sh: 100px;
    --sd: 14px;
    position: absolute;
    left: 50%;
    top: 46%;
    width: var(--sw);
    height: var(--sh);
    margin: calc(var(--sh) / -2) 0 0 calc(var(--sw) / -2);
    transform-style: preserve-3d;
    will-change: transform;
}
.stone3d__body.is-smooth { transition: transform .7s var(--ease-out); }

.stone3d__face {
    --shade: 1;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #8d857a;
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
    filter: brightness(var(--shade));
    transition: filter .15s linear;
}
.stone3d__face--front,
.stone3d__face--back { width: var(--sw); height: var(--sh); }
.stone3d__face--front { transform: translateZ(calc(var(--sd) / 2)); }
.stone3d__face--back {
    transform: rotateY(180deg) translateZ(calc(var(--sd) / 2));
    filter: brightness(calc(var(--shade) * .9)) grayscale(.55) blur(1.5px);   /* dos brut, sans relief */
}
.stone3d__face--right,
.stone3d__face--left {
    width: var(--sd);
    height: var(--sh);
    left: calc((var(--sw) - var(--sd)) / 2);
    background-size: auto 100%;
}
.stone3d__face--right { transform: rotateY(90deg) translateZ(calc(var(--sw) / 2)); background-position: right center; }
.stone3d__face--left { transform: rotateY(-90deg) translateZ(calc(var(--sw) / 2)); background-position: left center; }
.stone3d__face--top,
.stone3d__face--bottom {
    width: var(--sw);
    height: var(--sd);
    top: calc((var(--sh) - var(--sd)) / 2);
    background-size: 100% auto;
}
.stone3d__face--top { transform: rotateX(90deg) translateZ(calc(var(--sh) / 2)); background-position: center top; }
.stone3d__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--sh) / 2)); background-position: center bottom; }

/* Reflet rasant sur le relief */
.stone3d__gloss {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at var(--gx, 50%) var(--gy, 40%), rgba(255, 250, 240, .38), transparent 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.stone3d__shadow {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 62%;
    height: 9%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(21, 21, 21, .35), transparent 70%);
    filter: blur(4px);
    transform: translate(-50%, 0);
}

/* ---------- Visionneuse 3D de la fiche produit ---------- */
.stone-viewer {
    position: relative;
    aspect-ratio: 1;
    background: radial-gradient(ellipse at 50% 38%, #F8F5EF 0%, #E6DFD3 58%, #CFC5B5 100%);
    cursor: grab;
    touch-action: none;
    overflow: hidden;
}
.stone-viewer.is-grabbing { cursor: grabbing; }
.stone-viewer[hidden] { display: none; }
.stone-viewer:focus-visible { outline: 2px solid var(--rots-earth); outline-offset: -4px; }
.stone-viewer__hint {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 2;
    transform: translateX(-50%);
    margin: 0;
    padding: .45rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(21, 21, 21, .78);
    color: var(--rots-light);
    pointer-events: none;
}
.stone-viewer__dims {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--rots-charcoal);
    pointer-events: none;
}

.gallery__thumb--3d {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    font-size: .8rem;
    font-weight: 750;
    font-stretch: 112%;
    color: var(--rots-dark);
    gap: .1rem;
}
.gallery__thumb--3d i { font-size: 1.4rem; }

.link-button { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 .15rem; color: inherit; font: inherit; font-weight: 600; }

@media (min-width: 992px) {
    .gallery .zoom,
    .gallery .stone-viewer { grid-column: 2; grid-row: 1; }
    .gallery .gallery__thumbs { grid-column: 1; grid-row: 1; }
}
