@charset "UTF-8";

/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --black: #111;
    --white: #f5f6fa;
    --font-title: 'Raleway', sans-serif;
    --font-text: 'Bitter', serif;
    --radius: 6px;
    --gap: 10px;
    --boutique-sartine-color: #4f01f5;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
}
/* overflow-x: clip (≠ hidden) ne crée pas de nouveau containing block,
   donc les position:fixed de Spreadshirt (filtres, overlay couleurs) restent
   accrochés au viewport et non au body. Jamais de position:relative sur html/body
   pour la même raison. */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; touch-action: pan-y !important; }
body { background-color: var(--white); color: var(--black); margin: 0; padding: 50px 50px 0; display: flex; flex-direction: column; align-items: center; text-wrap: balance; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    width: 100%;
    margin-top: 100px;
    padding-bottom: 30px;
    font-family: var(--font-title);
    font-size: 0.65rem;
    line-height: 1.8;
    color: var(--black);
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}
.footer-content { display: flex; flex-direction: column; gap: 24px; }
.footer-cols { display: flex; flex-direction: row; gap: 50px; }
.footer-col { display: flex; flex-direction: column; }
.footer-heading { font-weight: 700; margin: 0 0 8px; }
.site-footer p { margin: 0 0 4px; }
.footer-link { font-family: var(--font-title); font-weight: 500; color: var(--black); text-decoration: none; display: inline-block; font-size: 0.65rem; text-transform: uppercase; }
.footer-taglines { opacity: 0.45; font-style: italic; }
.footer-taglines p { margin: 0; }
.fleche img { height: 10px; margin-bottom: 25px; }

.footer-link.hover-underline::after {bottom: 0px;}

/* =========================================
   LOADER & HEADER
   ========================================= */
body.loading { overflow: hidden !important; height: 100dvh; touch-action: none; }
#loader-wrapper { position: fixed; inset: 0; background: var(--white); z-index: 999999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.8s ease-out, visibility 0.8s ease-out; }
body.loaded #loader-wrapper { opacity: 0; visibility: hidden; pointer-events: none; z-index: -100; }

.loader-logo { position: relative; width: 800px; height: 300px; z-index: 1003; }
.fish { position: absolute; left: -100px; top: 0; bottom: 0; margin: auto 0; offset-rotate: auto; animation: swimCurve 3s var(--delay) ease-in-out infinite; z-index: 1003; }
.fish img { width: 60px; height: auto; opacity: 0; animation: fadeSwim 3s var(--delay) ease-in-out infinite; }

.fish-1  { offset-path: path("M -100 280 C 250 150, 750 200, 1100 280"); }
.fish-2  { offset-path: path("M -100 300 C 300 180, 750 220, 1100 300"); }
.fish-3  { offset-path: path("M -100 260 C 280 140, 760 180, 1100 260"); }
.fish-4  { offset-path: path("M -100 310 C 270 170, 730 230, 1100 310"); }
.fish-5  { offset-path: path("M -100 290 C 260 160, 740 210, 1100 290"); }
.fish-6  { offset-path: path("M -100 270 C 250 150, 750 190, 1100 270"); }
.fish-7  { offset-path: path("M -100 320 C 240 180, 740 230, 1100 320"); }
.fish-8  { offset-path: path("M -100 285 C 230 170, 730 200, 1100 285"); }
.fish-9  { offset-path: path("M -100 305 C 220 160, 760 220, 1100 305"); }
.fish-10 { offset-path: path("M -100 295 C 210 150, 770 210, 1100 295"); }

@keyframes swimCurve { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
@keyframes fadeSwim { 0%, 20% { opacity: 0; } 30% { opacity: 0.4; } 50% { opacity: 1; } 70%, 100% { opacity: 0; } }

.loader-text { font-family: var(--font-title); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--black); margin-top: -100px; display: flex; justify-content: center; gap: 2px; width: 100%; opacity: 0.8; animation: fondu 2s ease-out forwards; }
.loader-text span { display: inline-block; animation: ecartement-lettre 5s ease-out forwards; }
@keyframes ecartement-lettre { 0% { margin-right: 0px; } 100% { margin-right: 13px; } }
@keyframes fondu { 0%, 20% { opacity: 0; } 21%, 70% { opacity: 0.8; } 100% { opacity: 0; } }

/* Selection Colors */
header ::selection, #info ::selection { background-color: var(--boutique-sartine-color); color: var(--white); }
footer ::selection { background-color: var(--boutique-sartine-color); color: var(--white); }
.boutique-sartine-grid ::selection { background-color: var(--boutique-sartine-color); color: var(--white); }
#galerie ::selection { background-color: var(--boutique-sartine-color); color: var(--white); }
#panier-drawer ::selection { background-color: var(--boutique-sartine-color); color: var(--white); }

/* Utilities */
.color-boutique-sartine { color: var(--boutique-sartine-color); }

/* ── Picto panier dans le header ── */
.panier-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    position: relative;
}
.panier-btn:hover { color: var(--boutique-sartine-color); }
#panier-badge {
    display: none;
    position: absolute;
    top: -7px; right: -8px;
    min-width: 16px; height: 16px;
    padding: 0 3px;
    background: var(--boutique-sartine-color);
    color: #fff;
    border-radius: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    font-family: var(--font-title);
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.btn-panier.loading { opacity: 0.6; pointer-events: none; cursor: wait; }

/* ── Modal panier Spreadshirt ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(245, 246, 250, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 40px 20px;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal-inner {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0px 5px 30px rgba(0,0,0,0.12);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px;
    position: relative;
    font-family: var(--font-title);
    font-size: 0.55rem;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal-close {
    position: absolute; top: 20px; right: 25px;
    background: none; border: none;
    font-size: 1rem; color: var(--black);
    cursor: pointer; font-family: var(--font-title);
    font-weight: 700; opacity: 0.5;
    transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }

/* Modal panier — iframe plein format */
.modal-panier-inner {
    padding: 0;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-panier-inner .modal-close { z-index: 1; background: var(--white); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; top: 12px; right: 12px; opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#sprd-frame {
    width: 100%;
    flex: 1;
    border: none;
}


/* Header & Nav */
.site-header { position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 30px 50px; gap: 50px; z-index: 1000; background: transparent; }
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom,
        rgba(245, 246, 250, 1) 0%,      /* ← 100% opaque tout en haut */
        rgba(245, 246, 250, 0.7) 50%,
        rgba(245, 246, 250, 0) 100%
    );
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* ← même valeur que backdrop-filter */
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}
#logo-sartine { z-index: 999; width: 150px; height: auto; display: block; }
.header-logo #texte path { fill: var(--black); }
.header-logo #poisson path { fill: var(--boutique-sartine-color); transition: fill 1s ease; }
.header-logo:hover #poisson path { fill: var(--black) !important; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.nav-retour { display: flex; align-items: center; gap: 10px; }
.nav-item { font-family: var(--font-title); font-size: 0.85rem; font-weight: 700; color: var(--black); text-transform: lowercase; text-decoration: none; letter-spacing: 1px; text-align: right; }
.hover-underline { position: relative; }
.hover-underline::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 50%; transform: translateX(-50%); background-color: var(--black); transition: width 0.3s ease-in; }
.hover-underline:hover::after { width: 100%; }
#info { scroll-margin-top: 250px; }
#book { scroll-margin-top: 100px; }

/* Info Section */
main.spreadshirt {display: flex; flex-direction: column; align-items: center; width: 100%;}

/* =========================================
   LAYOUT DESKTOP (Grilles Complexes)
   ========================================= */
.grid { display: flex; flex-direction: column; gap: 50px; }

/* Style des Articles */
.boutique-sartine-grid {
    display: grid;
    gap: var(--gap);
    align-items: end;
    margin: 50px 0;
    padding-top: 60px;
}

/* Texte */
#boutique-sartine .text-area { grid-column: 1 / 4; grid-row: 1 / 2; display: flex; flex-direction: column; text-align: left; padding-right: 40px; z-index: 10; }
#boutique-sartine .client-name { font-family: var(--font-title); font-weight: 600; font-size: 1rem; letter-spacing: 2px; margin-bottom: 20px; display: block; }
#boutique-sartine .title { font-family: var(--font-title); font-weight: 800; font-size: 6rem; line-height: 0.85; letter-spacing: -3px; margin: 0 0 30px; }
#boutique-sartine .description { font-family: var(--font-text); font-weight: 700; font-size: 1.15rem; line-height: 1.5; margin-bottom: 20px; }
#boutique-sartine .tags { font-family: var(--font-text); font-weight: 300; font-style: italic; font-size: 0.95rem; text-transform: uppercase; margin-bottom: 20px; }

/* Conteneur Images (Desktop: Transparent) */
#boutique-sartine .images-container { display: contents; }

/* Items */
#boutique-sartine .item { position: relative; overflow: hidden; border-radius: var(--radius); background: #f0f0f0; box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1); }
#boutique-sartine .item img, #boutique-sartine .item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
#boutique-sartine .item:hover img, #boutique-sartine .item:hover video { transform: scale(1.05); }
#boutique-sartine .dots-separator-li.mask { display: none; }


/* Style des Articles */
.boutique-sartine-grid {
    display: grid;
    gap: var(--gap);
    align-items: end;
    margin: 50px 0;
}


/* --- PLACEMENT TETRIS (Copie exacte de tes grilles desktop) --- */
.boutique-sartine-grid { grid-template-columns: 150px 175px 150px 300px 175px; grid-template-rows: auto auto; }
.boutique-sartine-img-1 { width: 300px; height: 220px; grid-column: 4 / 5; grid-row: 1 / 2; }
.boutique-sartine-img-2 { width: 175px; height: 250px; grid-column: 5 / 6; grid-row: 1 / 2; justify-self: start; }
.boutique-sartine-img-3 { width: 650px; height: 360px; grid-column: 3 / 6; grid-row: 2 / 3; }

/* Separator */
.dots-separator { display: flex; justify-content: center; align-items: center; gap: 9px; height: 10px; margin: 60px auto; }
.dots-separator span { display: block; width: 3px; height: 3px; background-color: var(--black); border-radius: 50%; animation: pulseDot 1.5s infinite ease-in-out; }

        /* L'effet de vague : on décale le départ de chaque point de 0.1 seconde */
        .dots-separator span:nth-child(1) { animation-delay: 0.0s; }
        .dots-separator span:nth-child(2) { animation-delay: 0.1s; }
        .dots-separator span:nth-child(3) { animation-delay: 0.2s; }
        .dots-separator span:nth-child(4) { animation-delay: 0.3s; }
        .dots-separator span:nth-child(5) { animation-delay: 0.4s; }
        .dots-separator span:nth-child(6) { animation-delay: 0.5s; }
        .dots-separator span:nth-child(7) { animation-delay: 0.6s; }
        .dots-separator span:nth-child(8) { animation-delay: 0.7s; }
        .dots-separator span:nth-child(9) { animation-delay: 0.8s; }
        .dots-separator span:nth-child(10) { animation-delay: 0.9s; }

        /* Le mouvement : grossit et s'assombrit, puis rétrécit */
        @keyframes pulseDot {
            0%, 100% {
                transform: scale(1);
                opacity: 0.2; /* Subtil au repos */
            }
            50% {
                transform: scale(2); /* Grossit de 200% au sommet de la vague */
                opacity: 0.8; /* Devient plus visible */
            }
        }


/* =============================================================================
   GALERIE PRODUITS
   ========================================================================== */
#galerie {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 120px;
}

/* Description partagée */
.produits-description {
  max-width: 560px;
  margin: 0 auto 80px;
  text-align: center;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
}
.produits-description p { margin-bottom: 16px; }
.produits-description ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 16px;
}
.produits-description li {
  font-size: 0.9rem;
  color: rgba(17,17,17,0.6);
}
.produits-description li::before { content: "— "; }
.produits-note { font-size: 0.82rem; color: rgba(17,17,17,0.45); font-style: italic; }
.produits-note strong { font-style: normal; }

/* Article produit — layout 2 colonnes */
.produit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid rgba(17,17,17,0.08);
}

/* Alternance gauche/droite */
.produit--inverse .produit-visuel { order: 2; }
.produit--inverse .produit-detail { order: 1; }

/* Image */
.produit-visuel {
  display: flex;
  justify-content: center;
}
.produit-visuel img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0px 12px 40px rgba(0,0,0,0.18);
  display: block;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.produit-visuel img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 20px 50px rgba(0,0,0,0.22);
}

/* Détail produit */
.produit-ville {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.produit-titre {
  font-family: var(--font-title);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.88;
  margin-bottom: 40px;
  color: var(--black);
}

/* Sélecteur de format */
.produit-formats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.format-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.format-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  background: rgba(79,1,245,0.06);
  border: 1px solid var(--boutique-sartine-color);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-title);
  color: var(--boutique-sartine-color);
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: left;
  flex: 1;
}
.format-btn:hover {
  background: rgba(79,1,245,0.10);
}
.format-add-btn {
  width: 50px;
  flex-shrink: 0;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.format-add-btn:hover {
  background: var(--boutique-sartine-color);
  transform: translateY(-1px);
}
.format-add-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.format-error {
  font-size: 0.82rem;
  color: #c0392b;
  font-family: 'Raleway', sans-serif;
  margin-top: 4px;
}
.format-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.format-prix {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Bouton panier */
.btn-panier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-panier:hover {
  background: var(--boutique-sartine-color);
  transform: translateY(-2px);
}
.btn-prix { font-weight: 800; }
.note-prix {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(17,17,17,0.35);
  margin-top: 10px;
  text-align: center;
}
.produit-info {
  font-family: var(--font-text);
  font-size: 0.82rem;
  color: rgba(17,17,17,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}
.produit-info strong { font-style: normal; color: rgba(17,17,17,0.7); }









/* =============================================================================
   GALERIE AFFICHES — Grilles tetris (copiées et adaptées depuis sartine.css)
   ========================================================================== */

/* Séparateur SVG entre les affiches (identique au site Sartine) */
svg.dots-separator {
    display: block;
    width: 150px;
    height: auto;
    margin: 100px auto;
    overflow: visible;
}
svg.dots-separator circle {
    fill: var(--black);
    transform-box: fill-box;
    transform-origin: center;
    animation: pulseSVG 1.5s infinite ease-in-out;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0.2;
}
@keyframes pulseSVG {
    0%, 100% { transform: scale(1);   opacity: 0.2; }
    50%       { transform: scale(2.2); opacity: 0.8; }
}

/* Texte des articles (même règles que sartine.css) */
#galerie .text-area {
    grid-column: 1 / 4;
    grid-row: 2 / 5;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-right: 40px;
    z-index: 10;
}
#galerie .client-name { font-family: var(--font-title); font-weight: 600; font-size: 1rem; letter-spacing: 2px; margin-bottom: 20px; display: block; }
#galerie .title       { font-family: var(--font-title); font-weight: 800; font-size: 6rem; line-height: 0.85; letter-spacing: -3px; margin: 0 0 30px; }
#galerie .highlight   { font-style: italic; }

/* Images */
#galerie .images-container { display: contents; }
#galerie .item { position: relative; overflow: hidden; border-radius: var(--radius); background: #f0f0f0; box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1); }
#galerie .item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
#galerie .item:hover img { transform: scale(1.05); }

/* Structure commune à toutes les grilles produit — 3 rangées :
   row 1 = texte (gauche) / vide (droite)
   row 2 = mise en situation (gauche) / haut du poster (droite)
   row 3 = vide (gauche) / bas du poster (droite) */
.produit-grid {
    display: grid;
    gap: var(--gap);
    align-items: start;
    margin: 50px 0;
    grid-template-columns: 150px 175px 150px 350px;
    grid-template-rows: auto auto auto;
}

/* Poster principal : col droite, rows 2-4 — démarre sous le texte */
.produit-img {
    width: 350px; height: auto;
    grid-column: 4 / 6; grid-row: 3 / 7;
    align-self: start;
    justify-self: flex-end;
}

/* Mise en situation : col gauche row 2, sous le texte, à côté du poster */
.produit-ph {
    width: 375px; height: 250px;
    grid-column: 2 / 4; grid-row: 6 / 8;
    align-self: start;
    justify-self: flex-end;
}


/* =============================================================================
SPREADSHIRT — Variables de couleur alignées sur la palette Sartine
========================================================================== */
:root {
  /* Fond : identique au body Sartine */
  --sprd-main1: #f5f6fa !important;
  --sprd-main3: #f5f6fa !important;
  --sprd-main3-dec: 245, 246, 250 !important;

  /* Couleur primaire / accent : violet boutique Sartine */
  --sprd-main: #4f01f5 !important;
  --sprd-main1-shifted: #e0e1e8 !important;

  /* CTA (boutons d'achat) : noir Sartine */
  --sprd-main2: #111111 !important;
  --sprd-main2-shifted: #333333 !important;
  --sprd-main2-shifted-3: #555555 !important;
  --sprd-cta-text-color: #f5f6fa !important;

  /* Textes secondaires / liens */
  --sprd-sub2: #4f01f5 !important;
  --sprd-sub2-shifted: #3a01b5 !important;
  --sprd-sub2-shifted-2: #6b2dff !important;

  /* Accents tertiaires */
  --sprd-sub3: #111111 !important;
  --sprd-sub3-shifted: #333333 !important;

  /* Couleur banderole promo : violet boutique */
  --sprd-main3-shifted: #4f01f5 !important;
}

/* =============================================================================
SPREADSHIRT — Layout & Masquage d'éléments redondants
========================================================================== */

.SprdMain {
  margin: 0 auto;
  max-width: 100% !important;
  width: 100%;
  background-color: var(--sprd-main1) !important;
}

.SprdMain .customPageBackground {
  background-color: var(--sprd-main3) !important;
}

/* Cache l'en-tête Spreadshirt (logo, breadcrumb) – on a déjà notre header */
.sprd-header-custom-html,
.sprd__headline,
.sprd-header__logo,
.sprd-header__claim {
  display: none !important;
}

/* Cache les filtres Catégories / Couleurs qui causent des bugs d'overlay */
.sprd-department-filter,
.sprd-attribute-filter,
.sprd-color-filter,
.sprd-filters,
.sprd-filter,
.sprd-filter-bar,
.sprd-product-list__filters,
[class*="sprd-filter"],
[class*="sprd-attribute"] {
  display: none !important;
}

/* =============================================================================
SPREADSHIRT — Typographie : Raleway partout
========================================================================== */
#sprd-main,
#sprd-main *,
.SprdMain,
.SprdMain * {
  font-family: 'Raleway', sans-serif !important;
}

/* Descriptions produit en Bitter (serif), cohérent avec le site */
#sprd-main .sprd__caption,
#sprd-main .sprd-product__description,
#sprd-main .sprd-article__description {
  font-family: 'Bitter', serif !important;
  font-weight: 400;
}

/* Poids normalisés */
.sprd-burgermenu__menu-title,
.sprd-burgermenu__title,
.sprd-link--selected {
  font-weight: 600 !important;
}

/* Compteur panier */
.sprd-basket-indicator__count {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.70em !important;
  color: var(--sprd-main1) !important;
}

/* =============================================================================
SPREADSHIRT — Header interne Spreadshirt
========================================================================== */
.sprd-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--sprd-main1) !important;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.SprdMain .sprd-header__actions {
  background-color: var(--sprd-main1) !important;
}

.sprd-navigation {
  order: 1;
  background-color: var(--sprd-main1) !important;
  margin-top: 15px;
  margin-left: 20px;
}

.sprd-header {
  order: 2;
  background-color: var(--sprd-main1) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Bannière promo en violet Sartine */
.sprd-promo-header,
.sprd-promo-header__center {
  order: 3;
  justify-content: start !important;
  background-color: var(--sprd-main2) !important;
  margin-top: 20px;
  width: 100%;
}

/* =============================================================================
SPREADSHIRT — Navigation / filtres
========================================================================== */
.sprd-department-filter {
  align-items: center;
  gap: 20px;
  padding: 0 !important;
}

.sprd-nav-link {
  padding: 0 !important;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.sprd-department-filter__openmenu > .sprd-nav-link {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 600 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sprd-department-filter__openmenu:hover > .sprd-nav-link,
.sprd-department-filter__openmenu:focus-within > .sprd-nav-link {
  border-bottom-style: solid;
  border-bottom-width: 0.5px !important;
  padding-bottom: 0;
}

.sprd-nav-link--active {
  border-bottom-width: 0.5px !important;
}

/* =============================================================================
SPREADSHIRT — Panier
========================================================================== */
.sprd-basket-indicator__icon {
  height: 2em !important;
  width: 2em !important;
}

.sprd-basket__content {
  max-width: 100% !important;
}

.SprdMain .sprd-basket-indicator__count {
  color: var(--sprd-main1) !important;
}

.SprdMain .sprd-basket-indicator__button--open,
.SprdMain .sprd-basket-indicator__button:focus {
  border-bottom-width: 0.5px !important;
}

/* =============================================================================
SPREADSHIRT — Boutons CTA
========================================================================== */
.sprd-btn-primary {
  border-radius: var(--radius) !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: lowercase !important;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.sprd-btn-primary:hover {
  border: 0 !important;
  transform: translateY(-1px) !important;
}

/* =============================================================================
SPREADSHIRT — Cartes produits
========================================================================== */
.sprd-product,
.sprd-article {
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.08) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.sprd-product:hover,
.sprd-article:hover {
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

.sprd-product__name,
.sprd-article__name {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
}

.sprd-product__price,
.sprd-article__price {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 600 !important;
}

@media (max-width: 999px) {
  .sprd-header {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* =============================================================================
   RESPONSIVE GLOBAL (Max 1023px)
   (Permet de casser le desktop et d'empiler le texte au-dessus des images)
   ========================================================================== */
@media (max-width: 1023px) {

    body { padding: 20px 20px 0; }
    .site-header { padding: 30px; }
    .header-nav { gap: 10px; }

    /* Footer responsive */
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        margin-top: 60px;
    }
    .footer-cols { flex-wrap: wrap; gap: 30px; }
    .fleche { align-self: flex-end; }

    /* Galerie affiches — tablette */
    #galerie { width: 100%; padding: 0 20px 80px; }
    .produit-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 30px 0;
    }
    #galerie .text-area { width: 100%; max-width: 600px; padding-right: 0; margin-bottom: 30px; }
    #galerie .title { font-size: 3.5rem; letter-spacing: -1px; }
    #galerie .images-container { display: flex; width: 100%; justify-content: center; gap: 10px; flex-wrap: wrap; }
    #galerie .item { width: auto !important; max-width: 280px; height: auto !important; }
    .produit-ph { align-self: stretch; }
    svg.dots-separator { margin: 40px auto; }

    /* Structure stack : Texte au dessus, images dessous */
    .boutique-sartine-grid {
        display: flex;
        flex-direction: column;
        align-items: center; 
        margin: 0;
        padding-top: 100px; /* Espace pour le header */
    }

    #boutique-sartine .text-area { 
        width: 100%; 
        margin-bottom: 30px; 
        padding-right: 0;
        max-width: 600px;
    }

    #boutique-sartine .title { font-size: 3.5rem; letter-spacing: -1px; }

    /* On annule le display: contents pour utiliser une vraie grille CSS interne */
    #boutique-sartine .images-container {
        display: grid !important;
        width: 100%;
        gap: 10px;
    }

    /* Reset des items pour qu'ils obéissent à la nouvelle grille */
    #boutique-sartine .item {
        width: 100% !important;
        margin: 0 !important;
        height: auto;
    }
}

/* =============================================================================
   TABLETTE (801px à 1023px)
   ========================================================================== */
@media (min-width: 801px) and (max-width: 1023px) {
    main.spreadshirt { max-width: 800px; padding: 50px 20px; margin: 0 auto; }
   
    /* On crée une grille de 6 colonnes pour recréer un mini-tetris */
    #boutique-sartine .images-container {
        grid-template-columns: repeat(6, 1fr); 
        grid-auto-rows: auto; 
    }

    .boutique-sartine-img-1 { grid-column: 1 / 4; grid-row: 1 / 2; height: 300px !important; align-self: flex-end; }
    .boutique-sartine-img-2 { grid-column: 4 / 7; grid-row: 1 / 2; height: 400px !important; align-self: flex-end;}
    .boutique-sartine-img-3 { grid-column: 2 / 6; grid-row: 2 / 3; height: 350px !important; }
}

/* =============================================================================
   MOBILE (Max 800px)
   ========================================================================== */
@media (max-width: 800px) {
    body { padding: 10px 10px 0; }
    .site-header { padding: 10px 20px; }

    main.spreadshirt {
        max-width: 375px;
        padding: 50px 20px;
        margin: 0 auto; /* Pour centrer le main */
    }

    #boutique-sartine .title { font-size: 2.5rem; }

    /* Grille de 4 colonnes pour les téléphones */
    #boutique-sartine .images-container {
        grid-template-columns: repeat(4, 1fr); 
        grid-auto-rows: auto;
    }

    .boutique-sartine-img-1 { grid-column: 1 / 3; grid-row: 1 / 2; height: 120px !important; align-self: flex-end; }
    .boutique-sartine-img-2 { grid-column: 3 / 5; grid-row: 1 / 2; height: 200px !important; }
    .boutique-sartine-img-3 { grid-column: 1 / 5; grid-row: 2 / 3; height: 200px !important; }

    /* Footer — mobile */
    .footer-cols { flex-direction: column; gap: 24px; }

    /* Galerie affiches — mobile */
    #galerie { padding: 0 10px 60px; }
    #galerie .title { font-size: 2.5rem; letter-spacing: -1px; }
    #galerie .item { max-width: 260px; }
    .btn-panier { font-size: 0.8rem; padding: 14px 16px; }
    svg.dots-separator { margin: 30px auto; }
}

/* =============================================================================
   DRAWER PANIER
   ========================================================================== */
#panier-drawer {
    position: fixed;
    top: 0; right: -520px;
    width: 480px; max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 9000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    font-family: var(--font-title);
}
#panier-drawer.is-open { right: 0; }

#panier-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(17,17,17,0.35);
    z-index: 8999;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
#panier-overlay.is-open { display: block; }

/* Header du drawer */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(17,17,17,0.08);
    flex-shrink: 0;
}
.drawer-titre {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--black);
    margin: 0;
}
.drawer-close {
    background: none; border: none;
    font-size: 1.1rem; cursor: pointer;
    color: var(--black); opacity: 0.4;
    transition: opacity 0.2s;
    padding: 4px;
    line-height: 1;
}
.drawer-close:hover { opacity: 1; }

/* Liste articles */
#drawer-items {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.drawer-vide {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: rgba(17,17,17,0.45);
    font-style: italic;
    margin: 40px 0;
    text-align: center;
}
.drawer-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(17,17,17,0.07);
}
.drawer-item:last-child { border-bottom: none; padding-bottom: 0; }
.drawer-item img {
    width: 72px; height: 96px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.drawer-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.drawer-item-name {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--black);
}
.drawer-item-format {
    font-size: 0.78rem;
    color: rgba(17,17,17,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drawer-item-prix {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--boutique-sartine-color);
    margin-top: 6px;
}
.drawer-item-qty {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(17,17,17,0.45);
    margin-top: 2px;
}
/* ── Poubelle dans le drawer ── */
.drawer-item-trash {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(17,17,17,0.22);
    transition: color 0.2s;
    line-height: 0;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}
.drawer-item-trash:hover { color: var(--boutique-sartine-color); }

/* ── Compteur inline dans chaque format (spans, pas boutons) ── */
.format-inline-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.qty-span {
    width: 22px; height: 22px;
    border: 1.5px solid rgba(17,17,17,0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    color: var(--black);
    user-select: none;
}
.qty-span:hover { border-color: var(--boutique-sartine-color); color: var(--boutique-sartine-color); }
.format-btn .qty-span { border-color: var(--boutique-sartine-color); color: var(--boutique-sartine-color); }
.qty-num {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 14px;
    text-align: center;
}

/* ── Toast panier (position définie par JS) ── */
#panier-toast {
    position: fixed;
    z-index: 1100;
    background: var(--boutique-sartine-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-family: var(--font-title);
    font-size: 0.78rem;
    line-height: 1.5;
    box-shadow: 0 6px 20px rgba(79,1,245,0.25);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-sizing: border-box;
}
#panier-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer du drawer */
.drawer-footer {
    padding: 20px 28px 36px;
    border-top: 1px solid rgba(17,17,17,0.08);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.drawer-total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(17,17,17,0.55);
}
.drawer-total-line.total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--black);
    margin-top: 4px;
}
.drawer-total-line.total span:last-child {
    font-size: 1.3rem;
    color: var(--black);
}
.drawer-note-port {
    font-size: 0.7rem;
    color: rgba(17,17,17,0.38);
    font-style: italic;
    text-align: right;
    margin-top: -4px;
}
.btn-commander {
    display: block;
    margin-top: 12px;
    padding: 16px 24px;
    background: var(--boutique-sartine-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
}
.btn-commander:hover {
    background: #3a01b5;
    transform: translateY(-1px);
}

@media (max-width: 800px) {
    #panier-drawer { width: 100vw; right: -100vw; }
    #panier-drawer.is-open { right: 0; }
}

/* =========================================
   ADMIN BOUTIQUE — overlays & modal
   ========================================= */

.shop-edit-overlay { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s; z-index: 10; }
article:hover .shop-edit-overlay { opacity: 1; }
.shop-edit-btn, .shop-del-btn, .shop-toggle-btn { height: 28px; padding: 0 10px; border-radius: 4px; border: none; cursor: pointer; font-size: 11px; font-weight: 600; font-family: 'Raleway', sans-serif; }
.shop-edit-btn { background: #1a1a2e; color: #fff; }
.shop-del-btn { background: #ef4444; color: #fff; }
.shop-toggle-btn--active { background: rgba(74,222,128,0.2); color: #166534; border: 1px solid rgba(74,222,128,0.5); }
.shop-toggle-btn--inactive { background: rgba(148,163,184,0.15); color: #64748b; border: 1px solid rgba(148,163,184,0.3); }

/* Produit inactif en mode édition */
.shop-product--inactive { opacity: 0.35; }
.shop-product--inactive .shop-edit-overlay { opacity: 1; }

#bab-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 9100; align-items: center; justify-content: center; }
#bab-modal-overlay.open { display: flex; }
#bab-modal { background: #fff; border-radius: 8px; width: min(900px, 94vw); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.bab-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
.bab-modal-header h2 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0; }
.bab-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #6b7280; line-height: 1; }
.bab-modal-body { flex: 1; overflow-y: auto; padding: 20px; }
#bab-sprd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bab-sprd-card { border: 2px solid #e5e7eb; border-radius: 6px; padding: 10px; cursor: pointer; transition: border-color .15s; text-align: center; position: relative; }
.bab-sprd-card:hover { border-color: #1a1a2e; }
.bab-sprd-card.selected { border-color: #e63946; background: #fff5f5; }
.bab-sprd-card.already-added { opacity: .45; cursor: not-allowed; }
.bab-sprd-card.already-added::after { content: 'Déjà ajouté'; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #6b7280; white-space: nowrap; }
.bab-sprd-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; margin-bottom: 6px; }
.bab-sprd-card .bab-card-name { font-size: 11px; font-weight: 600; color: #1a1a2e; line-height: 1.2; }
#bab-step2 { display: none; }
.bab-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.bab-upload-zone { border: 2px dashed #d1d5db; border-radius: 6px; padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s; position: relative; }
.bab-upload-zone:hover { border-color: #1a1a2e; }
.bab-upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bab-upload-zone .bab-preview { width: 100%; max-height: 200px; object-fit: contain; margin-top: 10px; display: none; border-radius: 4px; }
.bab-upload-zone .bab-upload-label { font-size: 12px; color: #6b7280; pointer-events: none; }
.bab-upload-zone .bab-upload-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #1a1a2e; }
.bab-title-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.bab-field label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.bab-field input { width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; font-family: 'Raleway', sans-serif; }
.bab-modal-footer { padding: 14px 20px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.bab-btn-cancel { padding: 8px 16px; border: 1px solid #d1d5db; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; font-family: 'Raleway', sans-serif; }
.bab-btn-save { padding: 8px 20px; background: #e63946; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: 'Raleway', sans-serif; }
.bab-btn-save:disabled { opacity: .5; cursor: not-allowed; }
.bab-loader { text-align: center; padding: 40px; color: #6b7280; font-size: 13px; }
.bab-step-indicator { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 12px; color: #6b7280; }
.bab-step-indicator .step { padding: 2px 10px; border-radius: 20px; background: #f3f4f6; font-weight: 600; }
.bab-step-indicator .step.active { background: #1a1a2e; color: #fff; }