/* --- FEUILLE DE STYLES POUR LA PAGE DE L'ARTICLE --- */

/* --- DÉBUT LIEN AVEC TYPOGRAPHIE ROBOTO DE GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* --- FIN LIEN AVEC TYPOGRAPHIE ROBOTO DE GOOGLE FONTS --- */

* {margin: 0;}

/* --- DÉBUT DU CORPS DE LA PAGE --- */
body {
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    background-color: #ebe8db;
    color: #333;
}

h1 {
    font-weight: 900;
    font-size: 32px;
    margin-top: 64px;
    margin-bottom: 40px;
    color: #ffbb00;
}

h2 {
    font-weight: 700;
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 8px;
    color: #ff7b00;
}

h3 {
    font-weight: 600;
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #bd6615;
}

ul { list-style: none; padding: 0; }

ul li { margin-bottom: 8px; font-size: 14px; opacity: 0.8; }
/* --- FIN DU CORPS DE LA PAGE --- */

/* --- DÉBUT BARRE DE NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(235,232,219,0.8);
    border-bottom: 1px dotted #a2a2a2;
    padding: 16px 0;
}

.nav-container {
    max-width: 1136px;
    margin: 0 auto;
    padding: 0 72px; /* marge extérieure de 72px */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    align-items: center;
}

.logo { grid-column: span 3; font-weight: 600; color: rgb(192, 189, 175); }
/* --- FIN BARRE DE NAVIGATION --- */

/* --- DÉBUT DES LIENS HYPERTEXTE --- */
a {
    color: #7b786b;
    text-decoration: none;
}

a:hover {
    color: #d6d4ca;
    background-color: #504e42;
    /*text-decoration: underline;*/
}
/* --- FIN DES LIENS HYPERTEXTE --- */

/* --- DÉBUT CONTENEUR PRINCIPAL --- */
.container {
    max-width: 1136px; /* largeur maximale de la grille */
    margin: 0 auto; /* centrage horizontal */
    padding: 0 72px; /* marge extérieure de 72px de chaque côté */
    /*background-color: #add25d;*/
    border-left: 1px dotted #c0c0c0;
    border-right: 1px dotted #c0c0c0;
}

.grid-composition {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* Grille de 12 colonnes */
    column-gap: 30px; /* séparation entre les rangées */
    gap: 16px; /* séparation entre les rangées */
    position: relative;
}
/* --- FIN CONTENEUR PRINCIPAL --- */


.note {
    text-decoration: none; 
    font-size: 12px;
    vertical-align: super;
    font-weight: 700;
    color: orangered;
}

.decoupe {
    column-count: 2; 
    /*background-color: yellow;*/ 
}

p { 
    margin-bottom: 24px; 
    line-height: 1.4;
}

hr { 
    grid-column: span 10; 
    border: 0; 
    height: 1px; 
    background-image: linear-gradient(to right, rgb(235,232,219), #ff7b00, rgb(235,232,219)); 
    margin: 64px 0 16px 0;
}

.decal { /* décalage entre les notes de bas de page et le footer */
    height: 80px;
}


/* --- DÉBUT ÉLÉMENTS DE LA GRILLE DE COMPOSITION - GRILLE DE 12 COLONNES --- */
.item {
    /*background-color: rgba(255, 255, 255, 0.6);*/
    /*padding: 24px;*/
    border-radius: 8px;
    /*border: 1px dotted #bababa;*/
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card {
    background-color: #e1dfd5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 16px;
}

.audio_container {
    padding: 16px 0 0 16px;
}

.audio_container figcaption {
    font-size: 12px;
    font-style: italic;
    padding: 16px 0 0 16px;
}

/* --- DÉBUT LÉGENDE D'IMAGE --- */
.legende {
    position: relative;
    z-index: 5;
    overflow: hidden; /* Prend toute la largeur disponible */
}

.legende img {
    border-radius: 8px;
    width: 100%; /* L'image remplit son conteneur */
    height: 100%;
    object-fit: cover; /* Préserve le ratio de l'image (important !) */
    display: block;
}

.legende figcaption {
    border-radius: 0 0 8px 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; /* Inclut le padding dans le calcul des 100% */
    background-color: rgba(255, 123, 0, 0.8);
    color: #eae3e0;
    padding: 8px;
    font-weight: 300;
  
    /* Ajustement de la police pour mobile */
    font-size: 16px; 
    text-align: center;
}
/* --- FIN LÉGENDE D'IMAGE --- */

/* --- DÉBUT ÉLÉMENTS DE LA GRILLE DE COMPOSITION - GRILLE DE 12 COLONNES --- */
.header { grid-column: span 12; background: linear-gradient(217deg, #363331, transparent 70.71%), linear-gradient(127deg, #706864, transparent 70.71%), linear-gradient(336deg, #847b76, transparent 70.71%); color: white; border: none; text-align: center; }
.full-img { grid-column: span 12; height: 300px; padding: 0; border: none; }
.text-8col { grid-column: span 8; }
.text-12col { grid-column: span 12; }
.side-img { grid-column: span 4; padding: 0; border: none; }
.video { grid-column: span 12; aspect-ratio: 16/9; color: white; display: flex; align-items: center; justify-content: center; }
.bottom-img { grid-column: span 4; padding: 0; border: none; height: 200px; }
.card { grid-column: span 4; }

video, img { width: 100%; height: 100%; }
/* --- FIN ÉLÉMENTS DE LA GRILLE DE COMPOSITION - GRILLE DE 12 COLONNES --- */

/* --- DÉBUT FOOTER --- */
footer {
    background-color: rgba(204, 201, 188, 0.7);
    padding: 40px 0;
    border-top: 1px solid rgba(175, 172, 155, 0.8);
}

footer::after {
    border-top: 2px solid rgb(255, 0, 0);
}

.footer-container {
    max-width: 1136px;
    margin: 0 auto;
    padding: 0 72px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
}

.footer-section { grid-column: span 4; }
.footer-section h4 { border-bottom: 1px dashed rgba(150, 147, 130, 0.8); padding-bottom: 8px; margin-bottom: 16px; }
/* --- FIN FOOTER --- */


/* --- DÉBUT POINTS DE RUPTURE POUR MOBILE EN DESSOUS DE 768 PIXELS --- */
@media (max-width: 768px) {
    .container { grid-column: span 4; padding: 0 16px; } /* largeur maximale de la grille */
    .nav-container { max-width: 100vw; height: 40px; margin: 0 auto; padding: 0 20px; display: flex; gap: 20px; justify-content: center; align-items: center; }
    .grid-composition { grid-template-columns: repeat(4, 1fr); }
    .header, .full-img, .text-8col, .text-12col,.side-img, .video, .bottom-img, .card { grid-column: span 4; }
    .logo { /*grid-column: span 4; text-align: center;*/ display: none;}
    .decoupe { column-count: 1; /*background-color: yellow;*/ }
    .footer-container { max-width: 768px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0px; }
    .footer-section { grid-column: 8; }
    h4 { margin-top: 24px;}
    hr { grid-column: span 4; border: 0; height: 1px; background-image: linear-gradient(to right, rgb(235,232,219), #ff7b00, rgb(235,232,219)); margin-top: 48px; }
    .audio_container { padding-left: 13px; }
    .audio_container figcaption { font-size: 12px; font-style: italic; padding: 8px 0 16px 12px; }
}/* --- FIN POINTS DE RUPTURE POUR MOBILE EN DESSOUS DE 768 PIXELS --- */