/* ==========================================================================
   SECTION HERO (COMPARATEUR JOUR/NUIT)
   ========================================================================== */
.hero-cinema {
    position: relative;
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    z-index: -2;
    overflow: hidden;
}

.media-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.media-slide.active { opacity: 1; z-index: 1; }
.media-slide img, .media-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; z-index: -1;
}

.hero-content {
    position: relative; text-align: center; padding: 0 5vw; pointer-events: none;
}
.hero-content h1 { color: var(--color-text); text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); }
.hero-content h1 .extension { color: var(--color-text); }

.hero-subtitle {
    color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.2em;
    font-size: clamp(0.75rem, 1vw, 1rem); margin-top: 1.5rem; display: block;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9);
}

/* Moteur du slider comparateur (V2) */
.hero-compare-container {
    position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden;
    --position: 50%; user-select: none; -webkit-user-drag: none; touch-action: pan-y;
}
.compare-img {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    width: 100%; height: 100%;
}
.compare-overlay { clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%); }
.compare-handle {
    position: absolute; top: 0; bottom: 0; left: var(--position); width: 4px;
    background-color: var(--color-accent); transform: translateX(-50%);
    cursor: ew-resize; z-index: 10;
}
.handle-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; background: rgba(5, 5, 5, 0.8);
    border: 2px solid var(--color-accent); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); pointer-events: none;
}
.handle-icon svg { width: 24px; height: 24px; }

/* ==========================================================================
   SECTION UNIVERS (CARTES)
   ========================================================================== */
.universes-section { margin-top: -5vh; text-align: center; }
.universes-section h2 { text-align: center; margin-bottom: 1rem; }
.universes-section > p {
    text-align: center; margin-bottom: 4rem; max-width: 700px; margin-inline: auto;
}

.universes-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem; text-align: left;
}

.universe-card {
    background: var(--color-bg-alt); border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem; transition: all 0.4s ease; display: flex; flex-direction: column;
}
.universe-card:hover { border-color: var(--color-accent); transform: translateY(-5px); }

.universe-card .tag {
    font-family: var(--font-sans); color: var(--color-accent); text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 1rem;
}

.universe-cta {
    font-family: var(--font-sans); color: var(--color-text); text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 0.1em; text-decoration: none;
    border-bottom: 1px solid var(--color-accent); align-self: flex-start;
    padding-bottom: 4px; transition: color 0.3s ease;
}
.universe-cta:hover { color: var(--color-accent); }

/* ==========================================================================
   CARROUSEL DES MARQUES
   ========================================================================== */
.brands-section {
    text-align: center; border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05); padding: 4rem 5vw; background: var(--color-bg-alt);
}
.brands-section p { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 2rem; }

.carousel-container { 
    width: 100%; overflow: hidden; position: relative; padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track { 
    display: flex; 
    width: max-content; 
    animation: scroll-left linear infinite; /* On retire les 35s ici */
}
.carousel-track:hover { animation-play-state: paused; }

.brand-item { 
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 2.5rem; 
    letter-spacing: 0.15em; padding: 0 4rem; color: var(--color-text-muted); 
    transition: all 0.4s ease; cursor: default; opacity: 0.6; 
}
.brand-item:hover { color: var(--color-accent); opacity: 1; transform: scale(1.05); }

@keyframes scroll-left { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* ==========================================================================
   SECTION NOS RÉALISATIONS
   ========================================================================== */
.grid-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }

.realisations-carousel-wrapper {
    position: relative; width: 100%; height: 100%; min-height: 400px; border-radius: 8px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(212, 175, 55, 0.15);
}

.realisations-track {
    display: flex; height: 100%; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none;
}
.realisations-track::-webkit-scrollbar { display: none; }

.realisation-slide { flex: 0 0 100%; height: 100%; background-size: cover; background-position: center; scroll-snap-align: start; }

.real-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15, 15, 15, 0.7);
    border: 1px solid var(--color-accent); color: var(--color-accent); width: 45px; height: 45px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; 
    z-index: 10; transition: all 0.3s ease;
}
.real-btn:hover { background: var(--color-accent); color: #000; }
.real-btn.prev { left: 15px; }
.real-btn.next { right: 15px; }

/* ==========================================================================
   SECTION AVIS CLIENTS
   ========================================================================== */
.reviews-section { background-color: var(--color-bg-alt); padding: 6rem 5vw; position: relative; }
.reviews-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.reviews-header-flex h2 { margin-bottom: 0.5rem; }

.reviews-track {
    display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 1rem;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
    background: var(--color-bg); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem;
    display: flex; flex-direction: column; gap: 1rem; flex: 0 0 380px; scroll-snap-align: start;
}
.review-card-header { display: flex; justify-content: space-between; align-items: center; }
.review-card p { flex-grow: 1; }

.stars { color: var(--color-accent); font-size: 1.2rem; letter-spacing: 2px; }
.review-date { font-size: 0.8rem; color: var(--color-text-muted); }
.review-author { font-weight: 600; color: var(--color-text); font-size: 0.9rem; }

.slider-controls { display: flex; gap: 15px; }
.slider-btn {
    width: 46px; height: 46px; border-radius: 50%; background: rgba(5, 5, 5, 0.8);
    border: 2px solid var(--color-accent); color: var(--color-accent); display: flex;
    align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease;
}
.slider-btn:hover:not(:disabled) { background: var(--color-accent); color: #000; }
.slider-btn:disabled { opacity: 0.3; border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.2); cursor: not-allowed; }
.slider-btn svg { width: 20px; height: 20px; }

/* ==========================================================================
   RESPONSIVE SPÉCIFIQUE PAGE D'ACCUEIL
   ========================================================================== */
@media (max-width: 860px) {
    .grid-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .reviews-header-flex { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .review-card { flex: 0 0 85vw; }
    .slider-controls { display: none; }
    .realisations-carousel-wrapper { min-height: 300px; }
    .real-btn { width: 35px; height: 35px; }
}