/* --- VARIABLES DE CONCEPTION & DESIGN SYSTEM --- */
:root {
    --primary-color: #1A1A1A;
    --accent-color: #C0392B;
    --bg-color: #F4F4F6;
    --card-bg: #FFFFFF;
    --text-color: #2D2D2D;
    --border-color: #E2E2E7;
    --text-secondary: #6E6E73;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
}

/* Ajout d'un padding-top pour compenser le header fixe et éviter que le contenu ne soit caché */
body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    margin: 0; 
    padding: 0; 
    padding-top: 80px; 
    -webkit-font-smoothing: antialiased; 
}

/* Bloque le débordement horizontal sur tout le site (corrige le bug du menu caché à droite) */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 1.5rem 1rem; 
}

/* --- HEADER (Désormais 100% fixe en haut de l'écran) --- */
header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.8rem 2rem; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 2000; 
    border-bottom: 1px solid var(--border-color); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left { display: flex; align-items: center; }
.logo-link { display: flex; align-items: center; }
.logo-img { max-height: 48px; object-fit: contain; }

.header-right { display: flex; align-items: center; gap: 1.5rem; }
.header-contact-shortcuts { display: flex; align-items: center; gap: 0.9rem; border-right: 1px solid var(--border-color); padding-right: 1.2rem; }
/* S'il n'y a plus de réseaux sociaux, la bordure disparaitra avec flexbox */
.header-contact-shortcuts:empty { display: none; }

.icon-link { color: var(--accent-color); transition: color 0.2s, transform 0.2s; display: flex; align-items: center; justify-content: center; }
.icon-link:hover { color: var(--text-color); transform: translateY(-1px); }

#site-nav a { color: var(--text-color); text-decoration: none; font-weight: 500; font-size: 0.95rem; margin-left: 1.2rem; transition: color 0.2s; }
#site-nav a:hover { color: var(--accent-color); }
.mobile-nav-foot { display: none; }

/* --- ACCUEIL --- */
.welcome-section { margin: 1.5rem 0 2.5rem 0; padding: 2.5rem 2rem; background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%); border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.01); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 2rem; text-align: left; }
.welcome-badge-logo { flex-shrink: 0; display: flex; }
.welcome-logo-thumb { width: 50%; object-fit: contain; border-radius: 12px; margin: auto;}
.welcome-content { flex: 1; }
.welcome-content h1 { font-size: 2.4rem; color: var(--primary-color); margin: 0 0 0.6rem 0; letter-spacing: -1px; }
.welcome-pitch { font-size: 1.15rem; line-height: 1.6; color: #424245; margin: 0; }

/* --- CARTES ET PLANNING --- */
.section-card { background: var(--card-bg); padding: 2.5rem; border-radius: 16px; margin-bottom: 2.5rem; box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02); border: 1px solid var(--border-color); }
h2 { font-size: 1.7rem; color: var(--primary-color); margin-top: 0; margin-bottom: 1.8rem; letter-spacing: -0.5px; }

.planning-stack { display: flex; flex-direction: column; gap: 2rem; }
.planning-block h3 { font-size: 1.15rem; margin-top: 0; color: var(--accent-color); border-bottom: 2px solid var(--bg-color); padding-bottom: 8px; margin-bottom: 12px; }
.agenda-list { list-style: none; padding: 0; margin: 0; }
.agenda-list li { padding: 12px 0; border-bottom: 1px solid #f5f5f7; line-height: 1.5; font-size: 1rem; position: relative; }
.agenda-list li:last-child { border-bottom: none; }
.agenda-list li .location { color: var(--text-secondary); font-size: 0.95rem; margin-left: 6px; }
.date-badge { background: var(--primary-color); color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-right: 8px; }

/* --- MENU --- */
.menu-header-inline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.menu-header-inline h2 { margin-bottom: 0; }
.cb-accepted-badge { display: flex; align-items: center; gap: 6px; background: #e8f4fe; color: #0071e3; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.cb-icon { flex-shrink: 0; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.menu-category-box h3 { font-size: 1.2rem; color: var(--primary-color); margin-top: 0; border-left: 3px solid var(--accent-color); padding-left: 8px; }
.menu-items-list { margin-top: 1rem; }
.menu-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; }
.item-dots { flex-grow: 1; border-bottom: 1px dashed var(--border-color); margin: 0 10px; position: relative; top: -4px; }
.item-price { font-weight: 600; color: var(--primary-color); white-space: nowrap; }

/* --- IMMERSION & STORYTELLING --- */
.narrative-section { background: #ffffff; }
.highlight-box { background: #f5f5f7; padding: 1.5rem; border-radius: 12px; border-left: 4px solid var(--primary-color); font-style: italic; }
.section-text { line-height: 1.7; font-size: 1.05rem; color: #333333; }

/* --- CONTACT --- */
.contact-section { text-align: center; }
.contact-intro { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-secondary); }
.contact-buttons-container { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.cta-button { text-decoration: none; font-size: 1.1rem; font-weight: 600; padding: 14px 28px; border-radius: 12px; color: white; transition: transform 0.2s; display: inline-flex; align-items: center; }
.phone-cta { background: #0071e3; box-shadow: 0 4px 15px rgba(0,113,227,0.2); }
.email-cta { background: #1d1d1f; box-shadow: 0 4px 15px rgba(29,29,31,0.15); }
.cta-button:hover { transform: translateY(-2px); }
.contact-extra-notes { margin-top: 2rem; font-size: 0.95rem; color: var(--text-secondary); border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.empty-msg { color: var(--text-secondary); font-style: italic; font-size: 0.9rem; }

/* --- MOBILE MENU --- */
#hamburger-btn { display: none; background: transparent; border: none; cursor: pointer; padding: 5px; }
#hamburger-btn span { display: block; width: 24px; height: 3px; background: var(--text-color); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
    #hamburger-btn { display: block; z-index: 2500; }
    header { padding: 0.8rem 1rem; }
    
    .header-contact-shortcuts { border-right: none; padding-right: 0; }

    #site-nav { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 75%; 
        height: 100vh; 
        background: var(--card-bg); 
        box-shadow: -5px 0 20px rgba(0,0,0,0.08); 
        display: flex; 
        flex-direction: column; 
        padding: 6rem 2rem 2rem 2rem; 
        gap: 1.5rem; 
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        box-sizing: border-box; 
        z-index: 1999;
    }
    #site-nav.active { right: 0; }
    #site-nav a { margin: 0; font-size: 1.2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }

    .welcome-section { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .welcome-badge-logo { margin-bottom: 0.5rem; }
    .menu-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-buttons-container { flex-direction: column; gap: 1rem; }
    .section-card { padding: 1.5rem; }
    .agenda-list li .location { display: block; margin-left: 0; margin-top: 2px; }
}

/* =========================================
   NOUVELLES FONCTIONNALITÉS 
   ========================================= */

/* --- SLIDESHOW (REMPLACE L'ANCIENNE IMAGE FIXE) --- */
.slideshow-wrapper {
    position: relative;
    max-width: 100%;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background: #111;
}
.slideshow-container {
    position: relative;
    width: 100%;
    height: 450px;
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex; justify-content: center; align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.slide img:hover { transform: scale(1.02); }

.slide-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.8); border: none;
    color: var(--primary-color);
    width: 45px; height: 45px; border-radius: 50%;
    font-size: 20px; font-weight: bold; cursor: pointer;
    z-index: 10; transition: background 0.3s, transform 0.2s;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slide-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.slide-btn.prev { left: 15px; }
.slide-btn.next { right: 15px; }

.slideshow-dots { text-align: center; position: absolute; bottom: 15px; width: 100%; z-index: 10; }
.dot { 
    display: inline-block; height: 10px; width: 10px; margin: 0 6px; 
    background-color: rgba(255,255,255,0.4); border-radius: 50%; 
    cursor: pointer; transition: background-color 0.3s, transform 0.3s; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.dot.active, .dot:hover { background-color: #fff; transform: scale(1.3); }

@media (max-width: 768px) {
    .slideshow-container { height: 250px; }
    .slide-btn { width: 35px; height: 35px; font-size: 16px; }
}

/* --- BADGES ET POPUP ANNULATION --- */
.agenda-list li.is-canceled { opacity: 0.5; }
.agenda-list li.is-canceled strong, 
.agenda-list li.is-canceled .location, 
.agenda-list li.is-canceled span:not(.badge-annule) { text-decoration: line-through; }

.badge-annule { 
    background: #ff3b30; color: white; font-size: 0.75rem; 
    padding: 3px 8px; border-radius: 12px; font-weight: 700; 
    margin-left: 10px; display: inline-block; text-decoration: none !important;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.cancel-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65); z-index: 3000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
}
.cancel-popup-content {
    background: white; padding: 2.5rem; border-radius: 16px;
    max-width: 450px; text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative; animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 1rem;
}
.cancel-popup-content h3 { color: #ff3b30; margin-top: 0; font-size: 1.6rem; margin-bottom: 1rem; }
.cancel-popup-content p { font-size: 1.1rem; line-height: 1.5; color: var(--text-color); margin-bottom: 2rem; }
.btn-close-popup { 
    background: var(--primary-color); color: white; border: none; 
    padding: 12px 28px; border-radius: 10px; font-size: 1.05rem; font-weight: 600; 
    cursor: pointer; transition: background 0.2s, transform 0.2s; 
}
.btn-close-popup:hover { background: #333; transform: scale(1.05); }

@keyframes popIn { 
    from { transform: scale(0.8); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

/* ==========================================
   SPLASH SCREEN (ALICE & LAPIN) - LAYOUT 50/50
   ========================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Prend exactement 100% de la hauteur de l'écran */
    background-color: #FFFFFF;
    color: #1d1d1f;
    z-index: 9999;
    display: flex;
    flex-direction: column; /* Organise en colonne : le haut, puis le bas */
    overflow: hidden; /* Bloque impérativement tout scroll */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    margin: 0;
    padding: 0;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Zone Moitié Haute (50%) */
.splash-top {
    height: 50vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pousse le logo/texte vers le centre de l'écran */
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Zone Moitié Basse (50%) */
.splash-bottom {
    height: 50vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligne la barre vers le haut de cette zone (donc au centre de l'écran) */
    padding: 20px;
    box-sizing: border-box;
}

/* Éléments internes */
.splash-logo {
    max-width: 180px;
    max-height: 25vh; /* Assure que le logo ne mangera jamais trop de hauteur si l'écran est petit */
    object-fit: contain;
    margin-bottom: 20px;
}

.splash-text {
    max-height: 15vh;
    overflow: hidden; /* Empêche le texte de déborder si l'écran est couché (paysage) */
}

.splash-text h1 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.splash-text p {
    margin: 0;
    font-size: 0.95rem;
}

/* --- LA DOUBLE BARRE --- */
.loading-container {
    width: 90%;
    max-width: 400px;
    position: relative;
    height: 60px; 
    display: flex;
    align-items: flex-end; 
    padding-bottom: 10px;
    margin-top: 2vh; /* Léger décalage pour laisser respirer le texte au-dessus */
}

/* Barre de fond (La piste) */
.loading-track {
    width: 100%;
    height: 8px;
    background-color: #e5e5ea;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Barre de progression animée */
.loading-progress {
    width: 0%;
    height: 100%;
    background-color: #0071e3;
    border-radius: 4px;
    animation: loadProgress var(--splash-duration, 6s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- LES PERSONNAGES --- */
.characters-layer {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
}

.alice {
    position: absolute;
    bottom: 0;
    left: 0%;
    width: 40px;
    height: 40px;
    transform: translateX(-50%); 
    animation: runAlice var(--splash-duration, 6s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.rabbit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 35px;
    transform: translateX(50%);
}

.catch-effect {
    position: absolute;
    top: -15px;
    right: 10px;
    color: #ff3b30;
    font-weight: bold;
    font-size: 20px;
    opacity: 0;
    animation: showCatch 0.3s ease forwards;
    animation-delay: var(--catch-delay, 5.7s);
}

/* --- ANIMATIONS --- */
@keyframes loadProgress {
    0%   { width: 0%; }
    15%  { width: 10%; }
    50%  { width: 60%; }
    80%  { width: 85%; }
    100% { width: 100%; }
}

@keyframes runAlice {
    0%   { left: 0%; }
    15%  { left: 10%; }
    50%  { left: 60%; }
    80%  { left: 85%; }
    100% { left: 100%; }
}

@keyframes showCatch {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}