/* --- CONFIGURATION GÉNÉRALE --- */
@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap);

* {
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* --- HEADER FIXE --- */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px); 
    border-radius: 0 0 15px 15px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

header.header img {
    width: 60px;
    height: auto;
}

/* --- NAVIGATION --- */
nav.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav.nav li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

nav.nav li:hover {
    transform: scale(1.1);
}

nav.nav li:hover a {
    color: #72acc3;
}

/* --- CAROUSEL (CADRE AGRANDI) --- */
.carousel-container {
    position: relative;
    width: 100%;             /* Largeur du cadre sur la page */
    max-width: 1800px;      /* Largeur maximum */
    height: 950px;          /* GRANDE HAUTEUR DU DIAPO */
    margin: 140px auto 60px; /* 140px pour passer sous le header */
    overflow: hidden;
    border-radius: 25px;    /* Bords très arrondis pour un look moderne */
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    background-color: #000;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide.active {
    display: block;
    animation: slideFade 1s ease-in-out;
}

.carousel-slide img {
    width: 50%;
    height: 50%;
    object-fit: cover;      /* Remplit le cadre sans déformer l'image */
    filter: brightness(80%); /* Assombrit pour rendre le texte lisible */
}

/* --- TEXTE DANS LE DIAPO --- */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 50px 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); /* Dégradé noir profond */
    color: white;
    text-align: left;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.carousel-caption h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #72acc3;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.15rem;
    max-width: 900px;
    opacity: 0.9;
    line-height: 1.7;
}

/* --- BOUTONS FLÈCHES --- */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.arrow svg {
    stroke-width: 3px;
}

.prev { left: 30px; }
.next { right: 30px; }

/* --- POINTS INDICATEURS --- */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #72acc3;
    width: 40px; /* Point actif qui s'étire en barre */
    border-radius: 10px;
}

/* --- FOOTER --- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5rem;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

footer img {
    max-width: 80px;
}

footer p {
    font-size: 14px;
    color: #777;
}

/* --- ANIMATIONS --- */
@keyframes slideFade {
    from { opacity: 0.2; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .carousel-container { height: 500px; margin-top: 100px; }
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-caption h2 { font-size: 1.2rem; }
    .arrow { width: 45px; height: 45px; }
}