/*
 * Thème « Grand Marché » de la vitrine (validé par Dav le 21/11/2026, maquette : artifact « Cauris Market, thème
 * Grand Marché »). Un thème de place de marché à côté d'« Étal », qui reste le thème d'origine.
 *
 * Chargé APRÈS la feuille compilée du thème gnlf (app.css, qui contient etal.css) et seulement quand le super
 * administrateur l'a choisi (Configuration → Général → Cauris Market → Apparence). Toutes les règles sont
 * portées par `[data-theme-cauris="grand-marche"]`, posé sur <html> : sans cet attribut, rien ne change.
 *
 * Feuille écrite à la main, sans compilation : le fournisseur la recopie vers public/themes/shop/gnlf/css.
 * Elle ne fait que redéfinir des jetons et des règles de structure ; aucune vue ne porte de couleur.
 *
 * En-tête encre, grande recherche à bouton safran, barre de rayons encre-2, fond grège, cartes blanches à
 * ombre douce, remises en brique, « Livraison 24 h » en vert texte, Inter partout (auto-hébergée).
 * Contrastes mesurés au rendu (clair et sombre) : voir les commentaires des jetons.
 */

/* ── Jetons, clair ── `:root:root[…]` pèse plus que etal.css (`:root:root`) et que les copies de gnlf-tokens.css. */
:root:root[data-theme-cauris="grand-marche"] {
    --fond:            #EFEBE4;   /* grège. --texte dessus 13,2:1 ; --texte-3 5,2:1 */
    --surface:         #FFFFFF;
    --surface-2:       #F7F4EF;
    --filet:           #E2DCD1;
    --texte:           #1B2333;   /* 15,7:1 sur blanc, 13,2:1 sur le fond */
    --texte-2:         #4A5262;   /* 7,9:1 sur blanc */
    --texte-3:         #5B6270;   /* 6,1:1 sur blanc, 5,1:1 sur le fond */

    --encre:           #1B2A4A;   /* titres. 14,2:1 sur blanc */
    --encre-fond:      #1B2A4A;   /* en-tête, pied de page. Blanc dessus 14,2:1 */
    --encre-fond-2:    #25385F;   /* barre de rayons, bandeau du haut. Blanc dessus 11,6:1 */
    --encre-fond-3:    #2E4A7D;   /* fin du dégradé d'affiche. Blanc dessus 8,8:1 */
    --sur-encre:       #FFFFFF;
    --sur-encre-2:     #CBD4E6;   /* texte secondaire sur l'encre. 9,6:1 sur encre, 7,8:1 sur encre-2 */
    --voile-encre:     rgba(255, 255, 255, .10);
    --voile-encre-2:   rgba(255, 255, 255, .18);

    --safran:          #F2A33A;   /* le bouton plein. Texte encre dessus 6,8:1 */
    --safran-fonce:    #E8942A;   /* survol. Texte encre dessus 5,9:1 */
    --sur-safran:      #1B2A4A;
    --safran-doux:     #FDF0DC;

    --promo:           #9A3B1E;   /* brique : prix remisés. 7,0:1 sur blanc, 5,9:1 sur le fond */
    --promo-fond:      #9A3B1E;
    --promo-fond-2:    #B8502C;   /* fin du dégradé des ventes flash. Blanc dessus 5,0:1 */
    --promo-fond-fonce: #7C2F18;
    --promo-sur:       #FFFFFF;
    --promo-doux:      #FBE9E2;
    --brique:          #9A3B1E;

    --vert-texte:      #2F7A22;   /* « Livraison 24 h », toujours posé sur une carte blanche : 5,4:1 */
    --vert-doux:       #E7F3E3;
    --bleu:            #1F5FAD;   /* liens. 6,4:1 sur blanc, 5,4:1 sur le fond */
    --bleu-doux:       #E6EEF9;
    --violet:          #6A3FA0;
    --violet-doux:     #EFE8F7;

    --produit:         #1B2A4A;   /* l'action secondaire passe à l'encre ; le bouton plein est safran */
    --produit-fonce:   #131E36;
    --produit-doux:    #E9EDF5;
    --produit-sur:     #FFFFFF;
    --lien:            var(--bleu);
    --focus:           #1F5FAD;

    --affiche:         linear-gradient(120deg, #1B2A4A 0%, #2E4A7D 60%, #9A3B1E 140%);
    --sur-affiche:     #FFFFFF;
    --sur-affiche-2:   #DCE3F0;   /* 5,4:1 sur la borne brique du dégradé */

    --police-titre:    var(--police-texte);
    --police-affiche:  var(--police-texte);

    --rayon:           10px;
    --rayon-lg:        12px;
    --rayon-xl:        16px;
    --ombre-1:         0 1px 2px rgba(27, 42, 74, .08), 0 6px 16px rgba(27, 42, 74, .07);
    --ombre-2:         0 12px 28px rgba(27, 42, 74, .16);
}

/* ── Jetons, sombre : suit le système, sauf choix explicite du compte ── */
@media (prefers-color-scheme: dark) {
    :root:root[data-theme-cauris="grand-marche"]:not([data-theme="light"]) {
        --fond:          #0F1219;
        --surface:       #181D28;
        --surface-2:     #202736;
        --filet:         #2D3546;
        --texte:         #ECEFF5;   /* 14,6:1 sur surface */
        --texte-2:       #BAC2D0;   /* 9,4:1 */
        --texte-3:       #9CA5B5;   /* 6,8:1 sur surface */
        --bordure-champ: #7885A0;   /* 4,6:1 sur surface */

        --encre:         #ECEFF5;
        --encre-fond:    #0A0E16;
        --encre-fond-2:  #151B28;
        --encre-fond-3:  #25385F;
        --sur-encre-2:   #AEB8CC;   /* 9,7:1 sur encre */

        --safran:        #F5B35A;   /* texte encre dessus 7,8:1 */
        --safran-fonce:  #F2A33A;
        --safran-doux:   #3A2A12;

        --promo:         #F09A7A;   /* 7,7:1 sur surface */
        --promo-fond:    #B4482A;   /* blanc dessus 5,4:1 */
        --promo-fond-2:  #B4482A;
        --promo-fond-fonce: #9A3B1E;
        --promo-doux:    #3A1D14;
        --brique:        #F09A7A;

        --vert-texte:    #7BD06E;   /* 8,9:1 sur surface */
        --vert-doux:     #16301A;
        --bleu:          #8DB4F0;   /* 8,0:1 sur surface */
        --bleu-doux:     #15243B;
        --violet:        #C4A6EE;
        --violet-doux:   #2A2038;

        --produit:       #8DB4F0;
        --produit-fonce: #B3CAF5;
        --produit-doux:  #15243B;
        --produit-sur:   #0B1424;
        --focus:         #8DB4F0;

        --ombre-1:       0 1px 2px rgba(0, 0, 0, .45), 0 6px 16px rgba(0, 0, 0, .35);
        --ombre-2:       0 12px 28px rgba(0, 0, 0, .5);
    }
}

:root:root[data-theme-cauris="grand-marche"][data-theme="dark"] {
    --fond: #0F1219; --surface: #181D28; --surface-2: #202736; --filet: #2D3546;
    --texte: #ECEFF5; --texte-2: #BAC2D0; --texte-3: #9CA5B5; --bordure-champ: #7885A0;
    --encre: #ECEFF5; --encre-fond: #0A0E16; --encre-fond-2: #151B28; --encre-fond-3: #25385F; --sur-encre-2: #AEB8CC;
    --safran: #F5B35A; --safran-fonce: #F2A33A; --safran-doux: #3A2A12;
    --promo: #F09A7A; --promo-fond: #B4482A; --promo-fond-2: #B4482A; --promo-fond-fonce: #9A3B1E; --promo-doux: #3A1D14; --brique: #F09A7A;
    --vert-texte: #7BD06E; --vert-doux: #16301A; --bleu: #8DB4F0; --bleu-doux: #15243B; --violet: #C4A6EE; --violet-doux: #2A2038;
    --produit: #8DB4F0; --produit-fonce: #B3CAF5; --produit-doux: #15243B; --produit-sur: #0B1424; --focus: #8DB4F0;
    --ombre-1: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 16px rgba(0, 0, 0, .35); --ombre-2: 0 12px 28px rgba(0, 0, 0, .5);
}

/* ── Titres : Inter grasse, plus de Fraunces ── */
[data-theme-cauris="grand-marche"] :is(
    main h1,
    main h2.font-dmserif,
    .cm-section-titre,
    .cm-hero-titre,
    .cm-vendre-titre,
    .cm-flash-titre,
    .cm-coupon-valeur,
    .cm-page h1,
    .cm-bandeau-rayon h1
) {
    font-family: var(--police-texte);
    font-weight: 800;
    letter-spacing: -.02em;
}

[data-theme-cauris="grand-marche"] :is(h2, h3, h4, .font-dmserif) {
    font-family: var(--police-texte);
    font-weight: 700;
    letter-spacing: -.01em;
}

/* ── Bandeau du haut : encre-2 ── */
[data-theme-cauris="grand-marche"] #app > div.max-lg\:hidden:has(+ header) {
    background-color: var(--encre-fond-2);
    color: var(--sur-encre-2);
    border-bottom: 0;
}

[data-theme-cauris="grand-marche"] #app > div.max-lg\:hidden:has(+ header) :is(a, button, span, p):not(.absolute *, .absolute) {
    color: var(--sur-encre-2);
}

[data-theme-cauris="grand-marche"] #app > div.max-lg\:hidden:has(+ header) :is(a, button):not(.absolute *):is(:hover, :focus-visible) :is(span, p),
[data-theme-cauris="grand-marche"] #app > div.max-lg\:hidden:has(+ header) a:not(.absolute *) {
    color: var(--sur-encre);
}

[data-theme-cauris="grand-marche"] #app > div.max-lg\:hidden:has(+ header) :focus-visible {
    outline-color: var(--safran);
}

/* ── En-tête : barre encre, grande recherche à bouton safran, rayons sur encre-2 ── */
[data-theme-cauris="grand-marche"] header.bg-white {
    background-color: var(--encre-fond);
    color: var(--sur-encre);
    border-bottom: 0;
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] header .border,
[data-theme-cauris="grand-marche"] header .border-b {
    border-color: transparent;
}

[data-theme-cauris="grand-marche"] header :focus-visible {
    outline-color: var(--safran);
}

/* Le logo fourni avec le thème passe en blanc ; un logo déposé dans le canal est laissé tel quel. */
[data-theme-cauris="grand-marche"] header img[src*="/build/assets/logo-"] {
    filter: brightness(0) invert(1);
}

/* Icônes de l'en-tête (panier, compte, comparateur, menu) : blanches, hors des tiroirs et des listes. */
[data-theme-cauris="grand-marche"] header :is(.icon-cart, .icon-users, .icon-compare, .icon-hamburger, .icon-camera):not(.absolute *, .fixed *) {
    color: var(--sur-encre);
}

/* Tiroirs, listes déroulantes et suggestions gardent le texte de la page. */
[data-theme-cauris="grand-marche"] header :is(.fixed, .absolute.z-20, [data-mega-menu-dropdown], .cm-suggestions) {
    color: var(--texte);
}

/* Pastille du panier : safran. */
[data-theme-cauris="grand-marche"] header :is(.bg-navyBlue):not(.fixed *) {
    background-color: var(--safran);
    color: var(--sur-safran);
    font-weight: 800;
}

/* Recherche : un bloc blanc, le bouton safran à droite. */
[data-theme-cauris="grand-marche"] header form:has(input[name="query"]) {
    position: relative;
}

[data-theme-cauris="grand-marche"] header input[name="query"] {
    min-height: 48px;
    padding-inline-end: 72px;
    border: 0 !important;
    border-radius: var(--rayon-lg);
    background-color: var(--surface);
    color: var(--texte);
    font-size: var(--t-md);
    font-weight: 400;
}

[data-theme-cauris="grand-marche"] header input[name="query"]:focus-visible {
    outline: 3px solid var(--safran);
    outline-offset: 0;
}

[data-theme-cauris="grand-marche"] header .icon-search:not(.fixed *) {
    top: 13px;
    color: var(--texte-3);
}

[data-theme-cauris="grand-marche"] header form:has(input[name="query"]) > button[type="submit"] {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-height: 44px;
    border-start-end-radius: var(--rayon-lg);
    border-end-end-radius: var(--rayon-lg);
    background-color: var(--safran);
    color: var(--sur-safran);
    cursor: pointer;
    transition: background-color 150ms ease;
}

[data-theme-cauris="grand-marche"] header form:has(input[name="query"]) > button[type="submit"]:hover {
    background-color: var(--safran-fonce);
}

[data-theme-cauris="grand-marche"] header form:has(input[name="query"]) > button[type="submit"]::before {
    content: "";
    width: 22px;
    height: 22px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16l4.5 4.5'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16l4.5 4.5'/></svg>") center / contain no-repeat;
}

/* La recherche par image, quand elle est active, se range avant le bouton. */
[data-theme-cauris="grand-marche"] header form:has(input[name="query"]) .icon-camera {
    inset-inline-end: 76px;
    color: var(--texte-2);
}

/* Barre de rayons : aplat encre-2 sur toute la largeur, sous le rang du logo. */
[data-theme-cauris="grand-marche"] header > div.flex.w-full {
    padding-top: 14px;
    row-gap: 14px;
}

[data-theme-cauris="grand-marche"] .cm-rangee-rayons {
    margin-top: 0;
    background-color: var(--encre-fond-2);
    box-shadow: 0 0 0 100vmax var(--encre-fond-2);
    clip-path: inset(0 -100vmax);
}

[data-theme-cauris="grand-marche"] .cm-rangee-rayons .flex.items-center > :is(.group, .flex.cursor-pointer) {
    height: 44px;
    border-bottom-width: 3px;
}

[data-theme-cauris="grand-marche"] .cm-rangee-rayons .flex.items-center > :is(.group, .flex.cursor-pointer):hover {
    border-color: var(--safran);
}

[data-theme-cauris="grand-marche"] .cm-rangee-rayons .flex.items-center > :is(.group, .flex.cursor-pointer) > span,
[data-theme-cauris="grand-marche"] .cm-rangee-rayons .flex.items-center > :is(.group, .flex.cursor-pointer) > span > a {
    color: var(--sur-encre);
    font-weight: 500;
}

[data-theme-cauris="grand-marche"] .cm-rangee-rayons .flex.items-center > :is(.group, .flex.cursor-pointer) > span > a {
    display: inline-flex;
    align-items: center;
    min-height: 41px;
    padding-inline: 14px;
}

[data-theme-cauris="grand-marche"] .cm-rangee-rayons [data-mega-menu-dropdown] {
    top: 44px;
    border-radius: 0 0 var(--rayon-lg) var(--rayon-lg);
    box-shadow: var(--ombre-2);
}

[data-theme-cauris="grand-marche"] .cm-rangee-rayons .shimmer {
    opacity: .25;
}

/* En-tête du téléphone : même barre encre. */
@media (max-width: 1023px) {
    [data-theme-cauris="grand-marche"] header > div.lg\:hidden {
        padding-top: 12px;
        padding-bottom: 12px;
        row-gap: 10px;
        box-shadow: none;
    }

    [data-theme-cauris="grand-marche"] header > div.lg\:hidden input[name="query"] {
        min-height: 46px;
        font-size: var(--t-md);
    }

    [data-theme-cauris="grand-marche"] header > div.lg\:hidden .icon-search:not(.fixed *) {
        top: 11px;
    }
}

/* ── Boutons : un bouton plein safran, l'action secondaire à l'encre ── */
[data-theme-cauris="grand-marche"] .primary-button {
    background-color: var(--safran);
    border-color: var(--safran);
    color: var(--sur-safran);
    border-radius: var(--rayon-lg);
    font-weight: 700;
}

[data-theme-cauris="grand-marche"] .primary-button:hover {
    background-color: var(--safran-fonce);
    border-color: var(--safran-fonce);
}

[data-theme-cauris="grand-marche"] .secondary-button {
    border-radius: var(--rayon-lg);
}

[data-theme-cauris="grand-marche"] .skip-to-main-content-link {
    background-color: var(--safran);
    color: var(--sur-safran);
}

/* ── Cartes : blanches, ombre douce, sans filet ── */
[data-theme-cauris="grand-marche"] .cm-carte {
    border-color: transparent;
    border-radius: var(--rayon-xl);
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] main .shadow-\[0_5px_10px_rgba\(0\,0\,0\,0\.1\)\] {
    border-color: transparent;
    box-shadow: var(--ombre-1);
}

/* ── Carte produit : la carte se soulève au survol ── */
[data-theme-cauris="grand-marche"] .cm-carte-produit {
    overflow: hidden;
    background-color: var(--surface);
    border-radius: 14px;
    box-shadow: var(--ombre-1);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

[data-theme-cauris="grand-marche"] .cm-carte-produit:hover {
    box-shadow: var(--ombre-2);
    transform: translateY(-2px);
}

[data-theme-cauris="grand-marche"] .cm-carte-produit:hover .cm-carte-nom {
    text-decoration: none;
}

[data-theme-cauris="grand-marche"] .cm-carte-visuel {
    border-radius: 0;
    background-color: var(--surface-2);
}

[data-theme-cauris="grand-marche"] .cm-carte-corps {
    padding: 10px 12px 14px;
    gap: 4px;
}

[data-theme-cauris="grand-marche"] .cm-carte-nom {
    font-weight: 500;
}

[data-theme-cauris="grand-marche"] .cm-carte-prix {
    font-size: 1.25rem;
    font-weight: 800;
}

[data-theme-cauris="grand-marche"] .cm-carte-prix p {
    font-weight: 800;
}

[data-theme-cauris="grand-marche"] .cm-carte-remise {
    border-radius: var(--rayon-sm);
    font-weight: 800;
}

[data-theme-cauris="grand-marche"] .cm-carte-nouveau {
    background-color: var(--encre-fond);
    color: var(--sur-encre);
}

[data-theme-cauris="grand-marche"] .cm-carte-favori span,
[data-theme-cauris="grand-marche"] .cm-carte-ajouter span {
    border: 0;
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] .cm-carte-favori {
    color: var(--texte);
}

[data-theme-cauris="grand-marche"] .cm-carte-ajouter span,
[data-theme-cauris="grand-marche"] .cm-carte-ajouter:hover span {
    background-color: var(--safran);
    color: var(--sur-safran);
}

[data-theme-cauris="grand-marche"] .cm-carte-ajouter:hover span {
    background-color: var(--safran-fonce);
}

[data-theme-cauris="grand-marche"] .cm-badge-livraison-24h {
    color: var(--vert-texte);
}

[data-theme-cauris="grand-marche"] .cm-carte-note .icon-star-fill {
    color: var(--safran-fonce);
}

@media (prefers-reduced-motion: reduce) {
    [data-theme-cauris="grand-marche"] .cm-carte-produit {
        transition: none;
    }

    [data-theme-cauris="grand-marche"] .cm-carte-produit:hover {
        transform: none;
    }
}

/* ── Accueil : affiche en dégradé encre, rayons en pastilles, ventes flash, coupons ── */
[data-theme-cauris="grand-marche"] .cm-hero {
    padding: 20px 0 0;
    background: transparent;
    border-bottom: 0;
}

/* Les blocs en carte s'alignent sur la marge des sections (90 px au bureau), sans toucher les bords. */
[data-theme-cauris="grand-marche"] :is(.cm-hero-grille, .cm-rayons).container {
    width: calc(100% - 180px);
    max-width: 1260px;
}

[data-theme-cauris="grand-marche"] .cm-hero-grille {
    min-width: 0;
    padding: 40px 44px;
    border-radius: var(--rayon-xl);
    background: var(--affiche);
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] .cm-hero-surtitre {
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: var(--voile-encre-2);
    color: var(--sur-affiche);
    font-weight: 700;
}

[data-theme-cauris="grand-marche"] .cm-hero-titre {
    color: var(--sur-affiche);
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

[data-theme-cauris="grand-marche"] .cm-hero-corps {
    color: var(--sur-affiche-2);
}

[data-theme-cauris="grand-marche"] .cm-hero-bouton {
    padding-inline: 24px;
    border-radius: var(--rayon-lg);
    background-color: var(--safran);
    color: var(--sur-safran);
    font-weight: 700;
}

[data-theme-cauris="grand-marche"] .cm-hero-bouton:hover {
    background-color: var(--safran-fonce);
}

[data-theme-cauris="grand-marche"] .cm-hero-offres {
    color: var(--sur-affiche);
}

[data-theme-cauris="grand-marche"] .cm-hero-points {
    border-top-color: var(--voile-encre-2);
    color: var(--sur-affiche);
}

[data-theme-cauris="grand-marche"] .cm-hero-tuile {
    border-radius: 14px;
    background-color: var(--voile-encre);
}

[data-theme-cauris="grand-marche"] .cm-hero :focus-visible {
    outline-color: var(--safran);
}

[data-theme-cauris="grand-marche"] .cm-rayons {
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: var(--rayon-xl);
    background-color: var(--surface);
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] .cm-rayons .cm-section-titre {
    font-size: 1.25rem;
    font-weight: 700;
}

[data-theme-cauris="grand-marche"] .cm-rayons-liste {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}

[data-theme-cauris="grand-marche"] .cm-rayon {
    justify-items: center;
    text-align: center;
}

/* Pastilles rondes : la photo du rayon dans un anneau de couleur douce. */
[data-theme-cauris="grand-marche"] .cm-rayon img,
[data-theme-cauris="grand-marche"] .cm-rayon-flash svg {
    box-sizing: border-box;
    width: 88px;
    height: 88px;
    border-radius: 50%;
}

[data-theme-cauris="grand-marche"] .cm-rayon img {
    padding: 5px;
    background-color: var(--safran-doux);
}

[data-theme-cauris="grand-marche"] .cm-rayons-liste > :nth-child(5n + 2) .cm-rayon img { background-color: var(--bleu-doux); }
[data-theme-cauris="grand-marche"] .cm-rayons-liste > :nth-child(5n + 3) .cm-rayon img { background-color: var(--promo-doux); }
[data-theme-cauris="grand-marche"] .cm-rayons-liste > :nth-child(5n + 4) .cm-rayon img { background-color: var(--vert-doux); }
[data-theme-cauris="grand-marche"] .cm-rayons-liste > :nth-child(5n + 5) .cm-rayon img { background-color: var(--violet-doux); }

[data-theme-cauris="grand-marche"] .cm-rayon-flash svg {
    padding: 26px;
}

@media (max-width: 1023px) {
    [data-theme-cauris="grand-marche"] :is(.cm-hero-grille, .cm-rayons).container {
        width: calc(100% - 64px);
    }

    [data-theme-cauris="grand-marche"] .cm-hero-grille {
        padding: 32px;
    }

    [data-theme-cauris="grand-marche"] .cm-rayons {
        padding: 20px 24px;
    }
}

@media (max-width: 767px) {
    [data-theme-cauris="grand-marche"] :is(.cm-hero-grille, .cm-rayons).container {
        width: calc(100% - 32px);
    }

    [data-theme-cauris="grand-marche"] .cm-hero {
        padding-top: 12px;
    }

    [data-theme-cauris="grand-marche"] .cm-hero-grille {
        padding: 20px;
    }

    [data-theme-cauris="grand-marche"] .cm-hero-titre {
        font-size: 1.75rem;
        overflow-wrap: anywhere;
    }

    [data-theme-cauris="grand-marche"] .cm-rayons {
        margin-top: 16px;
        padding: 16px 0 16px 16px;
    }

    [data-theme-cauris="grand-marche"] .cm-rayons-liste > * {
        flex: 0 0 92px;
    }
}

[data-theme-cauris="grand-marche"] .cm-flash {
    background: linear-gradient(90deg, var(--promo-fond), var(--promo-fond-2));
}

[data-theme-cauris="grand-marche"] .cm-flash-titre {
    font-size: var(--t-xl);
}

[data-theme-cauris="grand-marche"] .cm-compte span {
    background-color: var(--promo-sur);
    color: var(--promo-fond-fonce);
    font-weight: 800;
}

[data-theme-cauris="grand-marche"] .cm-coupons {
    background: transparent;
    border: 0;
}

[data-theme-cauris="grand-marche"] .cm-coupon {
    border-radius: var(--rayon-lg);
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] .cm-vendre {
    background-color: var(--encre-fond);
}

[data-theme-cauris="grand-marche"] .cm-vendre-bouton {
    border-radius: var(--rayon-lg);
    background-color: var(--sur-encre);
    color: var(--sur-safran);
}

[data-theme-cauris="grand-marche"] .cm-vendre-bouton:hover {
    background-color: var(--safran-doux);
}

/* ── Catégorie : bandeau de rayon encre-2 ; le flash garde la brique ── */
[data-theme-cauris="grand-marche"] .cm-bandeau-rayon {
    background-color: var(--encre-fond-2);
    color: var(--sur-encre-2);
    border-bottom: 0;
}

[data-theme-cauris="grand-marche"] .cm-bandeau-rayon h1 {
    color: var(--sur-encre);
}

[data-theme-cauris="grand-marche"] .cm-bandeau-rayon.cm-bandeau-flash {
    background: linear-gradient(90deg, var(--promo-fond), var(--promo-fond-2));
    color: var(--promo-sur);
}

/* ── Fiche produit : garanties en pastilles safran doux, bloc vendeur en carte ── */
[data-theme-cauris="grand-marche"] .cm-garanties {
    border-color: transparent;
    border-radius: var(--rayon-lg);
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] .cm-garanties li {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
}

[data-theme-cauris="grand-marche"] .cm-garanties svg {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    margin-top: 0;
    padding: 10px;
    border-radius: var(--rayon-lg);
    background-color: var(--safran-doux);
    color: var(--texte);
}

[data-theme-cauris="grand-marche"] .cm-bloc-vendeur {
    border-color: transparent;
    border-radius: var(--rayon-lg);
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] .cm-fiche-remise {
    font-weight: 800;
}

[data-theme-cauris="grand-marche"] .cm-faq {
    border-color: transparent;
    border-radius: var(--rayon-lg);
    box-shadow: var(--ombre-1);
}

/* ── Pied de page : encre, en clair comme en sombre ── */
[data-theme-cauris="grand-marche"]:root .cm-pied {
    background-color: var(--encre-fond);
}

[data-theme-cauris="grand-marche"] .cm-pied :focus-visible {
    outline-color: var(--safran);
}

/* ── Panier : son en-tête réduit reprend la barre encre ── */
[data-theme-cauris="grand-marche"] main#main > .flex.flex-wrap:first-child > .flex.w-full {
    background-color: var(--encre-fond);
    border-color: transparent;
}

[data-theme-cauris="grand-marche"] main#main > .flex.flex-wrap:first-child > .flex.w-full img[src*="/build/assets/logo-"] {
    filter: brightness(0) invert(1);
}

[data-theme-cauris="grand-marche"] main#main > .flex.flex-wrap:first-child > .flex.w-full :focus-visible {
    outline-color: var(--safran);
}

/* ── Compte client : mêmes cartes à ombre douce, bouton plein safran ── */
[data-theme-cauris="grand-marche"] :is(.ec-carte, .ec-tuile, .ec-ligne-commande) {
    border-color: transparent;
    box-shadow: var(--ombre-1);
}

[data-theme-cauris="grand-marche"] .ec-bouton--principal {
    background: var(--safran);
    border-color: var(--safran);
    color: var(--sur-safran) !important;   /* la règle du lot est en !important */
    font-weight: 700;
}

[data-theme-cauris="grand-marche"] .ec-bouton--principal:hover {
    background: var(--safran-fonce);
    border-color: var(--safran-fonce);
}
