/* fondations.css */
/*
 * Jetons de design — la source unique.
 * Couleurs relevées sur images/maquette_accueil.png le 16 septembre 2026.
 * Une couleur qui n'est pas ici n'existe pas : aucune valeur en dur ailleurs.
 */

/*
 * Polices hébergées sur le site (frontend/polices/), jeu de caractères latin
 * de Google Fonts. Servies d'ici plutôt que de Google : deux connexions de
 * moins avant le premier affichage (PageSpeed mobile, 18 novembre 2026), et
 * l'adresse IP des visiteurs ne part plus chez Google. Le numéro de version
 * est dans le nom du fichier : il ne change jamais, il se garde un an en cache.
 */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/polices/playfair-display-v40-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/polices/inter-v20-latin.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/polices/caveat-v23-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/polices/caveat-v23-600-latin.woff2) format('woff2'); }
@font-face { font-family: 'Qwitcher Grypen'; font-style: normal; font-weight: 700; font-display: swap; src: url(/polices/qwitcher-grypen-v8-700-latin.woff2) format('woff2'); }

:root {
    /* Bordeaux — l'identité de la marque */
    --bordeaux-profond: #64121c;   /* pied de page, bandeau d'annonce */
    --bordeaux: #8c0e1f;
    --bordeaux-vif: #940e21;       /* boutons principaux */
    --bordeaux-clair: #8f4850;

    /* Roses — les accents */
    --rose: #c94f5d;               /* mots mis en valeur dans les titres */
    --rose-bonheur: #e04e69;       /* « bonheur » du titre d'accueil, relevé sur la maquette */
    --rose-vif: #e1435a;           /* badges */
    --rose-lisible: #b8304a;       /* petit texte rose et ruban « Promo » : contraste d'au moins 4,5 sur les fonds clairs */
    --rose-pale: #fde3da;
    --rose-tres-pale: #ffede8;     /* section newsletter */

    /* Neutres chauds — les fonds */
    --creme: #fdf4ed;              /* fond général */
    --creme-sombre: #f3e4da;       /* cartes catégories */
    --blanc-chaud: #fffefb;
    --peche: #ffd7bb;              /* bandeau promotionnel */

    /* Textes */
    --encre: #33302c;              /* nom de la marque dans l'en-tête, relevé sur la maquette */
    --texte: #3b2a24;
    --texte-doux: #7a625a;
    /* Version assombrie du précédent, pour le texte qui repose sur une photo :
       #7a625a ne donne que 3,16:1 sur les tons chauds de l'image, sous le seuil
       AA de 4,5. Celui-ci tient à 4,92:1 — ENF-03. */
    --texte-doux-sur-photo: #584741;
    --texte-inverse: #fdf4ed;

    /* Typographie
       Deux familles : une serif pour les titres, une sans-serif pour le corps.
       Jeu latin uniquement — ENF-09. */
    --police-titre: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --police-corps: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Deux écritures distinctes sur la maquette : une main courante pour les
       notes posées sur les photos, et une signature pour le nom de la marque. */
    --police-manuscrite: 'Caveat', 'Brush Script MT', cursive;
    --police-signature: 'Qwitcher Grypen', 'Snell Roundhand', cursive;

    /* Échelle typographique — rapport 1,25 */
    --taille-xs: 0.75rem;
    --taille-s: 0.875rem;
    --taille-base: 1rem;
    --taille-m: 1.25rem;
    --taille-l: 1.563rem;
    --taille-xl: 1.953rem;
    --taille-xxl: 2.441rem;
    --taille-geante: 3.815rem;

    /* Espacements — multiples de 8 */
    --espace-1: 0.5rem;
    --espace-2: 1rem;
    --espace-3: 1.5rem;
    --espace-4: 2rem;
    --espace-5: 2.5rem;
    --espace-6: 3rem;
    --espace-8: 4rem;
    --espace-12: 6rem;

    /* Rayons */
    --rayon-s: 6px;
    --rayon-m: 12px;
    --rayon-l: 20px;
    --rayon-rond: 999px;

    /* Ombres — discrètes : les photos portent le regard */
    --ombre-carte: 0 2px 12px rgba(100, 18, 28, 0.06);
    --ombre-flottante: 0 4px 20px rgba(100, 18, 28, 0.12);

    /* Grille */
    /* Relevé sur la maquette : le contenu occupe presque toute la largeur,
       avec une marge d'environ 24 px à 1440 px. */
    --largeur-contenu: 100%;
    --marge-mobile: 1.5rem;

    /* Transitions */
    --transition: 180ms ease;
}

/* Réinitialisation minimale */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--police-corps);
    font-size: var(--taille-base);
    line-height: 1.6;
    color: var(--texte);
    background: var(--creme);
}

h1, h2, h3 {
    font-family: var(--police-titre);
    line-height: 1.15;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/*
 * Focus visible en permanence : le parcours d'achat doit être faisable au
 * clavier sans jamais perdre le curseur — ENF-01.
 */
:focus-visible {
    outline: 3px solid var(--rose-vif);
    outline-offset: 2px;
}

/* Contenu réservé aux lecteurs d'écran */
.hors-ecran {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contenu {
    /*
     * `width: 100%` n'est pas redondant avec `max-width`.
     *
     * Quand `.contenu` est l'enfant direct d'un `main` en flex — la fiche
     * produit et le panier — son `margin-inline: auto` absorbe l'espace libre
     * et annule le `stretch` du conteneur : la boîte se réduit alors à la
     * largeur de son contenu. Le panier vide s'affichait ainsi dans une
     * colonne de 460 px, titre compris, alors que le panier rempli tenait
     * toute la largeur. La largeur ne doit pas dépendre de ce qu'il y a dedans.
     */
    width: 100%;
    max-width: var(--largeur-contenu);
    margin-inline: auto;
    padding-inline: var(--marge-mobile);
}

/* — Fil d'Ariane — partagé par la fiche produit et le panier — */
.fil { background: var(--creme); border-bottom: 1px solid var(--creme-sombre); }
.fil__liste {
    display: flex;
    flex-wrap: wrap;
    gap: var(--espace-1);
    list-style: none;
    margin: 0;
    padding-block: var(--espace-2);
    font-size: var(--taille-xs);
    color: var(--texte-doux);
}
.fil__liste li + li::before {
    content: "›";
    margin-right: var(--espace-1);
    opacity: 0.6;
}
.fil__liste a:hover { color: var(--bordeaux-vif); text-decoration: underline; }
.fil__liste [aria-current] { color: var(--texte); font-weight: 600; }


/*
 * L'attribut `hidden` doit vraiment cacher.
 *
 * Le navigateur applique `[hidden] { display: none }` dans sa propre feuille,
 * de spécificité (0,1,0). Toute règle d'auteur de même spécificité l'emporte
 * sur elle : `.panier { display: grid }` suffit à faire réapparaître un élément
 * qu'on vient de masquer. Le panier affichait ainsi « Chargement… » au-dessus
 * de son propre contenu.
 *
 * Le `!important` contourne cette règle du navigateur — c'est le seul moyen de
 * garantir que l'attribut gagne sans avoir à le prévoir composant par composant.
 */
[hidden] { display: none !important; }

/* accueil.css */
/*
 * Page d'accueil.
 * Reprend la maquette images/maquette_accueil.png.
 * Toutes les valeurs viennent de fondations.css : aucune couleur en dur ici.
 */
main {
    display: flex;
    flex-direction: column;
    /*
     * `stretch` et non `center` : centrer les éléments leur fait prendre la
     * largeur de leur contenu, et les sections pleine largeur — bannière,
     * atelier, bandeau promo — se réduisaient à celle de leur texte.
     * Le centrage du contenu se fait dans chaque section, via `.contenu`.
     */
    align-items: stretch;
    margin-inline: auto;
    overflow: hidden;
}
.lien-evitement {
    position: absolute;
    left: -9999px;
    background: var(--bordeaux-vif);
    color: var(--texte-inverse);
    padding: var(--espace-2);
    z-index: 100;
}
.lien-evitement:focus {
    left: var(--espace-2);
    top: var(--espace-2);
}

/* — Bandeau d'annonce — */
.annonce {
    background: var(--bordeaux);
    color: var(--texte-inverse);
    font-size: var(--taille-xs);
}
.annonce__contenu {
    display: flex;
    gap: var(--espace-2);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* 43 px de haut relevés sur la maquette. */
    padding-block: 0.7rem;
}
.annonce__separateur { opacity: 0.5; }


/* — Boutons — */
.bouton {
    display: inline-flex;
    align-items: center;
    gap: var(--espace-1);
    padding: 0.75rem var(--espace-3);
    border-radius: var(--rayon-rond);
    font-size: var(--taille-s);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
}
.bouton--principal {
    background: var(--bordeaux-vif);
    color: var(--texte-inverse);
}

/*
 * Le bouton de la bannière est plus imposant que les autres : 390 × 67 px
 * relevés sur la maquette, contre 287 × 50 pour un bouton courant.
 */
.banniere .bouton--principal {
    
    
    gap: var(--espace-2);
}
.bouton--principal:hover:not(:disabled) { background: var(--bordeaux-profond); transform: translateY(-1px); }

/*
 * Un bouton fermé doit se voir fermé. Sans cela, « Continuer vers le paiement »
 * reste rouge plein tant qu'aucun point relais n'est choisi : la cliente clique,
 * rien ne se passe, et rien ne lui dit pourquoi.
 */
.bouton:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.bouton--contour {
    background: transparent;
    border-color: var(--bordeaux-vif);
    color: var(--bordeaux-vif);
}
.bouton--contour:hover { background: var(--bordeaux-vif); color: var(--texte-inverse); }

/* — Bannière — */
/*
 * L'image occupe toute la hauteur de la section et se fond dans le fond rose
 * par un dégradé sur son bord gauche : sur la maquette, elle n'a ni bord net,
 * ni coin arrondi, ni marge. Le texte se place au-dessus.
 */
.banniere {
    position: relative;
    isolation: isolate;
    background: var(--rose-pale);
    /* 539 px relevés sur la maquette à 1440 px de large. */
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    width: 100%;
    max-width: 1440px;
}

/*
 * La photo apparaît dès le quart gauche sur la maquette : elle occupe les trois
 * quarts de la bannière, le fondu se chargeant de la faire naître dans le rose.
 */
.banniere__image {
    position: absolute;
    inset: 0 0 0 32%;
    z-index: -1;
}
.banniere__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* La photo est en paysage (1536 × 1024) : le cadrage centré garde la bougie
       entière, socle compris. */
    /* Cadrage bas : c'est le socle en bois qu'on perdrait en premier, et c'est
       lui qui pose la bougie dans le décor. */
    object-position: center 62%;
    /* Le fondu vers la gauche, qui remplace tout bord dessiné. */
    /* Fondu long : la moitié gauche reste assez claire pour que le texte et la
       note manuscrite s'y lisent sans surimpression. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 22%, #000 48%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 22%, #000 48%);
}

/*
 * La marge gauche suit la grille du contenu, mais ne descend jamais sous
 * --espace-6 : sans ce plancher, le texte se colle au bord dès que la fenêtre
 * atteint la largeur de contenu.
 */
.banniere__texte {
    position: relative;
    z-index: 1;
    box-sizing: content-box;
    width: min(40%, 556px);
    /*
     * Le fond est porté par le bloc texte, pas par la bannière : il ne couvre
     * que la zone de lecture et s'efface sur son bord droit. La photo reste
     * visible partout ailleurs — au-dessus, en dessous, et à droite.
     */
    background: linear-gradient(to right,
        var(--rose-pale) 0%,
        rgba(253, 227, 218, 0.94) 62%,
        rgba(253, 227, 218, 0) 100%);
    /* 67 px relevés sur la maquette : le texte de bannière est plus en retrait
       que les sections, qui s'alignent elles sur la grille du contenu. */
    padding-left: 50px;
    padding-block: var(--espace-5);
}

/* Le surtitre ne prend que la largeur de son contenu : étiré, ses tirets
   s'écartaient jusqu'au bord du bloc. */
.surtitre {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: var(--espace-2);
    font-size: 13px;
    /* Interligne ramené à 1 : hérité du corps de texte, il ajoutait 9 px de
       hauteur au surtitre et décalait tout le bloc. */
    line-height: 1;
    letter-spacing: 0.15em;
    /* Le surtitre déborde sur la photo dès que la bannière se resserre : il lui
       faut la teinte conforme, pas celle du texte courant. */
    color: var(--texte-doux-sur-photo);
    /* 9 px entre le surtitre et le titre sur la maquette. */
    margin: 0 0 0.55rem;
}
/* Les tirets qui encadrent le surtitre sur la maquette. */
.surtitre::before,
.surtitre::after {
    content: "";
    height: 1px;
    width: 28px;
    background: currentColor;
    opacity: 0.6;
    flex-shrink: 0;
}
.surtitre::after { flex: 1; max-width: 28px; }
.surtitre strong { color: var(--texte); font-weight: 600; }

.banniere__titre {
    font-size: clamp(1.8rem, 10.2vw, 3.4rem);
    /* La maquette utilise Playfair Display en 900, pas en 700 : à la même
       taille, les lettres y sont nettement plus larges et plus serrées. */
    font-weight: 900;
    /* Interligne serré : sur la maquette les trois lignes se touchent presque,
       c'est ce qui donne au titre son allure de bloc. */
    line-height: 0.98;
    color: var(--bordeaux);
    /* 46 px entre le titre et l'introduction sur la maquette. */
    margin-bottom: 2.4rem;
}
/* « qui » est en romain sur la maquette, pas en italique : seule la couleur
   le distingue. */
.banniere__qui { color: var(--rose); }

/*
 * Trois relevés sur la maquette, que l'œil ne devine pas :
 *   - la deuxième ligne est décalée de 23 px à 1440, soit environ 0,35 em ;
 *   - « qui » et « bonheur » ne partagent pas le même rose ;
 *   - le corps du titre est le bordeaux vif, pas le bordeaux profond.
 */
.banniere__ligne-decalee { padding-left: 0.35em; }
.banniere__accent { color: var(--rose-bonheur); }
.banniere__coeur {
    width: 0.74em;
    height: 0.74em;
    color: var(--bordeaux);
    display: inline-block;
    vertical-align: 0.06em;
    margin-left: 0.15em;
}

/* Interligne plus serré que le corps de texte courant : relevé à environ 1,35
   sur la maquette, contre 1,6 hérité du réglage global. */
.banniere__introduction {
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
    line-height: 1.28;
    color: var(--texte-doux-sur-photo);
    margin-bottom: var(--espace-4);
    max-width: 22em;
}

/*
 * Coupures de ligne choisies, pour retrouver le découpage de la maquette :
 * « … coulées avec amour » / « … de chaque saison » / « un moment magique. »
 * Elles disparaissent sur petit écran, où la largeur disponible décide seule.
 */
.saut-large { display: none; }

@media (min-width: 1025px) {
    .saut-large { display: inline; }
}

/* Note manuscrite, posée entre le texte et l'image. */

.banniere__emotion {
    position: absolute;
    left: 75%;
    margin-left: -1.5rem;
    top: 67%;
    z-index: 10;
    margin: 0;
    font-family: var(--police-manuscrite);
    font-size: var(--taille-l);
    line-height: 1.3;
    color: var(--rose);
    /* Elle repose sur le fondu : ce halo clair la détache de la photo. */
    text-shadow: 0 1px 8px rgba(253, 244, 237, 0.9);
    transform: rotate(-7deg);
    text-align: center;
    
}
.banniere__emotion p { margin: 0; }
.banniere__emotion-coeur { display: block; font-size: var(--taille-base); }

/* Pastille en forme de galet, en haut à droite. */
.pastille {
    position: absolute;
    top: var(--espace-4);
    right: var(--espace-4);
    z-index: 2;
    background: var(--creme);
    font-family: var(--police-manuscrite);
    font-size: var(--taille-m);
    line-height: 1.3;
    color: var(--bordeaux-profond);
    padding: var(--espace-3) var(--espace-4);
    border-radius: 42% 58% 54% 46% / 52% 44% 56% 48%;
    box-shadow: var(--ombre-flottante);
    text-align: center;
    margin: 0;
}

/* — Bande de réassurance — */
.reassurance { background: var(--creme); border-block: 1px solid var(--creme-sombre); }
.reassurance__liste {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding-block: var(--espace-2);
}
.reassurance__element {
    display: flex;
    align-items: center;
    gap: var(--espace-2);
    padding-inline: var(--espace-3);
    font-size: var(--taille-base);
    line-height: 1.3;
    color: var(--texte-doux);
}
/*
 * Séparateurs entre les engagements, comme sur la maquette. Ils suivent la
 * grille : un trait seulement entre deux colonnes voisines, jamais en début de
 * ligne — sinon il apparaît sous l'élément du dessus, sans rien séparer.
 */
.reassurance__element + .reassurance__element {
    border-left: 1px solid var(--creme-sombre);
}
.reassurance__element strong { color: var(--texte); font-weight: 600; }
.reassurance__icone {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--rayon-rond);
    background: var(--rose-pale);
    color: var(--bordeaux-vif);
}
.reassurance__icone svg { width: 24px; height: 24px; }

/* — Sections — */
/* Les sections se suivent de près sur la maquette : l'air vient des cartes,
   pas de grands vides entre les blocs. */
.section { padding-block: var(--espace-4); }
/* Le titre reste centré sur la page : les deux côtés occupent la même largeur,
   sinon le bouton de droite décale le titre vers la gauche. */

.section_famille{
    width: 100%;
}
.section_bougie{

    max-width: var(--largeur-contenu);
}
.section__entete {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--espace-3);
    margin-bottom: var(--espace-4);
}
.section__entete > :first-child { grid-column: 2; }
.section__entete > .bouton { grid-column: 3; justify-self: end; }
.section__titre {
    font-size: var(--taille-xl);
    color: var(--bordeaux-profond);
    text-align: center;
    flex: 1;
}
.section__titre--categories{
    margin-bottom: 50px;
}
.section__titre--centre { margin-bottom: var(--espace-4); }
.section__sous-titre {
    text-align: center;
    color: var(--texte-doux);
    font-size: var(--taille-s);
    margin: var(--espace-1) 0 0;
}

/* — Familles de produits — */
.familles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/*
 * Structure relevée sur la maquette : la carte est un cadre rose, la photo y
 * est posée avec une marge et ses propres coins arrondis, et le libellé occupe
 * une bande en bas. La photo ne sert pas de fond au texte — c'est ce qui donne
 * son allure de vignette plutôt que de bandeau.
 */
.famille {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 260 / 242;
    padding: 6px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--rose-pale);
}
.famille img {
    width: 100%;
    height: 68%;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.famille__lien {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--espace-1);
    flex: 1;
    padding: 0 var(--espace-1) 0 var(--espace-2);
    font-family: var(--police-titre);
    font-size: var(--taille-base);
    font-weight: 600;
    line-height: 1.15;
    color: var(--bordeaux-profond);
}
.famille__fleche {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: var(--rayon-rond);
    background: var(--bordeaux-vif);
    color: var(--texte-inverse);
    font-size: var(--taille-s);
    transition: transform var(--transition);
}
/* Étend le lien natif à la photo et à toute la surface de la carte. */
.famille__lien::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.famille:focus-within {
    outline: 3px solid var(--bordeaux-vif);
    outline-offset: 3px;
}
.famille:hover .famille__fleche { transform: translateX(2px); }
.familles__attente { grid-column: 1 / -1; color: var(--texte-doux); }

/* — Cartes produit — */
/*
 * Les produits défilent horizontalement : le catalogue en contient 146, une
 * vitrine de sept est une fenêtre, pas une liste. Le défilement est natif —
 * doigt, trackpad, clavier — et les flèches ne font que le piloter.
 */
.produits__cadre {
    display: flex;
    align-items: center;
    gap: var(--espace-2);
}
.produits {
    display: grid;
    grid-auto-flow: column;
    /* Sept cartes visibles à la largeur de la maquette, les suivantes à portée
       de défilement. */
    grid-auto-columns: calc((100% - 6 * 12px) / 7);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-block: 2px var(--espace-2);

    /*
     * La piste occupe toute la largeur pour que les cartes défilent jusqu'aux
     * bords, mais son contenu reste aligné sur la grille du site.
     *
     * Un élément vide en tête de liste ne peut pas tenir ce rôle : le script
     * remplace tous les enfants de la piste au chargement des produits, et il
     * disparaîtrait. `scroll-padding` fait en plus respecter cette marge au
     * calage — sans lui, la carte suivante viendrait se coller au bord.
     */
    padding-inline: max(var(--marge-mobile), calc((100vw - var(--largeur-contenu)) / 2));
    scroll-padding-inline: max(var(--marge-mobile), calc((100vw - var(--largeur-contenu)) / 2));

    scrollbar-width: none;
}

.produits::-webkit-scrollbar { display: none; }
.carte-produit { scroll-snap-align: start; }

.produits__fleche {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: var(--rayon-rond);
    background: var(--creme);
    color: var(--bordeaux-profond);
    font-size: var(--taille-l);
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}
.produits__fleche:hover { background: var(--rose-pale); }
.produits__fleche[disabled] { opacity: 0.3; cursor: default; }
.produits__attente,
.produits__erreur,
.produits__vide { grid-column: 1 / -1; color: var(--texte-doux); }
.produits__erreur { color: var(--bordeaux-vif); }

.carte-produit { display: flex; flex-direction: column; }
.carte-produit__media {
    border-radius: var(--rayon-m);
    overflow: hidden;
    background: var(--creme-sombre);
    aspect-ratio: 1;
}
.carte-produit__media img { width: 100%; height: 100%; object-fit: cover; }

/*
 * Photo détourée dans la vitrine : sans panneau coloré derrière, le produit
 * est posé sur le fond de la page et en sort par le bas. Le ruban « Nouveau »
 * reste au-dessus du produit, dans le coin, comme sur les autres cartes.
 */
.carte-produit__media--detouree { background: transparent; overflow: visible; }
/* Posée par-dessus le cadre, la photo n'en change pas la taille : les titres
   des cartes restent alignés. */
.carte-produit__media img.carte-produit__photo--detouree {
    position: absolute;
    inset: 0 0 -6%;
    z-index: 2;
    width: 100%;
    height: 106%;
    object-fit: contain;
    padding: 0 6%;
    filter: drop-shadow(0 14px 14px rgb(100 18 28 / 20%));
}
.carte-produit__media--detouree .rubans-produit { inset: 0 0 12%; border-radius: var(--rayon-m); }
.carte-produit__media--detouree .ruban-produit--nouveau { z-index: 3; }
/*
 * Le nom est coupé à deux lignes, avec une ellipse.
 *
 * La coupure est faite par le navigateur, à la largeur réelle de la carte :
 * aucun mot n'est tranché au milieu, et rien n'est perdu — le nom entier reste
 * dans le document, donc lu par les lecteurs d'écran et affiché en entier sur
 * la fiche produit.
 *
 * Le plus long du catalogue fait 43 caractères : deux lignes suffisent partout
 * aujourd'hui. La coupure est là pour ce que Galou créera demain.
 */
.carte-produit__titre {
    font-family: var(--police-corps);
    font-size: var(--taille-s);
    font-weight: 600;
    text-align: center;
    margin: var(--espace-2) 0 var(--espace-1);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    /* Deux lignes réservées même pour un nom court : les prix et les boutons
       des cartes voisines restent alignés. */
    min-height: calc(2 * 1.6 * var(--taille-s));
}

/* Sur la fiche produit, le nom s'affiche en entier : c'est là qu'on le lit. */
.fiche-produit__titre {
    font-family: var(--police-titre);
    font-size: var(--taille-xl);
    color: var(--bordeaux-profond);
    margin-bottom: var(--espace-2);
}
.carte-produit__prix {
    text-align: center;
    color: var(--texte-doux);
    font-size: var(--taille-s);
    margin: 0 0 var(--espace-2);
}
.carte-produit__depuis { font-size: var(--taille-xs); }
.carte-produit__action { width: 100%; justify-content: center; }
.section_bougie .carte-produit {
    position: relative;
}
.section_bougie .carte-produit__action::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: var(--rayon-m);
}
.section_bougie .carte-produit:focus-within {
    outline: 2px solid var(--bordeaux-vif);
    outline-offset: 2px;
    border-radius: var(--rayon-m);
}
.carte-produit__media,
.carte__media {
    position: relative;
    isolation: isolate;
}

/*
 * Statuts posés sur la photo. « Nouveau » est un ruban diagonal dans le coin
 * haut droit ; « Épuisé » une pastille dans le coin haut gauche. Chacun a son
 * coin : quand les deux s'appliquent, ils ne se croisent plus.
 */
/*
 * Le conteneur ne crée pas d'empilement à lui seul : chaque statut a son
 * propre niveau. Sur une photo détourée, le produit passe ainsi entre le ruban
 * « Nouveau » (derrière) et la pastille « Épuisé » (devant) — voir
 * boutique.css et produit.css.
 */
.rubans-produit {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.ruban-produit {
    position: absolute;
    font-family: var(--police-corps);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
}
/* « Nouveau » : une pastille discrète dans le coin, plutôt qu'un bandeau en
   diagonale qui masquait le haut de la photo (refonte du 23 octobre 2026). */
.ruban-produit--nouveau {
    z-index: 3;
    top: var(--espace-1);
    right: var(--espace-1);
    padding: 4px 10px;
    border-radius: var(--rayon-rond);
    background: rgb(255 254 251 / 92%);
    color: var(--bordeaux);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 1px 6px rgb(100 18 28 / 12%);
    backdrop-filter: blur(2px);
}
.ruban-produit--indisponible {
    z-index: 4;
    top: var(--espace-1);
    left: var(--espace-1);
    padding: 5px 12px;
    border-radius: var(--rayon-rond);
    background: rgb(51 48 44 / 85%);
    color: var(--texte-inverse);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgb(0 0 0 / 14%);
}
/* La photo d'un produit épuisé s'efface un peu : on le voit sans lire. */
.produit-indisponible img {
    filter: grayscale(0.6);
    opacity: 0.75;
}

/* — Atelier — */
/* L'image part du bord gauche de l'écran, la citation touche le bord droit :
   c'est ce cadrage qui donne son rythme à la section sur la maquette. */
.atelier {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.75fr);
    gap: var(--espace-4);
    align-items: center;
    background: var(--creme);
    padding-block: var(--espace-6);
    overflow: hidden;
}
.atelier__texte { padding-right: var(--espace-2); }
.atelier__image { position: relative; }
/*
 * `height: auto` est indispensable : sans lui, l'attribut height du HTML fixe
 * la hauteur et `aspect-ratio` est ignoré — l'image gardait ses 1218 px et
 * étirait la section à plus du double de sa hauteur utile.
 */
.atelier__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.86;
    object-fit: cover;
    border-radius: 0 var(--rayon-l) var(--rayon-l) 0;
}
/*
 * Note manuscrite posée sur la photo, comme sur la maquette : blanche, au
 * milieu de l'image et non en bas, légèrement inclinée, le cœur sur sa propre
 * ligne. L'ombre portée la détache du fond, qui est clair par endroits.
 */
.atelier__manuscrit {
    position: absolute;
    left: 9%;
    top: 50%;
    transform: translateY(-50%) rotate(-4deg);
    margin: 0;
    font-family: var(--police-manuscrite);
    font-size: clamp(1.25rem, 1.9vw, 1.7rem);
    line-height: 1.0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(60, 25, 10, 0.55);
    pointer-events: none;
}
.atelier__coeur {
    display: block;
    margin-top: var(--espace-1);
    /* Le cœur est centré sous le bloc, pas aligné sur la dernière ligne. */
    text-align: center;
}
.atelier__coeur svg {
    width: 1.5em;
    height: 1.5em;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(60, 25, 10, 0.5));
}
.atelier__titre { font-size: var(--taille-xl); color: var(--bordeaux-profond); margin-bottom: var(--espace-2); }
.atelier__texte p { color: var(--texte-doux); margin-bottom: var(--espace-3); }
/*
 * Dessin au trait, posé en filigrane entre le texte et la citation.
 * `multiply` fait disparaître son fond blanc dans le crème de la section :
 * sans lui, il faudrait un PNG détouré. Purement décoratif, donc alt vide.
 */
.atelier__dessin img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.atelier__citation blockquote {
    font-family: var(--police-manuscrite);
    font-size: var(--taille-l);
    color: var(--bordeaux-profond);
    background: var(--peche);
    padding: var(--espace-4) var(--espace-3);
    border-radius: var(--rayon-s);
    margin: 0 0 0 auto;
    max-width: 320px;
    box-shadow: var(--ombre-carte);
    transform: rotate(-1.5deg);
}

/* — Bandeau promotionnel — */
/*
 * Deux photos, une à chaque extrémité, et une bande claire au centre pour le
 * texte : c'est la composition de la maquette. Une seule image étirée sur toute
 * la largeur ne la reproduit pas — le sujet finit au milieu, là où doit se
 * trouver l'offre.
 *
 * Chacune se fond vers le centre par un masque, ce qui évite tout bord net.
 */
.promotion {
    position: relative;
    isolation: isolate;
    background: var(--peche);
    overflow: hidden;
    /* 233 px relevés sur la maquette à 1440 px de large. */
    min-height: 233px;
    display: flex;
    align-items: center;
}
.promotion::before,
.promotion::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    /* Un quart de chaque côté : au-delà, la photo remonte sous l'offre. */
    width: 25%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}
.promotion::before {
    left: 0;
    background-image: url("/images/rendus/promo-gauche-760.webp");
    -webkit-mask-image: linear-gradient(to right, #000 52%, transparent 100%);
    mask-image: linear-gradient(to right, #000 52%, transparent 100%);
}
.promotion::after {
    right: 0;
    background-image: url("/images/rendus/promo-droite-760.webp");
    -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 100%);
    mask-image: linear-gradient(to left, #000 52%, transparent 100%);
}

.promotion__contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--espace-4);
    flex-wrap: wrap;
    width: 100%;
    padding-block: var(--espace-3);
    /* Le titre démarre à 230 px du bord sur la maquette : la citrouille occupe
       tout le premier sixième du bandeau. */
    padding-inline: clamp(var(--espace-3), 16vw, 230px) clamp(var(--espace-3), 4.5vw, 64px);
}
.promotion__titre {
    font-family: var(--police-manuscrite);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    /* Blanc sur la photo, comme la maquette : le titre est posé sur les
       citrouilles, hors du voile clair. */
    color: #fff;
    text-shadow: 0 2px 12px rgba(80, 30, 10, 0.55);
    margin: 0;
}
/*
 * L'échéance coiffe le « −15 % », et le détail se place à sa droite : c'est la
 * disposition de la maquette. Une grille nommée l'obtient sans rien changer au
 * balisage, qui garde son ordre de lecture naturel.
 */
.promotion__offre {
    display: grid;
    grid-template-areas:
        "echeance echeance"
        "remise   detail";
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: var(--espace-2);
    row-gap: 2px;
}
.promotion__echeance { grid-area: echeance; justify-self: center; }
.promotion__remise { grid-area: remise; }
.promotion__detail { grid-area: detail; }
.promotion__contenu { gap: var(--espace-3); }
.promotion__remise {
    font-family: var(--police-titre);
    font-weight: 700;
    /* Le « −15 % » domine le bandeau : 112 px de chiffre relevés sur la
       maquette, soit un corps d'environ 7 rem. */
    font-size: clamp(2.8rem, 6.4vw, 5.6rem);
    color: var(--bordeaux-vif);
    margin: 0;
    line-height: 0.92;
}
.promotion__remise span { font-size: 0.45em; }
.promotion__echeance,
.promotion__detail { font-size: var(--taille-s); color: var(--texte-doux); margin: 0; line-height: 1.35; }
.promotion__detail strong { color: var(--bordeaux-profond); }

/* — Avis — */
/*
 * Les avis défilent horizontalement en grand écran, et s'empilent en dessous :
 * une carte par ligne se lit mieux au pouce qu'un défilement latéral, et la
 * boutique n'en publie pas assez pour qu'un carrousel ait du sens.
 */
.avis {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: var(--espace-3);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.avis::-webkit-scrollbar { display: none; }

/* Un seul avis publié : il se centre au lieu de s'étirer sur toute la largeur. */
.avis--seul {
    grid-auto-columns: min(520px, 100%);
    justify-content: center;
}

.avis__carte {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: var(--espace-1);
    background: var(--blanc-chaud);
    border: 1px solid var(--creme-sombre);
    border-radius: var(--rayon-m);
    padding: var(--espace-3);
    text-align: center;
}
.avis__etoiles { color: #e8a020; margin: 0; letter-spacing: 0.1em; }
.avis__carte blockquote {
    margin: 0;
    font-size: var(--taille-s);
    line-height: 1.5;
    color: var(--texte-doux);
}
.avis__auteur { font-size: var(--taille-xs); font-weight: 600; margin: 0; }
.avis__produit {
    font-size: var(--taille-xs);
    color: var(--texte-doux);
    font-style: italic;
    margin: 0;
}
.avis__attente { color: var(--texte-doux); text-align: center; }

/* — Infolettre — */
.infolettre { background: var(--rose-tres-pale); }
.infolettre__contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--espace-4);
    flex-wrap: wrap;
    padding-block: var(--espace-4);
}
.infolettre__manuscrit {
    font-family: var(--police-manuscrite);
    font-size: var(--taille-l);
    color: var(--bordeaux-vif);
    margin: 0;
}
.infolettre__titre { font-size: var(--taille-m); color: var(--bordeaux-profond); }
.infolettre__texte p { font-size: var(--taille-s); color: var(--texte-doux); margin: var(--espace-1) 0 0; }
.infolettre__formulaire { display: flex; gap: var(--espace-1); }
.infolettre__formulaire input {
    padding: 0.75rem var(--espace-2);
    border: 1px solid var(--creme-sombre);
    border-radius: var(--rayon-rond);
    font: inherit;
    min-width: 240px;
}

/* — Pied de page — */
.pied { background: var(--bordeaux-profond); color: var(--texte-inverse); }
.pied__contenu {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
    gap: var(--espace-4);
    padding-block: var(--espace-6);
}
/* Double classe : entete.css, chargé après, repeignait le nom en encre sur le bordeaux. */
.logo__marque.logo__marque--pied { color: var(--texte-inverse); }
.pied__titre { font-family: var(--police-corps); font-size: var(--taille-s); margin-bottom: var(--espace-2); }
.pied__colonne ul { list-style: none; margin: 0; padding: 0; display: grid; }
/*
 * Les liens du pied sont espacés pour offrir une cible tactile confortable :
 * sur téléphone, 17 px de hauteur se rataient une fois sur deux.
 */
.pied__colonne a, .pied__reseaux a {
    display: inline-block;
    padding-block: 0.2rem;
    font-size: var(--taille-s);
    opacity: 0.85;
}
/*
 * Les cibles passent à 44 px sur les écrans tactiles seulement : à la souris,
 * ce même espacement étirerait le pied de page bien au-delà de la maquette.
 */
@media (pointer: coarse) {
    .pied__colonne a, .pied__reseaux a { padding-block: 0.7rem; }
}
.pied__colonne a:hover, .pied__reseaux a:hover { opacity: 1; text-decoration: underline; }
.pied__reseaux { display: flex; gap: var(--espace-2); margin-bottom: var(--espace-2); }
.pied__reseaux svg { width: 22px; height: 22px; }
.pied__marque p, .pied__colonne p { font-size: var(--taille-s); opacity: 0.85; }
.pied__garanties {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--espace-2);
    font-size: var(--taille-s);
    opacity: 0.9;
}
.pied__garanties li { display: flex; align-items: center; gap: var(--espace-2); }
.pied__icone { display: grid; place-items: center; flex-shrink: 0; }
.pied__icone svg { width: 20px; height: 20px; }
.pied__bas {
    display: flex;
    justify-content: space-between;
    gap: var(--espace-2);
    flex-wrap: wrap;
    padding-block: var(--espace-2);
    border-top: 1px solid var(--bordeaux-clair);
    font-size: var(--taille-xs);
    opacity: 0.8;
}
.pied__signature { font-family: var(--police-manuscrite); font-size: var(--taille-base); }

/* — Adaptation aux petits écrans — */
/*
 * Nombre de cartes visibles selon la largeur. Chaque palier vise une carte
 * d'au moins 180 px : en dessous, le nom se hache et le bouton casse.
 */
@media (max-width: 1400px) {
    .produits { grid-auto-columns: calc((100% - 5 * 12px) / 6); }
    .familles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (max-width: 1200px) {
    .produits { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
}

@media (max-width: 1000px) {
    .produits { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
}

@media (max-width: 820px) {
    .produits { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
}

@media (max-width: 1024px) {
    /*
     * La bannière garde sa disposition à toutes les tailles : texte à gauche,
     * photo à droite derrière son fondu. Empiler les deux ferait perdre le
     * cadrage de la maquette. Ce qui s'adapte, c'est la part de largeur prise
     * par chacun et la taille des textes.
     */
    .banniere { min-height: 460px; }
    .banniere__image { inset: 0 0 0 38%; }
    .banniere__texte { width: 60%; padding-inline: var(--espace-4); }
    /*
     * Sous cette largeur, il n'y a plus d'espace libre entre le texte et la
     * photo : la note quitte le positionnement absolu et reprend sa place dans
     * le flux, sous le bouton. Elle reste visible, sans rien recouvrir.
     */
    .banniere__emotion {
        position: relative;
        margin-top: var(--espace-3);
        top: 20px;
        left: -20%;
        transform-origin: left center;
    }
    
    .pastille { top: var(--espace-2); right: var(--espace-2); font-size: var(--taille-base); }
    /* Les avis s'empilent : un par ligne, dans l'ordre de lecture. */
    .avis {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow-x: visible;
    }
    .avis--seul { grid-auto-columns: auto; }
    /*
     * Même principe que la bannière : plutôt que d'empiler photo, texte et
     * citation sur 970 px, la photo devient le fond de la section et le texte
     * se pose dessus. Un fond remonte en dégradé depuis le bas pour garantir
     * la lecture, en laissant respirer le haut de l'image.
     */
    .atelier {
        position: relative;
        /*
         * Grille en deux zones : le texte occupe toute la largeur, puis le
         * dessin et la citation se partagent la rangée du bas — le même
         * voisinage qu'en grand écran.
         */
        display: grid;
        grid-template-columns: 0.75fr 1.25fr;
        grid-template-areas:
            "texte  texte"
            "dessin citation";
        min-height: 620px;
        padding-block: 0;
        isolation: isolate;
    }

    /*
     * Un seul fond pour toute la moitié basse, posé par-dessus la photo.
     * Le donner élément par élément laissait réapparaître des bandes d'image
     * entre eux : la grille répartit l'espace libre où elle veut.
     */
    .atelier::after {
        content: "";
        position: absolute;
        inset: 190px 0 0 0;
        z-index: -1;
        background: linear-gradient(to bottom,
            rgba(253, 244, 237, 0) 0%,
            rgba(253, 244, 237, 0.96) 9%,
            var(--creme) 16%);
        pointer-events: none;
    }
    .atelier__image {
        position: absolute;
        inset: 0;
        z-index: -2;
    }
    .atelier__image img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        /* Cadrage haut : c'est la coulée et les verres qui racontent la scène,
           et ils occupent le tiers supérieur de la photo. */
        object-position: bottom 8%;
        border-radius: 50px;
    }
    /* La note remonte dans la partie de la photo restée visible. */
    .atelier__manuscrit {
        top: 80px;
        left: 15%;
        font-size: 35px;
        transform: rotate(-4deg);
    }
    .atelier__texte {
        grid-area: texte;
        position: relative;
        margin-top: 230px;
        padding: var(--espace-6) var(--espace-3) var(--espace-3);
    }
    /*
     * Dessin et citation partagent le même fond, qui prolonge celui du texte :
     * sans cela, une bande de photo réapparaissait entre les deux rangées.
     */
    .atelier__citation {
        grid-area: citation;
        position: relative;
        display: flex;
        align-items: center;
        padding: 0 var(--espace-3) var(--espace-4) 0;
    }
    .atelier__citation blockquote { max-width: none; margin: 0; }

    /* Le dessin garde sa place auprès de la citation, comme en grand écran. */
    .atelier__dessin {
        grid-area: dessin;
        display: flex;
        align-items: center;
        padding: 0 var(--espace-1) var(--espace-4) var(--espace-3);
    }
    .pied__contenu { grid-template-columns: repeat(2, 1fr); }
    /*
     * Deux colonnes : le trait ne sépare que les paires, pas les rangées.
     * L'annulation reprend le sélecteur « + » de la règle de base : une règle
     * de spécificité moindre ne l'aurait pas emporté, et un trait serait resté
     * au début de la seconde rangée.
     */
    .reassurance__liste { grid-template-columns: repeat(2, 1fr); }
    .reassurance__element + .reassurance__element { border-left: 0; }
    .reassurance__element { padding-block: var(--espace-2); }
    .reassurance__element:nth-child(2n) { border-left: 1px solid var(--creme-sombre); }

}

/* Aucune animation pour qui demande à ne pas en voir. */
@media (prefers-reduced-motion: reduce) {
    .bouton { transition: none; }
}

@media (max-width: 768px) {
    .banniere { min-height: 420px; }
    /* La photo recule encore : sous cette largeur, c'est le texte qui prime. */
    .banniere__image { inset: 0 0 0 46%; }
    .banniere__texte { width: 68%; }
    /* Fondu plus court, pour que la zone de lecture reste claire. */
    .banniere__image img {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 16%, #000 40%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 16%, #000 40%);
    }
}

@media (max-width: 560px) {
    .banniere { min-height: 380px; }
    .banniere__image { inset: 0 0 0 48%; }
    /* La bougie de la photo de Noël est dans la partie droite de l'image
       (vers 70 %) ; le tiers gauche est transparent. */
    .banniere__image img { object-position: 70% 62%; }
    .banniere__texte {
        width: 74%;
        padding-inline: var(--espace-3);
        padding-block: var(--espace-4);
        /* Fondu plus court qu'en grand écran : le bloc occupe déjà les trois
           quarts de la largeur, la photo a besoin du reste pour exister. */
        background: linear-gradient(to right,
            var(--rose-pale) 0%,
            rgba(253, 227, 218, 0.95) 48%,
            rgba(253, 227, 218, 0) 92%);
    }


    /* La pastille recouvrait le titre : plus de place pour elle à cette
       largeur. */
    .pastille { display: none; }

    /* Le libellé du bouton tient sur une ligne : texte un peu plus petit,
       marges réduites ; il peut déborder du bloc sur la photo, jamais de
       l'écran (≈ 300 px pour « Découvrir la collection automne »). */
    .banniere .bouton--principal {
        width: max-content;
        max-width: calc(100vw - 2 * var(--espace-3));
        white-space: nowrap;
        padding-inline: var(--espace-2);
        font-size: 0.875rem;
    }

    /* Le bandeau d'annonce occupait trois lignes : une seule promesse suffit. */
    .annonce__contenu > :not(:first-child):not(:nth-child(2)) { display: none; }

    /* Les tirets décoratifs poussaient le surtitre à se couper mal. */
    .surtitre { display: block; }
    .surtitre::before, .surtitre::after { content: none; }

    /* Le titre de section et son bouton se superposaient en colonnes étroites. */
    .section__entete { grid-template-columns: 1fr; justify-items: center; }
    .section__entete > :first-child { grid-column: 1; }
    .section__entete > .bouton { grid-column: 1; justify-self: center; }
    .section__titre { font-size: var(--taille-base); }
    /*
     * Un engagement par ligne : à deux colonnes, « Cire de soja naturelle » se
     * coupait sur quatre lignes et les blocs se chevauchaient. Les traits
     * passent à l'horizontale, seule orientation qui sépare encore quelque
     * chose.
     */
    .reassurance__liste { grid-template-columns: 1fr; }
    .reassurance__element {
        padding-inline: 0;
        padding-block: 0.7rem;
    }
    .reassurance__element:nth-child(2n) { border-left: 0; }
    .reassurance__element + .reassurance__element {
        border-left: 0;
        border-top: 1px solid var(--creme-sombre);
    }

    .familles { grid-template-columns: repeat(2, 1fr); }
    /*
     * Une carte et trois quarts : à 2,4 cartes, chacune tombait à 133 px et
     * « Voir le produit » cassait sur deux lignes. La carte coupée à droite
     * suffit à signaler qu'on peut faire défiler.
     */
    .produits { grid-auto-columns: calc((100% - 12px) / 1.75); }
    .produits__fleche { display: none; }
    /* Bouton plus compact : à cette largeur, chaque pixel de marge compte. */
    .carte-produit__action { padding-inline: var(--espace-2); }
    .promotion__contenu { flex-direction: column; text-align: center; }
    .promotion__offre { justify-content: center; }
    .pied__contenu { grid-template-columns: 1fr; }
    .infolettre__formulaire { width: 100%; }
    .infolettre__formulaire input { min-width: 0; flex: 1; }
}

.infolettre__formulaire { flex-wrap: wrap; }
.infolettre__accord, .infolettre__formulaire [role="status"] { flex-basis: 100%; font-size: var(--taille-s); }
.infolettre__accord input[type="checkbox"] { flex: none; width: 18px; height: 18px; min-width: 18px; padding: 0; margin-right: var(--espace-1); }
.infolettre__formulaire button:disabled { opacity: .65; cursor: not-allowed; }

/* Sélection de l’accueil : cartes compactes et aperçu de la suivante. */
.section_bougie .section__entete {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 20px;
    padding-inline: var(--marge-mobile);
}
.section_bougie .section__entete > :first-child,
.section_bougie .section__entete > .bouton {
    grid-column: 1;
    justify-self: center;
    min-width: 0;
}
.section_bougie .section__entete > .bouton {
    white-space: nowrap;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 22px;
    border-width: 1px;
    background: var(--blanc-chaud);
}
.section_bougie .section__entete > .bouton:hover {
    background: var(--bordeaux-vif);
}
.section_bougie .produits {
    grid-auto-columns: calc((100% - 80px) / 4.6);
    gap: 24px;
    padding-block: 6px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--bordeaux-clair) transparent;
}
.section_bougie .produits::-webkit-scrollbar { display: block; height: 5px; }
.section_bougie .produits::-webkit-scrollbar-thumb {
    background: var(--bordeaux-clair);
    border-radius: 8px;
}
.section_bougie .carte-produit { min-width: 0; }
.section_bougie .carte-produit__titre {
    display: block;
    overflow: visible;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 3em;
    margin-top: 16px;
}
.section_bougie .carte-produit__prix {
    margin-top: auto;
    padding-top: 8px;
    color: var(--bordeaux-profond);
    font-size: 1.125rem;
    font-weight: 700;
}
.section_bougie .carte-produit__action { margin-top: 8px; }
@media (max-width: 1000px) {
    .section_bougie .produits { grid-auto-columns: calc((100% - 40px) / 2.8); gap: 20px; }
}
@media (max-width: 600px) {
    .section_bougie .produits { grid-auto-columns: 70%; gap: 14px; }
}

/* Quatre portes d’entrée permanentes dans la boutique. */
.section_famille > .bouton { margin-top: 24px; }
.section_famille .familles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.section_famille .famille { aspect-ratio: auto; padding: 8px 8px 20px; }
.section_famille .famille img { height: auto; aspect-ratio: 6 / 5; }
.section_famille .famille__lien { flex: none; min-height: 64px; padding: 12px 8px; font-size: 1.125rem; text-decoration: none; }
.famille__description { margin: 0; padding: 0 8px; color: var(--texte-doux); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 1000px) {
    .section_famille .familles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
    .section_famille .famille__lien { font-size: 1rem; gap: 6px; padding-inline: 0; }
    .section_famille .famille__fleche { width: 28px; height: 28px; }
    .famille__description { padding-inline: 0; font-size: 0.8rem; }
    .section_bougie .carte-produit__titre { font-size: 0.9375rem; margin-top: 12px; }
}

/* — Promotions (commun.js : ruban « Promo », prix barré) — */
.ruban-produit--promo {
    z-index: 4;
    top: var(--espace-1);
    left: var(--espace-1);
    padding: 5px 12px;
    border-radius: var(--rayon-rond);
    background: var(--rose-lisible);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgb(0 0 0 / 14%);
}
.prix-barre {
    margin-right: 4px;
    font-weight: 400;
    font-size: 0.85em;
    color: var(--texte-doux);
    text-decoration-thickness: 1.5px;
}
.prix-barre-actuel { color: var(--rose-lisible); font-weight: 700; }

/* — Les bougies gourmandes : mosaïque 1 + 4, sans animation (accueil.js) — */
.gourmandes { text-align: center; }
.gourmandes__manuscrit {
    margin: 0 0 var(--espace-1);
    font-family: var(--police-manuscrite);
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--rose-bonheur);
}
.gourmandes__titre { margin-top: 0; }
.gourmandes__mosaique {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--espace-2);
    margin: var(--espace-4) 0;
    padding: 0;
    list-style: none;
    text-align: left;
}
.gourmande { min-width: 0; }
.gourmande--vedette { grid-row: 1 / span 2; }
.gourmande__lien {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--rayon-l);
    background: var(--creme-sombre);
    color: var(--texte-inverse);
}
.gourmande__photo { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gourmande--vedette .gourmande__photo { aspect-ratio: auto; min-height: 100%; }
.gourmande__legende {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px var(--espace-1);
    padding: var(--espace-4) var(--espace-2) var(--espace-2);
    background: linear-gradient(to top, rgba(54, 10, 16, 0.78), rgba(54, 10, 16, 0));
}
.gourmande__nom { font-family: var(--police-titre); font-size: var(--taille-base); font-weight: 700; }
.gourmande--vedette .gourmande__nom { font-size: var(--taille-xl); }
.gourmande__prix { font-size: var(--taille-s); font-weight: 600; color: var(--peche); }
.gourmande__lien:focus-visible { outline: 3px solid var(--rose-vif); outline-offset: 3px; }
.gourmande__lien:hover .gourmande__nom { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
    .gourmandes__mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gourmande--vedette { grid-column: 1 / -1; grid-row: auto; }
    .gourmande--vedette .gourmande__photo { aspect-ratio: 4 / 3; }
    .gourmande__nom { font-size: var(--taille-s); }
    .gourmande--vedette .gourmande__nom { font-size: var(--taille-l); }
    .gourmande__legende { flex-direction: column; align-items: flex-start; padding: var(--espace-3) var(--espace-1) var(--espace-1); }
    .gourmande--vedette .gourmande__legende { flex-direction: row; align-items: baseline; }
}

/* Version discrète (24 octobre) : mosaïque resserrée, sans voile sur les
   photos ; nom et prix dans une petite étiquette crème. */
.gourmandes__mosaique { max-width: 920px; margin: var(--espace-3) auto var(--espace-4); gap: var(--espace-1); }
.gourmande__lien { border-radius: var(--rayon-m); }
.gourmande__legende {
    inset: auto auto var(--espace-1) var(--espace-1);
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    max-width: calc(100% - 2 * var(--espace-1));
    padding: 4px 10px;
    border-radius: var(--rayon-rond);
    background: rgb(255 254 251 / 92%);
    box-shadow: 0 1px 6px rgb(100 18 28 / 12%);
    color: var(--bordeaux-profond);
}
.gourmande__nom,
.gourmande--vedette .gourmande__nom { font-family: var(--police-corps); font-size: var(--taille-xs); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gourmande__prix { font-size: var(--taille-xs); font-weight: 600; color: var(--texte-doux); white-space: nowrap; }
.gourmande__lien:hover .gourmande__nom { text-decoration: none; }
.gourmande__lien:hover .gourmande__photo { filter: brightness(1.04); }
@media (max-width: 760px) {
    .gourmande__legende,
    .gourmande--vedette .gourmande__legende { flex-direction: row; align-items: baseline; padding: 3px 8px; }
}
@media (max-width: 760px) {
    /* Sur téléphone, les petites tuiles ne gardent que le nom : le prix est sur la fiche. */
    .gourmande:not(.gourmande--vedette) .gourmande__prix { display: none; }
    .gourmande__legende { flex-wrap: nowrap; }
}

/* entete.css */
/*
 * En-tête du site — commun à toutes les pages du frontend et aux pages
 * relayées du compte client (serveur/controllers/passerelle.js).
 * Sorti d'accueil.css le 16 octobre 2026 pour n'exister qu'à un endroit.
 * Comportement du menu mobile : scripts/menu.js.
 */

/* — En-tête — */
.entete {
    background: var(--blanc-chaud);
    border-bottom: 1px solid var(--creme-sombre);
    position: sticky;
    top: 0;
    z-index: 50;
}

.entete__contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--espace-3);
    /* L'emblème fait 58 px : ce padding ramène l'en-tête aux 79 px de la
       maquette. */
    padding-block: 0.65rem;
}
/*
 * L'emblème est un PNG noir sur fond transparent. On l'utilise en masque plutôt
 * qu'en image : la couleur vient alors du CSS, ce qui permet le bordeaux dans
 * l'en-tête et le crème sur le pied de page, à partir du même fichier.
 */
.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--espace-1);
}
/* Sur la maquette, l'emblème domine le nom : il occupe presque toute la hauteur
   de l'en-tête, le texte reste plus discret à côté. */
.logo__embleme {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    /* Même encre que le nom : sur la maquette, emblème et texte sont du même
       gris-noir, c'est ce qui les fait lire comme un seul logo. */
    background: var(--encre);
    -webkit-mask: url("/images/rendus/logo-masque-120.webp") center / contain no-repeat;
    mask: url("/images/rendus/logo-masque-120.webp") center / contain no-repeat;
}
.logo__embleme--pied { background: var(--texte-inverse); }
.logo--pied { margin: 0 0 var(--espace-1); }

/*
 * Le nom de la marque est gris-noir dans l'en-tête, pas bordeaux : relevé sur
 * la maquette, où les pixels du texte sont neutres. Il passe au crème sur le
 * pied de page, où le fond est sombre.
 * Taille relevée : 312 × 46 px à 1440, soit environ 2,1 rem en Sacramento.
 */
.logo__marque {
    font-family: var(--police-signature);
    font-size: 2.1rem;
    font-weight: 700;
    /* Qwitcher Grypen a de longues hampes : un interligne serré ramène le bloc
       à la hauteur relevée sur la maquette sans rogner les lettres. */
    line-height: 0.82;
    color: var(--encre);
}
.navigation__liste {
    display: flex;
    gap: var(--espace-3);
    list-style: none;
    margin: 0;
    padding: 0;
}
.navigation__lien {
    font-size: var(--taille-s);
    /* Sept entrées depuis l'ajout d'« Événements » : sans cela, « Notre
       histoire » passe sur deux lignes juste au-dessus de 1025 px. */
    white-space: nowrap;
    padding-block: var(--espace-1);
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition);
}
.navigation__lien:hover,
.navigation__lien--actif { border-bottom-color: var(--bordeaux-vif); }
/* Entre 1025 et 1200 px, l'écart d'origine ne laisse plus tenir les sept
   entrées entre le logo et les actions. */
@media (min-width: 1025px) and (max-width: 1200px) {
    .navigation__liste { gap: var(--espace-2); }
}

/* — Menu sur petit écran — */
/*
 * Le bouton n'existe qu'en dessous de 1025 px ; au-dessus, la navigation est
 * affichée en clair et ce bouton n'aurait rien à ouvrir.
 */
.bouton-menu {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--rayon-rond);
    background: var(--creme);
    color: var(--bordeaux-profond);
    cursor: pointer;
    place-items: center;
}
.bouton-menu__barres,
.bouton-menu__barres::before,
.bouton-menu__barres::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.bouton-menu__barres::before,
.bouton-menu__barres::after {
    content: "";
    position: relative;
}
.bouton-menu__barres::before { top: -6px; }
.bouton-menu__barres::after { top: 4px; }

/* Ouvert, les trois barres deviennent une croix. */
.bouton-menu[aria-expanded="true"] .bouton-menu__barres { background: transparent; }
.bouton-menu[aria-expanded="true"] .bouton-menu__barres::before { transform: translateY(6px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] .bouton-menu__barres::after { transform: translateY(-4px) rotate(-45deg); }

.voile {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(100, 18, 28, 0.35);
}

.sans-defilement { overflow: hidden; }

.entete__actions { display: flex; gap: var(--espace-2); align-items: center; }
.action {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rayon-rond);
    background: var(--creme);
    color: var(--bordeaux-profond);
    transition: background var(--transition);
}
.action:hover { background: var(--rose-pale); }
.action--panier { position: relative; }
.action__compteur {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: var(--rayon-rond);
    background: var(--bordeaux-vif);
    color: var(--texte-inverse);
    font-size: var(--taille-xs);
    display: grid;
    place-items: center;
}
/* Un article vient d'entrer dans le panier (produit.js) : l'icône saute et
   la pastille grossit un instant. */
.action--ajout { animation: panier-saut 600ms ease; }
.action--ajout .action__compteur { animation: panier-pastille 600ms ease; }
@keyframes panier-saut {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
    55% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
}
@keyframes panier-pastille {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
    .action--ajout, .action--ajout .action__compteur { animation: none; }
}

@media (max-width: 1024px) {
    /* La navigation devient un panneau, ouvert par le bouton. Elle n'est jamais
       simplement masquée : sans elle, le site n'est plus navigable. */
    .bouton-menu { display: grid; }
    .navigation {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 45;
        width: min(320px, 82vw);
        padding: var(--espace-8) var(--espace-4) var(--espace-4);
        background: var(--blanc-chaud);
        box-shadow: var(--ombre-flottante);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }
    .navigation--ouverte { transform: translateX(0); }
    .navigation__liste { flex-direction: column; gap: 0; }
    .navigation__lien {
        display: block;
        padding: var(--espace-2) 0;
        font-size: var(--taille-m);
        border-bottom: 1px solid var(--creme-sombre);
    }
    .navigation__lien:hover,
    .navigation__lien--actif { border-bottom-color: var(--bordeaux-vif); }
}

@media (max-width: 768px) {
    /* Le nom en entier casse sur quatre lignes à côté de l'emblème : on ne
       garde que l'emblème, le nom reste lisible par l'aria-label du lien. */
    .logo__marque { display: none; }
    .logo__embleme { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .navigation,
    .bouton-menu__barres,
    .bouton-menu__barres::before,
    .bouton-menu__barres::after { transition: none; }
}

/* — Panneau du menu mobile : refonte du 16 octobre —
   Liens en typographie titre, flèche, page active marquée, croix visible
   au-dessus du panneau, raccourcis et signature en bas (posés par menu.js). */
@media (max-width: 1024px) {
    .bouton-menu { position: relative; z-index: 46; }
    .bouton-menu[aria-expanded="true"] { background: var(--rose-pale); }
    .navigation {
        display: flex;
        flex-direction: column;
        width: min(340px, 86vw);
        padding: 5.5rem var(--espace-4) var(--espace-4);
        border-radius: var(--rayon-l) 0 0 var(--rayon-l);
        background:
            radial-gradient(circle at 100% 0, var(--rose-tres-pale) 0, transparent 55%),
            var(--blanc-chaud);
    }
    .navigation::before {
        content: "Bienvenue chez Galou";
        position: absolute;
        top: 1.6rem;
        left: var(--espace-4);
        font-family: var(--police-manuscrite);
        font-size: 1.7rem;
        font-weight: 600;
        color: var(--bordeaux);
    }
    .navigation__liste { gap: 0; }
    .navigation__lien {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.95rem 0;
        border-bottom: 1px dashed var(--creme-sombre);
        font-family: var(--police-titre);
        font-size: 1.3rem;
        font-weight: 500;
        color: var(--bordeaux-profond);
    }
    .navigation__lien::after {
        content: "›";
        font-family: var(--police-corps);
        font-size: 1.4rem;
        color: var(--bordeaux-clair);
        transition: transform var(--transition);
    }
    .navigation__lien:hover::after { transform: translateX(3px); }
    .navigation__lien:hover,
    .navigation__lien--actif { border-bottom-color: var(--creme-sombre); color: var(--bordeaux-vif); }
    .navigation__lien--actif::before {
        content: "";
        width: 8px;
        height: 8px;
        margin-right: var(--espace-1);
        border-radius: 50%;
        background: var(--rose-vif);
    }
    .navigation__lien--actif { justify-content: flex-start; }
    .navigation__lien--actif::after { margin-left: auto; }
    .navigation a:focus-visible { outline: 3px solid var(--rose-vif); outline-offset: 2px; border-radius: 6px; }

    .navigation__pied { margin-top: auto; padding-top: var(--espace-4); }
    .navigation__raccourcis {
        display: flex;
        flex-wrap: wrap;
        gap: var(--espace-1);
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .navigation__raccourci {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 0 var(--espace-2);
        border-radius: var(--rayon-rond);
        background: var(--creme);
        font-size: var(--taille-s);
        font-weight: 600;
        color: var(--bordeaux-profond);
    }
    .navigation__raccourci:hover { background: var(--rose-pale); }
    .navigation__signature {
        margin: var(--espace-3) 0 0;
        font-family: var(--police-manuscrite);
        font-size: 1.35rem;
        color: var(--texte-doux);
    }

    /* Entrée douce des liens à l'ouverture. */
    .navigation--ouverte .navigation__liste li { animation: menu-entree 320ms ease both; }
    .navigation--ouverte .navigation__liste li:nth-child(2) { animation-delay: 30ms; }
    .navigation--ouverte .navigation__liste li:nth-child(3) { animation-delay: 60ms; }
    .navigation--ouverte .navigation__liste li:nth-child(4) { animation-delay: 90ms; }
    .navigation--ouverte .navigation__liste li:nth-child(5) { animation-delay: 120ms; }
    .navigation--ouverte .navigation__liste li:nth-child(6) { animation-delay: 150ms; }
    .navigation--ouverte .navigation__liste li:nth-child(7) { animation-delay: 180ms; }
}
@media (min-width: 1025px) {
    .navigation__pied { display: none; }
}
@keyframes menu-entree {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .navigation--ouverte .navigation__liste li { animation: none; }
}

/* Croix du panneau ouvert : calée en haut à droite du panneau (le bouton,
   placé entre le logo et les icônes, tombait au milieu du titre), et
   dessinée par deux traits centrés plutôt que par les barres décalées. */
@media (max-width: 1024px) {
    .bouton-menu[aria-expanded="true"] {
        position: fixed;
        top: 1.2rem;
        right: 1.2rem;
        width: 42px;
        height: 42px;
        background: var(--blanc-chaud);
        box-shadow: 0 0 0 1px var(--creme-sombre);
    }
    .bouton-menu[aria-expanded="true"] .bouton-menu__barres { position: relative; width: 18px; height: 18px; background: transparent; }
    .bouton-menu[aria-expanded="true"] .bouton-menu__barres::before,
    .bouton-menu[aria-expanded="true"] .bouton-menu__barres::after {
        position: absolute;
        top: 50%;
        left: 0;
        width: 18px;
        height: 2px;
        margin-top: -1px;
    }
    .bouton-menu[aria-expanded="true"] .bouton-menu__barres::before { transform: rotate(45deg); }
    .bouton-menu[aria-expanded="true"] .bouton-menu__barres::after { transform: rotate(-45deg); }
    /* Le titre manuscrit laisse la place à la croix. */
    .navigation::before { right: 4.5rem; }
}
/* Le panneau reçoit le focus à l'ouverture (menu.js) : pas de contour pour lui. */
.navigation:focus { outline: none; }

/* Zone cliquable élargie des liens du menu (grand écran) : seul le mot était
   cliquable, l'espace entre deux liens ne l'était pas. Un pseudo-élément
   invisible couvre la moitié de l'écart de chaque côté et la hauteur de
   l'en-tête ; l'apparence (texte, soulignement) ne change pas. */
@media (min-width: 1025px) {
    .navigation__lien { position: relative; }
    .navigation__lien::before {
        content: "";
        position: absolute;
        inset: -14px calc(var(--espace-3) / -2);
    }
}
@media (min-width: 1025px) and (max-width: 1200px) {
    .navigation__lien::before { inset: -14px calc(var(--espace-2) / -2); }
}

/* live.css */
/*
 * Page /live : le live Facebook de Galou et ses produits (live.js).
 *
 * Un « plateau » sombre, comme une régie télé : la vidéo au centre, les
 * produits dans une colonne sobre à côté. Le rouge vif est réservé au direct
 * (pastille, produit du moment) ; les boutons d'achat gardent le bordeaux.
 */
.live {
    --live-fond: #160e10;
    --live-panneau: #21161a;
    --live-panneau-clair: #2b1e22;
    --live-trait: rgb(255 255 255 / 9%);
    --live-texte: #f7efea;
    --live-doux: #b9a7a2;
    --live-direct: #e5243b;
    --live-or: #e9c48f;
}

.live__plateau {
    background:
        radial-gradient(70rem 30rem at 15% -10%, rgb(140 14 31 / 45%), transparent 70%),
        var(--live-fond);
    color: var(--live-texte);
}
.live__plateau-contenu { padding-block: 2.25rem 3rem; }

/* — En-tête — */
.live__entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.live__surtitre { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--live-doux); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.live__pastille {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    background: var(--live-direct);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}
.live__pastille::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #fff; animation: live-battement 1.4s ease-in-out infinite; }
.live__pastille--replay { background: rgb(255 255 255 / 16%); }
.live__pastille--replay::before { display: none; }
@keyframes live-battement { 50% { opacity: 0.25; } }
.live__titre { margin: 0.35rem 0 0.4rem; font-family: var(--police-titre); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.05; color: #fff; }
.live__intro { max-width: 38rem; margin: 0; color: var(--live-doux); }
.live__intro a { color: var(--live-texte); }

.live__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.live__actions[hidden] { display: none; }
.live__lien {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0 1rem;
    border: 1px solid var(--live-trait);
    border-radius: 999px;
    background: rgb(255 255 255 / 6%);
    color: var(--live-texte);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
}
.live__lien:hover { background: rgb(255 255 255 / 13%); }
.live__lien--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.live__lien--facebook:hover { background: #166ad8; }
.live__compteur { min-width: 1.35rem; padding: 0 0.35rem; border-radius: 999px; background: var(--texte-inverse); color: var(--bordeaux-profond); font-size: 0.75rem; font-weight: 800; text-align: center; line-height: 1.35rem; }

/* — Scène : vidéo et produits — */
.live__scene {
    --hauteur: min(78vh, 46rem);
    display: grid;
    grid-template-columns: min(100%, calc(var(--hauteur) * 9 / 16)) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}
.live__scene[hidden] { display: none; }
.live__scene--horizontal { grid-template-columns: minmax(0, 1.9fr) minmax(19rem, 1fr); }

/* La vidéo : 9:16 pour un live filmé au téléphone, 16:9 sinon. */
.live__video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 0 0 1px var(--live-trait), 0 30px 60px rgb(0 0 0 / 45%);
}
.live__scene--horizontal .live__video { width: 100%; aspect-ratio: 16 / 9; }
/* Lecteur à la taille que lui donne Facebook (ou nos attributs pour le
   lecteur simple), jamais étiré en CSS (la doc Facebook le déconseille) :
   on le centre seulement dans le cadre. */
.live__video > iframe { position: absolute; inset: 0; margin: auto; max-width: none; }

.live__porte {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.6rem;
    padding: 1.5rem;
    text-align: center;
    background: radial-gradient(circle at 50% 40%, #3a2328, #0d0809 75%);
}
.live__lecture {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    padding-left: 0.25rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--bordeaux-profond);
    box-shadow: 0 0 0 10px rgb(255 255 255 / 10%);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.live__lecture:hover, .live__lecture:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 14px rgb(255 255 255 / 14%); }
.live__porte-titre { margin: 0.6rem 0 0; font-family: var(--police-titre); font-size: 1.35rem; font-weight: 700; color: #fff; }
.live__porte-note { max-width: 17rem; margin: 0; color: var(--live-doux); font-size: 0.78rem; line-height: 1.5; }
.live__porte-note a { color: var(--live-texte); }
@keyframes live-entree { from { transform: translateY(-6px); opacity: 0; } }

/* — En-tête caché au défilement : il ne reste que le panier — */
/* Pas de « transform » ici : il emporterait le menu du téléphone (en position
   fixe dans l'en-tête), qui dépasserait alors à droite de la page. */
.entete { transition: top 260ms ease; }
.live-defile .entete { top: -7rem; }
/* Caché, il reste « collé » en haut : Safari (iPhone) reprend sa couleur
   pour la zone de l'heure, et la choisit dès le début du défilement. Il
   passe donc tout de suite au sombre du plateau en remontant, et redevient
   blanc dès qu'il redescend. */
.live-defile .entete { background: #160e10; }
/* Le menu du téléphone, fermé, reste un panneau blanc fixé en haut de
   l'écran (décalé hors de la vue) : Safari reprendrait aussi sa couleur.
   Fermé et pendant le défilement, il est vraiment caché. */
.live-defile .navigation:not(.navigation--ouverte) { visibility: hidden; }
html:has(.live) { overflow-x: clip; }
/* Safari (iPhone) colore le haut et le bas de l'écran avec le fond de la
   page : sur /live, celui du plateau sombre, pas le crème du site. */
html:has(.live), body:has(.live) { background: #160e10; }
.live__panier-flottant {
    position: fixed;
    top: calc(0.75rem + env(safe-area-inset-top));
    right: 1rem;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.6rem 0.55rem 0.9rem;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 999px;
    background: rgb(18 11 13 / 88%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
}
.live-defile.live-panier-hors-vue .live__panier-flottant { opacity: 1; pointer-events: auto; transform: none; }
/* Téléphone : seulement l'icône et le nombre, pour cacher le moins possible de la vidéo. */
@media (max-width: 900px) {
    .live__panier-flottant { padding: 0.45rem 0.5rem; gap: 0.35rem; }
    .live__panier-flottant-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.live__panier-flottant-compteur { min-width: 1.6rem; padding: 0 0.4rem; border-radius: 999px; background: var(--live-direct); color: #fff; font-size: 0.8rem; line-height: 1.6rem; text-align: center; }

.live-prix-barre { color: var(--live-doux); font-size: 0.8em; font-weight: 500; }
.live-promo { display: inline-block; padding: 0.05rem 0.4rem; border-radius: 6px; background: #1f7a4d; color: #fff; font-size: 0.72rem; font-weight: 800; vertical-align: 0.15em; letter-spacing: 0.02em; }
.live-vitrine__promo {
    display: grid;
    gap: 0.1rem;
    width: fit-content;
    margin: 0;
    padding: 0.55rem 0.9rem 0.55rem 2.6rem;
    border: 1px dashed rgb(74 222 128 / 55%);
    border-radius: 12px;
    background: rgb(31 122 77 / 22%) no-repeat 0.85rem 50% / 1.15rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8ZM7.5 7.5h.01'/%3E%3C/svg%3E");
    color: #c9f2d8;
    font-size: 0.8rem;
}
.live-vitrine__promo strong { color: #fff; font-size: 0.92rem; }
.live-vitrine__prix .live-promo { font-size: 0.85rem; vertical-align: 0.3em; }

/* — Colonne de droite : vitrine du produit présenté, puis onglets — */
.live__cote { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.live__vitrine { display: none; }
@media (min-width: 901px) {
    /* Sans vitrine : la colonne prend la hauteur de la vidéo, sans la pousser. */
    .live__scene:not(.live__scene--vitrine) .live__cote { align-self: stretch; height: 0; min-height: 100%; }
    .live__cote .live__rail { flex: 1; min-height: 0; max-height: none; }
    /* Avec vitrine : la colonne prend la place qu'il faut, les commentaires
       gardent toujours une zone lisible. */
    .live__scene--vitrine .live__cote { align-self: start; }
    .live__scene--vitrine .live__rail { flex: none; }
    .live__scene--vitrine .live__onglets { display: none; }
    .live__scene--vitrine .live__commentaires { flex: none; height: clamp(7rem, calc(100vh - 40rem), 15rem); }
    .live__scene--vitrine .live__discussion::before { content: 'Commentaires'; padding: 0.9rem 1rem 0.2rem; color: #fff; font-size: 0.92rem; font-weight: 700; }
    .live__cote .live__discussion { min-height: 0; }
    /* Les produits sont dans la vitrine : le bloc du bas ne montre que les commentaires. */
    .live__scene--vitrine [data-live-onglet="produits"],
    .live__scene--vitrine [data-live-panneau="produits"] { display: none; }
    .live__scene--vitrine .live__onglet { cursor: default; }
    /* Vidéo horizontale : la vitrine passe sous la vidéo, la liste garde toute la hauteur. */
    .live__scene--horizontal .live__cote { display: contents; }
    .live__scene--horizontal .live__video { grid-area: 1 / 1; }
    .live__scene--horizontal .live__vitrine { grid-area: 2 / 1; }
    .live__scene--horizontal .live__rail { grid-area: 1 / 2 / span 2; align-self: stretch; height: 0; min-height: 100%; }
    .live__scene--horizontal.live__scene--vitrine .live__commentaires { flex: 1; height: auto; min-height: 0; }
}
.live__vitrine--entree { animation: live-vitrine 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes live-vitrine { from { opacity: 0; transform: translateY(10px); } }
.live-vitrine__visuel { position: relative; align-self: start; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #fff; }
.live-vitrine__visuel img { width: 100%; height: 100%; object-fit: contain; }
.live-vitrine__visuel--detouree { background: radial-gradient(circle at 50% 55%, rgb(255 255 255 / 12%), transparent 70%); }
.live-vitrine__visuel--detouree img { padding: 0.5rem; box-sizing: border-box; object-fit: contain; filter: drop-shadow(0 14px 22px rgb(0 0 0 / 45%)); }
.live-detouree { object-fit: contain !important; background: transparent !important; }
.live-vitrine__numero {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    background: var(--live-direct);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.live-vitrine__corps { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; padding-top: 0.2rem; }
.live-vitrine__etiquette { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: #ff8a98; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.live-vitrine__etiquette::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--live-direct); box-shadow: 0 0 0 4px rgb(229 36 59 / 25%); animation: lg-pouls 1.4s ease-in-out infinite; }
@keyframes lg-pouls { 50% { opacity: 0.35; } }
.live-vitrine__nom { margin: 0; font-family: var(--police-titre); font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.15; color: #fff; }
.live-vitrine__resume { display: -webkit-box; overflow: hidden; margin: 0; color: var(--live-doux); font-size: 0.88rem; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-vitrine__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-top: 0.15rem; }
.live-vitrine__prix { color: var(--live-or); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.live-vitrine__ligne .live-stock { padding: 0.3rem 0.65rem; border-radius: 999px; background: rgb(255 255 255 / 7%); font-size: 0.8rem; }
.live-vitrine__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: auto; padding-top: 0.4rem; }
.live-prendre--grand { min-height: 3rem; padding: 0 1.8rem; font-size: 1rem; }
.live-vitrine__actions .live-epuise { font-size: 1rem; }
.live-vitrine__fiche { padding: 0; border: 0; background: none; color: var(--live-texte); font: inherit; font-size: 0.88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.live-vitrine__liste { position: relative; grid-column: 1 / -1; border-radius: 12px; background: rgb(255 255 255 / 4%); }
.live-vitrine__liste[open] { z-index: 6; background: #2e2125; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.live-vitrine__liste summary {
    display: grid;
    grid-template-columns: 6.5rem 2.2rem minmax(0, 1fr) auto auto 1rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    color: var(--live-texte);
    font-size: 0.85rem;
    list-style: none;
    cursor: pointer;
}
.live-vitrine__liste summary::-webkit-details-marker { display: none; }
.live-vitrine__liste summary::after { content: ''; width: 0.45rem; height: 0.45rem; border-right: 2px solid var(--live-doux); border-bottom: 2px solid var(--live-doux); transform: rotate(45deg) translateY(-2px); transition: transform var(--transition); }
.live-vitrine__liste[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.live-vitrine__liste summary:hover { background: rgb(255 255 255 / 5%); }
.live-vitrine__liste summary:focus-visible { outline: 2px solid var(--live-or); outline-offset: -2px; }
.live-vitrine__liste summary img { width: 2.2rem; height: 2.2rem; border-radius: 8px; object-fit: cover; }
.live-vitrine__liste-titre { color: var(--live-doux); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.live-vitrine__liste--precedents summary { opacity: 0.85; }
.live-vitrine__liste-nom { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.live-vitrine__liste-nombre { color: var(--live-doux); font-size: 0.78rem; font-weight: 700; }
.live-vitrine__liste-prix { color: var(--live-or); font-weight: 700; }
/* Liste dépliée : par-dessus ce qui suit, sans pousser les commentaires. */
.live-vitrine__liste ol {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: min(22rem, 50vh);
    border-radius: 0 0 12px 12px;
    background: #2e2125;
    box-shadow: 0 24px 50px rgb(0 0 0 / 55%);
    margin: 0; padding: 0 0.4rem 0.4rem; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 18%) transparent; }
.live-vitrine__produit { display: grid; grid-template-columns: 1.6rem 2.6rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.45rem 0.4rem; border-top: 1px solid var(--live-trait); }
.live-vitrine__produit--epuise { opacity: 0.5; }
.live-vitrine__produit img { width: 2.6rem; height: 2.6rem; border-radius: 8px; object-fit: cover; background: #2b1e22; }
.live-vitrine__produit-numero { color: var(--live-doux); font-size: 0.82rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.live-vitrine__produit-texte { display: grid; min-width: 0; gap: 0.1rem; line-height: 1.3; }
.live-vitrine__produit-nom { overflow: hidden; padding: 0; border: 0; background: none; color: var(--live-texte); font: inherit; font-size: 0.88rem; text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.live-vitrine__produit-nom:hover { text-decoration: underline; }
.live-vitrine__produit-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.7rem; }
.live-vitrine__produit .live-prendre { min-height: 2.1rem; padding: 0 0.9rem; font-size: 0.8rem; }
/* Colonne étroite (vidéo horizontale) : photo plus petite. */
@container (max-width: 30rem) {
    .live-vitrine__resume { -webkit-line-clamp: 2; }
    .live-vitrine__prix { font-size: 1.3rem; }
}

/* — Colonne des produits — */
.live__rail {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: min(78vh, 46rem);
    border: 1px solid var(--live-trait);
    border-radius: 18px;
    background: var(--live-panneau);
    overflow: hidden;
}
.live__scene--horizontal .live__rail { max-height: none; height: 100%; }
.live__rail-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--live-trait); }
.live__rail-titre { margin: 0; font-family: var(--police-titre); font-size: 1.2rem; color: #fff; }
.live__rail-nombre { color: var(--live-doux); font-size: 0.82rem; }
/* Onglets Produits / Commentaires */
.live__onglets { display: flex; gap: 0.25rem; padding: 0.55rem 0.55rem 0; border-bottom: 1px solid var(--live-trait); }
.live__onglet {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem 0.75rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--live-doux);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}
.live__onglet:hover { color: var(--live-texte); }
.live__onglet[aria-selected="true"] { border-bottom-color: var(--live-direct); color: #fff; }
.live__onglet:focus-visible { outline: 2px solid var(--live-or); outline-offset: -2px; border-radius: 8px; }
.live__nouveaux { min-width: 1.25rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--live-direct); color: #fff; font-size: 0.7rem; font-weight: 800; text-align: center; }
.live__nouveaux[hidden] { display: none; }
.live__panneau { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.live__panneau[hidden] { display: none; }
.live__discussion { min-height: 24rem; }

/* Commentaires du site */
.live__commentaires { flex: 1; min-height: 0; margin: 0; padding: 0.75rem 1rem; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 18%) transparent; }
.live-commentaire { padding: 0.35rem 0; font-size: 0.88rem; line-height: 1.4; overflow-wrap: anywhere; }
.live-commentaire__nom { margin-right: 0.4rem; color: var(--live-or); font-weight: 700; }
.live-commentaire--galou .live-commentaire__nom { padding: 0.05rem 0.45rem; border-radius: 6px; background: var(--live-direct); color: #fff; }
.live-commentaire--moi .live-commentaire__nom { color: #fff; }
.live-commentaire__texte { color: var(--live-texte); }
.live__commentaires-vide { margin: auto; padding: 1.5rem; color: var(--live-doux); font-size: 0.88rem; text-align: center; }
.live__commentaires-vide[hidden] { display: none; }
.live__ecrire { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 0.4rem; padding: 0.7rem; border-top: 1px solid var(--live-trait); }
.live__ecrire--connu { grid-template-columns: minmax(0, 1fr) auto; }
.live__ecrire--connu .live__prenom { display: none; }
.live__ecrire[hidden] { display: none; }
.live__prenom, .live__texte {
    min-width: 0;
    min-height: 2.6rem;
    box-sizing: border-box;
    padding: 0 0.8rem;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 10px;
    background: rgb(255 255 255 / 6%);
    color: #fff;
    font: inherit;
    font-size: 16px; /* évite le zoom de l'iPhone */
}
.live__prenom::placeholder, .live__texte::placeholder { color: var(--live-doux); }
.live__prenom:focus, .live__texte:focus { outline: none; border-color: var(--live-or); }
.live__envoyer { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 10px; background: var(--live-direct); color: #fff; cursor: pointer; }
.live__envoyer:disabled { opacity: 0.5; }
.live__ecrire-note { grid-column: 1 / -1; margin: 0; color: var(--live-doux); font-size: 0.72rem; }
.live__ecrire-note--erreur { color: #ff8a98; }

.live__produits {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    align-content: start;
    gap: 0.9rem;
    margin: 0;
    padding: 0.9rem;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 18%) transparent;
}

/* — Carte d'un produit du live : grande photo, nom, prix, stock, « Je prends » — */
.live-produit {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.6rem;
    padding: 0.55rem 0.55rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 18px;
    background: rgb(255 255 255 / 4%);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.live-produit:hover { background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 16%); transform: translateY(-2px); }
.live-produit--courant { border-color: var(--live-direct); box-shadow: 0 0 0 1px var(--live-direct), 0 10px 30px rgb(225 67 90 / 25%); }
.live-produit--epuise { opacity: 0.45; }
.live-produit__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 13px;
    overflow: hidden;
    background: #2b1e22;
    cursor: zoom-in;
}
.live-produit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.live-produit:hover .live-produit__media img { transform: scale(1.05); }
/* Photo sans fond : posée sur un halo clair, entière. */
.live-produit__media--detouree { background: radial-gradient(circle at 50% 45%, rgb(255 244 230 / 22%), rgb(255 255 255 / 4%) 70%); }
.live-produit__media--detouree img { padding: 8%; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 35%)); }
.live-produit__numero {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgb(20 10 12 / 75%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
}
.live-produit--courant .live-produit__numero { background: var(--live-direct); }
.live-produit__etiquette {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--live-direct);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.live-produit__exclu { position: absolute; top: 0.5rem; right: 0.5rem; box-shadow: 0 2px 8px rgb(0 0 0 / 30%); }
.live-produit__texte { display: grid; align-content: start; gap: 0.2rem; min-width: 0; padding: 0 0.2rem; line-height: 1.3; }
.live-exclu { display: inline-block; width: fit-content; padding: 0.1rem 0.45rem; border-radius: 6px; background: #f6d77a; color: #3d1a12; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; }
.live-produit__nom {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 0;
    border: 0;
    background: none;
    color: var(--live-texte);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.live-produit__nom:hover { text-decoration: underline; }
.live-produit__prix { color: var(--live-or); font-size: 1rem; font-weight: 800; }
.live-produit > .live-prendre, .live-produit > .live-epuise { width: 100%; justify-content: center; }

/* — Aperçu d'un produit, en grand (live.js, ouvrirApercu) — */
.live__qui.live__apercu { width: min(56rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100svh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.live__apercu-cadre { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.6rem; padding: 1.6rem 3.2rem; align-items: center; }
.live__apercu-photo { display: grid; place-items: center; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #2b1e22; }
.live__apercu-photo img { width: 100%; height: 100%; object-fit: cover; }
.live__apercu-photo--detouree { background: radial-gradient(circle at 50% 45%, rgb(255 244 230 / 25%), rgb(255 255 255 / 4%) 70%); }
.live__apercu-photo--detouree img { padding: 6%; object-fit: contain; filter: drop-shadow(0 14px 20px rgb(0 0 0 / 40%)); }
.live__apercu-texte { display: grid; align-content: center; gap: 0.6rem; min-width: 0; }
.live__apercu-texte .live-exclu { font-size: 0.7rem; }
.live__apercu-numero { margin: 0; color: var(--live-doux); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.live__apercu-nom { margin: 0; font-family: var(--police-titre); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; color: #fff; }
.live__apercu-prix { margin: 0; color: var(--live-or); font-size: 1.4rem; font-weight: 800; }
.live__apercu-texte .live-stock { font-size: 0.85rem; }
.live__apercu-resume { margin: 0.2rem 0 0.4rem; color: var(--live-doux); font-size: 0.92rem; line-height: 1.55; }
.live__apercu-prendre { justify-self: start; min-height: 3rem; margin-top: 0.3rem; padding: 0 2.2rem; font-size: 1rem; }
.live__apercu-fleche { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.live__apercu-fleche:hover { background: rgb(255 255 255 / 20%); }
.live__apercu-fleche[hidden] { display: none; }
.live__apercu-fleche--avant { left: 0.5rem; }
.live__apercu-fleche--apres { right: 0.5rem; }
@media (max-width: 700px) {
    .live__produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; padding: 0.65rem; }
    .live-produit { padding: 0.45rem 0.45rem 0.6rem; border-radius: 15px; }
    .live-produit__nom { font-size: 0.85rem; }
    .live__apercu-cadre { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; padding: 3.8rem 1.1rem 1.1rem; }
    .live__apercu-photo { aspect-ratio: auto; height: 30svh; }
    .live__apercu-nom { font-size: 1.45rem; }
    .live__apercu-texte { gap: 0.45rem; }
    .live__apercu-resume { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
    /* « Je prends » reste visible en bas de l'aperçu, même s'il défile. */
    .live__apercu-prendre { position: sticky; bottom: 0.4rem; justify-self: stretch; justify-content: center; box-shadow: 0 -10px 24px 6px var(--live-panneau); }
    .live__apercu-fleche { top: 1.3rem; translate: none; width: 2.2rem; height: 2.2rem; }
    .live__apercu-fleche--avant { left: 0.8rem; }
    .live__apercu-fleche--apres { left: 3.4rem; right: auto; }
}
@media (prefers-reduced-motion: reduce) { .live-produit, .live-produit__media img { transition: none; } .live-produit:hover { transform: none; } }

.live-stock { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--live-doux); font-size: 0.72rem; font-weight: 600; }
.live-stock::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #4ade80; }
.live-stock--urgent { color: #ff8a98; }
.live-stock--urgent::before { background: #ff5a6e; }
.live-stock--epuise::before { background: currentColor; opacity: 0.5; }
.live-stock--baisse { animation: live-stock-baisse 1.6s ease-out; }
@keyframes live-stock-baisse {
    0%, 30% { transform: scale(1.15); color: #fff; text-shadow: 0 0 10px #ff5a6e; }
}
@media (prefers-reduced-motion: reduce) { .live-stock--baisse { animation: none; } }

.live-prendre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--bordeaux-profond);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.live-prendre:hover { background: var(--rose-pale); }
.live-prendre:active { transform: scale(0.97); }
.live-prendre:disabled { opacity: 0.55; cursor: wait; }
.live-prendre--fait { background: #2f7a4a; color: #fff; }
.live-prendre--fait:hover { background: #276a3f; }
.live-prendre--choisir { background: transparent; color: var(--live-texte); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 30%); }
.live-prendre--choisir:hover { background: rgb(255 255 255 / 8%); }
.live-epuise { color: var(--live-doux); font-size: 0.78rem; font-weight: 600; }

/* — Comment ça marche — */
.live__etapes { padding-block: 2rem 3.5rem; }
/* Fond crème sur toute la largeur (le fond de la page /live est sombre). */
.live__etapes { background: var(--creme); box-shadow: 0 0 0 100vmax var(--creme); clip-path: inset(0 -100vmax); }
.live__etapes ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.live__etapes li { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.85rem; color: var(--texte-doux); font-size: 0.9rem; }
.live__etapes li span { grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--bordeaux-profond); color: #fff; font-weight: 700; }
.live__etapes li strong { color: var(--texte); font-size: 0.98rem; }

/* — Confirmation d'ajout — */
.live__message {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.9rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    margin: 0;
    padding: 0.75rem 0.85rem 0.75rem 1.1rem;
    border-radius: 14px;
    background: #1d1316;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 18px 40px rgb(0 0 0 / 35%);
    transform: translateX(-50%);
    animation: live-entree 220ms ease-out;
}
.live__message:empty { display: none; }
.live__message a { padding: 0.4rem 0.8rem; border-radius: 999px; background: #fff; color: var(--bordeaux-profond); font-weight: 700; text-decoration: none; }
.live__message--erreur { background: #7d1626; }
@media (prefers-reduced-motion: reduce) {
    .live__pastille::before, .live__maintenant, .live__message, .live__vitrine--entree, .live-vitrine__etiquette::before { animation: none; }
    .entete, .live__panier-flottant { transition: none; }
}

.live-commentaire .lien-commentaire { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: bottom; white-space: nowrap; text-overflow: ellipsis; color: var(--live-or); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
    .live__immersif-direct::before, .live__fil li, .live-produits-ouverts .live__rail { animation: none; }
}

/* ================= Lecteur piloté : nos commandes ================= */
@keyframes live-signal { 0% { opacity: 1; transform: scale(0.8); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }


/* Fin du live : lien vers le replay sur Facebook (le site n'en affiche pas). */
.live__fin { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 0.7rem; padding: 1.5rem; background: radial-gradient(circle at 50% 40%, #3a2328, #0d0809 75%); text-align: center; }
.live__fin[hidden] { display: none; }
.live__fin-titre { margin: 0; font-family: var(--police-titre); font-size: 1.5rem; font-weight: 700; color: #fff; }
.live__fin-texte { max-width: 17rem; margin: 0; color: var(--live-doux); font-size: 0.9rem; line-height: 1.5; }
.live__fin-lien { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; padding: 0.75rem 1.2rem; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 700; text-decoration: none; }
.live__fin-lien:hover { background: #166ad8; }


/* Ordinateur, vidéo horizontale : vidéo et produit présenté côte à côte,
   commentaires dessous sur toute la largeur — tout tient sans défiler. */
@media (min-width: 901px) {
    .live__scene--horizontal {
        --hauteur-video: min(56vh, 34rem);
        grid-template-columns: min(calc(var(--hauteur-video) * 16 / 9), 64%) minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 1.1rem;
    }
    .live__scene--horizontal .live__video { grid-area: 1 / 1; align-self: start; }
    .live__scene--horizontal .live__vitrine:not([hidden]) {
        grid-area: 1 / 2;
        align-self: stretch;
        grid-template-columns: 7.5rem minmax(0, 1fr);
        align-content: start;
        gap: 0.8rem 1rem;
    }
    .live__scene--horizontal .live-vitrine__visuel { width: 7.5rem; }
    .live__scene--horizontal .live-vitrine__nom { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
    .live__scene--horizontal .live-vitrine__prix { font-size: 1.35rem; }
    .live__scene--horizontal .live-vitrine__resume { -webkit-line-clamp: 2; }
    .live__scene--horizontal .live__rail { grid-area: 2 / 1 / 3 / 3; height: auto; min-height: 0; }
    .live__scene--horizontal.live__scene--vitrine .live__commentaires { flex: none; height: clamp(6rem, calc(100vh - var(--hauteur-video) - 17rem), 12rem); }
    /* Sans produit présenté : la colonne de droite garde les onglets. */
    .live__scene--horizontal:not(.live__scene--vitrine) .live__rail { grid-area: 1 / 2; height: var(--hauteur-video); }
}

/* « Avant de prendre ce produit » : prénom une fois, invitation au compte. */
.live__qui { width: min(26rem, calc(100% - 2rem)); padding: 0; border: 1px solid var(--live-trait); border-radius: 20px; background: var(--live-panneau); color: var(--live-texte); box-shadow: 0 30px 80px rgb(0 0 0 / 55%); }
.live__qui::backdrop { background: rgb(0 0 0 / 55%); }
.live__qui-forme { position: relative; display: grid; gap: 0.7rem; padding: 1.4rem; }
.live__qui-titre { margin: 0 2rem 0 0; font-family: var(--police-titre); font-size: 1.35rem; font-weight: 700; color: #fff; }
.live__qui-libelle { color: var(--live-doux); font-size: 0.88rem; }
.live__qui-champ { min-height: 2.9rem; padding: 0 0.9rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: 12px; background: rgb(255 255 255 / 6%); color: #fff; font: inherit; font-size: 16px; }
.live__qui-champ:focus { outline: none; border-color: var(--live-or); }
.live__qui-ok { width: 100%; }
.live__qui-compte { margin-top: 0.4rem; padding: 0.9rem 1rem; border-radius: 14px; background: rgb(255 255 255 / 5%); font-size: 0.85rem; line-height: 1.45; }
.live__qui-compte p { margin: 0; color: var(--live-doux); }
.live__qui-compte strong { display: block; margin-bottom: 0.15rem; color: #fff; }
.live__qui-liens { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.7rem 0 0.4rem; }
.live__qui-liens a { color: var(--live-or); font-weight: 700; text-underline-offset: 3px; }
.live__qui-liens a:first-child { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--live-or); color: #2b1a0f; text-decoration: none; }
.live__qui-note { font-size: 0.75rem; opacity: 0.8; }
/* Compte à rebours de l'offre du live, en haut du panier (live terminé). */
.live__chrono { padding: 0.85rem 1rem; border: 1px solid rgb(246 215 122 / 55%); border-radius: 14px; background: rgb(246 215 122 / 12%); }
.live__chrono[hidden] { display: none; }
.live__chrono-temps { margin: 0 0 0.3rem; color: #f6d77a; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.live__chrono-texte { margin: 0; color: var(--live-doux); font-size: 0.85rem; line-height: 1.45; }
.live__chrono--fini { border-color: rgb(255 140 140 / 55%); background: rgb(255 120 120 / 10%); }
.live__chrono--fini .live__chrono-temps { color: #ffb3b3; }
.live__qui-fermer { position: absolute; top: 0.8rem; right: 0.8rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 8%); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* « Vous : Marie · Modifier » au-dessus du champ de commentaire. */
.live__moi { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; padding: 0.25rem 0.7rem; border: 1px solid rgb(255 255 255 / 14%); border-radius: 999px; background: rgb(255 255 255 / 6%); color: var(--live-doux); font: inherit; font-size: 0.8rem; cursor: pointer; }
.live__moi[hidden] { display: none; }
.live__moi strong { overflow: hidden; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.live__moi-action { color: var(--live-or); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.live__moi-compte { padding: 0 0.35rem; border-radius: 5px; background: #1f7a4d; color: #fff; font-size: 0.68rem; font-weight: 700; }
.live__moi:hover { border-color: var(--live-or); }

/* « Se connecter » sous la saisie de commentaire (sans compte connecté). */
.live__connexion { grid-column: 1 / -1; margin: 0; color: var(--live-doux); font-size: 0.78rem; }
.live__connexion[hidden] { display: none; }
.live__connexion a { color: var(--live-or); font-weight: 700; text-underline-offset: 2px; }
.live__connexion a:first-child { display: inline-block; margin-right: 0.15rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--live-or); color: #2b1a0f; text-decoration: none; }

/* Fenêtre « Se connecter » dans le live. */
.live__connecter-erreur { margin: 0; padding: 0.55rem 0.75rem; border-radius: 10px; background: rgb(229 36 59 / 18%); color: #ffb3bd; font-size: 0.85rem; }
.live__connecter-erreur[hidden] { display: none; }
.live__connecter .live__qui-liens { justify-content: space-between; margin: 0.2rem 0 0; }
.live__connecter .live__qui-liens a:first-child { padding: 0; background: none; color: var(--live-or); text-decoration: underline; }

/* Tiroir du panier dans le live. */
.live__panier { width: min(28rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); }
.live__panier--charge .live__qui-forme { opacity: 0.6; pointer-events: none; }
.live__panier-lignes { display: grid; gap: 0.6rem; max-height: 45dvh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.live__panier-ligne { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.6rem; border-radius: 14px; background: rgb(255 255 255 / 5%); }
.live__panier-ligne img { width: 3.6rem; height: 3.6rem; border-radius: 10px; object-fit: contain; background: transparent; }
.live__panier-texte { display: grid; gap: 0.2rem; min-width: 0; }
.live__panier-nom { color: #fff; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.live__panier-prix { color: var(--live-or); font-weight: 700; }
.live__panier-quantite { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; }
.live__panier-quantite span { min-width: 1.4rem; text-align: center; font-weight: 700; }
.live__panier-quantite button { min-width: 2rem; height: 2rem; padding: 0 0.5rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 999px; background: none; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.live__panier-quantite button:disabled { opacity: 0.35; cursor: default; }
.live__panier-quantite button:last-child { margin-left: auto; border: 0; color: var(--live-doux); font-size: 0.8rem; font-weight: 600; text-decoration: underline; }
.live__panier-vide { margin: 0.5rem 0; color: var(--live-doux); }
.live__panier-vide[hidden], .live__panier-totaux[hidden], .live__panier-payer[hidden], .live__qui-note[hidden] { display: none; }
.live__panier-totaux { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; margin: 0.3rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--live-trait); font-size: 0.9rem; }
.live__panier-totaux dt { color: var(--live-doux); }
.live__panier-totaux dd { margin: 0; color: #fff; font-weight: 700; text-align: right; }
.live__panier-totaux dt:last-of-type, .live__panier-totaux dd:last-of-type { color: #fff; font-size: 1.05rem; }
.live__panier-payer { display: flex; align-items: center; justify-content: center; text-decoration: none; }


/* Produit présenté : le même encadré sur ordinateur et sur téléphone. */
.live__vitrine:not([hidden]) {
    container-type: inline-size;
    position: relative;
    display: grid;
    grid-template-columns: min(10rem, 28%) minmax(0, 1fr);
    gap: 0.9rem 1.4rem;
    flex-shrink: 0;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--live-trait);
    border-radius: 18px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgb(229 36 59 / 14%), transparent 55%),
        var(--live-panneau);
    box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
}

/* Téléphone et tablette : la même page que sur ordinateur, en une colonne. */
@media (max-width: 900px) {
    .live__plateau-contenu { padding-block: 1.25rem 1.75rem; }
    .live__scene, .live__scene--horizontal { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
    /* — Vidéo — */
    /* Vertical : toujours au format 9:16 de la vidéo, le plus grand qui
       tient dans la page et dans 90 % de l'écran (svh : barres du navigateur
       affichées). Un cadre plus haut que la vidéo laissait des bandes noires
       en haut et en bas dans le lecteur Facebook (Android, ordinateur). */
    .live__scene:not(.live__scene--horizontal) .live__video {
        justify-self: center;
        width: min(100%, 90svh * 9 / 16);
        height: auto;
        aspect-ratio: 9 / 16;
    }
    /* Horizontal : toute la largeur de la page, au format 16:9. */
    .live__scene--horizontal .live__video { width: 100%; }

    /* — Sous la vidéo : le champ de commentaire, puis la liste des produits — */
    .live__vitrine,
    .live__onglets,
    .live__commentaires,
    .live__commentaires-vide,
    .live__ecrire-note { display: none !important; }
    .live__discussion { display: block !important; order: 1; height: auto; min-height: 0; }
    .live__panneau[data-live-panneau="produits"] {
        display: flex !important;
        order: 2;
        border-top: 1px solid var(--live-trait);
    }
    .live__panneau[data-live-panneau="produits"] .live__produits { overflow: visible; }
    .live__rail, .live__scene--horizontal .live__rail { max-height: none; }
    .live__etapes ol { grid-template-columns: minmax(0, 1fr); }
}

/* Notre lecteur (iPhone / iPad) : il remplit le cadre, la vidéo garde ses proportions. */
.live__flux { position: absolute; inset: 0; width: 100%; height: auto; max-height: 100%; margin: auto; background: #000; }
.live__flux[hidden] { display: none; }

/* Les 5 derniers commentaires sur la vidéo : téléphone seulement, une fois
   la vidéo ouverte. Ils ne prennent aucun toucher (les commandes de la vidéo
   restent utilisables) et s'effacent quand la vidéo est en pause. */
.live__sur-video { display: none; }
@media (max-width: 900px) {
    .live__sur-video {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 4.5rem;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        margin: 0;
        padding: 0 0.85rem;
        list-style: none;
        pointer-events: none;
        transition: opacity 200ms ease;
    }
    .live__sur-video:empty,
    .live__porte:not([hidden]) ~ .live__sur-video,
    .live__video:has(.live__porte:not([hidden])) .live__sur-video,
    .live__video:has(.live__fin:not([hidden])) .live__sur-video { display: none; }
    .live__video--pause .live__sur-video,
    .live__video:has(.live__produit-video--grand) .live__sur-video { opacity: 0; }
    .live__sur-video li {
        align-self: flex-start;
        max-width: 92%;
        padding: 0.35rem 0.7rem;
        border-radius: 14px;
        background: rgb(0 0 0 / 45%);
        color: #fff;
        font-size: 0.85rem;
        line-height: 1.35;
        text-shadow: 0 1px 2px rgb(0 0 0 / 60%);
        overflow-wrap: anywhere;
    }
    .live__sur-video strong { margin-right: 0.25rem; color: var(--live-or); }
    .live__sur-video--galou strong { color: #ff8fa0; }
    .live__sur-video a { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { .live__sur-video { transition: none; } }

/* Le produit présenté, en superposition en haut de la vidéo : téléphone
   seulement, une fois la vidéo ouverte. Il laisse libre la rangée du haut
   (boutons plein écran / image dans l'image du lecteur). */
.live__produit-video { display: none; }
@media (max-width: 900px) {
    .live__produit-video:not([hidden]) {
        position: absolute;
        top: 1.75rem;
        left: 0.6rem;
        right: 0.6rem;
        z-index: 3;
        display: grid;
        grid-template-columns: 3.75rem minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem;
        border: 1px solid rgb(255 255 255 / 14%);
        border-radius: 14px;
        background: rgb(18 11 13 / 78%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #fff;
        box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
    }
    .live__video:has(.live__porte:not([hidden])) .live__produit-video,
    .live__video:has(.live__fin:not([hidden])) .live__produit-video { display: none; }
    .live__produit-video img { width: 3.75rem; height: 3.75rem; border-radius: 10px; object-fit: contain; background: transparent; }
    .live__produit-video-texte { display: grid; min-width: 0; gap: 0.05rem; }
    .live__produit-video-etiquette { color: #ff8fa0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
    .live__produit-video-nom { overflow: hidden; font-size: 1rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
    .live__produit-video-prix { color: var(--live-or); font-size: 0.95rem; font-weight: 700; }
    .live__produit-video .live-prendre { min-height: 2.3rem; padding: 0 0.85rem; font-size: 0.82rem; }
    .live__produit-video { cursor: pointer; }
    /* En petit : ni description, ni stock, ni lien vers la fiche. */
    .live__produit-video-resume,
    .live__produit-video-stock,
    .live__produit-video-fiche { display: none !important; }
    /* En grand : grande photo, nom complet, description, stock, deux boutons. */
    .live__produit-video--grand:not([hidden]) {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 0.6rem;
        padding: 0.75rem;
        background: rgb(18 11 13 / 92%);
    }
    /* En grand : la photo en haut, sur toute la largeur, pour bien voir le produit. */
    .live__produit-video--grand img { width: 100%; height: min(16rem, 34svh); }
    .live__produit-video--grand .live__produit-video-nom { white-space: normal; font-family: var(--police-titre); font-size: 1.1rem; line-height: 1.2; }
    .live__produit-video--grand .live__produit-video-prix { font-size: 1rem; }
    .live__produit-video--grand .live__produit-video-resume {
        display: -webkit-box !important;
        margin: 0.25rem 0 0;
        overflow: hidden;
        color: var(--live-doux);
        font-size: 0.8rem;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .live__produit-video--grand .live__produit-video-stock { display: inline-flex !important; width: fit-content; margin-top: 0.3rem; }
    .live__produit-video--grand .live__produit-video-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
    .live__produit-video--grand .live__produit-video-fiche { display: inline !important; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
}

/* Choix du format (grammage…) d'un produit, sans quitter le live. */
.live__choix-liste { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.live__choix-format { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 14px; background: rgb(255 255 255 / 6%); }
.live__choix-format div { display: grid; gap: 0.1rem; min-width: 0; }
.live__choix-format strong { color: #fff; font-size: 1rem; }
.live__choix-prix { color: var(--live-or); font-size: 0.92rem; font-weight: 700; }
.live__choix-stock { color: var(--live-doux); font-size: 0.8rem; }
.live__choix-format--epuise { opacity: 0.5; }

.live__choix-photo { display: grid; place-items: center; margin: -0.2rem 2.4rem 0; }
.live__choix-photo[hidden] { display: none; }
.live__choix-photo img { width: 100%; height: min(15rem, 32svh); object-fit: contain; }

/* Choix du parfum : une liste déroulante, comme sur la fiche produit. */
.live__choix-parfum { display: grid; gap: 0.35rem; }
.live__choix-parfum[hidden] { display: none; }
.live__choix-parfum span { color: var(--live-doux); font-size: 0.82rem; font-weight: 600; }
.live__choix-parfum select { min-height: 2.9rem; padding: 0 0.9rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: 12px; background: rgb(255 255 255 / 6%); color: #fff; font: inherit; font-size: 16px; }
.live__choix-parfum select:focus { outline: none; border-color: var(--live-or); }
.live__choix-parfum option { color: #222; }

/* offrir.css */
/*
 * Fenêtre « C'est pour offrir ? » (commun.js, demanderPochette) : chargée par
 * la fiche produit et la page du live.
 * Les jetons viennent de fondations.css : aucune couleur en dur ici.
 */

/* — « C'est pour offrir ? » : la pochette cadeau, demandée au clic sur
     « Ajouter au panier » (produit.js) — */
.offrir {
    width: min(26rem, calc(100vw - 2rem));
    padding: var(--espace-4) var(--espace-3) var(--espace-3);
    border: 0;
    border-radius: var(--rayon-l);
    background: var(--blanc-chaud);
    color: var(--texte);
    box-shadow: 0 20px 50px rgb(60 20 20 / 30%);
    text-align: center;
}
.offrir[open] { animation: offrir-arrivee 260ms cubic-bezier(.3, 1.3, .5, 1); }
.offrir::backdrop { background: rgb(40 15 15 / 45%); }
.offrir__fermer {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--texte-doux);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.offrir__cadeau { margin: 0; font-size: 2.5rem; line-height: 1; }
.offrir__titre { margin: var(--espace-1) 0 var(--espace-1); font-size: var(--taille-l); color: var(--bordeaux); }
.offrir__texte { margin: 0 0 var(--espace-3); font-size: var(--taille-s); color: var(--texte-doux); }
.offrir__prix { display: block; margin-top: 0.15rem; color: var(--bordeaux); }
.offrir:focus { outline: none; }
.offrir__modeles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: var(--espace-2);
    margin: 0 0 var(--espace-2);
    padding: 0;
    list-style: none;
}
.offrir__modele {
    display: grid;
    justify-items: center;
    gap: var(--espace-1);
    width: 100%;
    padding: var(--espace-1) var(--espace-1) var(--espace-2);
    border: 2px solid var(--creme-sombre);
    border-radius: var(--rayon-m);
    background: var(--creme);
    color: var(--bordeaux);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
}
.offrir__modele:hover, .offrir__modele:focus-visible { border-color: var(--bordeaux-vif); transform: translateY(-2px); }
.offrir__modele img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 6px rgb(60 20 20 / 18%)); }
.offrir__nom { font-size: var(--taille-s); }
.offrir__non {
    width: 100%;
    min-height: 3rem;
    border: 1.5px solid var(--bordeaux);
    border-radius: var(--rayon-rond);
    background: none;
    color: var(--bordeaux);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.offrir__non:hover { background: var(--rose-tres-pale); }
@keyframes offrir-arrivee {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
/* Téléphone : la fenêtre monte du bas, sous le pouce. */
@media (max-width: 560px) {
    .offrir {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        padding-bottom: calc(var(--espace-3) + env(safe-area-inset-bottom));
        border-radius: var(--rayon-l) var(--rayon-l) 0 0;
    }
    .offrir__modeles { grid-template-columns: repeat(3, 1fr); gap: var(--espace-1); }
}
@media (prefers-reduced-motion: reduce) {
    .offrir[open] { animation: none; }
    .offrir__modele { transition: none; }
}

/* cookies.css */
.cookies-bandeau, .cookies-panneau { box-sizing: border-box; font-family: var(--police-corps); color: var(--texte); background: var(--blanc-chaud); padding: 24px; border: 1px solid var(--creme-sombre); border-radius: 16px; box-shadow: var(--ombre-flottante); font-size: 14px; line-height: 1.6; }
.cookies-bandeau { position: fixed; bottom: 16px; right: 16px; width: min(600px, calc(100% - 32px)); max-height: 85vh; overflow: auto; z-index: 100000; }
.cookies-bandeau[hidden] { display: none; }
.cookies-panneau { width: min(640px, calc(100% - 32px)); max-height: 85vh; overflow: auto; margin: auto; }
.cookies-panneau::backdrop { background: rgb(0 0 0 / 45%); }
.cookies-bandeau h2, .cookies-panneau h2 { font-family: var(--police-titre); font-size: 22px; color: var(--bordeaux); margin: 0 0 12px; }
.cookies-bandeau p, .cookies-panneau p { margin: 12px 0; }
.cookies-bandeau a { color: var(--bordeaux); text-decoration: underline; }
.cookies-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookies-actions button { font: inherit; font-weight: 600; min-height: 44px; padding: 10px 16px; border: 1px solid var(--bordeaux); border-radius: 8px; color: var(--bordeaux); background: var(--blanc-chaud); cursor: pointer; }
.cookies-actions button:hover { background: var(--creme); }
.cookies-actions button:focus-visible, .cookies-gerer:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
.cookies-panneau label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; cursor: pointer; }
.cookies-panneau input[type="checkbox"] { appearance: auto; width: 20px; height: 20px; margin: 0; accent-color: var(--bordeaux); }
.cookies-gerer { font: inherit; color: inherit; background: transparent; border: 0; text-decoration: underline; min-height: 44px; padding: 12px 24px; cursor: pointer; }
.cookies-outils { color: var(--bordeaux); text-align: center; padding-block: 16px; }
@media (max-width: 560px) { .cookies-actions button { flex: 1 1 45%; } .cookies-bandeau, .cookies-panneau { padding: 16px; } }
