:root {
    --rouge-fond: #db2319;
    --beige-clair: #f2e6d8;
    --brand-red: #db2319;/* --- PAGE QUIZ --- */
    --brand-yellow: #f8e71c;/* --- PAGE QUIZ --- */
    --brand-black: #000000;/* --- PAGE QUIZ --- */
}

/* 1. Sécurité globale contre le scroll horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--rouge-fond);
    color: var(--beige-clair);
}

.header-fullscreen {
    min-height: auto;
}

.site-title {
    font-family: 'Anton';
    font-size: 1.9rem;
    text-transform: uppercase;
    padding-left: 1rem;
}

#lien-titre-site {
    text-decoration: none!important;
    color: var(--beige-clair)!important;
}

.site-menu .nav-link {
    font-family: 'Anton';
    /* 1rem minimum, 2.2vw (variable), 1.5rem maximum */
    font-size: clamp(1rem, 2.2vw, 1.5rem); 
    text-transform: uppercase;
    color: var(--beige-clair);
    padding: 0.5rem 0.8rem; /* Réduction légère des marges internes */
    white-space: nowrap; /* Empêche un mot seul de passer à la ligne */
}

@media (max-width: 480px) {
    .site-menu {
        justify-content: center !important; /* Centre le menu sur mobile */
    }
}

.site-menu .nav-link.active {
    color: #000 !important;
}

.nav {
    margin-left: 0;
    padding-left: 0;
}

.nav > li > a:hover{
    color: black;
}

.nav-header {
    position: relative;
    z-index: 1000;
}


/* --- Titre : NOs revendications --- */
.section-hero {
    padding-top: 1rem;
    min-height: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.perso-arrosoir {
    display: block;
    width: 90%;
    max-width: 450px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    z-index: 5;
    opacity: 0; 
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.2s; 
}


.titre-principal {
    font-family: 'Anton';
    font-size: clamp(4.5rem, 12vw, 5rem); 
    line-height: 1.1; 
    color: var(--beige-clair);
    width: 100%;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 1.2s; /* Attends 1.2 seconde (la durée de l'anim du perso) */
}

@media (max-width: 480px) {
    .titre-principal {
        font-size: clamp(3.8rem, 12vw, 6rem); 
    }

    .main-wrapper {
    border-radius: 0px!important;
    }
}

@media (min-width: 481px) and (max-width: 1199px) {
    .titre-principal {
        text-align: center;
        font-size: clamp(4.5rem, 12vw, 6rem); 
    }
}

@media (min-width: 1200px) {

    .header-fullscreen {
        min-height: 100vh;
    }

    .section-hero {
        flex-direction: row; /* Image et titre côte à côte */
        justify-content: center;
        align-items: flex-start;
        padding-top: 10vh;
        min-height: 80vh; 
    }

    .perso-arrosoir {
        max-width: 700px;        /* Augmente la taille du personnage (ajustez selon votre envie) */
        margin-top: 30px;        /* Pousse le personnage plus bas */
        margin-bottom: 0;
        transform: none; 
    }

    .conteneur-titre-block {
        padding-top: 150px;      /* Descend le titre spécifiquement */
    }

    .titre-principal {
        text-align: left;
        font-size: clamp(6rem, 9vw, 12rem);
        margin-left: 2rem;
        line-height: 1.05;
        margin-bottom: 0;
    }
}

/* Effet apparition perso + titre */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------ */
/* -------------- EXERGUES... --------------- */
/* ------------------------------------------ */
@media (max-width: 768px) {
    .exergue {
        margin-top: 7%;
    }
}



.exergue, .vagues-exergue {
    font-family: 'Anton';
    font-size: 1.6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, transform;
}

.exergue.visible, .vagues-exergue.visible {
    opacity: 1;
    transform: translateY(0);
}

.row-exergues {
    margin-top: 3%;
    margin-bottom: 3%;
}

/* ------------------------------------ */
/* --- SECTION GALERIE VIDÉOS --- */
/* ------------------------------------ */

/* Le container principal noir */
.main-wrapper {
    background-color: #000000;
    max-width: 1100px;
    padding: 5% 0; /* Espace vertical pour ne pas coller aux bords */
    border-radius: 12px;
    margin: 5% auto;  
    padding: 30px;
}

.gallery-container {
  font-family: 'Barlow';
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}

.video-block {
  display: flex;
  flex-direction: column;
}

.video-info {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-family: "barlow";
}

/* Texte en blanc pour fond noir */
.video-info h3 {
  margin: 0 0 10px 0;
  color: #ffffff;
  font-size: 1.5rem;
  letter-spacing: 1px;
  border-bottom: 2px solid #E1306C;
  display: inline-block;
}

.video-info p {
  margin: 0;
  color: #bbbbbb; /* Gris clair pour une lecture reposante */
  font-size: 1.05rem;
  line-height: 1.6;
}

.video-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333; 
  aspect-ratio: 1 / 1.3;
  transition: all 0.3s ease;
}

.video-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.3); /* Lueur au survol */
}

.video-item img {
  width: 100%;
  height: 100%;
  border: none;
}

/* Ajustement mobile */
@media (max-width: 600px) {
  .video-info {
    text-align: center;
  }
}
/* ------------------------------------------ */
/* --- Blocs textes des revendications... --- */
/* ------------------------------------------ */

.container-titre {
    display: flex;       
    align-items: flex-start; /* Aligne le haut de l'image et le titre */
    gap: 10px;           
    position: relative;
    margin-bottom: 0;        /* On force la marge basse à zéro */
    min-height: 50px;        /* On définit une hauteur minimale plus petite que l'image */
}

.slash {
    position: absolute;
    left: 0;
    top: 0;
    width:1.6em;
    z-index: 1;
    /* L'image survolera le fond sans pousser le texte */
}

.card-custom-svg h3 {
    color: var(--rouge-fond)!important;
    font-family: 'Anton'!important;
}

.card-custom-svg ul {
    color: var(--rouge-fond)!important;
    font-size: 1.2rem;
    font-family: 'barlow';
}


.titres-parag {
    font-family: 'Anton';
    color: black;
    margin: 0;
    padding-left: 45px; /* Ajuste selon la largeur de ton slash (39px + un petit écart) */
}

.texte-description {
    position: relative;
    z-index: 1 !important;
    font-size: 1.2rem;
    font-family: 'barlow';
    font-weight: bold;
    padding-left: 12%;
    padding-right: 10%;
    margin-top: 5px; /* Espace très réduit entre le titre et la liste */
}


.grille-revendications {
    margin-top: 7% !important; 
}

.card-custom-svg {
    position: relative;
    padding: 2.5rem;
    padding-bottom: 5.5rem; /* Espace pour laisser l'arrondi du bas visible */
    z-index: 1;
    background: none !important; 
}

@media (max-width: 768px) {
    .card-custom-svg {
        margin-top: 40px !important;    /* Espace au-dessus */
        margin-bottom: 40px !important; /* Espace en-dessous */
    }
}

/* Forme SVG placée ici pour ne pas gêner le dropdown */
.card-custom-svg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;

    
    /* Ton SVG encodé avec preserveAspectRatio='none' pour qu'il suive la hauteur du texte */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 567 650.97' preserveAspectRatio='none'%3E%3Cpath fill='%23e2d9ca' stroke='none' stroke-width='0' d='M.5.5h566v649.97h-244.84c-27.14.16-125.22-2.53-213.41-75.9C32.55,511.59,7.96,433.02.5,404.52c0-134.67,0-269.35,0-404.02Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* On s'assure que le dropdown menu sort de la boîte */
.dropdown-menu-custom {
    position: absolute !important;
    z-index: 1000;
}

/* Correction de l'arrondi sur mobile pour garder de la lisibilité */
@media (max-width: 768px) {
    .card-custom-svg {
        padding: 1.5rem;
        padding-bottom: 4rem;
    }
}

/* ---------------------------------- */
/* Liens "en savoir plus" */
/* ---------------------------------- */

/* --- Le Bandeau Rouge --- */
.banner-flat-trigger {
    color: #000000 !important;
    padding: 3% 15%;
    font-family: 'Anton';
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    /* Optionnel : petits coins arrondis sur le bandeau lui-même */
    border-radius: 5px; 
}


/* --- Animation de la flèche --- */

.dropdown-arrow-anim {
    transition: transform 0.3s ease-in-out;
}

.banner-flat-trigger.show .dropdown-arrow-anim {
    transform: rotate(180deg); 
}

/* --- Menu Déroulant --- */


.dropdown-menu-custom {
    /* DEMANDE 2 : Fond opaque et bords arrondis */
    background-color: #ffffff !important; /* Fond blanc opaque */
    border-radius: 6px !important;       /* Coins bien arrondis */
    border: none!important; /* On enlève la bordure grise par défaut */
    padding: 10px 0; /* Un peu d'espace intérieur haut/bas */
    margin-top: 8px !important; /* Petit espace entre le bandeau et le menu */
    width: auto; 
    min-width: 100%; 
}

/* Style des liens dans le menu */
.dropdown-menu-custom .dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    color: #000000;
    white-space: nowrap; 
}


.dropdown-menu-custom .dropdown-item:hover {
    background-color: #f0f0f0;
    color: #e21a06 !important; 
}

.dropdown-menu {
    /* 1. Aligne le menu sur le bord droit du bouton au lieu du bord gauche */
    left: auto !important;
    right: 0 !important; 
    
    /* 2. Empêche le menu d'être plus large que l'écran du téléphone */
    max-width: 90vw !important;
    min-width: 200px;
}

.dropdown-item {
    /* 3. Autorise le texte à revenir à la ligne au lieu de pousser les murs */
    white-space: normal !important;
    
    /* 4. Améliore la lisibilité une fois que le texte est sur 2 lignes */
    line-height: 1.3;
    padding: 10px 15px;
}

/* ------------------------------------ */
/* --------- Texte conclusion --------- */

#texte-conclusion {
    font-family: 'barlow';
    position: relative;
    z-index: 201;
    font-size: 1.4rem;
    text-align: justify;
    font-family: 'barlow';
    margin-bottom : 8%;
    margin-left: 5%;
    margin-right: 5%;
    
}


/* ------------------------------------ */
/* --------- image IHS ---------------- */
/* ------------------------------------ */

.img-ihs-revendications {
    max-width:100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-bottom : 6%;
}

/* -------- BACK TO TOP ------- */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    
    /* Fond transparent */
    background-color: transparent; 
    
    /* Couleur de la flèche */
    color: #ffffff; 
    
    /* Bordure ronde blanche */
    border: 2px solid #ffffff; 
    border-radius: 50%;
    
    text-align: center;
    font-size: 20px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Effet au survol pour qu'il reste visible sur ton fond rouge */
.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Léger voile blanc au survol */
    color: #ffffff;
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* legende image IHS */

.legende-texte {
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.legende-credit {
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem;
    opacity: 0.8;
}

.wrapper-image-legende {
    position: relative;
    display: inline-block;
    width: 100%;
}


.legende-noire {
    position: absolute;
    bottom: -4%;        /* Ajusté pour être bien sur l'image */
    left: 5%;       /* Position finale légèrement décalée à droite */
    background-color: #000 !important; /* Force le fond noir */
    color: #fff;
    padding: 15px 20px;
    z-index: 10;
    width: auto;
    max-width: 80%;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
    
    /* État initial pour l'animation */
    opacity: 0;
    transform: translateX(50px); /* Décalé vers la droite */
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}


/* Classe ajoutée par le JavaScript au scroll */
.legende-noire.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Adaptabilité Mobile (Responsive) --- */
@media (max-width: 768px) {
    .legende-noire {
        position: relative; /* Repasse en flux normal pour ne pas cacher l'image sur petit écran */
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
        margin-top: -10px; /* Chevauche légèrement le bas de l'image */
        transform: translateX(30px); /* Animation plus courte sur mobile */
    }
    
    .wrapper-image-legende {
        display: flex;
        flex-direction: column;
    }
}


