/* ====== STYLE GLOBAL ====== */
* {
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ====== HEADER & NAV ====== */
header {
    background-color: #111827;
    color: #ffffff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 20px;
    margin: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

nav a:hover {
    text-decoration: underline;
}

/* ====== SECTIONS ====== */
main section {
    padding: 32px 0;
    background-color: #ffffff;
    margin-bottom: 8px;
}

#hero {
    margin-top: 8px;
}

h2 {
    margin-top: 0;
}

/* ====== SLIDESHOW ====== */
.slideshow-container {
    max-width: 940px;
    position: relative;
    margin: 16px auto 0 auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    vertical-align: middle;
}

/* Boutons précédent / suivant */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Numéro (1/3, 2/3...) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* Texte de légende */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Points (ronds) sous le slideshow */
.dots-container {
    text-align: center;
    margin-top: 8px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #BBBBBB;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Animation fade */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.4s;
    animation-name: fade;
    animation-duration: 1.4s;
}

@-webkit-keyframes fade {
    from { opacity: .4; }
    to   { opacity: 1; }
}

@keyframes fade {
    from { opacity: .4; }
    to   { opacity: 1; }
}

/* ====== FOOTER ====== */
footer {
    background-color: #111827;
    color: #ffffff;
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 700px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 8px;
    }

    nav a {
        margin-left: 0;
        margin-right: 12px;
        display: inline-block;
    }
}

@media (max-width: 300px) {
    .prev, .next, .text {
        font-size: 11px;
    }
}
