/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Empêche le scroll : vrai plein écran */
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: white;
}

/* ===== EN-TÊTE SUPERPOSÉ ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 50;
    pointer-events: none; /* Laisse passer les clics vers le carrousel si besoin */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    pointer-events: auto;
}

.site-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.baseline {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.biais-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ===== CARROUSEL PLEIN ÉCRAN ===== */
.fullscreen-carousel {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: pan-y pinch-zoom;
}

/* ===== SLIDE : IMAGE EN FOND PLEIN ÉCRAN ===== */
.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay subtil pour lisibilité de la légende */
.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ===== LÉGENDE CLIQUABLE ===== */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 700px;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    z-index: 10;
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: auto;
}

.slide-caption:hover {
    transform: translateY(-5px);
}

.slide-caption:hover .caption-arrow {
    transform: translateX(8px);
}

.caption-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.slide-caption h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    letter-spacing: -0.02em;
}

.caption-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    opacity: 0.95;
}

.caption-arrow {
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.2s;
    line-height: 1;
}

/* Adaptation mobile */
@media (max-width: 600px) {
    .site-header {
        padding: 1rem 1.2rem;
    }
    .site-header h1 {
        font-size: 1.4rem;
    }
    .baseline {
        font-size: 0.8rem;
    }
    .slide-caption {
        padding: 1.8rem 1.5rem 1.5rem 1.5rem;
    }
    .slide-caption h2 {
        font-size: 1.8rem;
    }
    .caption-meta {
        font-size: 0.95rem;
    }
}

/* ===== FLÈCHES DE NAVIGATION ===== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    color: white;
    transition: all 0.25s;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow--left {
    left: 20px;
}

.carousel-arrow--right {
    right: 20px;
}

@media (max-width: 600px) {
    .carousel-arrow {
        width: 44px;
        height: 44px;
    }
    .carousel-arrow--left { left: 10px; }
    .carousel-arrow--right { right: 10px; }
}

/* ===== DOTS ===== */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 45;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dot.active {
    background: white;
    width: 30px;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* Compteur */
.carousel-counter {
    position: absolute;
    bottom: 25px;
    right: 30px;
    z-index: 45;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    border: 0.5px solid rgba(255,255,255,0.15);
}

@media (max-width: 600px) {
    .carousel-counter {
        bottom: 20px;
        right: 15px;
        font-size: 0.8rem;
    }
    .carousel-dots {
        bottom: 20px;
    }
}