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

/* --- DÉBUT LIEN AVEC TYPOGRAPHIE ROBOTO DE GOOGLE FONTS --- */
@import url("https://use.typekit.net/lwf3okz.css");

* {margin: 0;}

/* --- DÉBUT DU CORPS DE LA PAGE --- */
body {
    overflow-x: hidden;
    background-color: #f1f1f0;
    color: #333;
}

header {
    height: 192px;
}

h1 {
    font-family: "bricolage-grotesque", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 76px;
    margin-top: 64px;
    margin-bottom: 40px;
    color: #000000;
}

h2 {
    font-family: "miriam-libre", sans-serif;font-weight: 700;
    font-style: normal;
    font-size: 25px;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #000000;
}

h3 {
    font-family: "miriam-libre", sans-serif;font-weight: 400;
    font-style: normal;
    font-size: 25px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #000000;
}

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

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

/* --- DÉBUT BARRE DE NAVIGATION --- */
.navbar {
    font-family: "miriam-libre", sans-serif;font-weight: 400;
    font-style: normal;
    font-size: 30px;
    height: 55px; /* 56px moins 1 pour le border-bottom de 1 px */
    top: 0;
    right: 0px;
    z-index: 9000;
    align-items: right;
    max-width: 1840px;
    position: sticky;
    margin: 0 auto;
    gap: 16px;
    padding-top: 20px;
}
.navbar :hover {
        color: #FF2AAD;
}

.logo { grid-column: span 10; font-weight: 800; color: rgb(0, 0, 0);bottom: -42px; /* Marge de 16px depuis le bas de l'écran */
    left: 16px; position: fixed; z-index: 5000; line-height: 0.8; margin-left : 16px; }

.logo :hover {
        color: #FF2AAD;
}

::selection {
  background: #B8FF3C;
  color: #000000;
}

.parties { grid-column: span 10; font-weight: 800; color: rgb(0, 0, 0);bottom: 8%; /* Marge de 16px depuis le bas de l'écran */
    right: 5%; position: fixed; z-index: 5000; line-height: 0.8; margin-left : 16px; line-height: 2em; }
/* --- FIN BARRE DE NAVIGATION --- */

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

a:hover {
    color: #FF2AAD;
    /*text-decoration: underline;*/
}

/* Nouveau style pour le survol du menu fixe */
.parties a:hover {
    text-decoration: underline dotted black; /* Soulignement pointillé noir */
    background-color: transparent; /* Conserver le fond transparent ou le retirer */
    color: #000000; /* Conserver la couleur du texte noir */
}
/* --- 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;*/
}

.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: #FF2AAD;
}

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

p { 
    font-family: "miriam-libre", sans-serif;font-weight: 400;
    font-style: normal;
    font-size: 17px;
    margin-bottom: 24px; 
    line-height: 1.2;
    margin-bottom: 16px;
}

.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;*/ /* une bordure de points de 1 pixel autour du bloc */
    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 ET HAUTEUR DES BLOCS --- */
.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;
}

.archi5 { 
    height: 376px;
}
/* --- FIN LÉGENDE D'IMAGE ET HAUTEUR DES BLOCS --- */

/* --- DÉBUT ÉLÉMENTS DE LA GRILLE DE COMPOSITION - GRILLE DE 12 COLONNES --- */
.header { height: 50px; grid-column: span 12;  text-align: center; }
.full-img { height: 380px; grid-column: 4/span 3;  border: none; }

.image {
height: 380px; grid-column: 7/span 3;  border: none;         /* garde les proportions */
}

.text-8col { padding-bottom: 100px; grid-column: span 12; /*background-color: yellowgreen;*/ }
.line {
    position: absolute;
    top: 1480px;          /* ajuste la position */
    left: -120px;
    width: 443px;        /* longueur */
    height: 2px;         /* épaisseur */
    background-color: black;
}
.line h1 {
    position: absolute;
    top: -85px;          /* ajuste la position */
    left: -4px;
    width: 500px; 
}
.line2 {
    position: absolute;
    top: 3020px;          /* ajuste la position */
    left: -120px;
    width: 443px;        /* longueur */
    height: 2px;         /* épaisseur */
    background-color: black;
}
.line2 h1 {
    position: absolute;
    top: -85px;          /* ajuste la position */
    left: -4px;
    width: 500px; 
}
.line3 {
    position: absolute;                                                         /* ajuste la position */
    left: -120px;
    width: 695px;        /* longueur */
    height: 2px;         /* épaisseur */
    background-color: black;
}
.line3 h1 {
    position: absolute;
    top: -85px;          /* ajuste la position */
    left: -4px;
    width: 5000px; 
}
.text-12col { grid-column: 4/span 9; padding-top: 260px;padding-bottom: 60px; }
.text-13col { grid-column: 4/span 9;column-count: 2; padding-top: 20px;padding-bottom: 60px; }
.text-14col { grid-column: 4/span 9; padding-top: 180px;padding-bottom: 60px; }
 /* MODIFIÉ : 1 colonne pour "Une rupture du cycle" */
.text-16col { grid-column: 4/span 9; padding-top: 200px;padding-bottom: 60px; }
.text-13col img { height: 378px;}
.essai { grid-column: 4/span 2;}
.side-img { grid-column: span 6; 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: 4px 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;
}

li {
    font-family: "miriam-libre", sans-serif;font-weight: 400;
    font-style: normal;
    font-size: 8px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #000000;
} 
.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, .text-13col, .text-14col, .text-15col { grid-column: span 4; } /* Ajout des classes text pour mobile */
    .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 --- */
/* --- ANIMATIONS DE TRANSITION --- */
body {
    animation: fadeInPage 0.5s ease-in-out forwards;
}

.fade-out {
    animation: fadeOutPage 0.5s ease-in-out forwards !important;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutPage {
    from { opacity: 1; }
    to { opacity: 0; }
}
.lien-liste {
    text-decoration: none;
    color: #454545;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 0;
}

/* L'émoji est caché par défaut (opacité 0) */
.lien-liste::before {
    content: "\21AA"; /* Code de l'émoji ↪ */
    position: absolute;
    left: -25px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

/* Au survol : l'émoji devient visible et glisse à sa place */
.lien-liste:hover {
    padding-left: 10px; /* Décale un peu le texte pour laisser de la place */
}

.lien-liste:hover::before {
    opacity: 1;
    transform: translateX(0);
}