/* ===== GLOBAL ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
}

/* ===== HEADER ===== */
header {
    background: #f37021;
    color: white;
    padding: 15px;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 100px;
}

/* ===== NAVIGATION ===== */
nav {
    background: #333;
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* ===== HERO ===== */
.hero {
    padding: 60px;
    text-align: center;
    background: white;
}

.hero h1 {
    color: #f37021;
}

/* ===== CONTAINER ===== */
.container {
    padding: 40px;
    max-width: 1000px;
    margin: auto;
}

/* ===== CARDS ===== */
.card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* ===== TITRES ===== */
h2 {
    color: #f37021;
}

h3 {
    margin-top: 40px;
    color: #f37021;
}

h4 {
    margin-bottom: 5px;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    background: #f37021;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #d95f1a;
}

/* ===== FORMULAIRE ===== */
input, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

button {
    background: #f37021;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button:hover {
    background: #d95f1a;
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ===== SLIDER (CORRIGÉ) ===== */
.slider {
    position: relative;
    max-width: 1000px;
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.slide {
    position: absolute;   /* IMPORTANT pour éviter empilement */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 100px;
    }

    .hero {
        padding: 30px;
    }

    .slider {
        height: 250px;
    }
}