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

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

@font-face {
    font-family: 'Velvelyne Book';
    src: url('../fonts/Velvelyne-Book.eot');
    src: url('../fonts/Velvelyne-Book.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Velvelyne-Book.woff2') format('woff2'),
        url('../fonts/Velvelyne-Book.woff') format('woff'),
        url('../fonts/Velvelyne-Book.ttf') format('truetype'),
        url('../fonts/Velvelyne-Book.svg#Velvelyne-Book') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
/* --- FIN LIEN AVEC TYPOGRAPHIE ROBOTO DE GOOGLE FONTS --- */
/* --- 

* {margin: 0;}

/* --- DÉBUT DU CORPS DE LA PAGE --- */
body {
    padding: 0;
    font-size: 16px;
    font-family: "area-inktrap", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #f8fcf8;
    color: #0429BF;
}

h6{
    padding: 0;
    font-size: 11px;
    font-family: "area-inktrap", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #f8fcf8;
    color: #0429BF;
    line-height: 1.2;
}


header {
    height: 900px;
}

h1 {
    font-family: "area-inktrap", sans-serif;
    font-weight: 900%;
    font-size: 1500%;
    margin-top: 64px;
    margin-bottom: 40px;
    
    color: #ffffff;
}





.liens {
    padding: 0;
    font-size: 16px;
    font-family: "area-inktrap", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #f8fcf8;
    color: #0429BF;
}


h2 {
    font-family: 'Velvelyne Book', sans-serif;
    font-size: 36px;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #0429BF;
}

h4 {
    font-family: 'Velvelyne Book', sans-serif;
    font-size: 36px;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #ffffff;
}

h5 {
    font-family: "area-inktrap", sans-serif;
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #ffffff;
}

h2 span { background: linear-gradient(to top,#bff5b7 0%, #bff5b7 35%, transparent 10.01%);
}

h3 {
    font-family: 'Velvelyne Book', sans-serif ;
    font-size: 24px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #0429BF;
}

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 {
    height: 55px; /* 56px moins 1 pour le border-bottom de 1 px */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 0px ;
}

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

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

/* --- DÉBUT DES LIENS HYPERTEXTE --- */
a {
    font-family: 'Velvelyne Book', sans-serif ;
    font-size: 20px;
    color:#0429BF;
  text-decoration: none;
  background: linear-gradient(to top,#bff5b7 0%, #bff5b7 35%, transparent 10.01%) no-repeat left bottom / 0 100%;
  transition: background-size .5s;
}

a:hover {
  background-size: 100% 100%;
}


a:hover {
  background-size: 100% 100%;
}

/* --- 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:#f8fcf8;
    
}

.liens_haut {margin:0 40px;} /* l'un vertical et 2eme horizontal */


.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: 14px;
    vertical-align: super;
    font-weight: 700;
    color: #04a832;
}

.decoupe {
    column-count: 2;

    /*background-color: yellowgreen;*/
}

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

hr { 
    grid-column: span 12; 
    border: 0; 
    height: 1px; 
    background-image: linear-gradient(#0429BF); 
    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;*/ /* 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 {
    object-fit: contain; /* 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(28, 16, 5, 0.8);
    color: #eae3e0;
    padding: 8px;
    font-weight: 300;
  
    /* Ajustement de la police pour mobile */
    font-size: 16px; 
    text-align: center;
}

/* --- .image-partieA { 
    

}
/* --- FIN LÉGENDE D'IMAGE ET HAUTEUR DES BLOCS --- */

/* --- DÉBUT ÉLÉMENTS DE LA GRILLE DE COMPOSITION - GRILLE DE 12 COLONNES --- */
.header { height: 800px; grid-column: span 12; color: white; border: none; text-align: center; }
.full-img { height: 304px; grid-column: span 12;  border: none; }
.text-8col { grid-column: span 8; /*background-color: yellowgreen;*/ }
.text-4col { grid-column: span 4; /*background-color: pink;*/ }
.text-12col { grid-column: span 12; }
.text-6col { grid-column: span 5; padding: 70px; }
.side-img { grid-column: span 2; 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%; }

.noteun { height: 170px;}
.filet { border-left: 1.5px solid  #0429BF; padding-left: 20px; }
/* --- FIN ÉLÉMENTS DE LA GRILLE DE COMPOSITION - GRILLE DE 12 COLONNES --- */

/* --- DÉBUT FOOTER --- */
footer {
    margin-top: -2px;
    background-color:  #0429BF;
    padding: 40px 0;
    border-top: 1px solid white;
}

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 white; 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: 18px;}
    hr { grid-column: span 4; border: 0; height: 1px; background-image: linear-gradient(#0429BF);; margin-top: 48px; }
    .audio_container { padding-left: 13px; }
    .audio_container figcaption { font-size: 12px; font-style: italic; padding: 8px 0 16px 12px; }
    h1 {font-size: 60px;}
}/* --- FIN POINTS DE RUPTURE POUR MOBILE EN DESSOUS DE 768 PIXELS --- */

.sup     {font-size: 12px;
    vertical-align: super;
    font-weight: 700;
    color: #01c138;}

/* Conteneur principal du header */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Prend toute la hauteur de l'écran */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Empêche la vidéo de déborder */
    background-color: black; /* Fond de secours */
    grid-column: span 12;
}

/* La vidéo qui prend tout l'espace */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Derrière le texte */
    transform: translate(-50%, -50%);
    object-fit: cover; /* Important pour garder le ratio sans déformer */
}

/* Le texte par-dessus */
.hero-content {
    position: relative;
    z-index: 2; /* Devant la vidéo */
    text-align: center;
    width: 100%;
}

/* Ajustement de vos titres existants pour le Hero */
.hero-content h1 {
    margin: 0;
    line-height: 1;
    /* Votre style existant s'appliquera ici */
}

/* Conteneur spécifique pour l'étude de cas */
.hero-etude {
    position: relative;
    width: fill;      /* Largeur fixe demandée */
    height: 40vh;      /* Toute la hauteur de l'écran (longueur) */
    margin: 0 auto;     /* Centre le bloc si l'écran est plus large que 1420px */
    overflow: hidden;
    display: flex;
    align-items: flex-end;    /* Aligne le titre en bas */
    justify-content: flex-start; /* Aligne le titre à gauche */
    background-color: black;
}

/* Ajustement de la vidéo pour remplir ce cadre spécifique */
.hero-etude .video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1420px;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;  /* Remplit l'espace sans déformer la vidéo */
    z-index: 1;
}

/* Placement du titre en bas à gauche */
.hero-content.align-bottom-left {
    position: relative;
    z-index: 2;
    padding: 40px;      /* Marge intérieure pour ne pas coller au bord */
    text-align: left;
}

/* Responsive : adaptation si l'écran est plus petit que 1420px */
@media (max-width: 1420px) {
    .hero-etude {
        width: 100%;    /* Prend toute la largeur disponible sur petit écran */
    }
    .hero-etude .video-background {
        width: 100%;
    }
}

/* Style commun pour toutes les images de l'étude de cas */
.image-etude {
    width: 100%;
    height: 180px;      /* Force une hauteur identique pour toutes les photos */
    overflow: hidden;
    border-radius: 20px; /* Bords arrondis */
    margin-bottom: 16px; /* Espacement entre les deux photos du bloc */
}

.image-etude img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Empêche la déformation malgré la taille fixe */
    transition: transform 0.3s ease;
}

/* Optionnel : petit effet au survol */
.image-etude:hover img {
    transform: scale(1.05);
}

/* Conteneur pour aligner les deux photos verticalement dans leur colonne */
.gallery-vertical {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ajustement pour mobile : tout remettre sur une seule colonne */
@media (max-width: 768px) {
    .text-8col, .text-4col {
        grid-column: span 4;
    }
    .image-etude {
        height: 200px; /* Un peu plus petit sur téléphone */
    }
}


     @media (min-width: 769px) {
        .image_incrustee p {
                bottom: -300px;
    }
}
    @media (max-width: 768px) {
        .image_incrustee p {
                bottom: 0;
    }

    }
    .image_incrustee p {
        background-color:  rgba(4, 41, 191, 0.8);
        color: white;
        padding: 30px;
        position: absolute;
      
        width:100%;
        transition: all ease 0.2s;
    }
  

    .image_incrustee {
        overflow:hidden;
        width: 100%;
        grid-column: span 4;
        
        position: relative;
        background-image: url("img/jacobins.jpg");
        background-size: cover;
        background-position: center;
    }
    .image_incrustee:hover p {bottom: 0; transition: all ease 0.6s;}


    /* 1. On s'assure que le conteneur peut positionner le texte par rapport à lui-même */
.image_incrustee {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 2. Style du texte qui apparaît au survol */
.description-survol {
    position: absolute;
    bottom: -100%; /* Cache le texte en dessous de l'image au départ */
    left: 0;
    width: 100%;
    box-sizing: border-box; /* Empêche le débordement dû au padding */
    white-space: normal;    /* Force le texte à revenir à la ligne */
    overflow-wrap: break-word;
    background-color: rgba(4, 41, 191, 0.8); /* Bleu comme votre thème avec transparence */
    color: white;
    padding: 15px;
    margin: 0; /* Important pour annuler les marges par défaut des <p> */
    transition: bottom 0.5s ease; /* L'animation fluide */
    font-size: 11px;
    z-index: 10;
    grid-column: span 4;
}

/* 3. L'action de survol : on remonte le texte */
.image_incrustee:hover .description-survol {
    bottom: 0;
}

/* Change la couleur de sélection pour toute la page */
::selection {
    background-color: #bff5b7; /* Le vert clair utilisé dans vos titres */
    color: #0429BF;            /* Garde votre bleu pour le texte sélectionné */
}

/* Pour certains navigateurs comme Firefox */
::-moz-selection {
    background-color: #bff5b7;
    color: #0429BF;
}


.image-aleatoire {
    position: fixed; /* Reste en place même si on scroll */
    z-index: 5;    /* Derrière le texte */
    pointer-events: none; /* On ne peut pas cliquer dessus */
    object-fit: contain;
    opacity: 0;      /* Invisible au début pour l'animation */
    transition: opacity 1s ease-in-out;
}

.image-visible {
    opacity: 0.3;    /* Opacité une fois apparue (ajustable) */
}

footer a {
    color: white;
    text-decoration: none; /* Optionnel : enlève le soulignement */
}

