/* --- 1. BASE & FOND GRIS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #e5e5e5;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 0 0 10px 0;
}

/* --- 2. LE BLOC BLANC (GABARIT) --- */
#page-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 1050px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-top: 0; 
}

/* --- 3. HEADER & NAVIGATION --- */
.site-header {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 0 40px;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.main-logo {
    width: 223px;
    height: auto;
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.nav-list > li > a:hover {
    text-decoration: underline;
}

/* --- 4. SOUS-MENUS (TEXTE CENTRÉ & MAJUSCULES) --- */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #666666; /* Gris Foncé */
    min-width: 120px;
    z-index: 10000;
    list-style: none;
    padding: 0;
}

.has-submenu:hover .submenu {
    display: block !important;
}

.submenu li {
    border-bottom: 1px solid #444;
}

.submenu li a {
    display: block;
    padding: 12px 15px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 11px; /* Légèrement plus petit pour l'esthétique uppercase */
    text-align: center;      /* AJOUT : Centrage */
    text-transform: uppercase; /* AJOUT : Majuscules */
    letter-spacing: 1px;
}

.submenu li a:hover {
    background-color: #e8e8e8 !important;
    color: #000000 !important;
}

/* --- 5. ZONE DE CONTENU (STRUCTURE HYBRIDE) --- */
.content-area {
    flex: 1;
    padding: 0; /* On met à 0 pour que Galleria touche les bords */
}
/* Conteneur pour tout ce qui n'est pas la galerie (Intro, articles...) */
.text-container {
    background-color: #ffffff;
    padding: 50px;
    text-align: left; /* Ici, on est sûr d'être à gauche par défaut */
}

/* --- 6. SECTION ATELIER (BLOC GRIS ACCUEIL) --- */
.atelier-highlight {
    background-color: #bbbbbb; 
    padding: 40px 0;
    width: 100%;
    clear: both;
}

.atelier-inner-flex {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 50px; /* Aligné pile sur tes news du dessous */
}

/* On utilise la structure news-item pour le bloc gris */
/* --- FORCE L'ALIGNEMENT HORIZONTAL --- */
.atelier-inner-flex .news-item {
    display: flex !important;
    flex-direction: row !important; /* Force la ligne */
    flex-wrap: nowrap !important;  /* Interdit le passage à la ligne */
    align-items: flex-start;
    gap: 30px;
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.atelier-inner-flex .news-image {
    flex: 0 0 310px !important; /* L'image ne bouge pas de ses 310px */
    width: 310px !important;
}

.atelier-inner-flex .news-content {
    flex: 1 !important; /* Le texte prend TOUT l'espace restant sans pousser */
    min-width: 0;        /* Astuce technique pour forcer le texte à rester dans sa colonne */
    text-align: left;
}
/* Style spécifique pour le lien contact dans le bloc gris */
.news-content a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

.news-content a:hover {
    border-bottom: 2px solid #000;
}
/* --- 7. SECTION ARTICLES (NEWS) & STRUCTURE COMMUNE --- */
.news-section {
    margin-top: 10px;
    text-align: left;
}

.news-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    align-items: flex-start;
    border-bottom: 1px dashed #ccc;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-image {
    flex: 0 0 310px;
    width: 310px;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    flex: 1;
    text-align: left;
}

.news-title {
    font-size: 18px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: #111;
}

.news-content p {
    font-size: 13px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 10px;
}

.news-details {
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

/* --- 8. FOOTER --- */
.site-footer {
    width: 100%;
    border-top: 1px solid #eee;
    padding: 40px;
    background-color: #fdfdfd;
}

.container-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.foot-text { 
    font-size: 11px; 
    color: #777; 
    line-height: 1.6; 
}

.footer-menu { 
    display: flex; 
    list-style: none; 
    gap: 15px; 
}

.footer-menu a { 
    text-decoration: none; 
    color: #444; 
    font-size: 12px; 
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* SEO & UTILITAIRES */
.seo-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

./* --- 5. NOUVEAU DIAPORAMA (SWIPER) --- */
.swiper-container {
    width: 100%;
    height: 550px;
    background-color: #000;
    margin-bottom: 20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px; /* Voici votre liseré de 1 pixel noir */
    box-sizing: border-box;
}

.swiper-slide img {
    width: 100%;       /* L'image prend toute la largeur */
    height: 100%;      /* L'image prend toute la hauteur */
    object-fit: cover; /* L'image remplit tout le cadre (comme Galleria 'landscape') */
    border-radius: 0 !important; /* Supprime l'arrondi */
    box-shadow: none !important;  /* Supprime l'ombre */
}

/* Style des flèches et du compteur (1/6) */
.swiper-button-next, .swiper-button-prev {
    color: #ffffff !important;
    opacity: 0.4;
}

.swiper-pagination-fraction {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    bottom: 15px;
}