/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Trebuchet MS", Arial, sans-serif;
    background: #fff url(images/img01.jpg) repeat-x top;
    color: #757575;
}

/* CONTAINER */
#wrapper,
#header,
#footer {
    max-width: 1200px;
    width: 95%;
    margin: auto;
}

/* HEADER */
#logo {
    text-align: center;
    padding: 30px 0;
}

#logo h1 {
    font-size: 36px;
    color: #31363B;
}

#logo p {
    color: #808080;
}

/* NAVBAR */
#menu {
    background: #31363B;
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: flex-end; /* droite par défaut */
    list-style: none;
}

.nav li {
    position: relative;
}

.nav > li > a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
}

.nav > li > a:hover,
.nav > li > a.active_tab {
    background: #C11A00;
    font-weight: bold;
}

/* DROPDOWN SUBMENU */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #31363B;
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
}

/* items */
.submenu li {
    width: 100%;
}

/* liens */
.submenu a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-top: 1px solid #444;
    white-space: nowrap;
    font-size: 13px;
}

.submenu a:hover {
    background: #C11A00;
}

/* SPLASH / SLIDER */
#splash {
    position: relative;
    height: 350px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 0px;
}

/* SLIDES */
#splash .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#splash .slide.active {
    opacity: 1;
    z-index: 2;
}

#splash .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* H1 titre externe */
.slide-title {
    position: absolute;
    top: 30px;
    left: 36%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    z-index: 3;
}

/* caption interne */
.caption-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
	width: 990px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 15px 25px;
    border-radius: 2px;
    text-align: center;
    z-index: 2;
	border-bottom: 3px solid #C11A00;
}

.caption-text {
    font-size: 18px;
}

/* LAYOUT */
#page {
    display: flex;
    gap: 20px;
}

/* CONTENT */
#content {
    flex: 3;
}

.post {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dotted #ccc;
}

.post h2 {
    color: #31363B;
    margin-bottom: 10px;
}

/* SIDEBAR */
#sidebar {
    flex: 1;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
}

#sidebar h3 {
    margin-bottom: 10px;
    color: #31363B;
}

#sidebar ul {
    list-style: none;
    margin-bottom: 20px;
}

#sidebar li {
    padding: 6px 0;
    border-bottom: 1px dotted #ccc;
}

/* FOOTER */
#footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #page {
        flex-direction: column;
    }

    .nav {
        flex-direction: column;
        align-items: center;
    }

    .submenu {
        position: static;
        transform: none;
        display: none;
        width: 100%;
        text-align: center;
    }

    .dropdown.active .submenu {
        display: block;
    }

    .nav > li > a {
        text-align: center;
    }

    .slide-title {
        font-size: 32px;
    }

    .caption-container {
        width: 90%;
        padding: 10px 15px;
    }
}