/* ==========================================================================
   INDEX.CSS — Page d'accueil
   (ancien <style> inline d'index.html, doublons fusionnés, rendu identique)
   ========================================================================== */

/* 1. BASE & HAUTEUR STRICTE (SANS SCROLL) -------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body, html {
    height: 100vh;
    height: 100dvh;            /* évite que la barre d'adresse mobile masque le slider */
    width: 100vw;
    background-color: #0d0d0d;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 2. BARRE DE NAVIGATION ------------------------------------------------- */
.main-navbar {
    width: 100%;
    height: 80px;
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-decoration: none;
}

.nav-logo img {
    height: 100%;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links { display: flex; gap: 30px; }

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    transition: opacity 0.3s;
    position: relative;
    padding: 5px 0;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }

/* 3. HERO ---------------------------------------------------------------- */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.surtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    opacity: 0.5;
    font-weight: 400;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content h1 .playfair-italic {
    font-family: 'Playfair Display', serif !important;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.7;
}

.divider {
    width: 40px;
    height: 1px;
    background-color: #ffffff;
    margin-bottom: 30px;
    opacity: 0.3;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cta-button:hover {
    background-color: #ffffff;
    color: #0d0d0d;
}

/* 4. LOGO SLIDER (BOUCLE INFINIE) --------------------------------------- */
.slider-section {
    width: 100%;
    padding: 25px 0;
    background-color: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.slider-title {
    text-align: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.logo-slider {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.logo-slider::before { left: 0;  background: linear-gradient(to right, #0d0d0d, transparent); }
.logo-slider::after  { right: 0; background: linear-gradient(to left,  #0d0d0d, transparent); }

.logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    padding-right: 60px;           /* = gap, pour une boucle sans à-coup */
    animation: scroll-infinite 20s linear infinite;
    will-change: transform;        /* animation sur le GPU */
}

.logo-track span {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: 0.4;
    color: #ffffff;
    transition: opacity 0.3s;
    white-space: nowrap;
    cursor: default;
}
.logo-track span:hover { opacity: 0.9; }

@keyframes scroll-infinite {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.logo-slider:hover .logo-track { animation-play-state: paused; }

/* 5. RESPONSIVE (les deux anciens blocs 768px fusionnés) ---------------- */
@media (max-width: 768px) {
    .main-navbar { height: 70px; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.65rem; letter-spacing: 1px; }

    .hero-content h1 { font-size: 2rem; margin-bottom: 15px; }
    .hero-content p { font-size: 0.85rem; margin-bottom: 20px; line-height: 1.5; }
    .divider { margin-bottom: 20px; }
    .cta-button { padding: 12px 25px; font-size: 0.7rem; }

    .slider-section { padding: 20px 0 25px 0; }
    .slider-title { margin-bottom: 15px; }

    .logo-slider { max-width: 100%; padding: 0 15px; }
    .logo-slider::before,
    .logo-slider::after { width: 40px; }

    .logo-track {
        gap: 50px;
        padding-right: 50px;
        animation-duration: 15s;
    }
    .logo-track span { font-size: 0.9rem; }
}

/* Téléphones en paysage, très bas en hauteur */
@media (max-height: 500px) {
    .surtitle, .divider, .slider-title { display: none; }
    .hero-content h1 { font-size: 1.6rem; margin-bottom: 10px; }
    .hero-content p { display: none; }
    .slider-section { padding: 10px 0; }
}

/* Accessibilité : mouvement réduit demandé par le système */
@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; }
}
