@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%;
}
html, body { overflow-x: hidden; max-width: 100%; position: relative; 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; }

/* =========================================
   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(--maille-color); color: var(--white); }
footer ::selection { background-color: var(--gestes-color); color: var(--white); }
.boutique-sartine-grid ::selection { background-color: var(--boutique-sartine-color); color: var(--white); }

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

/* 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: 10px; 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: 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 */
            }
        }


/* =============================================================================
CHARGEMENT
========================================================================== */
#sartine {
  position: relative;
  max-width: 1400px; 
  width: 100%; 
  margin: 0 auto;
}









/* =============================================================================
SPREASHIRT
========================================================================== */ 
:root {
  --sprd-main: #92b8e1 !important;  
  --sprd-main1: #f5f6fa !important;
  --sprd-main2: #893a6f !important;
  --sprd-main3: #f5f6fa !important;
  --sprd-sub2: #867eaf !important;
  --sprd-sub3: #893a6f !important;
  --sprd-main3-dec: 255, 255, 255 !important;
  --sprd-cta-text-color: #f5f6fa !important;
  --sprd-main1-shifted: #CCCCCC !important;
  --sprd-main2-shifted: #ffd449 !important;
  --sprd-main3-shifted: #CCCCCC !important;
  --sprd-sub2-shifted: #919396 !important;
  --sprd-sub3-shifted: #999999 !important;
  --sprd-sub2-shifted-2: #C8C9CB !important;
  --sprd-main2-shifted-3: #ffd449 !important;
}



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

.SprdMain {
  margin: 0 auto;
  max-width: 100% !important;
  width: 100%;
}
.sprd-header-custom-html {
  display: none !important;
}
.sprd__headline {
  display: none !important;
}
#sprd-main {
  font-family: 'Raleway', sans-serif;
  font-style: normal;
  font-weight: normal;
}
#sprd-main .sprd__caption, #sprd-main .sprd__headline {
  font-family: 'Raleway', sans-serif;
  font-style: normal;
  font-weight: normal;
}
.sprd-burgermenu__menu-title, .sprd-burgermenu__title, .sprd-link--selected {
  font-weight: normal !important;
}
.sprd-basket-indicator__count {
  font-family: 'Raleway', sans-serif;
  font-style: normal;
  font-weight: normal !important;
  font-size: .70em !important;
}
.sprd-btn-primary:hover {
  border: 0 !important;
}
.sprd-header-container {
  display: flex;
  justify-content: space-between;
  background-color: var(--sprd-main1) !important;
    flex-wrap: wrap; /* Permet d'ajuster la mise en page pour le mobile */

}

.SprdMain .sprd-header__actions {
  background-color: var(--sprd-main1) !important; 
}
.sprd-navigation {
  order: 1; /* Place la navigation avant */
  background-color: var(--sprd-main1) !important;
  margin-top: 15px;
  margin-left: 20px;  
}
.sprd-header {
  order: 2; /* Place les actions aprÃ¨s */
  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;
}


.sprd-promo-header, .sprd-promo-header__center {
  order: 3; /* Place la navigation avant */
  justify-content: start !important;
  background-color: var(--sprd-main2) !important;
    margin-top: 20px;
  width: 100%;
}


.sprd-department-filter {
  align-items: center;
}



.SprdMain .sprd-basket-indicator__count {
  color: #000;  
}
.sprd-basket-indicator__icon {
  height: 2em !important;
  width: 2em !important;
}

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



.sprd-department-filter {
  gap: 15px;
    padding: 0 !important;
}

.sprd-nav-link {
    padding: 0 !important;
}

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

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

 .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;
}


.SprdMain .sprd-basket-indicator__button--open, .SprdMain .sprd-basket-indicator__button:focus {
      border-bottom-width: 0.5px !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; }

    /* 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; }
}