@charset "UTF-8";
/* =========================
   GLOBAL
========================= */
html {
    overflow-x: clip; /* clip ne casse pas sticky, contrairement à hidden */
}
body {
    overflow-x: clip;
}
header {
    height: 350px;
}
 
main {
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 6vw, 120px);
    overflow-x: hidden;
}
/* =========================
   SECTION PRESENTATION
========================= */
 
.section-presentation {
    position: relative;
    padding-bottom: 50px;
}
 
.presentation-block {
    position: relative;
    min-height: 500px;
}
 
/* =========================
   BULLES COMMUNES
========================= */
 
.menu-cercle,
.menu-cercle2,
.menu-cercle3 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: clamp(280px, 40vw, 450px);
    overflow: hidden;
    cursor: pointer;
    transition: width .8s ease;
}
 
/* droite */
.menu-cercle,
.menu-cercle3 {
    right: -130px;
    border-top-left-radius: 225px;
    border-bottom-left-radius: 225px;
}
 
/* gauche */
.menu-cercle2 {
    left: -120px;
    border-top-right-radius: 225px;
    border-bottom-right-radius: 225px;
}
 
/* =========================
   COULEURS
========================= */
 
.menu-cercle {
    background: linear-gradient(#fff, #b3c5d5);
}
 
.menu-cercle2 {
    background: linear-gradient(#fff, #5f83a5);
}
 
.menu-cercle3 {
    background: linear-gradient(#fff, #5f83a5);
}
 
.menu-cercle::before,
.menu-cercle2::before,
.menu-cercle3::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}
 
.menu-cercle::before {
    background: linear-gradient(#fff, #1d14c7);
}
 
.menu-cercle2::before {
    background: linear-gradient(#fff, #ab0c0c);
}
 
.menu-cercle3::before {
    background: linear-gradient(#fff, #0b6716);
}
 
/* =========================
   OUVERTURE RESPONSIVE
========================= */
 
.menu-cercle.active,
.menu-cercle2.active,
.menu-cercle3.active {
    width: clamp(320px, 70vw, 1400px);
}
 
.menu-cercle.active::before,
.menu-cercle2.active::before,
.menu-cercle3.active::before {
    opacity: 1;
}
 
/* =========================
   FLECHES
========================= */
 
.fleche,
.fleche3 {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #f3ead6;
    transition: .5s;
    z-index: 5;
}
 
.fleche2 {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #f3ead6;
    transition: .5s;
    z-index: 5;
}
 
.menu-cercle.active .fleche,
.menu-cercle2.active .fleche2,
.menu-cercle3.active .fleche3 {
    transform: translateY(-50%) rotate(180deg);
}
 
/* =========================
   CONTENUS
========================= */
 
.contenu-menu,
.contenu-menu3 {
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 220px);
    max-width: 1000px;
    color: #f3ead6;
    opacity: 0;
    transition: opacity .4s ease .25s;
    z-index: 5;
    word-break: break-word;
}
 
.contenu-menu2 {
    position: absolute;
    right: 170px;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 220px);
    max-width: 1000px;
    color: #f3ead6;
    opacity: 0;
    transition: opacity .4s ease .25s;
    text-align: right;
    z-index: 5;
        box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}
 
.menu-cercle.active .contenu-menu,
.menu-cercle2.active .contenu-menu2,
.menu-cercle3.active .contenu-menu3 {
    opacity: 1;
}
 
.contenu-menu h3,
.contenu-menu2 h3,
.contenu-menu3 h3 {
    margin-bottom: 15px;
    font-size: clamp(1.2rem, 2vw, 2rem);
}
 
.contenu-menu p,
.contenu-menu2 p,
.contenu-menu3 p {
    line-height: 1.6;
    font-size: clamp(.85rem, 1.4vw, 1.1rem);
}
#hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}
/* images du carousel */
.hero-img {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
}
 
/* overlay sombre pour lisibilité */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
 
/* texte centré */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
 
    text-align: center;
    color: white;
}
 
.hero-content h1 {
    font-size: clamp(3.5rem, 7vw, 7rem);
    margin: 0;
}
 
.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    margin: 15px 0 30px;
}
.btn-decouvrir {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}
 
.btn-decouvrir:hover {
    background: white;
    color: black;
}
/* ==========================================
   1 - SMARTPHONE
   Jusqu'à 767px
========================================== */
 
@media (max-width: 767px) {
 
    .presentation-block {
        min-height: 400px;
    }
 
    .menu-cercle,
    .menu-cercle2,
    .menu-cercle3 {
        width: 110px;
        height: 220px;
    }
 
    .menu-cercle.active,
    .menu-cercle2.active,
    .menu-cercle3.active {
        width: 96vw;
        height: auto;
        min-height: 360px;
    }
 
    .contenu-menu,
    .contenu-menu3 {
        left: 70px;
        width: calc(100% - 90px);
    }
 
    .contenu-menu2 {
        right: 70px;
        width: calc(100% - 90px);
    }
 
    .contenu-menu h3,
    .contenu-menu2 h3,
    .contenu-menu3 h3 {
        font-size: 1rem;
    }
 
    .contenu-menu p,
    .contenu-menu2 p,
    .contenu-menu3 p {
        font-size: .8rem;
        line-height: 1.4;
    }
 
    .fleche,
    .fleche2,
    .fleche3 {
        font-size: 1.8rem;
    }
}
 
/* ==========================================
   2 - TABLETTE PORTRAIT
   768px -> 1023px
========================================== */
 
@media (min-width: 768px) and (max-width: 1023px) {
 
    .presentation-block {
        min-height: 400px;
    }
 
    .menu-cercle,
    .menu-cercle2,
    .menu-cercle3 {
        width: 180px;
        height: 320px;
    }
 
    .menu-cercle.active,
    .menu-cercle2.active,
    .menu-cercle3.active {
        width: 92vw;
    }
 
    .contenu-menu,
    .contenu-menu3 {
        left: 120px;
        width: calc(100% - 160px);
    }
 
    .contenu-menu2 {
        right: 120px;
        width: calc(100% - 160px);
    }
}
 
/* ==========================================
   3 - TABLETTE PAYSAGE / PC MOYEN
   1024px -> 1280px
========================================== */
 
@media (min-width: 1024px) and (max-width: 1280px) {
 
    .presentation-block {
        min-height: 500px;
    }
 
    .menu-cercle,
    .menu-cercle2,
    .menu-cercle3 {
        width: 220px;
        height: 420px;
    }
 
    .menu-cercle.active,
    .menu-cercle2.active,
    .menu-cercle3.active {
        width: 75vw;
    }
 
    .contenu-menu,
    .contenu-menu3 {
        left: 160px;
        width: calc(100% - 220px);
    }
 
    .contenu-menu2 {
        right: 160px;
        width: calc(100% - 220px);
    }
}
 
/* ==========================================
   4 - GRANDS ECRANS
   1281px et +
========================================== */
 
@media (min-width: 1281px) {
 
    .presentation-block {
        min-height: 550px;
    }
 
    .menu-cercle,
    .menu-cercle2,
    .menu-cercle3 {
        width: 240px;
        height: 450px;
    }
 
    .menu-cercle.active,
    .menu-cercle2.active,
    .menu-cercle3.active {
        width: clamp(900px, 70vw, 1400px);
    }
 
    .contenu-menu,
    .contenu-menu3 {
        left: 170px;
        width: calc(100% - 250px);
        max-width: 1000px;
    }
 
    .contenu-menu2 {
        right: 170px;
        width: calc(100% - 250px);
        max-width: 1000px;
    }
}


/* ==========================================================
   AJOUTS — page d'accueil modernisée (v2 — renforcé)
   Tout est marqué !important pour primer sur n'importe
   quel style déjà présent ailleurs sur le site.
   ========================================================== */

.section-valeurs-moderne {
    background: linear-gradient(160deg, #fcf9f4 0%, #e8d9c3 100%) !important;
    border-radius: 24px !important;
    box-shadow: 0 14px 45px rgba(46, 66, 87, 0.12) !important;
    padding: 48px 32px !important;
    margin: 0 auto !important;
}

.eyebrow {
    display: block !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: #b06a3a !important;
    margin-bottom: 6px !important;
}

.section-valeurs-moderne h1 {
    font-family: 'Newsreader', Georgia, serif !important;
    color: #2e4257 !important;
    font-weight: 700 !important;
}

.valeur-carte {
    background: #ffffff !important;
    border: none !important;
    border-top: 5px solid #557a99 !important;
    border-radius: 18px !important;
    padding: 32px 24px !important;
    height: 100% !important;
    text-align: center !important;
    box-shadow: 0 8px 24px rgba(46, 66, 87, 0.08) !important;
    transition: transform .35s ease, box-shadow .35s ease !important;
}

.col-md-4:nth-child(2) .valeur-carte { border-top-color: #f2b08d !important; }
.col-md-4:nth-child(3) .valeur-carte { border-top-color: #952929 !important; }

.valeur-carte:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 18px 36px rgba(46, 66, 87, 0.18) !important;
}

.valeur-carte .valeur-icone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: #ddefff !important;
    color: #557a99 !important;
    font-size: 1.6rem !important;
    margin-bottom: 18px !important;
}

.col-md-4:nth-child(2) .valeur-icone { background: #fbe3d3 !important; color: #b3601f !important; }
.col-md-4:nth-child(3) .valeur-icone { background: #f3dada !important; color: #952929 !important; }

.valeur-carte h4 {
    font-family: 'Newsreader', Georgia, serif !important;
    color: #2e4257 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    font-size: 1.3rem !important;
}

.valeur-carte p {
    color: #5b6670 !important;
    margin: 0 !important;
    line-height: 1.65 !important;
    font-size: .96rem !important;
}

/* mots cachés au départ, dévoilés un par un via JS (script_accueil.js) */
.reveal-word {
    display: inline-block !important;
    opacity: .15 !important;
    transform: translateY(10px) !important;
    transition: opacity .5s ease, transform .5s ease !important;
    transition-delay: calc(var(--word-index, 0) * 30ms) !important;
}

.reveal-target.is-visible .reveal-word {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ---------- BULLES — ancrées au bord RÉEL de l'écran ----------
   Bootstrap limite ".container" en largeur et le centre. Comme
   ".section-presentation" (le parent) n'a lui-même aucune limite
   de largeur, il suffit de neutraliser le comportement de la classe
   ".container" ici (centrage, padding, max-width) pour que le wrapper
   occupe naturellement 100% de la largeur réelle — sans avoir besoin
   de "100vw" ni de marges négatives, technique fragile et bugguée
   sur Safari iOS (débordement horizontal non maîtrisé). */
.presentation-wrapper {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---------- BULLES — image qui apparaît à l'agrandissement ---------- */

.menu-cercle,
.menu-cercle2,
.menu-cercle3 {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18) !important;
}

.menu-cercle  { background-color: #ddefff !important; }
.menu-cercle2 { background-color: #f2b08d !important; }
.menu-cercle3 { background-color: #88a5be !important; }

/* Au repos : voile 100% opaque -> on ne voit QUE la couleur, pas la photo */
.menu-cercle::before,
.menu-cercle2::before,
.menu-cercle3::before {
    opacity: 1 !important;
    transition: opacity 1s ease !important;
}

.menu-cercle::before,
.menu-cercle3::before {
    background: linear-gradient(180deg, rgba(85, 122, 153, .94), rgba(40, 58, 77, .94)) !important;
}

.menu-cercle2::before {
    background: linear-gradient(180deg, rgba(149, 41, 41, .88), rgba(80, 18, 18, .92)) !important;
}

/* À l'ouverture : le voile s'éclaircit fortement -> la photo de l'association devient le fond */
.menu-cercle.active::before,
.menu-cercle2.active::before,
.menu-cercle3.active::before {
    opacity: .3 !important;
}

.eyebrow-bulle {
    display: block !important;
    font-size: .72rem !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: #f2b08d !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.contenu-menu,
.contenu-menu2,
.contenu-menu3 {
    color: #fcf9f4 !important;
}

.contenu-menu h3,
.contenu-menu2 h3,
.contenu-menu3 h3 {
    font-family: 'Newsreader', Georgia, serif !important;
}

.fleche,
.fleche2,
.fleche3 {
    color: #fcf9f4 !important;
}

/* ---------- POP-UP "L'ASSOCIATION S'AGRANDIT" ---------- */

.chantier-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(20, 30, 40, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    -webkit-transform: translateZ(0); /* évite les bugs de position fixed sur Safari iOS */
    transform: translateZ(0);
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .35s ease, visibility .35s ease !important;
    padding: 16px !important;
}

.chantier-popup-overlay.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.chantier-popup {
    position: relative !important;
    background: #fcf9f4 !important;
    border-radius: 20px !important;
    max-width: 720px !important;
    width: 100% !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35) !important;
    transform: scale(.94) translateY(10px);
    transition: transform .35s ease !important;
}

.chantier-popup-overlay.is-visible .chantier-popup {
    transform: scale(1) translateY(0) !important;
}

.chantier-popup-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #557a99 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.chantier-popup-close:hover { background: #efe6d2 !important; }

.chantier-popup-images {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 4px !important;
}

.chantier-popup-images img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
}

.chantier-popup-content { padding: 24px 26px 28px !important; }

.chantier-popup-badge {
    display: inline-block !important;
    background: #f2b08d !important;
    color: #5a1414 !important;
    font-size: .72rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    margin-bottom: 10px !important;
}

.chantier-popup-content h3 {
    font-family: 'Newsreader', Georgia, serif !important;
    color: #557a99 !important;
    margin-bottom: 10px !important;
}

.chantier-popup-content p {
    color: #5b6670 !important;
    line-height: 1.6 !important;
}

body.no-scroll { overflow: hidden !important; }

/* ---------- RESPONSIVE — ajouts page d'accueil ---------- */
@media (max-width: 575.98px) {
    .section-valeurs-moderne { border-radius: 16px !important; padding: 28px 18px !important; }
    .valeur-carte { padding: 22px 16px !important; }
    .chantier-popup-images img { height: 110px !important; }
    .chantier-popup-content { padding: 18px !important; }
}

/* ---------- TEXTE DES BULLES — largeur corrigée pour ne plus déborder ----------
   Les bulles débordent volontairement de l'écran (-130px / -120px) pour rester
   collées au bord. Le texte à l'intérieur doit donc réserver CET espace en plus
   de la marge déjà prévue, sinon il continue tout droit hors de l'écran.
   Valeur ajoutée = marge d'origine + débordement de la bulle (130px / 120px).
   ---------------------------------------------------------- */

@media (max-width: 767px) {
    .contenu-menu, .contenu-menu3 { width: calc(100% - 220px) !important; }
    .contenu-menu2 { width: calc(100% - 210px) !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .contenu-menu, .contenu-menu3 { width: calc(100% - 290px) !important; }
    .contenu-menu2 { width: calc(100% - 280px) !important; }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .contenu-menu, .contenu-menu3 { width: calc(100% - 350px) !important; }
    .contenu-menu2 { width: calc(100% - 340px) !important; }
}

@media (min-width: 1281px) {
    .contenu-menu, .contenu-menu3 { width: calc(100% - 380px) !important; max-width: 1000px !important; }
    .contenu-menu2 { width: calc(100% - 370px) !important; max-width: 1000px !important; }
}

/* sécurité supplémentaire : quoi qu'il arrive, le texte ne peut jamais
   dépasser la largeur de la fenêtre moins une marge de respiration */
.contenu-menu, .contenu-menu2, .contenu-menu3 {
    max-width: min(1000px, calc(100vw - 220px)) !important;
    box-sizing: border-box !important;
}

/* ==========================================================
   OVERLAY "A.M.I.S" — au centre du carousel, lettre par lettre
   ========================================================== */

.carousel-amis-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.carousel-amis-text {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(2.2rem, 8vw, 6.5rem);
    letter-spacing: 0.4em;
    color: #fcf9f4;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    display: inline-flex;
}

.letter-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(26px) scale(.85);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: calc(var(--letter-index, 0) * 90ms);
}

.carousel-amis-overlay.is-visible .letter-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 575.98px) {
    .carousel-amis-text { letter-spacing: 0.2em; }
}

/* ==========================================================
   FOND PLEIN ÉCRAN (body) — change selon la bulle ouverte
   ========================================================== */

.section-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--bs-sable, #EFE6D2); /* repli si l'image ne charge pas : jamais de blanc */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s ease;
    pointer-events: none;
}

.section-bg-layer.is-visible {
    opacity: .55;
    visibility: visible;
}

/* Toute la section des bulles crée son propre contexte d'empilement,
   le calque (z-index:0) reste donc DERRIÈRE le contenu (z-index:1)
   sans jamais recouvrir le reste de la page (fix mobile). */
.section-presentation {
    position: relative;
    z-index: 0;
    isolation: isolate;
    background: transparent;
}

/* le contenu des bulles doit rester au-dessus du calque de fond */
.presentation-wrapper {
    position: relative;
    z-index: 1;
}