/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 80px; /* Ajustez selon la hauteur de votre header */
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== HEADER ========== */
header {
    padding: 20px 0;
}

/* ========== NAVIGATION ========== */


a {
    text-decoration: none;
}


nav li.active a {
    font-weight: bold;
}

/* ========== MAIN CONTENT ========== */
main {
    min-height: 60vh;
    padding: 40px 0;
}

/* ========== CONTENT ELEMENTS ========== */
.ce {
    margin-bottom: 20px;
}

.ce h1, .ce h2, .ce h3, .ce h4, .ce h5 {
    margin-bottom: 10px;
}

.ce .subheader {
    color: #666;
    margin-top: -5px;
    margin-bottom: 15px;
}

.ce h2.hidden {
    position: absolute;
    left: -9999px;
}


/* ========== FOOTER ========== */
footer {
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}
/* ========== TEXT & MEDIA BACKGROUND VIDEO ========== */
.ce-textmedia-background {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Pleine largeur - sortir du container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.text-overlay {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    max-width: 800px;
}

.text-overlay h1,
.text-overlay h2,
.text-overlay h3,
.text-overlay p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ========== GRILLE NEWS RESPONSIVE ========== */
.news-list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .news-list-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-img-wrap {
    width: 100%;
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.article:hover .news-img-wrap img {
    transform: scale(1.05);
}

.article .header {
    padding: 1.5rem 1.5rem 1rem;
}

.article .header h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article .header h3 a {
    color: #1f2937;
    text-decoration: none;
}

.article .header h3 a:hover {
    color: #3b82f6;
}

.teaser-text {
    padding: 0 1.5rem 1rem;
    flex: 1;
}

.teaser-text p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

.teaser-text .more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.teaser-text .more:hover {
    text-decoration: underline;
}

.article .footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    margin-top: auto;
}

.article .footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}
/* ========== HAMBURGER ========== */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}
.site-header, .site-header .container{
    padding: 0;
}
.logo img{
    max-width: 150px;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffffcf;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Classe pour cacher le header */
.site-header.hidden {
    transform: translateY(-100%);
}

/* Classe pour afficher le header */
.site-header.visible {
    transform: translateY(0);
}
/* Enlever le background quand la sidebar est ouverte */
body.menu-open .site-header {
    background: transparent !important;
}

body .site-header .logo-sidebar{
    display: none;
}
body.menu-open .site-header .logo-normal{
    display: none;
}
body.menu-open .site-header .logo-sidebar{
    display: initial;
}
.hamburger {
    margin-left: auto; /* Force le hamburger à droite */
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger.active span{
    background: white;
}
/*
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}*/

.hamburger span {
    width: 35px;
    height: 4px;
    background: #393939;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== OVERLAY ========== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== MENU LATERAL ========== */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;

    background: #0066FF; /* Bleu électrique */
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.sidebar-menu.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.sidebar-content {
    padding: 4rem 2rem 2rem;
}

.sidebar-content .menu li {
    display: block;
    width: 100%;
}

.sidebar-content .menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    font-size: 28px;
    text-transform: uppercase;
}

.sidebar-menu ul li a:hover,
.sidebar-menu ul li.active a {
    font-style: italic;

}

body.menu-open {
    overflow: hidden;
}


