/* --- VARIABLES DE DESIGN --- */
:root {
    --encre: #1A1A1A;
    --recu: #f0ece7;
    --liquidation: #ff4500;
    --rabais: #FEF250;
    --promotion: #FF6EC7;
    --affiche: #00BFFF;
}

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

body {
    font-family: 'Lilex', monospace;     
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--encre);
    overflow-x: hidden; 
}


.lilex{
  font-family: "Lilex", monospace;
  font-optical-sizing: auto;
  font-weight: 100;
}





/* --- MENU REÇU --- */
#nav-tag {
    position: fixed;
    top: 20px;
    right: 20px; 
    z-index: 10000;
    background: var(--recu);
    color: var(--encre);
    padding: 15px;
    border: 0.5px solid var(--encre);
    mix-blend-mode: hard-light;
    width: 180px; 
    max-height: 55px;
    overflow: hidden;
}

#nav-tag:hover, 
#nav-tag.active {
    max-height: 80vh; 
    overflow-y: auto; 
    transform: rotate(0deg);
}

.nav-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 15px;
    cursor: pointer; 
}

@media (max-width: 768px) {
    #nav-tag {
        width: 140px;
        top: 10px;
        right: 10px;
        padding: 10px;
    }
    
    #menu li {
        font-size: 0.7rem;
        padding: 8px 0; 
    }

    .nav-header {
        font-size: 0.7rem;
    }
}

.receipt-content { opacity: 0; transition: opacity 0.5s ease; }
#nav-tag:hover .receipt-content { opacity: 1; color:var(--encre)
}

#menu { list-style: none; margin-bottom: 20px; }
#menu li { font-size: 0.8rem; padding: 6px 0; cursor: pointer; transition: 0.2s; }
#menu li:hover { font-weight: 700; color: var(--encre); }


/* --- STRUCTURES --- */
.horizontal-outer {
    overflow: hidden;
    width: 100%;
}

.horizontal-wrapper {
    display: flex;
    width: fit-content; 
}

.vertical-wrapper {
    width: 100%;
}

section {
    width: 100vw;
    height: 100vh;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 10vw;
}

/* --- SECTIONS --- */
.section-intro { background-color: var(--recu); flex-direction: column; justify-content: center; }
.section-experience { background-color: var(--recu); color: var(--encre); justify-content: center;mix-blend-mode:lighten;text-align:left; }
.section-milano { background-color: var(--affiche); }
.section-sabor { background-color: var(--rabais); }
.section-kimphat { background-color: var(--promotion); }
.section-amira { background-color: var(--liquidation); }
.section-conclusion { background-color: var(--recu); }

.section-experience h1{
    margin-bottom:20px;
    margin-top:100px;
}
.section-experience{
    padding:15px;
    font-size:0.75em;
}


h1 {
    font-size: 3.5vw;
    color: var(--encre);
    text-transform: uppercase;
    line-height: 1;
    z-index: 10;
    font-weight: 100;
    text-align: center;
}

p{
    font-size:0.9rem;
    margin-bottom:10px;
}
.text-experience {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
    z-index: 10;
}

/* --- FADE IN EFFECT --- */
.section-experience h1, 
.section-experience p,
.epicerie-title,
.epicerie-adresse,
.section-conclusion h2,
.section-conclusion p {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

/* --- POSITIONNEMENT DES TITRES SCROLL HORIZONTAL --- */

.section-conclusion h2 {
    position: absolute;
    top: 8vh;           
    left: 50%;          
    transform: translateX(-50%); 
    width: auto;
    text-align: center;
    white-space: nowrap; 
    margin-bottom:15px;
    padding: 0;
  font-size: clamp(2rem, 6vw, 4rem);
    color: var(--encre);
    text-transform: uppercase;
    line-height: 1;
    z-index: 20;         
    pointer-events: none;
    font-weight: 100;
    margin-bottom: 1.5vh; 
    white-space: normal; 
    word-wrap: break-word;

}

.section-conclusion {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
}

.section-conclusion .text-experience {
    margin-top: 10vh; 
}

/* --- IMAGES --- */
.img-wrap {
    position: absolute;
    z-index: 5;
    cursor: grab; 
    touch-action: none; 
    user-select: none;  
    mix-blend-mode: multiply;
}
.img-wrap img {
    width: 100%;
    display: block;
 
}

.img-wrap img :hover {
    opacity: 0;              
    pointer-events: none;
}

/* --- IMAGE ET DOT --- */
.dot, .img-wrap {
    touch-action: none; 
    user-select: none; 
    cursor: grab;
}
.dot:active, .img-wrap:active {
     cursor: grabbing;
}
.dot:hover, .img-wrap:hover {
    filter: brightness(1.2);
    outline: 1px dashed rgba(0,0,0,0.2);
}

/* --- DOTS --- */
.dot {
     position: absolute;
    z-index: 1;
    background: var(--liquidation);
    border-radius: 50%;
    mix-blend-mode: multiply;
    width: clamp(60px, 12vw, 180px);
    height: clamp(60px, 12vw, 180px);
    aspect-ratio: 1 / 1; 
    animation: idleFloat 5s ease-in-out infinite;
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
    touch-action: none; 
    user-select: none;
}

@keyframes idleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.dot:hover {
    opacity: 0;
    transform: scale(0.1);
}

.receipt-footer {
     border-bottom: 1px dashed var(--encre);
}

/* --- BARRE DE PROGRESSION DOT --- */
.progress-container {
    position: fixed;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 9999;
    pointer-events: none; 
    background: transparent;
}

#progress-top { top: 0; }
#progress-bottom { bottom: 0; }

.progress-dots {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px; 
    transform: translateY(-50%);
    background-image: linear-gradient(to right, rgba(0,0,0,0.15) 20%, transparent 0%);
    background-size: 10px 2px; 
    background-repeat: repeat-x;
}
.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%; 
    height: 2px;
    transform: translateY(-50%);
    background-image: linear-gradient(to right, var(--encre) 20%, transparent 0%);
    background-size: 10px 2px;
    background-repeat: repeat-x;
    border-right: 2px solid var(--liquidation);
    z-index: 2;
}

/* --- BOUTON CLAVIER SCROLL --- */
#keyboard-hint {
    position: fixed;
    bottom: 35px; 
    left: 50%;
    transform: translateX(-500%);
    z-index: 9000;
    color: var(--encre);
    padding: 8px 15px;
    border: 0.5px solid var(--encre);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0; 
    transition: opacity 0.5s ease;
    pointer-events: none; 
}

/* --- PARAMÈTRES RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 12vw; } 
    
    .img-wrap {
        width: 40vw !important; 
    }
}

.credit {
    text-align: center;
    font-size: 0.7rem;
    font-style: italic;
    font-weight: 100;
    line-height: 1.5;
    color: var(--encre);
    opacity: 0; 
    margin-bottom: 25px;
    letter-spacing: 0.02em;
}


/* --- LE CONTENEUR DE TITRE (HEADER GROUPE) --- */
.header-groupe {
    position: absolute;
    top: 8vh;               /* Distance depuis le haut de la section */
    left: 50%;
    transform: translateX(-50%); /* Centrage horizontal parfait */
    width: 90%;             /* Évite que le texte ne touche les bords */
    max-width: 1200px;
    display: flex;
    flex-direction: column; /* Aligne le H2 et le H3 verticalement */
    align-items: center;    /* Centre les textes à l'intérieur du groupe */
    text-align: center;
    z-index: 100;
    pointer-events: none;
    
    /* État initial pour l'animation GSAP */
    opacity: 0;
    will-change: transform, opacity;
}


/* --- LE CONTENEUR GLOBAL DU TITRE ET DE L'ADRESSE --- */
.header-groupe {
    position: absolute;
    top: 10vh;               /* Distance depuis le haut de la section */
    left: 50%;               /* Place le début du bloc au centre horizontal */
    transform: translateX(-50%); /* Recule le bloc de la moitié de sa propre largeur pour un centrage parfait */
    
    width: 90%;              /* Largeur du bloc pour éviter l'overflow */
    max-width: 1200px;
    
    display: flex;
    flex-direction: column;  /* Aligne le H2 et le H3 verticalement (l'un sous l'autre) */
    align-items: center;     /* Centre les textes horizontalement dans la colonne */
    text-align: center;      /* Aligne le texte au centre */
    
    z-index: 100;            /* Toujours devant les images */
    pointer-events: none;    /* Permet de cliquer à travers pour attraper les photos derrière */
    
}

/* --- LE TITRE (H2) --- */
.epicerie-title {
    position: relative;      /* On enlève 'absolute' pour qu'il suive le flux du groupe */
    font-size: clamp(2.5rem, 8vw, 5rem); /* Taille réactive (min, idéal, max) */
    font-weight: 200;
    color: var(--encre);
    text-transform: uppercase;
    line-height: 1;          /* Évite trop d'espace entre les lignes du titre */
    margin: 0;
    margin-bottom: 20px;     /* MARGE ENTRE LE TITRE ET L'ADRESSE */
    white-space: normal;     /* Permet le retour à la ligne si le titre est trop long */
    word-wrap: break-word;
    opacity:1;
}

/* --- L'ADRESSE (H3) --- */
.epicerie-adresse {
    position: relative;      /* On enlève 'absolute' pour qu'il se place sous le H2 */
    font-size: clamp(0.7rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: var(--encre);
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin: 0;
}

/* --- AJUSTEMENT RESPONSIVE POUR MOBILE --- */
@media (max-width: 768px) {
    .header-groupe {
        top: 12vh;
    }
    .epicerie-title {
        font-size: 10vw;
        margin-bottom: 10px;
    }
}

#overlay-entrer {
    position: fixed;
    inset: 0;
    background-color: var(--liquidation);
    z-index: 20000; /* Au dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 1s ease;
}

.overlay-content h1 {
    font-size: 5vw;
    margin-bottom: 30px;
    font-weight: 700;
}

#btn-entrer {
    background: var(--recu);
    color: var(--liquidation);
    border: none;
    width: clamp(60px, 12vw, 150px);
    height: clamp(60px, 12vw, 150px);
    padding: 20px 40px;
    border-radius: 50%;
    font-family: 'Lilex', monospace;
    font-weight: 500;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}


#btn-entrer:hover {
    transform: translate(-2px, -2px);
}