/* =========================================
   SCIENTIST SLIDER - FINAL COMPACT VERSION
   Updated: 2026-01-12
   ========================================= */

:root {
    --atom-color: #ff9500;
    --primary-orange: #ff6a00;
}

/* --- LE CONTENEUR PRINCIPAL (BANDE ORANGE PAR DÉFAUT) --- */
.scientist-showcase {
    position: relative;
    padding: 30px 0;
    /* Gradient par défaut (Marie Curie) */
    background: linear-gradient(135deg, #ffb74d 0%, #fb8c00 50%, #e65100 100%);
    color: #fff;
    overflow: hidden;
    margin: 20px auto 0;
    /* Marge réduite sur mobile */
    border-radius: 20px;
    transition: background 0.8s ease, width 0.1s linear, border-radius 0.1s linear;
}

@media (max-width: 992px) {
    .scientist-showcase {
        margin: 20px 10px 0;
        border-radius: 20px;
    }
}

/* --- THÈME ARTICLE (ICARUS - DARK SPACE/SOLAR) --- */
.scientist-showcase.theme-article {
    /* Gradient Sombre pour l'espace/nuit */
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* --- THÈME ÉVÉNEMENT (FEMMES EN SCIENCE - RED/PINK) --- */
.scientist-showcase.theme-event {
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
}

/* --- LOGIQUE DU SLIDER (HAUTEUR FIXE PC) --- */
.slider-container {
    width: 100%;
    position: relative;
    min-height: auto;
}

@media (min-width: 992px) {
    .slider-container {
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.slide {
    display: none;
    width: 100%;
    animation: fadeEffect 0.5s ease;
}

.slide.active-slide {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MISE EN PAGE DU CONTENU --- */
.scientist-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 992px) {
    .scientist-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

/* --- ANIMATIONS (ATOME & ESPACE) --- */

/* Atome 3D */
.scientist-visual {
    perspective: 1000px;
    /* Profondeur 3D */
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.portrait-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    /* Effet de lueur interne/externe plus prononcé */
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 149, 0, 0.4);
    position: relative;
    z-index: 5;
    background: #000;
}

.portrait-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style spécifique pour le thème Article (Icarus) */
.theme-article .portrait-circle {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 100, 0, 0.6);
    /* Lueur plus rouge/solaire */
}

/* Style spécifique pour le thème Événement */
.theme-event .portrait-circle {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 50, 100, 0.6);
    /* Lueur rose/rouge */
}

.atom-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    pointer-events: none;
}

.atom-orbit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary-orange);
}

.orbit-1 {
    transform: translate(-50%, -50%) rotateZ(0deg) rotateX(65deg);
    animation: spin-orbit-1 3s linear infinite;
}

.orbit-2 {
    transform: translate(-50%, -50%) rotateZ(60deg) rotateX(65deg);
    animation: spin-orbit-2 3s linear infinite;
}

.orbit-3 {
    transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(65deg);
    animation: spin-orbit-3 3s linear infinite;
}

@keyframes spin-orbit-1 {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg) rotateX(65deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(0deg) rotateX(65deg) rotateZ(360deg);
    }
}

@keyframes spin-orbit-2 {
    0% {
        transform: translate(-50%, -50%) rotateZ(60deg) rotateX(65deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(60deg) rotateX(65deg) rotateZ(360deg);
    }
}

@keyframes spin-orbit-3 {
    0% {
        transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(65deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(65deg) rotateZ(360deg);
    }
}

/* Espace (Icarus) */
.cosmic-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
}

.ring-1 {
    width: 240px;
    height: 240px;
    animation: pulse-ring 3s infinite ease-out;
}

.ring-2 {
    width: 240px;
    height: 240px;
    animation: pulse-ring 3s infinite ease-out 1.5s;
}

.portrait-circle.cosmic-border {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 100, 0, 0.5);
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* --- DROITE : INFOS (Compacté) --- */
.scientist-info {
    flex: 1;
    max-width: 650px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .scientist-info {
        text-align: left;
        align-items: flex-start;
    }
}

/* Badge */
.month-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.theme-article .month-badge {
    background: rgba(255, 100, 0, 0.2);
    /* Badge plus rouge pour Icarus */
    border-color: rgba(255, 100, 0, 0.4);
    color: #ffcc80;
}

.theme-event .month-badge {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Titre */
.scientist-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.1;
}

.scientist-dates {
    font-family: monospace;
    color: #ffe0b2;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Description */
.slide-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.95;
    max-width: 600px;
}

/* Grille cartes */
.discovery-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.discovery-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Added transition */
}

.discovery-card:hover {
    transform: translateY(-5px);
    /* Elevation effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.element-symbol {
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
}

.element-name {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Lien article */
.nav-card-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding: 8px 20px;
    background: white;
    color: #e65100;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s;
}

.nav-card-arrow-link:hover {
    transform: translateX(5px);
}

.theme-article .nav-card-arrow-link {
    color: #2c3e50;
    /* Texte foncé sur bouton blanc */
}

.theme-event .nav-card-arrow-link {
    color: #dd2476;
    /* Texte rose/rouge sur bouton blanc */
}

/* --- BOUTONS D'ACTION (Groupe) --- */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
    /* Mobile : centré par défaut */
}

@media (min-width: 992px) {
    .action-buttons {
        justify-content: flex-start;
        /* Desktop : aligné à gauche */
    }
}

/* Lien "Donnez votre avis" */
.feedback-link {
    font-size: 0.85rem;
    opacity: 0.8;
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted white;
    transition: opacity 0.3s;
}

.feedback-link:hover {
    opacity: 1;
}

/* --- NAVIGATION (FLÈCHES) --- */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Décorations fond */
.bg-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Chemistry-themed decorative elements */
.chemistry-flask {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

/* Masquer les fioles en mode Article */
.theme-article .chemistry-flask {
    display: none;
}

.flask-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.flask-2 {
    top: 70%;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(20deg);
}

.flask-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
    transform: rotate(-15deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.quote-block {
    display: none;
}

/* ============================= */
/*     RESPONSIVE MOBILE         */
/* ============================= */
@media (max-width: 768px) {

    /* 1. Conteneur plus compact */
    .scientist-showcase {
        padding: 20px 10px 40px 10px;
        /* Padding bas augmenté pour les flèches */
        margin: 10px 10px 0;
        min-height: auto;
        /* Laisse le contenu dicter la hauteur */
    }

    .slider-container {
        min-height: auto;
        /* Reset de la hauteur fixe */
        padding-bottom: 20px;
    }

    .scientist-content-wrapper {
        gap: 15px;
    }

    /* 2. Visuels réduits (Atome / Planètes) */
    .scientist-visual {
        transform: scale(0.75);
        /* Réduit à 75% */
        margin: -30px 0;
        /* Réduit l'espace vertical perdu par le scale */
        height: 220px;
        /* Force une hauteur plus petite */
    }

    /* 3. Typographie ajustée */
    .scientist-name {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .slide-description {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .month-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    /* 4. Navigation (Flèches) repositionnée */
    .slider-nav {
        top: auto;
        bottom: 10px;
        /* En bas de la carte */
        transform: none;
        background: rgba(255, 255, 255, 0.2);
        width: 35px;
        height: 35px;
    }

    .prev-btn {
        left: 30%;
        /* Centré autour du milieu */
    }

    .next-btn {
        right: 30%;
        /* Centré autour du milieu */
        left: auto;
    }

    /* 5. Masquer les décorations encombrantes */
    .chemistry-flask,
    .bg-particle {
        display: none;
    }

    /* Ajustement grille découvertes */
    .discovery-grid {
        justify-content: center;
        flex-wrap: wrap;
    }

    .discovery-card {
        min-width: 80px;
        padding: 8px 12px;
    }
}