/* =========================================
   0. VARIABLES (Mode Nuit Unique)
   ========================================= */
:root {
    /* --- DESIGN DARK (Par défaut) --- */
    --glass-bg: rgba(0, 0, 0, 0.1); 
    --glass-border: rgba(0, 0, 0, 0.2);
    --text-color: #ffffff;
    --blue-color: #00A3E0;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* =========================================
   1. CONFIGURATION DE BASE
   ========================================= */
body, html {
    margin: 0; padding: 0; height: 100%; width: 100%;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: transparent; 
    color: var(--text-color);
    overflow: hidden; 
    transition: color 0.3s ease;
}

/* Mode "Bright" (Si l'image de fond est trop claire) */
body.bg-is-bright { color: #000; text-shadow: none; }

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--blue-color); }
button { font-family: inherit; cursor: pointer; }
* { box-sizing: border-box; }

/* =========================================
   2. ARRIÈRE-PLAN & PARTICULES
   ========================================= */
@keyframes zoomBreathe {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); } 
    100% { transform: scale(1); }
}

.background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-position: center center; background-repeat: no-repeat; background-size: cover;
    z-index: -2; animation: zoomBreathe 20s linear infinite;
    transition: opacity 0.4s ease-in-out; opacity: 1;
}
.background.loading { opacity: 0.7; filter: blur(2px); }

#particles-js {
    position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -1;
    pointer-events: none;
}

/* =========================================
   3. NAVIGATION (Menu & Flèches)
   ========================================= */
.bubble-menu {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; height: 60px; 
    background-color: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 50px; z-index: 100; padding: 0 20px; box-sizing: border-box;
    display: flex; align-items: center; transition: all 0.3s ease;
}

.menu-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 15px; width: 100%;
    overflow-x: auto; scrollbar-width: none;
}
.menu-list::-webkit-scrollbar { display: none; }

.menu-item a, .menu-item button {
    background: none; border: none; cursor: pointer;
    text-decoration: none; color: var(--text-color);
    font-weight: 500; font-size: 1rem; font-family: inherit;
    padding: 8px 15px; border-radius: 20px;
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
    white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.menu-item a:hover, .menu-item button:hover { 
    color: var(--blue-color) !important;
}

/* Flèches Navigation Slideshow */
.nav-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; color: white; font-size: 1.5rem;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 15; transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.nav-arrow:hover { background: rgba(0, 163, 224, 0.6); transform: translateY(-50%) scale(1.1); box-shadow: 0 0 15px rgba(0, 163, 224, 0.4); }
.nav-arrow.left { left: 30px; }
.nav-arrow.right { right: 30px; }

/* =========================================
   4. SECTIONS (SPA)
   ========================================= */
.app-section {
    display: none; 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; 
    transition: opacity 0.3s ease; opacity: 1;
}
.app-section.active { 
    display: flex; /* IMPORTANT: C'est ce qui affiche la section */
    flex-direction: column; 
}
#section-home.active { justify-content: center; align-items: center; }

/* Conteneur principal (Galerie & Contact) */
.main-content-area {
    position: absolute; top: 100px; left: 5%; right: 5%;
    max-width: 1200px; margin: 0 auto; 
    background-color: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 20px;
    padding: 40px; box-sizing: border-box; overflow-y: auto; 
    display: flex; flex-direction: column; align-items: center; transition: all 0.3s ease;
}

/* =========================================
   5. SECTION HOME (Centrale) - CORRIGÉE
   ========================================= */
.center-container {
    text-align: left; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    width: 700px;
    max-width: 95%; 
}

/* Classe ajoutée quand le volet Identité est ouvert */
.center-container.hidden-bg {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

.name-block h2 { 
    font-size: 5rem; margin: 0; font-weight: 800; letter-spacing: -2px; line-height: 1.1; 
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9); 
}
.firstname { color: #ffffff; display: block; }
.lastname { color: var(--blue-color); }

/* --- TYPEWRITER CORRIGÉ (Layout stable + Couleurs) --- */
.typewriter-line {
    /* Layout inspiré de votre code valide */
    display: flex;
    align-items: flex-start; /* Aligne en haut */
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    min-height: 6rem; /* Espace réservé */
    gap: 10px; /* Espace entre "Je suis" et le texte dynamique */
    
    /* Styles (Couleurs & Ombres) */
    font-size: 2.2rem;
    margin-top: 10px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.static-text {
    /* Empêche "Je suis" de bouger */
    white-space: nowrap;
    flex-shrink: 0;
}

.dynamic-part {
    /* Prend tout l'espace restant */
    display: block;
    flex: 1;
    text-align: left;
    
    /* Couleurs de la partie dynamique */
    font-weight: 700;
    color: var(--blue-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.typewriter-text {
    /* Permet le retour à la ligne \n */
    white-space: pre-wrap;
}

.cursor {
    display: inline-block;
    color: var(--blue-color);
    font-weight: 400;
    animation: blink 1s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Info Box (Bas Droite) */
.container { position: absolute; bottom: 30px; right: 30px; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.info-box {
    pointer-events: auto; background-color: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 30px;
    color: var(--text-color); text-align: left;
    min-width: 300px; max-width: 600px; padding: 20px; position: relative; transition: all 0.3s ease;
}
.info-box h1 { margin: 0 0 5px 0; font-size: 1rem; color: var(--blue-color); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.info-box a { color: var(--blue-color); text-decoration: none; }
.btn-download { display: inline-block; background: var(--glass-bg); padding: 5px 10px; border-radius: 15px; font-size: 0.75rem; color: var(--text-color); text-decoration: none; border: 1px solid var(--glass-border); margin-top: 10px; cursor: pointer; transition: 0.3s;}
.btn-download:hover { background: rgba(0, 163, 224, 0.3); border-color: var(--blue-color); }

/* =========================================
   6. SECTION IDENTITÉ (SLIDE DOWN)
   ========================================= */
.identity-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* Fond très transparent pour voir Bing (0.2) */
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    
    display: flex; justify-content: center; align-items: center;
    overflow-y: auto;
}

.identity-layer.active { transform: translateY(0%); }

.close-identity {
    position: absolute; top: 30px; right: 40px;
    background: none; border: none; color: white; font-size: 3rem;
    cursor: pointer; z-index: 201; transition: 0.3s;
}
.close-identity:hover { color: var(--blue-color); transform: rotate(90deg); }

.identity-grid {
    display: flex; gap: 40px; width: 90%; max-width: 1000px;
    /* ALIGNEMENT HAUT (Top) */
    align-items: flex-start; 
    justify-content: center;
    flex-wrap: wrap; padding: 40px 0;
}

/* STYLE COMMUN GLASS */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    color: white; 
    display: flex; flex-direction: column;
}

/* CARTE IDENTITÉ */
.id-card { 
    flex: 1; 
	min-width: 300px;
	max-width: 600px;
    align-items: center; text-align: center;
}
.id-header {
    display: flex; flex-direction: column; align-items: center; width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px; margin-bottom: 20px;
}
.avatar-circle {
    width: 100px; height: 100px; background: var(--blue-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: bold; margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 163, 224, 0.4); text-shadow: none;
}
.id-header h3 { margin: 0; font-size: 1.8rem; }

.id-details { list-style: none; padding: 0; margin: 0; text-align: left; width: 100%; }
.id-details li { 
    display: flex; align-items: center; justify-content: flex-start; gap: 10px; /* Colle Label et Valeur */
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1rem;
}
.id-details li:last-child { border-bottom: none; }
.id-details strong { color: var(--blue-color); }
.id-details span { display: flex; gap: 5px; align-items: baseline; } /* Groupe Ville + CP */

/* CARTE ÉDITO */
.edito-card { 
    flex: 1.5; min-width: 300px; max-width: 600px;
    min-height: 400px;
    /* Limite hauteur pour scroll */
    max-height: 60vh; 
}
.edito-date {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6); margin-bottom: 5px;
}
.edito-title {
    margin: 0 0 20px 0; color: var(--blue-color); font-size: 1.8rem; line-height: 1.2;
}
.edito-content {
    font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.95);
    text-align: left; flex: 1; 
    /* Scroll activé */
    overflow-y: auto; padding-right: 10px;
}
.edito-content::-webkit-scrollbar { width: 6px; }
.edito-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.edito-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }
.edito-content::-webkit-scrollbar-thumb:hover { background: var(--blue-color); }

/* BOUTON "EN SAVOIR PLUS" */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: white; text-align: center; cursor: pointer; 
    z-index: 150; display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: opacity 0.3s;
}
.scroll-text { 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.scroll-icon-circle { font-size: 1.2rem; animation: bounce 2s infinite; }
@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 
    40% {transform: translateY(-10px);} 
    60% {transform: translateY(-5px);} 
}

/* =========================================
   7. GALERIE & CONTACT
   ========================================= */
.gallery-grid-display { display: grid; gap: 20px; width: 100%; padding-bottom: 20px; }
#gallery-header { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; margin-bottom: 20px; }
#back-to-albums { position: absolute; left: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 8px 15px; font-size: 0.9rem; cursor: pointer; }

/* Albums */
.albums-view { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.album-card {
    background-color: var(--glass-bg); border-radius: 15px; height: 220px; 
    position: relative; overflow: hidden; cursor: pointer; transition: all 0.3s;
    background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end;
}
.album-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); border-color: var(--blue-color); }
.album-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 1; transition: opacity 0.3s;
}
.album-content { position: relative; z-index: 2; padding: 20px; text-align: left; }
.album-card h3 { margin: 0; color: white; font-size: 1.4rem; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

/* Photos */
.photos-view { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.photo-thumb {
    aspect-ratio: 16/9; background-size: cover; background-position: center;
    border-radius: 8px; cursor: pointer; transition: transform 0.2s;
}
.photo-thumb:hover { transform: scale(1.03); border-color: var(--blue-color); }

/* Contact */
.contact-form { width: 100%; max-width: 600px; flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 15px; } .form-row input { width: 50%; }
.input-group { position: relative; width: 100%; }
.input-group input, .input-group textarea {
    width: 100%; padding: 15px; padding-top: 25px; background: rgba(0, 0, 0, 0.2); 
    border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-color); font-size: 1rem; font-family: inherit; box-sizing: border-box; transition: all 0.3s ease;
}
.input-group label {
    position: absolute; top: 50%; left: 15px; transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6); pointer-events: none; transition: 0.3s ease; font-size: 1rem;
}
.input-group textarea + label { top: 25px; }
.input-group input:focus, .input-group textarea:focus, .input-group input:not(:placeholder-shown), .input-group textarea:not(:placeholder-shown) {
    border-color: var(--blue-color); background: rgba(0,0,0,0.4);
}
.input-group input:focus + label, .input-group textarea:focus + label, .input-group input:not(:placeholder-shown) + label, .input-group textarea:not(:placeholder-shown) + label {
    top: 8px; font-size: 0.75rem; color: var(--blue-color); transform: translateY(0); font-weight: 600;
}
.captcha-container { display: flex; flex-direction: column; width: 100%; }
.captcha-row {
    display: flex; align-items: center; justify-content: center; gap: 15px; white-space: nowrap;
    background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 12px; border-radius: 50px; width: 100%; box-sizing: border-box;
}
.captcha-code {
    font-family: 'Courier New', monospace; font-weight: bold; font-size: 1.3rem;
    color: var(--blue-color); letter-spacing: 3px; user-select: none;
    background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: 4px;
}
/* Modification de .captcha-input */
.captcha-input {
    width: 80px !important;
    padding: 8px !important;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    height: auto;
    
    /* --- MODIFICATIONS ICI (Mêmes propriétés que .input-group input) --- */
    background: rgba(0, 0, 0, 0.2); /* Était 0.3 avant */
    color: var(--text-color);       /* Ajout pour la couleur du texte */
    border: 1px solid var(--glass-border);
    font-family: inherit;           /* Pour garder la même police que les inputs */
    transition: all 0.3s ease;
}

/* Optionnel : Effet au focus pour correspondre aux autres champs */
.captcha-input:focus {
    background: rgba(0,0,0,0.4);
    border-color: var(--blue-color);
    color: var(--blue-color);
}

.btn-send {
    width: fit-content; min-width: 200px; margin: 30px auto 0 auto; 
    background: var(--blue-color); color: white; border: none; padding: 12px 30px;
    border-radius: 50px; font-weight: bold; cursor: pointer; font-size: 1.1rem;
    transition: transform 0.2s, background 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-send:hover { background: #008bbd; transform: scale(1.05); }
.spinner { width: 15px; height: 15px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-send.loading .spinner { display: block; }
#form-response { margin-top: 15px; text-align: center; font-weight: 500; min-height: 20px; opacity: 0; transition: opacity 0.5s; }
#form-response.visible { opacity: 1; }
.contact-icons { display: flex; justify-content: space-around; width: 100%; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.icon-box { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.icon-box i { font-size: 2rem; color: var(--blue-color); text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.honey-pot { display: none; }

/* =========================================
   8. LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Même transparence que l'identité */
    backdrop-filter: blur(10px);    /* Ajout du flou d'arrière-plan */
    -webkit-backdrop-filter: blur(10px); /* Pour Safari */
	z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; text-align: center; color: white; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.6); }
.lb-info { margin-top: 15px; }
.lb-close {
    position: absolute; top: -50px; right: 0; font-size: 2.5rem;
    background: none; border: none; color: white; cursor: pointer; transition: color 0.3s;
}
.lb-close:hover { color: var(--blue-color); }

/* =========================================
   9. FOOTER
   ========================================= */
.bubble-footer {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; height: 50px;
    background-color: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 50px;
    z-index: 100; display: flex; justify-content: center; align-items: center;
    color: var(--text-color); font-size: 0.9rem;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.bubble-footer.visible { opacity: 1; visibility: visible; }

/* =========================================
   10. MOBILE & RESPONSIVE
   ========================================= */
#mobile-info-btn, .close-btn { display: none; }

@media (max-width: 800px) {
    /* Menu & Footer */
    .bubble-menu { top: 10px; width: 95%; height: 50px; padding: 0 10px; }
    .menu-list { gap: 10px; } .menu-item a, .menu-item button { padding: 6px 10px; font-size: 0.9rem; }
    .bubble-footer { width: 95%; bottom: 10px; font-size: 0.8rem; }
    
    /* Layout Général */
    .main-content-area { top: 80px; bottom: 80px; width: 95%; padding: 20px; left: 2.5%; right: 2.5%; }

    /* Formulaire & Icônes */
    .form-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .form-row input { width: auto; flex: 1 1 200px; }
    .contact-icons {
        display: flex; flex-direction: row !important; flex-wrap: nowrap !important;
        overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; min-height: 120px; 
        padding: 10px 0; margin-top: 20px; align-items: center; scrollbar-width: none;
    }
    .icon-box { min-width: 100%; flex: 0 0 100%; scroll-snap-align: center; }

/* --- VERSION MOBILE --- */
    .center-container {
        /* Position absolue pour coller au bas de l'écran sur mobile */
        position: absolute; 
        bottom: 40px; 
        top: auto; 
        left: 50%;
        transform: translateX(-50%); /* Centrage horizontal */
        
        width: 90%; 
        align-items: flex-start; 
        text-align: left;
    }

    .center-container.hidden-bg {
        transform: translateX(-50%) scale(0.95); /* On garde le centrage X */
    }

    .name-block h2 { 
        font-size: 3.5rem; 
        line-height: 1; 
        margin: 0; 
    } 
    
    .typewriter-line { 
        font-size: 1.5rem; 
        line-height: 1.3; 
        min-height: 4rem;
        /* Sur mobile, on garde aussi le style flex-start */
        display: flex; 
        align-items: flex-start;
        width: 100%; 
    }

    /* Info Bing Mobile */
    .container { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
        background: rgba(0,0,0,0.4); backdrop-filter: blur(10px); 
        z-index: 200; justify-content: center; align-items: center; padding: 10px; 
        opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
    }
    .container.active-mobile { opacity: 1; visibility: visible; pointer-events: auto; }
    .info-box { width: auto; max-width: 90%; min-width: 280px; text-align: center; margin: 0 auto; padding-bottom: 35px;}
	.info-box h1 { padding-top: 20px; }
    #mobile-info-btn { 
        display: flex; position: fixed; top: 80px; right: 20px; z-index: 202; width: 35px; height: 35px; 
        background: var(--glass-bg); border: 1px solid var(--blue-color); color: var(--blue-color); 
        border-radius: 50%; justify-content: center; align-items: center; backdrop-filter: blur(5px); 
    }
    .close-btn { display: block; position: absolute; top: 0; right: 15px; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }
    .nav-arrow { display: none; }
    
    /* Galerie Mobile */
    #gallery-header { flex-direction: column; align-items: center; justify-content: center; gap: 15px; margin-bottom: 25px; min-height: auto; }
    #back-to-albums { position: static; transform: none; margin: 0; align-self: center; order: 1; }
    #gallery-header h2 { text-align: center; margin: 0; font-size: 2rem; line-height: 1.2; order: 2; width: 100%; }

    /* --- IDENTITÉ MOBILE --- */
    .identity-grid { 
        flex-direction: column; align-items: center; 
        width: 95%; margin-top: 60px; padding-bottom: 80px; 
    }
    .id-card, .edito-card { width: 100%; min-width: 0; margin-bottom: 20px; }

    /* Bouton Flèche Mobile (Droite) */
    .scroll-indicator {
        left: auto !important; right: 20px !important; bottom: 20px !important;
        transform: none !important; align-items: flex-end !important;
    }
    /* Cacher le texte */
    .scroll-text { display: none !important; }
    /* Style Cercle Flèche */
    .scroll-icon-circle {
        width: 50px; height: 50px;
        display: flex; align-items: center; justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
        background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(5px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
}

/* =========================================
   11. ADAPTATION CONTRASTE (Mode Bright)
   ========================================= */
body.bg-is-bright .info-box,
body.bg-is-bright .bubble-menu,
body.bg-is-bright .bubble-footer,
body.bg-is-bright .main-content-area,
body.bg-is-bright .album-card {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(30px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(120%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}
body.bg-is-bright .info-box .credits,
body.bg-is-bright .info-box .description {
    color: rgba(255, 255, 255, 0.9) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
body.bg-is-bright .btn-download {
    background-color: rgba(255, 255, 255, 0.1) !important; border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important; backdrop-filter: blur(5px) !important;
}
body.bg-is-bright .btn-download:hover {
    background-color: var(--blue-color) !important; border-color: var(--blue-color) !important;
}

/* =========================================
   MOBILE SLIDER - IDENTITY CARD
   ========================================= */

@media (max-width: 768px) {
    /* Conteneur principal */
    .identity-grid {
        display: flex !important;           /* Force l'affichage en ligne */
        flex-direction: row !important;     /* Force l'axe horizontal */
        flex-wrap: nowrap !important;       /* INTERDIT le passage à la ligne (C'est la clé !) */
        overflow-x: auto !important;        /* Active le scroll horizontal */
        scroll-snap-type: x mandatory;      /* Effet magnétique */
        width: 100%;
        gap: 20px;
        padding: 0 5vw 20px 5vw;            /* Marges (bas ajouté pour l'ombre) */
        scroll-behavior: smooth;
        justify-content: flex-start;        /* Aligne le contenu à gauche */
        align-items: flex-start;            /* Aligne en haut */
        
        /* Cache la barre de scroll */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .identity-grid::-webkit-scrollbar { 
        display: none; 
    }

    /* Les Cartes */
    .id-card, .edito-card {
        flex: 0 0 90vw !important;          /* Force une largeur fixe (90% écran) et empêche le redimensionnement */
        width: 90vw !important;             /* Sécurité supplémentaire */
        max-width: 90vw !important;
        scroll-snap-align: center;          /* Se cale au centre */
        margin-bottom: 0 !important;
        margin-right: 0 !important;         /* Évite les marges parasites */
    }

    /* Les points (Dots) */
    .mobile-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        /* Position absolue pour ne pas gêner le flux, mais en bas du conteneur parent */
        position: absolute;
        bottom: 15px;
        left: 0; 
        width: 100%;
        z-index: 100;
        pointer-events: none; /* Laisse passer les clics au travers si besoin */
    }
    .mobile-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: 0.3s;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .mobile-dots .dot.active {
        background: var(--blue-color);
        transform: scale(1.2);
        background-color: #00A3E0 !important; /* Force la couleur si var non reconnue */
    }
}

/* =========================================
   TABLETTE & BUREAU : AFFICHAGE CÔTE À CÔTE
   (S'applique dès que l'écran dépasse 768px)
   ========================================= */

@media (min-width: 769px) {
    .identity-grid {
        display: flex !important;
        flex-direction: row !important;  /* Force l'alignement horizontal */
        flex-wrap: nowrap !important;    /* Interdit l'empilement */
        justify-content: center !important; /* Centre les cartes au milieu de l'écran */
        align-items: flex-start !important; /* Aligne le haut des cartes */
        gap: 40px;                       /* Espace entre la carte ID et l'Edito */
        width: 100%;
        max-width: 1200px;               /* Limite la largeur totale sur les très grands écrans */
        margin: 0 auto;                  /* Centre le bloc global */
        overflow: visible !important;    /* Pas de scroll interne */
        padding-bottom: 0;
    }

    .id-card, .edito-card {
        /* Largeur fixe pour avoir un beau rendu côte à côte */
        width: 450px !important; 
        
        /* Sécurité pour les tablettes un peu justes */
        max-width: 45vw !important;      
        
        /* On annule les styles mobiles */
        flex: 0 0 auto !important;       
        margin: 0 !important;
        height: auto !important;
    }

    /* On cache bien les points de navigation mobile */
    .mobile-dots {
        display: none !important;
    }
}

/* =========================================
   BLOCAGE PAYSAGE MOBILE
   ========================================= */
#landscape-warning {
    display: none; /* Caché par défaut */
}

/* On cible l'orientation paysage sur les petits écrans (hauteur max 600px) */
@media only screen and (orientation: landscape) and (max-height: 600px) {
    
    #landscape-warning {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        
        /* On enlève le gris #1a1a1a pour laisser place à l'image */
        background-color: transparent; 
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        
        z-index: 999999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        text-align: center;
    }

    /* AJOUT : Le calque de flou (Comme section-identity) */
    #landscape-warning::before {
        content: '';
        position: absolute;
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%;
        background: rgba(0, 0, 0, 0.2);       /* Transparence sombre */
        backdrop-filter: blur(10px);          /* Flou */
        -webkit-backdrop-filter: blur(10px);
        z-index: -1;                          /* Place le flou DERRIÈRE le texte */
    }

    #landscape-warning i {
        font-size: 4rem;
        margin-bottom: 20px;
        color: #fff; /* On passe l'icône en blanc pur pour le contraste */
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        animation: rotateIcon 2s infinite ease-in-out;
    }

    #landscape-warning p {
        font-family: 'Segoe UI', sans-serif;
        font-size: 1.2rem;
        padding: 0 30px;
        line-height: 1.5;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    /* Petite animation pour suggérer la rotation */
    @keyframes rotateIcon {
        0% { transform: rotate(-90deg); }
        30% { transform: rotate(0deg); }
        70% { transform: rotate(0deg); }
        100% { transform: rotate(-90deg); }
    }

    /* Optionnel : On fige le scroll du site derrière */
    body {
        overflow: hidden !important;
    }
}