/* =========================================
   1. CONFIGURATION & RESET
   ========================================= */
* { box-sizing: border-box; }

@font-face {
    font-family: 'Revolution';
    src: url('fonts/CFRevolution.ttf') format('truetype');
    font-weight: normal; font-style: normal;
}

body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    overflow: hidden; 
    font-family: 'Revolution', sans-serif;
    background-color: #2c3e50;
}

/* ICONES SVG */
.icon-svg { width: 24px; height: 24px; fill: currentColor; vertical-align: middle; }
.menu-icon { margin-right: 10px; }

/* =========================================
   2. MENU (GAUCHE)
   ========================================= */
.menu-btn {
    position: fixed; top: 20px; left: 20px; z-index: 2000;
    background: #c0392b; color: white;
    border: 2px solid white; padding: 10px 15px;
    cursor: pointer; font-size: 1.2rem;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    font-family: 'Revolution', sans-serif;
    text-transform: uppercase;
    display: flex; align-items: center; justify-content: center;
}
.menu-btn:hover { transform: scale(1.05); background: #d35400; }

.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(102, 20, 10, 0.90); z-index: 1500;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
    /* Ajout d'un padding pour éviter que ça touche les bords */
    padding: 20px;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-overlay a {
    font-size: 3rem; color: #e74c3c;
    text-decoration: none; margin: 10px 0;
    text-transform: uppercase; text-shadow: 2px 2px 0 #fff;
    transition: 0.3s;
    text-align: center; /* Force le centrage */
}
.nav-overlay a:hover { color: white; transform: scale(1.1); text-shadow: 2px 2px 0 #e74c3c; }
.close-menu-hint { margin-top: 30px; color: #777; font-family: sans-serif; font-size: 0.9rem; cursor: pointer; }
.close-menu-hint:hover { color: white; }

/* =========================================
   3. SECTIONS
   ========================================= */
section {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: none; flex-direction: column;
    justify-content: center; align-items: center;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
section.active { display: flex; animation: fadeIn 0.8s; }

/* =========================================
   4. HOME (DESKTOP)
   ========================================= */
.polaroid-pile {
    position: relative; width: 90%; height: 80%;
    max-width: 1200px; margin-top: 40px;
}

.polaroid-item {
    background: white;
    width: 220px; height: 270px; 
    padding: 0;
    box-shadow: 5px 12px 10px rgba(0,0,0,0.4);
    position: absolute; 
    transition: transform 0.3s;
    text-align: center;
}

.polaroid-item img { 
    position: absolute;
    top: 10px; left: 10px;
    width: 200px; height: 215px; 
    object-fit: cover;
    border: 1px solid #eee; 
    display: block; margin: 0; 
    background: white;
}

.polaroid-item span {
    position: absolute; bottom: 12px; left: 0; width: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold; color: #222; font-size: 1rem; text-transform: uppercase;
    z-index: 2;
}

.polaroid-item.deco { z-index: 1; opacity: 1; pointer-events: none; }
.polaroid-item.active { z-index: 10; cursor: pointer; }
.polaroid-item.active:hover {
    z-index: 100 !important; transform: scale(1.2) rotate(0deg) !important;
    box-shadow: 10px 20px 40px rgba(0,0,0,0.6);
}

.pos-1 { top: 5%; left: 5%; transform: rotate(-5deg); }
.pos-2 { top: 10%; right: 10%; transform: rotate(3deg); }
.pos-3 { top: 40%; left: 15%; transform: rotate(6deg); }
.pos-4 { top: 35%; left: 45%; transform: rotate(-2deg); }
.pos-5 { bottom: 10%; left: 25%; transform: rotate(-4deg); }
.pos-6 { bottom: 15%; right: 15%; transform: rotate(5deg); }

.pos-deco-1 { top: 20%; left: 40%; transform: rotate(15deg); }
.pos-deco-2 { top: 70%; right: 45%; transform: rotate(10deg); }
.pos-deco-3 { bottom: 30%; left: 5%; transform: rotate(-8deg); }
.pos-deco-4 { top: 5%; left: 55%; transform: rotate(8deg); }
.pos-deco-5 { bottom: 5%; left: 55%; transform: rotate(-12deg); }
.pos-deco-6 { top: 45%; left: -2%; transform: rotate(15deg); }
.pos-deco-7 { top: 55%; right: -2%; transform: rotate(-5deg); }
.pos-deco-8 { top: 15%; left: 20%; transform: rotate(-20deg); }

/* =========================================
   5. PAGES VILLES (CARROUSEL)
   ========================================= */
.content-wrapper {
    background: transparent; width: 100%; position: relative;
    display: flex; flex-direction: column; align-items: center;
}
.city-title {
    font-size: 4rem; color: #d35400; margin: 0 0 20px 0;
    text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 4px 4px 10px rgba(0,0,0,0.5);
    text-transform: uppercase; text-align: center;
}

.city-text-info {
    font-size: 1em; color: #000000; margin: 10px 0 0 0;
    text-transform: none; text-align: center;
	font-family: Arial, sans-serif;
}

.gallery-strip {
    display: flex;
    overflow-x: auto; overflow-y: hidden;
    width: 100%; align-items: center;
    scroll-behavior: smooth;
    padding: 60px 0 100px 0; 
    gap: 40px; 
    -ms-overflow-style: none; scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }

.photo-frame {
    width: 260px; height: 260px;
    overflow: hidden; flex-shrink: 0; cursor: pointer;
    filter: drop-shadow(0 15px 15px rgba(20, 60, 20, 0.7));
    transition: transform 0.3s ease;
}
.photo-frame img {
    position: static; margin: 0; width: 100%; height: 100%;
    object-fit: cover; transform: scale(1.8); 
    transition: transform 0.5s ease;
}
.photo-frame:hover {
    z-index: 10; transform: scale(1.05); 
    filter: drop-shadow(0 25px 30px rgba(20, 60, 20, 0.9));
}
.photo-frame:hover img { transform: scale(2.0); }

.scroll-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 20; background: rgba(192, 57, 43, 0.8);
    color: white; border: none; font-size: 2rem;
    cursor: pointer; padding: 10px 15px;
    font-family: 'Revolution', sans-serif;
    transition: 0.3s; user-select: none;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.scroll-nav-btn:hover { background: #e74c3c; transform: translateY(-50%) scale(1.1); }
.scroll-nav-btn.left { left: 10px; }
.scroll-nav-btn.right { right: 10px; }

/* =========================================
   6. LIGHTBOX
   ========================================= */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3000; display: none; justify-content: center; align-items: center;
    background: rgba(33, 200, 200, 0.8);
}
#lightbox img {
    max-width: 90%; max-height: 90%;
    object-fit: contain; border: none; background: transparent;
    filter: drop-shadow(0 0 30px rgba(10, 40, 10, 0.7));
    position: static; width: auto; height: auto; margin: auto;
}
.close-lb { 
    position: absolute; top: 20px; right: 30px; 
    color: white; font-size: 4rem; cursor: pointer; font-family: sans-serif; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* =========================================
   7. MOBILE RESPONSIVE (CORRECTION ICI)
   ========================================= */
.audio-control {
    position: fixed; bottom: 20px; right: 20px;
    background: white; width: 40px; height: 40px;
    border-radius: 50%; 
    cursor: pointer; z-index: 100; box-shadow: 0 0 10px rgba(0,0,0,0.5);
    color: #333; display: flex; justify-content: center; align-items: center;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1000px) {
    /* 1. CORRECTION DE LA TAILLE DU TEXTE MENU */
    .nav-overlay a {
        font-size: 1.8rem; /* On réduit drastiquement la taille */
        line-height: 1.2;  /* On améliore l'interlignage */
        width: 90%;        /* Le texte prend la largeur mais pas tout */
        margin: 10px auto; /* Centré */
        white-space: normal; /* Autorise le retour à la ligne propre */
    }

    /* 2. RESTE DU MOBILE */
    #home {
        background-image: url('images/fond-mobile.png') !important;
        background-position: center top;
    }
    .menu-btn:hover { transform: none; }
    
    .polaroid-pile {
        position: static; width: 100%; height: auto;
        display: flex; flex-wrap: wrap; justify-content: center;
        gap: 15px; padding-top: 100px; padding-bottom: 40px;
    }
    
    .polaroid-item {
        position: relative !important;
        top: auto !important; left: auto !important;
        right: auto !important; bottom: auto !important;
        width: 150px !important; height: 185px !important; 
        margin: 10px;
    }
    
    .polaroid-item img {
        top: 10px !important; left: 10px !important;
        width: 130px !important; height: 145px !important;
    }
    
    .polaroid-item:nth-child(odd) { transform: rotate(-2deg); }
    .polaroid-item:nth-child(even) { transform: rotate(2deg); }
    
    .polaroid-item.deco { display: none !important; }
    .scroll-nav-btn { display: none; }
    .city-title { font-size: 2.5rem; }
    .photo-frame { width: 180px; height: 180px; }
}


/* --- ALIGNEMENT TITRE + ICONE VIDEO --- */
.title-row {
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    gap: 20px; /* Espace entre le titre et l'icone */
    margin-bottom: 20px;
}

/* On enlève la marge du titre seul pour laisser le .title-row gérer l'espace */
.title-row .city-title {
    margin: 0; 
}

/* Style de l'icone cliquable (le crabe ou play) */
.video-trigger {
    width: 150px; /* Taille de l'icone */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
    /*filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));*/
}

.video-trigger:hover {
    transform: scale(1.2) rotate(10deg); /* Petit effet sympa au survol */
}

/* --- LIGHTBOX VIDEO --- */
#video-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3500; /* Au dessus de tout */
    display: none; /* Caché par défaut */
    justify-content: center; align-items: center;
    
    /* Couleur demandée */
    background: rgba(33, 200, 200, 0.8);
}

.video-wrapper {
    width: 80%;
    max-width: 900px; /* Largeur max de la vidéo */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: black; /* Petit fond noir derrière la vidéo */
    border-radius: 4px;
    overflow: hidden;
}

#popup-video {
    display: block;
    width: 100%;
    height: auto;
    outline: none;
}