/**
 * Feuille de Style pour Ozaleec - VERSION FINALE COMPLETE
 * Palette : #FF0B00 (Orange pétant), #FFAF00 (Orange pas mûre), #420200 (Marron foncé), #D81F2D (Rouge foncé), #FFFFFF (Blanc)
 */

/* --- 1. FONDATIONS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:ital,wght@0,100..900;1,100..900&family=Sora:wght@100..800&display=swap');

:root {
    /* Palette Ozaleec */
    --orange-petant: #FF0B00;
    --orange-pas-mure: #FFAF00;
    --marron-fonce: #420200;
    --rouge-fonce: #D81F2D;
    --blanc-pur: #FFFFFF;

    /* Dégradés de la charte */
    --gradient-clair: linear-gradient(135deg, #FF0B00 0%, #FFAF00 100%);
    --gradient-clair-inverse: linear-gradient(135deg, #FFAF00 0%, #FF0B00 100%);
    --gradient-fonce: linear-gradient(135deg, #420200 0%, #D81F2D 100%);
    --gradient-fonce-inverse: linear-gradient(135deg, #D81F2D 0%, #420200 100%);

    /* Boutons : texte blanc, donc dégradé foncé (contraste lisible).
       Pour des boutons orange vif, remplacer par var(--gradient-clair). */
    --gradient-bouton: var(--gradient-clair);
    --gradient-bouton-hover: var(--gradient-clair-inverse);

    /* Neutres dérivés de la palette */
    --noir-profond: var(--marron-fonce);
    --gris-texte: rgba(66, 2, 0, 0.78);
    --fond-doux: #FFFAF0;
    --fond-chaud: #FFF5E0;
    --bordures: rgba(66, 2, 0, 0.14);

    /* Anciens noms utilisés par payment-status.html */
    --rouge-primaire: var(--rouge-fonce);
    --gradient-principal: var(--gradient-bouton);
    --gris-moderne: var(--marron-fonce);
    --gris-moyen: var(--gris-texte);
    --blanc: var(--blanc-pur);
    --font-principal: var(--font-titres);

    /* Typographie */
    --font-titres: 'Sora', cursive;
    --font-corps: 'Quicksand', sans-serif;

    /* Tokens de Design Organiques & Audacieux */
    --radius-s: 16px;
    --radius-m: 32px;
    --radius-l: 48px;
    --radius-pill: 9999px;
    --radius-blob-1: 60% 40% 70% 30% / 40% 50% 60% 50%;
    --radius-blob-2: 40% 60% 30% 70% / 50% 30% 70% 50%;
    --shadow-subtil: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 20px 40px -15px rgba(216, 31, 45, 0.16), 0 10px 25px -10px rgba(0, 0, 0, 0.06);
    --shadow-superposition: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-y: visible;
}

body {
    font-family: var(--font-corps);
    color: var(--gris-texte);
    background-color: var(--blanc-pur);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body.mobile-menu-open { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--font-titres);
    color: var(--marron-fonce);
    font-weight: 700;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--orange-petant); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--noir-profond); }

/* --- 2. HEADER & NAVIGATION (ANTI-TREMBLEMENT) --- */
header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Le padding reste fixe, il ne changera plus au scroll */
    padding: 1.2rem 0; 
    isolation: isolate;
    /* On n'anime QUE le transform (pour masquer le menu en remontant) */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bordures);
    z-index: -1;
    /* On anime uniquement l'apparition de l'ombre et la couleur */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.header-hidden {
    /* Le masquage utilise translateY, ce qui est parfait pour le GPU */
    transform: translateY(-100%);
}

header.scrolled::before {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom-color: var(--bordures);
}

header .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-titres);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--noir-profond);
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-img {
    /* Hauteur fixe, elle ne changera plus physiquement */
    height: 50px; 
    width: auto;
    display: block;
    /* NOUVEAU : On utilise "scale" pour rétrécir visuellement l'image sans toucher à la hauteur de la page */
    transform-origin: left center;
    transition: transform 0.3s ease;
}

/* Le logo rétrécit visuellement au scroll (transform) sans déclencher de recalcul de page */
header.scrolled .logo-img { 
    transform: scale(0.75); 
}

.logo:hover {
    color: var(--orange-petant);
    /* Optionnel : vous pouvez enlever ça si ça fait conflit avec le scale */
}

.nav-links { list-style: none; display: flex; gap: 2.5rem; margin: 0;
    padding: 0;
    transform-origin: center;
    transition: transform 0.3s ease;
}
/* Les liens rétrécissent au scroll */
header.scrolled .nav-links {
    transform: scale(0.9);
}

.nav-links a {
    color: var(--gris-texte);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gradient-clair);
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange-petant);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
    font-weight: 600;
}

.header-icons { display: flex; align-items: center; gap: 1rem;transform-origin: right center;
    transition: transform 0.3s ease;
}
header.scrolled .header-icons {
    transform: scale(0.9);
}
.icon-button { background: none; border: none; cursor: pointer; color: var(--noir-profond); }
.cart-icon-link { position: relative; }
.cart-count {
    position: absolute; top: -8px; right: -12px;
    background-color: var(--orange-petant); color: var(--blanc-pur);
    font-size: 0.7rem; font-weight: 500;
    border-radius: 50%; padding: 2px 6px; line-height: 1;
}

/* --- EXCEPTION POUR L'ACCUEIL --- */
.homepage header { position: absolute; width: 100%; }
.homepage header::before { opacity: 0; } /* On cache avec opacity plutôt que display:none */
.homepage header.scrolled::before { opacity: 1; } /* Réapparaît au scroll */

.homepage header:not(.scrolled) .logo, 
.homepage header:not(.scrolled) .nav-links a, 
.homepage header:not(.scrolled) .icon-button {
    color: var(--blanc-pur);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.homepage header:not(.scrolled) #mobile-menu-toggle svg line { stroke: var(--blanc-pur); }


/* --- 3. HERO SLIDER --- */

/* Conteneur principal */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 540px;
    max-height: 900px;
    overflow: hidden;
    background: var(--noir-profond);
}

/* Piste : flex horizontale, chaque slide fait 100% de large */
.hero-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* ---- SLIDE GÉNÉRIQUE ---- */
.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* ---- SLIDE PRODUIT (image droite, texte gauche) ---- */
.hero-slide-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--fond-doux);
}

.hero-slide-product .slide-text {
    padding: 4rem 3rem 4rem 5rem;
    z-index: 1;
}

.hero-slide-product .slide-img-wrap {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-slide-product .slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.hero-slide:hover .slide-img-wrap img {
    transform: scale(1.04);
}

/* Accent coloré vertical sur la séparation texte/image */
.hero-slide-product .slide-img-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: var(--orange-petant);
    border-radius: 9999px;
    z-index: 2;
}

/* ---- SLIDE COLLECTION (plein écran, image de fond) ---- */
.hero-slide-collection {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide-collection .slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-collection .slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 0.8s ease;
}

.hero-slide-collection:hover .slide-bg img {
    transform: scale(1.04);
}

.hero-slide-collection .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(66,2,0,0.65) 0%,
        rgba(66,2,0,0.40) 55%,
        rgba(255,11,0,0.20) 100%);
}

.hero-slide-collection .slide-text {
    position: relative;
    z-index: 1;
    color: var(--blanc-pur);
    padding: 2rem 1.5rem;
}

/* ---- TEXTES COMMUNS ---- */
.slide-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.38rem 1.1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.2rem;
}

/* Tag sur fond clair (slide produit) */
.hero-slide-product .slide-tag {
    color: var(--orange-fonce);
    background: rgba(255, 11, 0, 0.09);
    border: 1px solid rgba(255, 11, 0, 0.18);
}

/* Tag sur fond sombre (slide collection) */
.hero-slide-collection .slide-tag {
    color: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}

.slide-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-slide-product .slide-title {
    color: var(--noir-profond);
}

.hero-slide-collection .slide-title {
    color: var(--blanc-pur);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-slide-product .slide-subtitle {
    color: var(--gris-texte);
    max-width: 420px;
}

.hero-slide-collection .slide-subtitle {
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.slide-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange-petant);
    margin-bottom: 2rem;
}

.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-slide-collection .slide-actions {
    justify-content: center;
}

/* Variante claire du bouton secondaire (sur fond sombre) */
.cta-button-secondary.cta-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--blanc-pur);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}
.cta-button-secondary.cta-light:hover {
    background: rgba(255, 255, 255, 0.24);
    color: var(--blanc-pur);
    border-color: var(--blanc-pur);
}

/* ---- FLÈCHES ---- */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--noir-profond);
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.hero-slider-arrow:hover {
    background: var(--orange-petant);
    color: var(--blanc-pur);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(255,11,0,0.32);
}

.hero-slider-prev { left: 1.5rem; }
.hero-slider-next { right: 1.5rem; }

/* ---- DOTS ---- */
.hero-slider-dots {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}

.hero-dot.active {
    background: var(--blanc-pur);
    width: 24px;
    border-radius: 4px;
    transform: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero-slider {
        height: 82vh;
        min-height: 480px;
    }

    .hero-slide-product {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .hero-slide-product .slide-img-wrap {
        order: -1;
        height: 45%;
    }

    .hero-slide-product .slide-img-wrap::before {
        display: none;
    }

    .hero-slide-product .slide-text {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .hero-slide-product .slide-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-slider {
        height: 78vh;
        min-height: 440px;
    }

    .hero-slider-arrow {
        width: 38px;
        height: 38px;
    }

    .hero-slider-prev { left: 0.75rem; }
    .hero-slider-next { right: 0.75rem; }

    .slide-actions {
        flex-direction: column;
        align-items: center;
    }

    .slide-actions .cta-button,
    .slide-actions .cta-button-secondary {
        width: 100%;
        max-width: 260px;
    }
}



.shelf-hero-header {
    text-align: center;
    margin-bottom: 4rem;
}

.shelf-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange-petant);
    margin-bottom: 0.8rem;
    background: rgba(255, 11, 0, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
}

.shelf-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--noir-profond);
    margin-bottom: 0.8rem;
}

.shelf-hero-subtitle {
    font-size: 1.15rem;
    color: var(--gris-texte);
    max-width: 600px;
    margin: 0 auto;
}

.shelf-stage-wrapper {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grille d'écoulement organique verticale pour permettre un vrai scroll aéré dans l'exposition */
.shelf-stage.organic-flow {
    position: relative;
    min-height: 950px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5.5rem 3rem;
    align-items: center;
    padding: 4rem 0 6rem;
}

.shelf-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gris-texte);
    font-size: 1.1rem;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Placements asymétriques des pièces céramiques très aérées */
.shelf-item {
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.shelf-item.pos-left-top { grid-column: 1 / 5; grid-row: 1; transform: translateY(-30px); }
.shelf-item.pos-right-mid { grid-column: 8 / 13; grid-row: 1; transform: translateY(70px); }
.shelf-item.pos-center-low { grid-column: 2 / 7; grid-row: 2; transform: translateY(40px); }
.shelf-item.pos-left-lower { grid-column: 7 / 12; grid-row: 2; transform: translateY(-40px); }
.shelf-item.pos-right-bottom { grid-column: 1 / 6; grid-row: 3; transform: translateY(60px); }
.shelf-item.pos-center-bottom { grid-column: 7 / 12; grid-row: 3; transform: translateY(0px); }

@media (max-width: 768px) {
    .shelf-hero-section {
        overflow-x: hidden;
    }

    .shelf-stage-wrapper {
        padding: 0 1rem;
    }

    .shelf-stage.organic-flow {
        display: flex;
        flex-direction: column;
        gap: 5.5rem;
        min-height: auto;
        padding: 3rem 0;
    }

    .shelf-item {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: 72%;
    }

    /* Décalages asymétriques gauche / droite sur smartphone (Effet déambulation dans l'expo) */
    .shelf-item.pos-left-top {
        align-self: flex-start;
        margin-left: 0.5rem;
    }

    .shelf-item.pos-right-mid {
        align-self: flex-end;
        margin-right: 0.5rem;
    }

    .shelf-item.pos-center-low {
        align-self: flex-start;
        margin-left: 3rem;
    }

    .shelf-item.pos-left-lower {
        align-self: flex-end;
        margin-right: 2.5rem;
    }

    .shelf-item.pos-right-bottom {
        align-self: flex-start;
        margin-left: 1rem;
    }

    .shelf-item.pos-center-bottom {
        align-self: flex-end;
        margin-right: 1.5rem;
    }
}

.shelf-item-img {
    width: clamp(160px, 24vw, 260px);
    height: clamp(160px, 24vw, 260px);
    object-fit: contain;
    filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.16));
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.45s ease;
}

.shelf-item-shadow {
    position: absolute;
    bottom: 25px;
    width: 65%;
    height: 14px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 50%;
    filter: blur(8px);
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: -1;
}

.shelf-item-tag {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--noir-profond);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    margin-top: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.shelf-item:hover .shelf-item-tag,
.shelf-item.active-float .shelf-item-tag {
    background: var(--orange-petant);
    color: var(--blanc-pur);
    transform: translateY(-2px);
}

.shelf-item:hover .shelf-item-img,
.shelf-item.active-float .shelf-item-img {
    transform: scale(1.18) translateY(-10px);
    filter: drop-shadow(0 25px 22px rgba(255, 11, 0, 0.28));
}

/* --- MODAL OVERLAY UNIFIÉ (FOND ASSOMBRI DESKTOP & MOBILE) --- */
.shelf-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mode survol desktop : la popup et la pilule suivent le curseur sans obscurcir la page */
.shelf-modal-overlay.hover-mode {
    pointer-events: none;
}

.shelf-modal-overlay.hover-mode .shelf-modal-backdrop {
    display: none !important;
    opacity: 0 !important;
}

.shelf-modal-overlay.hover-mode .shelf-desktop-modal-container {
    pointer-events: none;
    will-change: left, top;
}

/* PILULE "VOIR LA PIÈCE" QUI SUIT LE CURSEUR */
.shelf-cursor-pill {
    position: fixed;
    z-index: 10005;
    pointer-events: none;
    background: var(--gradient-bouton);
    color: var(--blanc-pur);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-corps);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(216, 31, 45, 0.4);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    animation: fadeIn 0.2s ease;
    will-change: left, top;
}

.shelf-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.68);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.35s ease;
}

.shelf-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--noir-profond);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    z-index: 10;
}

.shelf-modal-close:hover {
    background: var(--orange-petant);
    color: var(--blanc-pur);
    transform: scale(1.08);
}

/* POPUP DESKTOP ANCRÉE PRÈS DU CURSEUR (SIDE-BY-SIDE ÉPURÉE) */
.shelf-desktop-modal-container {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 1.8rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bordures);
    border-radius: 32px;
    padding: 2rem;
    width: 580px;
    max-width: 90vw;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32);
    animation: zoomModalIn 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.shelf-desktop-zoom-side {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fond-doux) 0%, #FFFFFF 100%);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--bordures);
    min-height: 250px;
}

.shelf-desktop-zoom-side img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    transform: scale(1.25) rotate(-2deg);
    filter: drop-shadow(0 20px 20px rgba(216, 31, 45, 0.22));
    animation: pulseZoom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shelf-desktop-info-side {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shelf-card-badge {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange-petant);
    background: rgba(216, 31, 45, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.6rem;
}

.shelf-card-title {
    font-size: 1.6rem;
    color: var(--noir-profond);
    margin-bottom: 0.3rem;
}

.shelf-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orange-petant);
    margin-bottom: 0.8rem;
}

.shelf-card-desc {
    font-size: 0.92rem;
    color: var(--gris-texte);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.shelf-card-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.shelf-card-actions .cta-button,
.shelf-card-actions .cta-button-secondary {
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
}

/* POPUP MOBILE (IMAGE SEULE EN HAUT, CADRE EN VERRE INFOS EN DESSOUS) */
@media (max-width: 768px) {
    .shelf-modal-overlay {
        align-items: center;
        justify-content: center;
        padding: 1.2rem;
    }

    .shelf-mobile-sheet {
        position: relative;
        z-index: 2;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        width: calc(100% - 1rem);
        max-width: 400px;
        height: 85vh;
        max-height: 85vh;
        margin: auto;
        animation: zoomModalIn 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: visible;
    }

    /* PARTIE HAUTE (IMAGE SEULE EN SUSPENSION SUR LE FOND SOMBRE) */
    .shelf-mobile-zoom-container {
        flex: 1 1 45%;
        height: 45%;
        max-height: 45%;
        min-height: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        margin-bottom: 0.8rem;
        position: relative;
    }

    .shelf-mobile-zoom-container img {
        max-height: 95%;
        max-width: 95%;
        object-fit: contain;
        transform: scale(1.28);
        filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
    }

    /* PARTIE BASSE (LE CADRE EN VERRE AVEC INFOS PRODUIT ET BOUTONS) */
    .shelf-mobile-sheet-content {
        position: relative;
        flex: 1 1 53%;
        height: 53%;
        max-height: 53%;
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border: 1px solid var(--bordures);
        border-radius: 32px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        text-align: center;
        overflow-y: auto;
        padding: 1.8rem 1.4rem 1.4rem;
    }

    .shelf-mobile-sheet-content .shelf-modal-close {
        top: 14px;
        right: 14px;
    }

    .shelf-mobile-title {
        font-size: 1.5rem;
        color: var(--noir-profond);
        margin: 0.3rem 0;
    }

    .shelf-mobile-desc {
        font-size: 0.9rem;
        color: var(--gris-texte);
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .shelf-mobile-actions .cta-button.style-full {
        width: 100%;
    }
}

@keyframes zoomModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulseZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1.35) rotate(-2deg); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* --- 4. SECTIONS, PRODUITS & CONTENUS DE BASE --- */
.values-section, .featured-collection, .atelier-section { padding: 5rem 0; }
.values-section { background-color: var(--fond-doux); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; text-align: center; }
.value-item svg { color: var(--rouge-fonce); margin-bottom: 1rem; width: 32px; height: 32px; }
.value-item h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title span { font-size: 2.5rem; border-bottom: 2px solid var(--rouge-fonce); padding-bottom: 0.5rem; }
.atelier-section { background-color: var(--fond-doux); }
.atelier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.atelier-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-m); }
.atelier-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 340px)); 
    gap: 2.5rem; 
}

/* La carte produit audacieuse & organique */
.product-card { 
    background: var(--blanc-pur); 
    border: 1px solid var(--bordures); 
    border-radius: var(--radius-m); 
    padding: 0.9rem;
    width: 100%;
    max-width: 340px;
    overflow: hidden; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
}

.product-card-link-area { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex-grow: 1; }

.product-image { 
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
    border-radius: 24px; 
    position: relative; }

.product-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-info { padding: 1.2rem 0.8rem 0.8rem; text-align: center; flex-grow: 1; }
.product-info h3 { font-family: var(--font-titres); font-size: 1.25rem; margin-bottom: 0.35rem; font-weight: 600; color: var(--noir-profond); }
.product-price { font-family: var(--font-corps); font-size: 1.05rem; font-weight: 600; color: var(--rouge-fonce); }

/* Le bouton d'ajout rapide au style gélule / pilule ultra-arrondie */
.add-to-cart-quick-btn { 
    width: 100%; 
    padding: 0.8rem 1rem; 
    background: linear-gradient(135deg, #ffffff 0%, var(--fond-doux) 100%); 
    color: var(--rouge-fonce); 
    border: 1.5px solid var(--rouge-fonce); 
    border-radius: var(--radius-pill); 
    cursor: pointer; 
    font-family: var(--font-corps); 
    font-weight: 600; 
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    opacity: 1; 
    transform: translateY(0); 
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.add-to-cart-quick-btn:hover { 
    background: var(--gradient-bouton); 
    color: var(--blanc-pur); 
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(216, 31, 45, 0.32);
    transform: translateY(-2px);
}

/* ACTIVATION DES ANIMATIONS AU SURVOL SUR ORDINATEUR */
@media (hover: hover) {
    .product-card:hover { 
        transform: translateY(-8px); 
        box-shadow: var(--shadow-superposition);
        border-color: rgba(216, 31, 45, 0.2);
    }
    .product-card:hover .product-image img { 
        transform: scale(1.08); 
    }
    .add-to-cart-quick-btn {
        opacity: 0;
        transform: translateY(10px);
    }
    .product-card:hover .add-to-cart-quick-btn { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
/* --- 5. BOUTONS GENERIQUES & CTA --- */
.cta-button, .cta-button-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.95rem 2.4rem; font-family: var(--font-corps); font-size: 0.95rem;
    font-weight: 1000; border-radius: var(--radius-pill);
    cursor: pointer; transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase; letter-spacing: 1.2px;
    position: relative; overflow: hidden; z-index: 1;
}

.cta-button {
    background: var(--gradient-bouton);
    color: var(--blanc-pur);
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(216, 31, 45, 0.22);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-bouton-hover);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(216, 31, 45, 0.38);
    color: var(--blanc-pur);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 4px 12px rgba(216, 31, 45, 0.25);
}

.cta-button-secondary {
    background: var(--blanc-pur);
    color: var(--rouge-fonce);
    border: 1.5px solid var(--rouge-fonce);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cta-button-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-bouton);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.cta-button-secondary:hover {
    color: var(--blanc-pur);
    border-color: transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(216, 31, 45, 0.3);
}

.cta-button-secondary:hover::before {
    opacity: 1;
}

.cta-center { text-align: center; margin-top: 3rem; }

/* --- 6. FOOTER --- */
footer { background-color: var(--fond-doux); padding: 4rem 0 2rem; margin-top: 5rem; border-top: 1px solid var(--bordures); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-grid h4 { margin-bottom: 1rem; }
.footer-grid a { display: inline-block; margin-bottom: 0.5rem; color: var(--gris-texte); }
.footer-bottom { text-align: center; border-top: 1px solid var(--bordures); padding-top: 2rem; color: var(--gris-texte); }

/* --- 7. ASSISTANCE ET TOASTS NOTIFICATIONS --- */
main.fade-in-start { opacity: 0; transform: translateY(15px); transition: opacity 0.5s, transform 0.5s; }
main.fade-in-end { opacity: 1; transform: translateY(0); }
.toast {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    padding: 12px 24px; border-radius: var(--radius-s); color: #fff; font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); transition: bottom 0.5s; z-index: 9999;
}
.toast.show { bottom: 20px; }
.toast-success { background-color: #28a745; }
.toast-error { background-color: var(--rouge-fonce); }
.hidden { display: none !important; }

/* --- 8. SYSTEME DE MENU RESPONSIVE SUR MOBILE --- */
#mobile-menu-toggle { display: none; }
@media (max-width: 992px) {
    #mobile-menu-toggle { display: block; z-index: 3000; position: relative; }
    #mobile-menu-toggle svg line { transition: all 0.3s ease; transform-origin: center; }
    
    body.mobile-menu-open #mobile-menu-toggle { position: fixed; top: 1.5rem; right: 1.5rem; }
    body.mobile-menu-open #mobile-menu-toggle svg line { stroke: var(--noir-profond); }
    body.mobile-menu-open #mobile-menu-toggle svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    body.mobile-menu-open #mobile-menu-toggle svg line:nth-child(2) { opacity: 0; }
    body.mobile-menu-open #mobile-menu-toggle svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    #main-nav {
        position: fixed !important; top: 0; left: 0;
        width: 100vw; height: 100vh; height: 100dvh;
        background-color: var(--blanc-pur);
        z-index: 2000;
        display: flex; justify-content: center; align-items: center;
        opacity: 0; visibility: hidden; transform: scale(0.95);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    }
    body.mobile-menu-open #main-nav {
        opacity: 1; visibility: visible; transform: scale(1);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
    }

    .nav-links { flex-direction: column; text-align: center; gap: 2.5rem; }
    .nav-links li { width: 100%; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
    body.mobile-menu-open .nav-links li { opacity: 1; transform: translateY(0); }
    body.mobile-menu-open .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    body.mobile-menu-open .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    body.mobile-menu-open .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    body.mobile-menu-open .nav-links li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a { font-size: 2.5rem; font-family: var(--font-titres); color: var(--noir-profond); }
}

@media (max-width: 768px) {
    .atelier-grid { grid-template-columns: 1fr; }
    .atelier-image { order: -1; }
}

/* --- 9. CONFIGURATION SPECIFIQUE DE LA FICHE PRODUIT (MOBILE-FIRST) --- */
.product-page-grid {
    display: grid;
    grid-template-columns: 1fr; /* Une colonne linéaire par défaut sur téléphone */
    gap: 2.5rem;
    padding: 2rem 0 4rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    /* Évite que l'image ne devienne géante sur grands téléphones ou tablettes */
    max-width: 450px; 
    margin: 0 auto; /* Centre la galerie horizontalement */
}

/* Forçage d'une taille de photo carrée parfaite */
.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--bordures);
    border-radius: var(--radius-m);
    background-color: var(--fond-doux);
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Conteneur de la galerie de miniatures */
.thumbnails-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Boutons de navigation des miniatures */
.thumb-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--bordures);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex; /* Activé par défaut pour s'afficher aussi bien sur mobile que desktop */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 5;
    font-family: var(--font-corps);
    font-size: 1.25rem;
    color: var(--noir-profond);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.thumb-nav-btn:hover {
    background: var(--blanc-pur);
    border-color: var(--rouge-fonce);
    color: var(--rouge-fonce);
}

.prev-thumb { left: -16px; }
.next-thumb { right: -16px; }

/* Fenêtre de défilement masquant la barre de défilement native */
.thumbnails-viewport {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.thumbnails-viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.thumbnails-track {
    display: grid;
    grid-auto-flow: column;
    /* Formule mathématique précise : (100% de la largeur - 2 gaps de 0.75rem) divisé par 3 */
    grid-auto-columns: calc((100% - 1.5rem) / 3); 
    gap: 0.75rem;
    width: 100%;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--bordures);
    border-radius: var(--radius-s);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    scroll-snap-align: start;
    transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail:hover,
.thumbnail.is-active {
    opacity: 1;
}

.thumbnail.is-active {
    border-color: var(--rouge-fonce);
    box-shadow: 0 0 0 1px var(--rouge-fonce);
}

.product-info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-info-details h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.product-info-details .product-price {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-corps);
    color: var(--rouge-fonce);
}

.product-info-details p {
    color: var(--gris-texte);
    font-size: 1.05rem;
    line-height: 1.8;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.product-quantity label {
    font-weight: 500;
    color: var(--noir-profond);
}

.product-quantity-input {
    width: 80px;
    padding: 0.6rem;
    border: 1px solid var(--bordures);
    border-radius: var(--radius-s);
    text-align: center;
    font-family: var(--font-corps);
    font-size: 1rem;
    color: var(--noir-profond);
    background-color: var(--blanc-pur);
}

.product-info-details .cta-button {
    align-self: stretch;
    width: 100%;
    margin-top: 1rem;
}

/* Déploiement et asymétrie sur Ordinateur / Ecrans larges */
@media (min-width: 768px) {
    .product-page-grid {
        /*
         * minmax verrouille la galerie de gauche à 480px maximum,
         * la colonne de droite prend de manière fluide tout le reste de la page.
         */
        grid-template-columns: minmax(300px, 480px) 1fr; 
        gap: 4rem;
        padding: 4rem 0 8rem;
        align-items: start;
    }

    .product-gallery {
        margin: 0; /* Alignement propre à gauche */
        max-width: 100%; /* S'adapte à la grille */
    }

    /* On affiche les flèches physiques de navigation sur ordinateur */
    .thumb-nav-btn {
        display: flex;
    }

    .product-info-details .cta-button {
        align-self: flex-start;
        width: auto;
    }
}

/* --- 10. CONFIGURATION DE L'INTERFACE PANIER (MOBILE-FIRST) --- */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne verticale sur mobile */
    gap: 2.5rem;
    padding: 2rem 0 4rem;
    align-items: start;
}

.cart-items-list {
    background-color: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-m);
    padding: 1.5rem;
    overflow-x: auto; /* Permet le glissement de la table sur très petits téléphones */
}

.cart-page-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-page-table th {
    text-align: left;
    padding-bottom: 1rem;
    color: var(--gris-texte);
    font-weight: 500;
    font-family: var(--font-corps);
    border-bottom: 1px solid var(--bordures);
}

.cart-page-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bordures);
    vertical-align: middle;
}

.cart-page-table tr:last-child td {
    border-bottom: none;
}

/* 
 * CORRECTIF DE SÉCURITÉ : Verrouille la taille de toutes les images
 * du panier à 70px maximum, carrées et rognées proprement.
 */
.cart-page-table td img,
.cart-item-image {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: var(--radius-s) !important;
    border: 1px solid var(--bordures);
    display: inline-block;
    vertical-align: middle;
    margin-right: 1rem;
}

.cart-item-details {
    display: flex;
    align-items: center;
}

.cart-quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--bordures);
    border-radius: var(--radius-s);
    text-align: center;
    font-family: var(--font-corps);
}

.remove-item-btn {
    background: none;
    border: 1px solid var(--bordures);
    color: var(--gris-texte);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.remove-item-btn:hover {
    background-color: rgba(255, 11, 0, 0.1);
    color: var(--rouge-fonce);
    border-color: rgba(255, 11, 0, 0.25);
}

/* Carte latérale de récapitulatif de commande */
.cart-summary-card {
    background-color: var(--fond-doux);
    padding: 2rem;
    border-radius: var(--radius-m);
    border: 1px solid var(--bordures);
}

.cart-summary-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--noir-profond);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gris-texte);
}

.summary-line.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--noir-profond);
    margin-top: 1rem;
}

.cart-summary-card hr {
    border: none;
    border-top: 1px solid var(--bordures);
    margin: 1.5rem 0;
}

#payment-element {
    margin-bottom: 1.5rem;
}

/* Version Ordinateur du Panier */
@media (min-width: 992px) {
    .cart-layout-grid {
        grid-template-columns: 2fr 1fr; /* Deux colonnes asymétriques */
        gap: 3rem;
        padding: 4rem 0 8rem;
    }

    .cart-summary-card {
        position: -webkit-sticky;
        position: sticky;
        top: 120px; /* Le panier reste collé en hauteur lors du défilement */
    }
}

/* --- 11. MODULE "VOUS AIMEREZ PEUT-ÊTRE" (CROSS-SELLING) --- */
.suggestions-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--bordures);
    width: 100%;
    clear: both;
}

.suggestions-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.suggestions-title span {
    font-size: 2rem;
    font-family: var(--font-titres);
    color: var(--rouge-fonce);
    border-bottom: 2px solid var(--rouge-fonce);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- 12. PAGE CONTACT --- */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.contact-section h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-subtitle {
    text-align: center;
    color: var(--gris-texte);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-form {
    background-color: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-m);
    padding: 2.5rem;
    box-shadow: var(--shadow-subtil);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--noir-profond);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--bordures);
    border-radius: var(--radius-s);
    font-family: var(--font-corps);
    font-size: 1rem;
    color: var(--noir-profond);
    background-color: var(--blanc-pur);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rouge-fonce);
    box-shadow: 0 0 0 3px rgba(216, 31, 45, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .cta-button {
    align-self: center;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .contact-form .cta-button {
        width: auto;
        min-width: 200px;
    }
}


/* --- 13. PAGE À PROPOS (ARCHITECTURE STORYTELLING & IMAGES) --- */
.about-hero {
    background: linear-gradient(180deg, var(--fond-doux) 0%, rgba(249, 245, 240, 0.3) 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--bordures);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.about-hero-text {
    text-align: left;
}

.about-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rouge-fonce);
    margin-bottom: 1rem;
    background: rgba(216, 31, 45, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
}

.about-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    color: var(--noir-profond);
    margin-bottom: 1.5rem;
}

.about-hero-subtitle {
    font-size: 1.15rem;
    color: var(--gris-texte);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.badge-card {
    background: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-m);
    padding: 1.5rem 1rem;    
    box-shadow: var(--shadow-subtil);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
}

.badge-card:nth-child(1) { transform: rotate(0deg); }
.badge-card:nth-child(2) { transform: rotate(0deg); }
.badge-card:nth-child(3) { transform: rotate(0deg); }

.badge-card:hover {
    transform: translateY(-6px) rotate(0deg) scale(1.03);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(216, 31, 45, 0.25);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.badge-card strong {
    color: var(--noir-profond);
    font-size: 1rem;
}

.badge-card small {
    color: var(--gris-texte);
    font-size: 0.85rem;
}

/* EMPLACEMENT IMAGE HERO EN ARCHE CIRCULAIRE AUDACIEUSE */
.about-hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-superposition);
    border: 1px solid var(--bordures);
    background-color: var(--fond-doux);
    z-index: 1;
}

.about-hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    bottom: 12px;
    left: 12px;
    background: var(--gradient-clair);
    border-radius: var(--radius-l);    
    z-index: -1;
    opacity: 0.3;
    transform: rotate(2.5deg);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-hero-image-wrapper:hover::before {
    transform: rotate(4deg) scale(1.02);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-l);    
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-hero-image-wrapper:hover .about-image-placeholder {
    transform: scale(1.04);
}

.image-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    color: var(--noir-profond);
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* SECTION EDITORIALE STORY & ARTISANE EN CERCLE PARFAIT */
.about-story-section {
    padding: 6rem 1.5rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.story-image-wrapper {
    position: relative;
    border-radius: var(--radius-l);    
    box-shadow: var(--shadow-superposition);
    border: 1px solid var(--bordures);
    background-color: var(--fond-doux);
    z-index: 1;
}

.story-image-wrapper::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -12px;
    bottom: -12px;
    right: 12px;
    background: var(--fond-chaud);
    border: 1.5px dashed var(--rouge-fonce);
    border-radius: var(--radius-l);
    z-index: -1;
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
    opacity: 0.7;
}

.story-image-wrapper:hover::before {
    transform: rotate(-4.5deg);
}

.story-image-wrapper .about-image-placeholder {
    border-radius: var(--radius-l);
}

.story-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--rouge-fonce);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-style: italic;
}

.story-content p {
    color: var(--gris-texte);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

/* LE VOYAGE DE LA TERRE */
.about-process-section {
    background-color: var(--fond-doux);
    padding: 6rem 0;
    border-top: 1px solid var(--bordures);
    border-bottom: 1px solid var(--bordures);
}

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-center h2 {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
}

.section-header-center p {
    color: var(--gris-texte);
    font-size: 1.1rem;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.process-step-card {
    background: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-m);
    padding:1.5rem;
    position: relative;
    box-shadow: var(--shadow-subtil);
    transition: transform 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.process-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--rouge-fonce);
}

.step-image-box {
    width: 100%;
    height: 170px;
    border-radius: var(--radius-s);
    overflow: hidden;
    margin-bottom: 1.2rem;
    background-color: var(--fond-doux);
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.process-step-card:hover .step-img {
    transform: scale(1.05);
}

.step-number {
    font-family: var(--font-titres);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rouge-fonce);
    opacity: 0.3;
    display: block;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.process-step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--noir-profond);
}

.process-step-card p {
    color: var(--gris-texte);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ENGAGEMENTS */
.about-values-section {
    padding: 6rem 1.5rem;
}

.section-title-left {
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

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

.value-card {
    background: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-m);
    padding: 2.2rem;
    box-shadow: var(--shadow-subtil);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
}

.value-card.highlight {
    background: linear-gradient(135deg, #fff 0%, var(--fond-doux) 100%);
    border-color: rgba(216, 31, 45, 0.3);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--rouge-fonce);
}

.value-card p {
    color: var(--gris-texte);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* BANNIERE CTA FINAL */
.about-cta-banner {
    background: var(--gradient-fonce);
    color: var(--blanc-pur);
    text-align: center;
    padding: 5rem 1.5rem;
    margin-top: 3rem;
}

.about-cta-banner h2 {
    color: var(--blanc-pur);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}


/* --- 14. PAGE COLLECTIONS & GRILLES SECTORISÉES --- */
.collection-group {
    margin-bottom: 4.5rem;
}

.collection-title {
    font-size: 1.8rem;
    color: var(--rouge-fonce);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bordures);
    display: inline-block;
}

.featured-collection-name {
    text-align: center;
    margin: -0.5rem 0 1.5rem;
    font-style: italic;
    opacity: 0.7;
}

.featured-carousel { position: relative; }

.carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport.dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

.carousel-track { display: flex; gap: 1.5rem; }

/* 3 produits visibles */
.carousel-track .product-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    scroll-snap-align: start;
}
@media (max-width: 900px) {
    .carousel-track .product-card { flex-basis: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 560px) {
    .carousel-track .product-card { flex-basis: 80%; }
}

.carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s;
}
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 768px) { .carousel-arrow { display: none; } }



/* ============================================================
   PAGE BOUTIQUE — Filtres, layout, tri
   ============================================================ */

/* ── En-tête ──────────────────────────────────────────────── */
.shop-header {
    background: var(--fond-doux);
    border-bottom: 1px solid var(--bordures);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.shop-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--noir-profond);
    margin-bottom: 0.6rem;
}

.shop-subtitle {
    color: var(--gris-texte);
    font-size: 1.05rem;
}

/* ── Layout principal (sidebar + grille) ─────────────────── */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

/* ── SIDEBAR FILTRES ─────────────────────────────────────── */
.shop-filters {
    position: sticky;
    top: 80px;
    background: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-m);
    padding: 1.6rem;
    box-shadow: var(--shadow-subtil);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bordures);
}

.filters-title {
    font-family: var(--font-titres);
    font-size: 1.1rem;
    color: var(--noir-profond);
    font-weight: 700;
}

.filters-reset {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rouge-fonce);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.filters-reset:hover { opacity: 0.7; }

/* ── Groupe de filtre (accordion) ────────────────────────── */
.filter-group {
    border-bottom: 1px solid var(--bordures);
    padding: 1rem 0;
}

.filter-group:last-of-type { border-bottom: none; }

.filter-group-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--noir-profond);
    font-family: var(--font-titres);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.8rem;
}

.filter-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.filter-group.collapsed .filter-chevron {
    transform: rotate(-90deg);
}

.filter-group.collapsed .filter-options {
    display: none;
}

/* ── Options (checkboxes en chips) ───────────────────────── */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gris-texte);
    transition: color 0.2s;
}

.filter-chip:hover { color: var(--rouge-fonce); }

.filter-chip input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rouge-fonce);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
}

/* ── Slider prix ─────────────────────────────────────────── */
.filter-price-wrap {
    padding-top: 0.4rem;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rouge-fonce);
    margin-bottom: 0.75rem;
}

.price-range-track {
    position: relative;
    height: 4px;
    background: var(--bordures);
    border-radius: 9999px;
    margin: 0.5rem 0 1.4rem;
}

.price-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--rouge-fonce);
    border-radius: 9999px;
}

.price-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blanc-pur);
    border: 2px solid var(--rouge-fonce);
    box-shadow: 0 2px 8px rgba(216, 31, 45, 0.25);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s, box-shadow 0.2s;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 14px rgba(216, 31, 45, 0.35);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blanc-pur);
    border: 2px solid var(--rouge-fonce);
    cursor: pointer;
    pointer-events: auto;
}

/* ── Barre de résultats ──────────────────────────────────── */
.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.shop-count {
    flex: 1;
    font-size: 0.92rem;
    color: var(--gris-texte);
    font-weight: 500;
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-sort-label {
    font-size: 0.85rem;
    color: var(--gris-texte);
    white-space: nowrap;
}

.sort-select {
    font-family: var(--font-corps);
    font-size: 0.88rem;
    color: var(--noir-profond);
    background: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-s);
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sort-select:focus { border-color: var(--rouge-fonce); }

/* ── Bouton filtres mobile ───────────────────────────────── */
.filter-toggle-mobile {
    display: none;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-corps);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--noir-profond);
    background: var(--blanc-pur);
    border: 1px solid var(--bordures);
    border-radius: var(--radius-s);
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, color 0.2s;
}

.filter-toggle-mobile:hover {
    border-color: var(--rouge-fonce);
    color: var(--rouge-fonce);
}

.filter-badge {
    background: var(--rouge-fonce);
    color: var(--blanc-pur);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Bouton appliquer (mobile, dans la sidebar) */
.filters-apply-mobile {
    display: none;
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.85rem;
    background: var(--gradient-bouton);
    color: var(--blanc-pur);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-corps);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* ── État vide ───────────────────────────────────────────── */
.shop-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gris-texte);
    font-size: 1.05rem;
}

.shop-empty button {
    margin-top: 1.2rem;
}

/* ── Overlay fond (mobile) ───────────────────────────────── */
.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    /* Sidebar devient un drawer latéral sur mobile */
    .shop-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(320px, 85vw);
        height: 100dvh;
        border-radius: 0;
        overflow-y: auto;
        z-index: 200;
        transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: none;
        border: none;
        padding: 1.8rem 1.4rem;
    }

    .shop-filters.open {
        left: 0;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    }

    .filter-toggle-mobile { display: flex; }
    .filters-apply-mobile  { display: block; }
}

@media (max-width: 600px) {
    .shop-toolbar {
        flex-wrap: wrap;
    }

    .shop-count { order: 1; flex: 100%; }
    .shop-sort  { order: 3; }
    .filter-toggle-mobile { order: 2; }
}

/* ---- HERO MOBILE / TABLETTE : hauteur automatique ---- */
@media (max-width: 900px) {
    .hero-slider {
        height: auto;
        min-height: 0;
        max-height: none;
    }
    .hero-slider-track { height: auto; }
    .hero-slide { height: auto; }

    /* Slide produit : image en haut, texte dessous */
    .hero-slide-product {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-slide-product .slide-img-wrap {
        order: -1;
        flex: none;
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 55vh;
    }
    .hero-slide-product .slide-img-wrap img {
        position: absolute;
        inset: 0;
        object-position: center 35%;
    }
    .hero-slide-product .slide-text {
        padding: 1.5rem 1.25rem 4rem; /* 4rem en bas : place pour les points */
        text-align: center;
    }
    .hero-slide-product .slide-subtitle {
        margin: 0 auto 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-slide-product .slide-price { margin-bottom: 1rem; }
    .slide-actions { gap: 0.75rem; }

    /* Slide collection : hauteur minimale pour l'image de fond */
    .hero-slide-collection { min-height: 520px; }

    /* Points lisibles sur fond clair comme sombre */
    .hero-slider-dots {
        bottom: 1rem;
        padding: 0.4rem 0.7rem;
        border-radius: 9999px;
        background: rgba(26, 26, 26, 0.4);
        backdrop-filter: blur(4px);
    }
}

/* Sur téléphone : le glissement au doigt et les points suffisent */
@media (max-width: 600px) {
    .hero-slider-arrow { display: none; }
}

/* --- 15. ÉTATS DE STOCK ET RUPTURE --- */

/* Badge Rupture de stock */
.out-of-stock-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--noir-profond);
    color: var(--blanc-pur);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.out-of-stock-badge.large {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    top: 1.5rem;
    left: 1.5rem;
}

/* Griser la carte du produit épuisé */
.product-card.is-out-of-stock .product-image img {
    opacity: 1;
    filter: grayscale(0%);
    transition: opacity 0.3s;
}

.product-gallery.is-out-of-stock .main-image-wrapper img,
.product-gallery.is-out-of-stock .thumbnail img {
    filter: grayscale(0%);
    opacity: 1;
}

/* On désactive les animations de survol sur les produits épuisés */
@media (hover: hover) {
    .product-card.is-out-of-stock:hover .product-image img {
        transform: none;
    }
    .product-card.is-out-of-stock:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--bordures);
    }
}

/* Style des boutons désactivés */
button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: var(--bordures) !important;
    color: var(--gris-texte) !important;
    border-color: var(--bordures) !important;
    transform: none !important;
    box-shadow: none !important;
}
button:disabled::before {
    display: none;
}

/* =====================================================================
   TITRES : forme « C allongé » (titres) et « L allongé » (sous-titres)
   Les formes sont des images SVG découpées en 9 zones (border-image) :
   elles gardent leurs coins arrondis quel que soit la taille du titre.
   Pour ajouter une forme ailleurs : classe .titre-c ou .sous-titre-l.
   ===================================================================== */
:root {
    --forme-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='102' viewBox='0 0 100 102'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='100' y2='0'%3E%3Cstop offset='0' stop-color='%23FF0B00'/%3E%3Cstop offset='1' stop-color='%23FFAF00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M94 6H50A44 44 0 0 0 6 50V52A44 44 0 0 0 50 96H94' fill='none' stroke='url(%23g)' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E");
    --forme-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='100' y2='0'%3E%3Cstop offset='0' stop-color='%23FF0B00'/%3E%3Cstop offset='1' stop-color='%23FFAF00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5 5V71A24 24 0 0 0 29 95H95' fill='none' stroke='url(%23g)' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Titres (C) */
:is(.titre-c, .shop-title, .contact-section h1, .section-header-center h2, .about-hero-title, .story-content h2, .section-title-left, .atelier-content h2, .product-info-details h1),
:is(.section-title span, .suggestions-title span),
/* Sous-titres (L) */
:is(.sous-titre-l, .value-card h3, .process-step-card h3, .cart-summary-card h3, .product-info-details h4) {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    color: var(--marron-fonce);
    border: 0;
}
:is(.titre-c, .shop-title, .contact-section h1, .section-header-center h2, .about-hero-title, .story-content h2, .section-title-left, .atelier-content h2, .product-info-details h1),
:is(.section-title span, .suggestions-title span) {
    padding: 0.5em 0.4em 0.5em 0.8em;
    line-height: 1.15;
    font-weight: 800;
    font-style: normal;
}
:is(.sous-titre-l, .value-card h3, .process-step-card h3, .cart-summary-card h3, .product-info-details h4) {
    padding: 0.1em 0.2em 0.55em 0.85em;
    line-height: 1.2;
}
/* Titres centrés : la forme reste collée au début du texte */
:is(.shop-title, .contact-section h1, .section-header-center h2, .cart-summary-card h3) { margin-left: auto; margin-right: auto; }
:is(.section-title span, .suggestions-title span) { display: inline-block; width: auto; border-bottom: 0; }

:is(.titre-c, .shop-title, .contact-section h1, .section-header-center h2, .about-hero-title, .story-content h2, .section-title-left, .atelier-content h2, .product-info-details h1, .section-title span, .suggestions-title span, .sous-titre-l, .value-card h3, .process-step-card h3, .cart-summary-card h3, .product-info-details h4)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-image-repeat: stretch;
    pointer-events: none;
}
:is(.titre-c, .shop-title, .contact-section h1, .section-header-center h2, .about-hero-title, .story-content h2, .section-title-left, .atelier-content h2, .product-info-details h1, .section-title span, .suggestions-title span)::before {
    --u: 0.0215em; /* 100 unités = 2,15em = hauteur d'un titre sur une ligne : demi-cercle parfait */
    width: min(3.8em, 44vw);
    border-width: calc(50 * var(--u)) calc(6 * var(--u)) calc(50 * var(--u)) calc(50 * var(--u));
    border-image-source: var(--forme-c);
    border-image-slice: 50 6 50 50;
    border-image-width: calc(50 * var(--u)) calc(6 * var(--u)) calc(50 * var(--u)) calc(50 * var(--u));
}
:is(.sous-titre-l, .value-card h3, .process-step-card h3, .cart-summary-card h3, .product-info-details h4)::before {
    --u: 0.026em;
    width: min(4.4em, 60vw);
    border-width: calc(5 * var(--u)) calc(5 * var(--u)) calc(34 * var(--u)) calc(34 * var(--u));
    border-image-source: var(--forme-l);
    border-image-slice: 5 5 34 34;
    border-image-width: calc(5 * var(--u)) calc(5 * var(--u)) calc(34 * var(--u)) calc(34 * var(--u));
}

/* Titre de la page panier (hors conteneur à marges) */
main.container > h2.titre-c {
    margin: 2rem 0 1.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Boutique : 3 produits par ligne */
#shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

/* Écrans moyens : 2 par ligne pour que les cartes restent lisibles */
@media (max-width: 1000px) {
    #shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Téléphones : 1 par ligne */
@media (max-width: 560px) {
    #shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   BOUTIQUE : mise en page desktop + carte mobile
   ===================================================================== */

/* Mobile : pas de bouton « Ajouter au panier » sur les cartes de la boutique
   (on passe par la fiche produit). Pour changer le seuil, modifier 600px. */
@media (max-width: 600px) {
    #shop-grid .product-card-actions { display: none; }
}

/* Desktop : filtres collés au bord de la page (avec une marge de confort),
   produits centrés dans l'espace restant */
@media (min-width: 901px) {
    .shop-layout {
        max-width: none;
        margin: 0;
        padding-left: clamp(1rem, 2.5vw, 2.5rem);
        padding-right: clamp(1rem, 2.5vw, 2.5rem);
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 2.5rem;
    }
    .shop-results {
        grid-column: 2;
        width: 100%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Très grands écrans : colonne vide de la même largeur que les filtres à droite,
   pour que les produits soient centrés exactement sur la page */
@media (min-width: 1700px) {
    .shop-layout { grid-template-columns: 260px minmax(0, 1fr) 260px; }
}

/* Boutique mobile : cartes plus compactes (padding réduit, espace réduit entre les produits) */
@media (max-width: 600px) {
    #shop-grid { gap: 0.75rem; }
    #shop-grid .product-card {
        padding: 0.4rem;
        border-radius: var(--radius-s);
    }
    #shop-grid .product-image { border-radius: 12px; }
    #shop-grid .product-info { padding: 0.7rem 0.3rem 0.5rem; }
}