/* =========================================
   STYLE DE LA BOULE DE CRISTAL
   ========================================= */

.events-container {
    padding: 120px 20px;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    perspective: 1000px;
}

.oracle-wrapper {
    display: flex; align-items: center; justify-content: center;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}

/* --- FLÈCHES DE NAVIGATION --- */
.nav-arrow {
    background: transparent; border: 2px solid var(--gold-antique);
    color: var(--gold-antique); border-radius: 50%;
    width: 60px; height: 60px; font-size: 1.5rem;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.nav-arrow:hover {
    background: var(--gold-antique); color: var(--bg-void);
    box-shadow: 0 0 20px var(--gold-light); transform: scale(1.1);
}

/* --- STRUCTURE GLOBALE (Boule + Socle) --- */
.crystal-ball-structure {
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    z-index: 10;
}

/* --- LA BOULE (SPHÈRE) --- */
.crystal-ball {
    width: 350px; height: 350px;
    border-radius: 50%;
    position: relative;
    /* Effet Verre complexe */
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.8) 90%);
    box-shadow: 
        inset -10px -10px 30px rgba(0,0,0,0.7), /* Ombre interne */
        inset 10px 10px 30px rgba(255,255,255,0.2), /* Reflet interne */
        0 0 20px rgba(189, 0, 255, 0.3), /* Lueur externe violette */
        0 0 60px rgba(212, 175, 55, 0.2); /* Lueur externe dorée */
    overflow: hidden; /* Pour contenir la fumée */
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Reflet blanc (Le point lumineux sur le verre) */
.shine {
    position: absolute; top: 15%; left: 20%;
    width: 25%; height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(-45deg);
    z-index: 5; pointer-events: none;
}

/* --- LA FUMÉE (ANIMATION) --- */
.smoke-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; opacity: 0.6; mix-blend-mode: screen;
}

.smoke {
    position: absolute; top: 50%; left: 50%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(162, 0, 255, 0.4) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    filter: blur(20px);
    border-radius: 40%;
}

.sm-1 { animation: swirl 8s infinite linear; background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 60%); }
.sm-2 { animation: swirl 12s infinite linear reverse; width: 300px; height: 300px; background: radial-gradient(circle, rgba(80, 0, 120, 0.5) 0%, transparent 60%); }
.sm-3 { animation: swirl 15s infinite linear; width: 200px; height: 200px; opacity: 0.4; }

@keyframes swirl {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- LE CONTENU (TEXTE) --- */
.vision-content {
    position: relative; z-index: 4;
    text-align: center; color: #fff;
    padding: 20px;
    text-shadow: 0 2px 10px #000;
    transition: opacity 0.5s ease;
    transform: scale(0.9);
}
.vision-content.fade-out { opacity: 0; transform: scale(0.8); }

.vision-content h2 {
    font-family: var(--font-title); color: var(--gold-light);
    font-size: 1.8rem; margin-bottom: 10px;
}
.vision-content .separator {
    width: 50px; height: 2px; background: var(--gold-antique);
    margin: 10px auto; box-shadow: 0 0 10px var(--gold-light);
}
.vision-content p { font-family: var(--font-body); font-size: 1.1rem; }
.vision-content .desc { font-size: 0.9rem; font-style: italic; color: #ccc; margin-top: 5px; }

/* =========================================
   LE SOCLE ORNÉ (CORRIGÉ & RÉALISTE)
   ========================================= */
.base-stand {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    /* On remonte fortement le socle pour que la boule "s'assoie" dedans */
    margin-top: -70px; 
    z-index: 12; /* Passe devant le bas de la boule */
}

/* L'anneau supérieur (la "coupe" qui tient la boule) */
.base-top {
    width: 240px; height: 50px;
    border-radius: 50%;
    /* Dégradé métal riche : Bronze foncé sur les bords, or vieilli au centre */
    background: radial-gradient(ellipse at center, var(--gold-antique) 0%, #5e4b35 60%, #1a0525 100%);
    border: 3px solid #3a1c50; /* Bordure sombre pour définir la forme */
    /* Ombres multiples pour le volume 3D */
    box-shadow: 
        inset 0 -5px 15px rgba(0,0,0,0.8), /* Ombre interne bas pour l'épaisseur */
        0 5px 10px rgba(0,0,0,0.7); /* Ombre portée sur la pièce du dessous */
    position: relative; z-index: 2;
}
/* Petit détail brillant sur le bord */
.base-top::after {
    content: ''; position: absolute; top: 2px; left: 10%; width: 80%; height: 20px;
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    pointer-events: none;
}

/* Le pied principal (large et lourd) */
.base-bottom {
    width: 320px; height: 80px;
    border-radius: 50%;
    margin-top: -35px; /* Gros chevauchement pour lier les pièces */
    /* Métal plus sombre et texturé */
    background: radial-gradient(ellipse at center, #3a1c50 30%, #0f0518 90%);
    border: 2px solid var(--gold-antique);
    /* Ombre interne très forte pour creuser la forme */
    box-shadow: 
        inset 0 20px 40px rgba(0,0,0,0.9),
        0 10px 20px rgba(0,0,0,0.5);
    z-index: 1;
}

/* L'ombre au sol */
.base-shadow {
    width: 380px; height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 20%, transparent 70%);
    margin-top: -30px;
    border-radius: 50%;
    filter: blur(15px);
    z-index: 0;
}
/* =========================================
   SECTION ALBUM PHOTO
   ========================================= */
.album-section {
    margin-top: 100px; /* Espace sous la boule de cristal */
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(212, 175, 55, 0.3); /* Séparateur subtil */
}

.album-intro {
    font-family: var(--font-body);
    color: #ccc;
    margin-bottom: 40px;
    font-style: italic;
}

/* La Grille de photos */
.album-grid {
    display: grid;
    /* Colonnes automatiques : s'adapte à l'écran (min 250px de large) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* L'élément photo individuel */
.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Le cadre magique */
.photo-frame {
    width: 100%;
    aspect-ratio: 4/3; /* Format paysage standard */
    border: 3px solid var(--gold-antique);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    position: relative;
}

/* Double bordure pour effet "cadre ancien" */
.photo-frame::before {
    content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 5px; pointer-events: none; z-index: 2;
}

.photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: sepia(30%) contrast(1.1); /* Petit effet vintage */
    transition: all 0.5s ease;
}

/* Légende sous la photo */
.photo-caption {
    margin-top: 15px;
    font-family: var(--font-title);
    color: var(--gold-light);
    font-size: 1rem;
    opacity: 0.8;
    transition: 0.3s;
}

/* Effets au survol */
.photo-item:hover .photo-frame {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-light);
}

.photo-item:hover img {
    filter: sepia(0%) contrast(1.2); /* L'image devient nette et colorée */
    transform: scale(1.1); /* Zoom lent à l'intérieur du cadre */
}

.photo-item:hover .photo-caption {
    opacity: 1;
    text-shadow: 0 0 10px var(--gold-antique);
}
/* =========================================
   GALERIE DES SOUVENIRS (BANDE PASSANTE)
   ========================================= */

.memories-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.album-subtitle {
    font-family: var(--font-title);
    color: var(--gold-antique);
    margin: 40px 0 20px 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Le conteneur (Fenêtre de vision) */
.gallery-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Effet de fondu sur les bords gauche/droite */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* La Bande (Track) */
.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* Animation Gauche (Standard) */
.scroll-left {
    animation: scrollLeft 60s linear infinite;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* On déplace de la moitié (la série 1) */
}

/* Animation Droite (Inverse) */
.scroll-right {
    animation: scrollRight 60s linear infinite;
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); } /* On commence à la moitié */
    100% { transform: translateX(0); }
}

/* Arrêt au survol */
.gallery-track:hover {
    animation-play-state: paused;
}

/* Les Cadres Photos */
.memory-frame {
    flex: 0 0 auto; /* Empêche l'écrasement */
    width: 280px;
    height: 180px;
    border: 3px solid var(--gold-antique);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: 0.4s ease;
    filter: sepia(40%) brightness(0.8); /* Effet vieux souvenir */
    cursor: pointer;
}

.memory-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* Effet Hover sur une photo */
.memory-frame:hover {
    transform: scale(1.15) rotate(2deg); /* Zoom et petit pivot */
    filter: sepia(0%) brightness(1.1); /* Devient net et lumineux */
    border-color: var(--gold-light);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    z-index: 10;
}


/* Adaptation mobile pour l'album */
@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        padding: 0;
    }
    .photo-frame { aspect-ratio: 3/2; }
}
.memory-frame {
        width: 200px;
        height: 130px;
    }

/* Responsive */
@media (max-width: 768px) {
    .crystal-ball { width: 280px; height: 280px; }
    .nav-arrow { width: 40px; height: 40px; font-size: 1rem; position: absolute; top: 50%; z-index: 20; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .oracle-wrapper { position: relative; gap: 0; }
}