html, body { box-sizing: border-box; }
        *, *::before, *::after { box-sizing: inherit; }
        
        html, body {
        max-width: 100vw;
        overflow-x: hidden;
        }

        :root {
            --menu-bg: rgba(0,0,0,0.77);
            --ivory: #f8f6f2;
            --radius: 25px;
            --hero-btn: rgba(93,115,144,0.93);
            --hero-block: rgba(122,123,127,0.90);
        }
        body {
            font-family: 'Inter', 'Clear Sans', Arial, sans-serif;
            background: #0a151d;
            margin: 0;
            padding: 0;
        }
        /* HERO SECTION */
        .hero-bg {
            width: 100%;
            height: 100vh;
            background: url('../img/bwf-vue-leman.png') center center/cover no-repeat;
            position: relative;
            overflow: hidden;
            padding-bottom: 60px;
            border-top: 9px solid #f8f6f2;
            border-bottom: 4.5px solid #f8f6f2;
            border-left: 9px solid #f8f6f2 ;
            border-right: 9px solid #f8f6f2 ;
        }
        .hero-header {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 32px 42px 0 42px;
            position: relative;
            z-index: 10;
        }
        .bwf-logo {
            height: auto;
            display: block;
        }
        .header-icons {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        .header-icon {
            cursor: pointer;
            background: none;
            border: none;
            outline: none;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .globe-icon {
            width: 44px;
            height: 44px;
            display: block;
        }
        .burger-icon {
            width: 63px;
            height: 44px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-end;
        }
        .burger-bar.top { width: 63px; height: 7px; }
        .burger-bar.mid { width: 41px; height: 7px; }
        .burger-bar.bot { width: 24px; height: 7px; }
        .burger-bar { background: #111; border-radius: 0; }
        .menu-overlay {
            display: none;
            position: absolute;
            top: 65px;
            right: 92px;
            background: var(--menu-bg);
            color: var(--ivory);
            border-radius: var(--radius);
            padding: 24px 32px;
            z-index: 100;
            box-shadow: 0 8px 32px rgba(0,0,0,0.18);
            min-width: 210px;
            font-family: 'Clear Sans', 'Inter', Arial, sans-serif;
        }
        .menu-overlay.active { display: block; }
        .menu-lang-item, .menu-page-item {
            padding: 9px 0;
            font-size: 1.1rem;
            color: var(--ivory);
            cursor: pointer;
        }
        .menu-lang-item:hover, .menu-page-item:hover {
            text-decoration: underline;
        }
        .menu-close {
            position: absolute;
            top: 8px;
            right: 18px;
            font-size: 1.5rem;
            color: var(--ivory);
            background: none;
            border: none;
            cursor: pointer;
            opacity: 0.55;
        }
        .hero-content-col {
            position: absolute;
            left: 42px;
            top: 50%;
            transform: translateY(-50%);
            max-width: 530px;
            z-index: 20;
            display: flex;
            flex-direction: column;
            transition: top 0.35s, left 0.35s;
        }
        .hero-main-txt {
            font-family: 'Playfair Display', serif;
            font-weight: bold;
            font-size: clamp(26px, 5vw, 40px);
            color: var(--ivory);
            line-height: 1.18;
            margin: 0 0 0 0;
            white-space: pre-line;
            text-shadow: 0 2px 20px rgba(0,0,0,0.45), 0 0px 2px rgba(0,0,0,0.40);
        }
        .hero-regulation {
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 14.5px;
            color: #f8f6f2;
            margin: 18px 0 0 0;
            text-shadow: 0 2px 12px rgba(0,0,0,0.65), 0 1px 2px rgba(0,0,0,0.45);
            letter-spacing: 0.1px;
            font-weight: bold;
            line-height: 1.5;
            max-width: 490px;
        }

@media (max-width: 928px) {
    .hero-regulation {
        text-align: center;
        margin: 14px auto 0 auto;
        max-width: 98vw;
        font-size: 14px;
        padding: 0 8vw;
        display: block;
    }
}

        .hero-award-col {
            position: absolute;
            left: 42px;
            bottom: 30px;
            z-index: 21;
            max-width: 530px;
            color: #E6BE69 ;
            font-size: 11px;
            text-shadow:1px 1px 3px #222;
            background: rgba(0, 0, 0, 0.4);
            padding: 3px 6px;
            border-radius: 4px;
        }
        .hero-award-title {
            font-family: 'Playfair Display', serif;
            font-weight: bold;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            margin-bottom: 2px;
        }
        .hero-award-years {
            font-family: 'Playfair Display', serif;
            font-weight: normal;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }
        .hero-discover-btn {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: 40px;
            background: var(--hero-btn);
            border: none;
            border-radius: 25px;
            padding: 18px 40px;
            color: var(--ivory);
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 20px;
            font-weight: bold;
            letter-spacing: 1px;
            cursor: pointer;
            z-index: 21;
            transition: background 0.14s;
            outline: none;
        }
        .hero-discover-btn:hover {
            background: rgba(93,115,144,1);
        }
        /* BLOCS GRIS EN BAS À DROITE */
        #news-blocks-wrapper {
            position: absolute;
            right: 20px;
            bottom: 10px;
            display: flex;
            flex-direction: column;
            gap: 7px;
            z-index: 30;
            align-items: flex-end;

            
        }


        .actualites-btn {
            background: var(--hero-block);
            border: none;
            border-radius: 7px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 15px;
            font-weight: 500;
            color: #f8f6f2;
            cursor: pointer;
            min-width: 126px;
            width: 5vw;
            max-width: 145px;
            text-align: left;
            height: 27px;
            padding-right: 10px;
            justify-content: center;
            text-align: center;
        }
        
        .actualites-btn span {
            font-size: 15px;
            margin-right: 7px;
            font-weight: 700;
        }
        .navytd-block {
            background: var(--hero-block);
            border-radius: 7px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.09);
            font-family: 'Monaco', monospace;
            font-size: 13.7px;
            color: #f8f6f2;
            min-width: 112px;
            width: 8vw;
            max-width: 170px;
            letter-spacing: 0.25px;
            padding: 2px 11px 8px 9px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            position: relative;
        }
        .navytd-block .nav-row {
            width: 100%;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-bottom: 2px;
        }
        .navytd-block .ytd-row {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .navytd-block .ytd-label {
            color: #eaeaea;
            font-weight: 700;
        }
        .navytd-block .ytd-val {
            min-width: 40px;
            text-align: left;
            margin-left: 4px;
        }
        .navytd-block .plus-btn {
            background: none;
            border: none;
            color: #f8f6f2;
            font-size: 17px;
            margin-left: 12px;
            cursor: pointer;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.14s;
        }
        .navytd-block .plus-btn:hover {
            background: rgba(0,0,0,0.15);
        }
        .navytd-menu {
            display: none;
            position: absolute;
            top: 41px;
            right: 0;
            background: var(--menu-bg);
            color: var(--ivory);
            border-radius: 11px;
            padding: 10px 18px;
            z-index: 1001;
            box-shadow: 0 4px 20px rgba(0,0,0,0.18);
            font-family: 'Clear Sans', Arial, sans-serif;
            min-width: 88px;
            font-size: 13px;
        }
        .navytd-menu.active { display: block; }
        .navytd-menu-close {
            position: absolute;
            top: 4px;
            right: 10px;
            background: none;
            border: none;
            color: var(--ivory);
            font-size: 17px;
            cursor: pointer;
            opacity: 0.47;
        }
        /* === POPUP ACTUALITÉS === */
        /* === POPUP ACTUALITÉS === */
#popup-actualites {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.72); /* ✅ Overlay sombre */
    display: none; /* ✅ Masqué par défaut */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

/* Conteneur interne */
.popup-content {
    background: rgba(122, 123, 127, 0.93);
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.28);
    max-width: 1200px;
    width: auto;
    max-height: 90vh;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Bouton de fermeture */
#closePopupActu {
    position: absolute;
    top: 14px;
    right: 12px;
    font-size: 34px;
    background: none;
    border: none;
    color: var(--ivory);
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.14s;
    z-index: 10;
}
#closePopupActu:hover {
    opacity: 0.8;
}

/* Contenu PDF intégré */
#popup-actualites-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#popup-actualites-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    max-height: 100%;
}

/* === Responsive === */
@media (max-width: 900px) {
    .popup-content {
        width: 94vw;
        height: 80vh;
        padding: 12px;
        border-radius: 18px;
    }
    #closePopupActu {
        font-size: 28px;
        top: 10px;
        right: 14px;
    }
}

@media (max-width: 928px) {
    .hero-award-col {
        background: none;
        padding: 0;
        border-radius: 0;
    }
}

        

        


        .navytd-block {
            transition: transform 0.6s ease, opacity 0.6s ease;
            opacity: 1;
            transform: translateX(0);
            padding-top: 5px;
        }

        .navytd-block.slide-out {
            opacity: 0;
            transform: translateX(-15px);
        }

        .navytd-block.slide-in {
            opacity: 0;
            transform: translateX(15px);
        }


        /* --- Responsive HERO pour mobile --- */
        

        
        
        @media (max-width: 928px) {
            .hero-bg {
                background: url('../img/vue%20leman%20vertical.png') center center/cover no-repeat;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                min-height: 100vh;
                height: auto;
                padding-bottom: 40px;
                position: relative;
            }
            .hero-main-txt {
                font-size: clamp(20px, 6vw, 28px); /* au lieu de 30px */
                line-height: 1.3;
            }



            .hero-header {
                flex-direction: row;
                align-items: flex-start;
                justify-content: space-between;
                width: 100%;
                padding: 12px 16px 0 16px;
                position: relative;
                z-index: 100;
                display: flex;
                top: 0;
                position: sticky;
            }
            .bwf-logo {
                width: 100px;
                height: auto;
                position: static;
                display: block;
                margin: 0;
            }
            .header-icons {
                margin: 0;
                justify-content: flex-end;
                position: static;
                display: flex;
                gap: 10px;
                align-items: flex-start;
                width: auto;
            }
            .hero-content-col {
                position: static;
                max-width: 98vw;
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                margin: 0 0 40px 0;
                padding: 0 3vw;
                z-index: 10;
                transform: none;
                top: unset;
                left: unset;
            }
            .hero-main-txt {
                font-size: clamp(19px, 7vw, 30px);
                text-align: center;
                margin: 0 0 18px 0;
            }
            .hero-award-col {
                position: static;
                max-width: 94vw;
                width: 100%;
                margin: 0 0 20px 0;
                text-align: center;
            }
            .hero-discover-btn {
                position: static;
                left: unset;
                transform: none;
                width: 60vw;
                max-width: 340px;
                padding: 14px 0;
                font-size: 1.1rem;
                margin: 16px auto 0 auto;
                display: block;
            }
            #news-blocks-wrapper {
                position: static;
                display: flex;
                flex-direction: column;
                gap: 13px;
                align-items: center;
                width: 100%;
                margin: 24px 0 0 0;
                z-index: 9;
                margin: 24px auto 0 auto; /* ✅ Push sous le bouton avec marge */
                order: 2;                /* ✅ Assure qu’il vient après */
                padding-top: 30vw;
            }
            .actualites-btn, .navytd-block {
                width: 62vw;
                min-width: unset;
                max-width: 380px;
                font-size: 15px;
                margin: 0 auto;
                padding: 8px 18;
                justify-content: flex-start;
                height: 40px
            }
        }
        /* BLOCS NAV/YTD & ACTUALITÉS */
#news-blocks-wrapper {
    right: 20px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 30;
    align-items: flex-end;
}

.actualites-btn {
    background: var(--bwf-grey);
    border: none;
    border-radius: 7px;
    display: flex;
    align-items: center;       /* ✅ Alignement vertical */
    justify-content: center;   /* ✅ Alignement horizontal */
    font-size: 15px;
    font-weight: 500;
    color: #f8f6f2;
    cursor: pointer;
    min-width: 126px;
    max-width: 145px;
    text-align: center;
    height: 27px;
    padding: 0 12px;
}

.navytd-block {
    background: var(--bwf-grey);
    border-radius: 7px;
    font-size: 14px;
    color: #f8f6f2;
    min-width: 112px;
    max-width: 170px;
    text-align: center;         /* ✅ Centre le texte */
    padding: 5px 10px;
    display: flex;              /* ✅ Flex */
    flex-direction: column;     /* ✅ Pour aligner lignes */
    justify-content: center;    /* ✅ Vertical */
    align-items: center;        /* ✅ Horizontal */
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Responsive */
@media (max-width: 928px) {
    .actualites-btn, .navytd-block {
        width: 62vw;
        max-width: 380px;
        font-size: 15px;
        height: 40px;
        display: flex;             /* ✅ Obligatoire */
        justify-content: center;   /* ✅ Centre horizontal */
        align-items: center;       /* ✅ Centre vertical */
        text-align: center;
    }

    .hero-main-txt {
        font-size: clamp(20px, 6vw, 28px); /* au lieu de 30px */
        line-height: 1.3;
    }

}
@media (max-width: 480px) {
  /* HEADER COMPACT */
  .hero-header {
    padding: 6px 10px; /* Réduit au max */
    gap: 6px;
  }

  .bwf-logo {
    width: 50px; /* ✅ Logo beaucoup plus petit */
    height: auto;
    margin-top: 5px;
    margin-left: -5px;
  }

  .header-icons {
    gap: 6px;
  }

  .globe-icon {
    width: 24px;
    height: 24px;
  }

  .burger-icon {
    width: 34px;
    height: 24px;
  }

  .burger-bar.top { width: 34px; height: 5px; }
  .burger-bar.mid { width: 24px; height: 5px; }
  .burger-bar.bot { width: 14px; height: 5px; }

  /* HERO TEXT + CTA */
  .hero-main-txt {
    font-size: clamp(13px, 5.5vw, 16px); /* ✅ Encore plus petit */
    max-width: 82vw;
    margin: 18px auto 10px auto;
    line-height: 1.2;
    text-align: center;
  }



    .hero-discover-btn {
        width: 40vw;
        max-width: 300px;
        border-radius: 12px;
        font-size: 1rem;
        padding: 12px 0;
}


  /* BLOCS NEWS */
  #news-blocks-wrapper {
    width: 100%;
    gap: 8px;
    margin: 16px 0 0 0;
    align-items: center;
  }

  .actualites-btn,
  .navytd-block {
    width: 40vw;
    max-width: 290px;
    font-size: 13px;
    height: 32px;
    padding: 16px;
  }
}
/* === POPUP ACTUALITÉS (overlay & animation) === */
#popup-actualites {
    position: fixed;
    z-index: 2200;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(40,52,67,0.72);
    backdrop-filter: blur(3.5px);
    padding: 20px;
    transition: opacity 0.28s, background .22s;
}

.popup-content-news {
    background: rgba(61,65,67, 0.96);
    border-radius: 24px;
    box-shadow: 0 8px 40px 0 rgba(38,38,38,0.14);
    max-width: 880px;
    width: 96vw;
    max-height: 90vh;
    min-height: 100px;
    min-width: 290px;
    margin: auto;
    padding: 32px 34px 24px 34px;
    color: #f7f6ef;
    font-family: 'Clear Sans', Arial, sans-serif;
    font-size: 1.07rem;
    overflow-y: auto;
    animation: popIn .42s cubic-bezier(.3,1.34,.33,1);
    position: relative;
    line-height: 1.53;
}

#closePopupActu {
    position: absolute;
    right: 16px;
    top: 15px;
    font-size: 28px;
    color: #fff8ed;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    padding: 0 7px;
    line-height: 1;
    opacity: 0.87;
    transition: color .15s, opacity .18s;
}
#closePopupActu:hover {
    color: #ffeebb;
    opacity: 1;
}

#popup-actualites-content h1,
#popup-actualites-content h2,
#popup-actualites-content h3 {
    color: #fff7d1;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}
#popup-actualites-content p {
    margin: 0 0 1.15em 0;
}

#popup-actualites-content ul, #popup-actualites-content ol {
    margin-left: 1.25em;
    margin-bottom: 1.15em;
}

#popup-actualites-content strong { color: #FFE082; }

/* Responsive */
@media (max-width: 900px) {
    .popup-content-news {
        max-width: 99vw;
        width: 97vw;
        padding: 22px 10px 18px 10px;
        border-radius: 14px;
    }
    #closePopupActu { font-size: 26px; top: 7px; right: 11px; }
    #popup-actualites-content { font-size: 0.99rem; }
}
@media (max-width: 600px) {
    .popup-content-news {
        max-width: 99vw;
        width: 100vw;
        min-height: 140px;
        padding: 12px 3vw 10px 3vw;
    }
    #popup-actualites-content { font-size: 0.97rem; }
}

/* Petite animation d’apparition */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}


        /* ================= NOTRE SOCIÉTÉ SECTION ================= */
        /* ... AUCUNE MODIF ICI, je laisse tout tel quel ... */
        /* ... idem pour les autres sections, copié tel quel depuis ton code ... */
        .notre-societe-bg {
            width: 100%;
            min-height: 100vh;
            background: url('../img/notre société bg.png') center center/cover no-repeat;
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            justify-content: flex-start;
            padding: 60px 0 0 60px;
            gap: 100px;
            border-top: 9px solid #f8f6f2;
            border-bottom: 9px solid #f8f6f2;
            border-left: 9px solid #f8f6f2 ;
            border-right: 9px solid #f8f6f2 ;
        }
        .notre-societe-content {
            max-width: 480px;
        }
        .notre-societe-title {
            font-family: 'Playfair Display', serif;
            font-size: 50px;
            color: var(--ivory);
            font-weight: bold;
            margin: 0 0 38px 0;
            letter-spacing: 0.7px;
            min-width: 328px;
        }
        .notre-societe-blocs {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }
        .notre-societe-blocs .bloc {
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 16px;
            color: var(--ivory);
            line-height: 1.3;
        }
        .notre-societe-droite-h {
            display: flex;
            flex-direction: row;
            align-items: stretch;
            justify-content: flex-start;
            gap: 15px;
            margin-top: 70px;
            margin-right: 50px;
            width: 100%;
            
        }
        .nsd-bloc {
            flex: 1 1 0;
            min-width: 0;
            max-width: none;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0;
            margin-bottom: 0;
        }    
        .nsd-title {
            font-family: 'Clear Sans', Arial, sans-serif;
            font-style: italic;
            font-weight: bold;
            font-size: 20px;
            color: var(--ivory);
            margin-bottom: 10px;
            white-space: nowrap;
        }
        .nsd-content {
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 14px;
            color: var(--ivory);
            line-height: 1.7;
        }
        .btn-qui-sommes-nous {
            margin-top: 52px;
            background: var(--bwf-grey);
            color: #f8f6f2;
            border: none;
            border-radius: 24px;
            padding: 16px 38px;
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 0.3px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,0.14);
            transition: background 0.14s;
            max-width: 500px;
            width: 300px;
            align-self: center;
            display: block;
        }
        .btn-qui-sommes-nous:hover {
            background: #232323;
        }
        .fonds-section-bg {
            width: 100%;
            min-height: 100vh;
            background: url('../img/col%20de%20lys.jpg') center center/cover no-repeat;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            padding-top: 110px;
        }
        .fonds-section-overlay {
            background: rgba(35, 35, 35, 0.78);
            border-radius: 38px;
            padding: 46px 48px 34px 48px;
            margin-top: 14vw;
            box-shadow: 0 6px 32px rgba(0,0,0,0.18);
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 950px;
            width: 90vw;
        }
        .fonds-section-titre {
            font-family: 'Playfair Display', serif;
            font-size: 28px;
            color: #f8f6f2;
            font-weight: bold;
            text-align: center;
            margin-bottom: 32px;
        }
        .fonds-section-texte {
            font-family: 'Playfair Display', serif;
            font-size: 24px;
            color: #f8f6f2;
            font-weight: normal;
            text-align: center;
            line-height: 1.35;
        }
        .fonds-section-btn {
            margin-top: 46px;
            background: #5d7390;
            color: #f8f6f2;
            border: none;
            border-radius: 18px;
            padding: 16px 30px;
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 18px;
            font-weight: bold;
            letter-spacing: 0.2px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,0.11);
            transition: background 0.14s;
            display: block;
            align-self: center;
        }
        .fonds-section-btn:hover {
            background: #41536b;
        }
        .contact-section-bg {
            width: 100%;
            min-height: 100vh;
            background: url('../img/sofa%20bg.jpg') center center/cover no-repeat;
            position: relative;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-start;
            padding-top: 0;
            border-top: 4.5px solid #f8f6f2;
            border-bottom: 4.5px solid #f8f6f2;
            border-left: 9px solid #f8f6f2 ;
            border-right: 9px solid #f8f6f2 ;
        }
        .contact-overlay {
            margin-left: 76.8px;
            margin-top: 60px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            width: 500px;
            min-height: 640px;
        }
        .contact-texte {
            font-family: 'Playfair Display', serif;
            color: #f8f6f2;
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 34px;
            margin-top: 26px;
            text-align: left;
            line-height: 1.4;
        }
        .contact-form {
            background: rgba(23, 23, 23, 0.82);
            border-radius: 18px;
            width: 360px;
            height: 440px;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding: 28px 24px 18px 24px;
            box-shadow: 0 4px 28px rgba(0,0,0,0.17);
        }
        .contact-form-title {
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 12.5px;
            color: #7a7b7f;
            font-weight: 700;
            margin-bottom: 18px;
            margin-left: 2px;
            letter-spacing: 0.1px;
        }
        .contact-input {
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 15px;
            color: #f8f6f2;
            background: transparent;
            border: none;
            border-bottom: 1.2px solid #f8f6f2;
            margin-bottom: 24px;
            padding: 8px 4px 7px 0;
            outline: none;
            transition: border-bottom 0.16s;
            resize: none;
        }
        .contact-input:focus {
            border-bottom: 1.7px solid #5d7390;
            background: rgba(55, 59, 75, 0.15);
        }
        .contact-textarea {
            min-height: 60px;
            max-height: 150px;
            margin-bottom: 0;
            height: 110px;
        }
        .contact-coordonnees {
            position: absolute;
            right: 0px;
            bottom: 30px;
            background: rgba(24, 24, 24, 0.82);
            border-radius: 1px;
            color: #f8f6f2;
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 15px;
            padding: 19px 22px 16px 19px;
            width: 260px;
            line-height: 1.5;
            text-align: left;
            box-shadow: 0 2px 10px rgba(0,0,0,0.11);
        }
        .contact-coord-title {
            font-weight: bold;
            font-size: 15.5px;
            letter-spacing: 0.05px;
        }
        .footer-mentions {
            position: absolute;
            right: 7px;
            bottom: 5px;
            font-family: 'Clear Sans', Arial, sans-serif;
            font-size: 7px;
            color: #f8f6f2;
            opacity: 1;
            text-align: right;
            line-height: 1.45;
            letter-spacing: 0.1px;
            z-index: 22;
        }
        .footer-mentions a {
            color: #f8f6f2;
            text-decoration: underline;
            opacity: 0.95;
            transition: color 0.12s;
        }
        .footer-mentions a:hover {
            color: #c1d3ef;
        }
        @media (max-width: 1173px) {
            .notre-societe-bg {
                background: url('../img/bg-nsd-mobile.png') center center/cover no-repeat !important;
                flex-direction: column;
                align-items: flex-start;
                gap: 40px;
                padding-left: 3vw;
                padding-right: 3vw;
            }
            .notre-societe-content {
                max-width: 100%;
            }
            .notre-societe-droite-h {
                flex-direction: column;
                padding: 0 10vw 0 10vw;
                margin-bottom: 10vw;
            }
       
            .nsd-bloc {
                max-width: 98vw;
                min-width: none;
                margin-left: 0;
                margin-bottom: 20px;
            }
            .btn-qui-sommes-nous {
                margin-top: 28px;
                font-size: 16px;
                padding: 12px 0;
                max-width: 94vw;
            }
        }
        @media (max-width: 570px) {
            .contact-section-bg {
                flex-direction: column;
                align-items: flex-start;
            }
            .contact-overlay {
                margin-left: 20px;
                width: 98vw;
                min-height: 0;
            }
            .contact-form {
                width: 90vw;
                min-width: 0;
                max-width: 98vw;
                height: auto;
            }
            .contact-coordonnees {
                position: static;
                margin-top: 40px;
                width: 98vw;
                box-sizing: border-box;
                right: unset;
                bottom: unset;
            }
            .footer-mentions {
                position: static;
                margin: 18px 0 0 0;
                width: 98vw;
                text-align: left;
                right: unset;
                bottom: unset;
            }
        }
        @media (max-width: 700px) {
            .notre-societe-title { font-size: 8vw; }
            .notre-societe-content { 
                max-width: 98vw;
                text-align: center; 
                padding: 20px;
            }
        @media (max-width: 700px) {
            .notre-societe-title {
                text-align: center;
                margin: 0 auto;
                display: block;
                width: 100%;
            }
        
            .notre-societe-blocs {
                margin-top: 10vw; 
                padding: 0 10vw 0 10vw;
            }
    
        }


            .notre-societe-bg { padding: 32px 1vw 0 1vw; }
            .btn-qui-sommes-nous { font-size: 15px; }
        }
        @media (max-width: 480px) {
            .notre-societe-title { font-size: 9vw; }
            .btn-qui-sommes-nous {
                font-size: 13px;
                padding: 10px 0;
                margin-top: 18px;
            }
        }

        @media (max-width: 928px) {
  .hero-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    height: auto;
    padding-bottom: 40px;
    position: relative;
  }

  .hero-main-txt {
    font-size: clamp(19px, 7vw, 30px);
    text-align: center;
    margin: 0 0 18px 0;
    width: 65vw;
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }

  .hero-discover-btn {
    display: block;
    width: 50vw;
    max-width: 370px;
    margin: 24px 0 0 auto;
    position: static;
    left: unset;
    transform: none;
    padding: 14px 0;
    font-size: 1.1rem;
    position: static !important;
    transform: none !important;
    display: block;
    width: 90%;
    margin: 10vw auto;
  }

  #news-blocks-wrapper {
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: center;
    width: 100%;
    margin: 20px 0 0 0;
    z-index: 9;
  }

@media (max-width: 928px) {
    .actualites-btn span {
        display: none;
    }
    
}
@media (max-width: 380px) {
    .hero-discover-btn {
    margin: 5vw auto -40px auto;
    width: auto;

    }
}
    /* Réduit l'espacement vertical entre chaque bloc */
  .actualites-btn {
    margin-bottom: 10px;
  }
  .navytd-block {
    margin-bottom: 10px;
  }
}

    .contact-send-btn {
    margin-top: 12px;
    width: 98px;
    align-self: flex-end;
    background: #232323;
    color: #f8f6f2;
    border: none;
    border-radius: 7px;
    padding: 7px 13px 6px 13px;
    font-family: 'Clear Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    transition: background 0.14s;
    opacity: 0.98;
}
.contact-send-btn:hover {
    background: #444;
}

.navytd-block.slide-out {
    animation: slideOutLeft 0.4s forwards;
}
.navytd-block.slide-in {
    animation: slideInRight 0.4s forwards;
}
@keyframes slideOutLeft {
    0% { transform: translateX(0); opacity:1; }
    100% { transform: translateX(-60px); opacity:0; }
}
@keyframes slideInRight {
    0% { transform: translateX(60px); opacity:0; }
    100% { transform: translateX(0); opacity:1; }
}

/* ------- FONDS DE PLACEMENTS - PAGE VANGUARD ------- */

:root {
    --ivory: #f8f6f2;
}

.fonds-pre-bg {
    width: 100vw;
    min-height: 100vh;
    background: url('../img/notre société bg.png') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.fonds-pre-content {
    margin: 0 auto;
    margin-top: 6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 650px;
    min-height: 70vh;
    position: relative;
    z-index: 2;
}

.fonds-pre-title {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 23px;
    color: var(--ivory);
    text-align: center;
    margin-bottom: 44px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);

}

.fonds-selector-block {
    background: rgba(20, 20, 24, 0.93);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.11);
    padding: 32px 32px 30px 32px;
    min-width: 315px;
    max-width: 3400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
    position: relative;
    transition: max-width 0.36s cubic-bezier(.85,0,.12,1), width 0.36s cubic-bezier(.85,0,.12,1);
}

.fonds-selector-block.wide {
    max-width: 700px;
    width: 100%;
}

.fonds-disclaimer-block {
    background: rgba(27, 30, 35, 0.93);
    border-radius: 16px;
    margin-top: 22px;
    padding: 38px 30px 25px 30px;
    width: 100%;
    max-width: 700px;
    max-height: 340px; /* ajuste la hauteur selon la gueule que tu veux */
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--ivory);
    font-size: 15.1px;
    font-family: 'Clear Sans', Arial, sans-serif;
    line-height: 1.58;
    box-shadow: 0 4px 18px rgba(0,0,0,0.11);
    margin-left: 0;
    margin-right: 0;
    white-space: pre-line;
    display: none; /* JS toggle l'affichage */
}

.fonds-disclaimer-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 10px;
}
.fonds-disclaimer-content {
    margin-bottom: 18px;
}
.fonds-disclaimer-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 6px;
}
.fonds-disclaimer-check input[type="checkbox"] {
    accent-color: #5d7390;
    transform: scale(1.1);
    margin-right: 8px;
}

.pays-select-btn, .investisseur-btn, .confirm-btn {
    width: 100%;
    background: #181c23;
    color: var(--ivory);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-family: 'Clear Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    transition: background 0.14s;
    outline: none;
    position: relative;
}
.pays-select-btn:after {
    content: '';
    display: inline-block;
    margin-left: 14px;
    margin-top: 3px;
    border-width: 8px 7px 0 7px;
    border-style: solid;
    border-color: var(--ivory) transparent transparent transparent;
    vertical-align: middle;
}
.pays-dropdown {
    width: 100%;
    background: rgba(14, 14, 17, 0.98);
    color: var(--ivory);
    border-radius: 13px;
    box-shadow: 0 6px 40px rgba(0,0,0,0.21);
    position: absolute;
    left: 0;
    top: 58px;
    z-index: 99;
    font-family: 'Clear Sans', Arial, sans-serif;
    font-size: 15px;
    padding: 10px 0;
    max-height: 265px;
    overflow-y: auto;
    display: none;
    min-width: 100%;
}
.pays-dropdown.active {
    display: block;
}
.pays-dropdown-option {
    width: 100%;
    padding: 12px 24px;
    color: var(--ivory);
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s;
}
.pays-dropdown-option:hover {
    background: #242e3d;
}

.investisseur-block {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.investisseur-label {
    font-family: 'Clear Sans', Arial, sans-serif;
    font-size: 15px;
    color: var(--ivory);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-weight: bold;
}
.investisseur-info-btn {
    margin-left: 7px;
    margin-top: -2px;
    font-size: 16px;
    width: 22px;
    height: 22px;
    background: #232832;
    color: var(--ivory);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    transition: background 0.14s;
    outline: none;
    font-weight: 700;
}
.investisseur-info-btn:hover {
    background: #5d7390;
}
.investisseur-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2px;
    margin-left: 12px;
}
.investisseur-radio {
    accent-color: #5d7390;
    margin-right: 10px;
    transform: scale(1.12);
}
.investisseur-options label {
    color: #f8f6f2 !important;
    font-size: 15px;
    font-family: 'Clear Sans', Arial, sans-serif;
    font-weight: 600;
}

.confirm-btn {
    text-transform: lowercase;
    padding-left: 0.9em;
    padding-right: 0.9em;
    margin-top: 16px;
}
.confirm-btn:disabled,
.ok-btn:disabled {
    background: #888c98;
    color: #d2d4d7;
    opacity: 0.72;
    cursor: not-allowed;
}
.ok-btn {
    margin-top: 16px;
}
.nous-contacter-btn {
    background: #f8f6f2;
    margin-top: 14px;
    border-radius: 5px;
}
.nous-contacter-btn:hover {
    background: #f8f6f2;
    border-radius: 5px;
}

.fonds-pre-message {
    background: rgba(41, 22, 20, 0.97);
    color: #f8f6f2;
    font-family: 'Clear Sans', Arial, sans-serif;
    font-size: 15.5px;
    padding: 27px 18px 18px 18px;
    border-radius: 14px;
    margin: 18px auto 0 auto;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    max-width: 350px;
    line-height: 1.45;
    display: none;
}
.fonds-pre-message.active {
    display: block;
}

/* Popup definition investisseur qualifié */
.fonds-qualifie-popup-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(30,40,62,0.56);
    z-index: 2202;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}
.fonds-qualifie-popup-bg.active {
    opacity: 1;
    pointer-events: all;
}
.fonds-qualifie-popup {
    background: #232733;
    color: #f8f6f2;
    padding: 42px 28px 18px 32px;
    border-radius: 22px;
    max-width: 540px;
    max-height: 80vh;
    width: 98vw;
    font-size: 15.5px;
    line-height: 1.5;
    font-family: 'Clear Sans', Arial, sans-serif;
    box-shadow: 0 4px 32px rgba(0,0,0,0.27);
    position: relative;
    overflow-y: auto;
}
.fonds-qualifie-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    background: none;
    border: none;
    color: #f8f6f2;
    cursor: pointer;
    opacity: 0.46;
    z-index: 2;
}

/* Responsive */
@media (max-width: 700px) {
    .fonds-pre-title { 
        max-width: 310px;
        font-size: 18px; }
    .fonds-pre-message { padding: 17px 6vw 12px 6vw; max-width: 97vw; font-size: 14.2px; }
    .fonds-selector-block, .fonds-selector-block.wide, .fonds-disclaimer-block { 
        max-width: 99vw !important; 
        min-width: 0 !important; 
        width: 78vw !important; 
    }
    .fonds-disclaimer-block {
        max-height: 260px;
        padding: 10px 3vw 10px 3vw;
    }
}
/*EY ICI FONDS VERUM PAGE */
/*EY ICI FONDS VERUM PAGE */
:root {
    --bwf-bg: #627595;
    --bwf-ivory: #f8f6f2;
    --bwf-shadow: 0 4px 32px 0 rgba(30,33,41,0.07);
    --bwf-radius: 32px;
    --bwf-title: #222;
    --bwf-text: #262626;
    --bwf-link: #1a4c9e;
    --bwf-link-hover: #113063;
    --bwf-green: #27ae60;
    --bwf-red: #ff7070;
    --bwf-grey: #aaa;
    --bwf-gold: #E6BE69;
}

/* ----------- BASE ----------- */
html, body {
    font-family: 'Clear Sans', Arial, sans-serif;
    background: url('../img/fonds.verum-bg.png') center center/cover no-repeat;
    margin: 0;
    min-height: 100vh;
    color: var(--bwf-text);
    overflow-x: hidden; /* Empêche toute barre horizontale */
}

/* ----------- HEADER ----------- */
.hero-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 38px 46px 0 46px;
    position: relative;
    z-index: 9;
}
.bwf-logo {
    height: 80px;
    width: auto;
    margin-right: 12px;
    margin-top: -13px;
}
.header-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}
.header-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    outline: none;
}
.globe-icon {
    width: 42px;
    height: 42px;
    filter: grayscale(40%);
}

@media (max-width: 429px) {
  .hero-header {
    padding: 6px 10px;
    gap: 6px;
  }
  .bwf-logo {
    width: 60px;
    height: auto;
    margin-top: 5px;
    margin-left: -5px;
  }
  .header-icons {
    gap: 6px;
  }
  .globe-icon {
    width: 24px;
    height: 24px;
  }
  .burger-icon {
    width: 34px;
    height: 24px;
  }
  .burger-bar.top { width: 34px; height: 5px; }
  .burger-bar.mid { width: 24px; height: 5px; }
  .burger-bar.bot { width: 14px; height: 5px; }
}

/* ----------- MAIN SECTION ----------- */
.fonds-section {
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    min-height: 190vh; /* Assez pour couvrir 2 blocs dès le load */

}

/* ----------- BLOCS FONDS ----------- */
.fonds-bloc {
    width: 90vw;
    max-width: 1500px;
    margin: 5vh auto 5vh auto;
    background: var(--bwf-ivory);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(100,100,100,0.04);
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 48px;
    padding: 48px 42px 48px 48px;
    min-height: 80vh;
    box-sizing: border-box;
    position: relative;
}

/* ----------- BLOC GAUCHE ----------- */
.fonds-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 25px;
    min-width: 320px;
    max-width: 410px;
}
.fonds-title {
    font-size: 1.33rem;
    font-weight: 700;
    color: var(--bwf-title);
    margin-bottom: 2px;
}
.fonds-isin {
    font-size: 0.92rem;
    color: var(--bwf-grey);
    margin-bottom: 3px;
}
.fonds-desc {
    font-size: 1.04rem;
    color: #444;
    margin-bottom: 6px;
}
.fonds-ytd {
    font-size: 1.09rem;
    font-weight: 700;
    margin: 6px 0 2px 0;
}
.ytd-value {
    font-weight: 700;
    font-size: 1.09rem;
    margin-left: 5px;
}
.ytd-value.positif { color: var(--bwf-green); }
.ytd-value.negatif { color: var(--bwf-red); }

.fonds-perf-block {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.fonds-perf-label {
    font-size: 1.07rem;
    font-weight: 600;
    color: var(--bwf-title);
    margin-bottom: 4px;
}
.fonds-perf-table-wrapper {
    max-height: 255px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.fonds-perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.04rem;
    margin-top: 3px;
}
.fonds-perf-table thead th {
    text-align: left;
    padding-bottom: 2px;
    border-bottom: 1px solid #dde3ef;
    font-size: 1.01em;
    font-weight: 700;
    color: #223044;
    letter-spacing: 0.01em;
}
.fonds-perf-table tbody td:last-child {
    color: var(--bwf-link);
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 2px 7px 2px 0;
    min-width: 70px;
}

.fonds-perf-table caption {
    caption-side: bottom;
    color: #888;
    font-size: 0.91em;
    text-align: left;
    margin-top: 4px;
}
.fonds-links a {
    display: inline-block;
    background: var(--bwf-link);
    color: #fff;
    padding: 8px 8px;
    border-radius: 8px;
    margin: 6px 0 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.fonds-links a:hover {
    background: var(--bwf-link-hover);
}

.factsheet-link, .doc-link, .portfolio-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: var(--bwf-link);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    z-index: 1;
    margin: 0.1vw;
    display: flex;
}

.factsheet-link:hover, .doc-link:hover, .portfolio-link:hover { color: var(--bwf-link-hover); }
.fonds-footnotes {
    margin-top: 8px;
    font-size: 0.87rem;
    color: var(--bwf-gold);
    font-style: italic;
    line-height: 1.25;
}
.fonds-contact {
    position: static;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
    color: #262626;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.contact-link {
    color: var(--bwf-link);
    text-decoration: underline;
}
.contact-link:hover { color: var(--bwf-link-hover); }

.fonds-verum-disclaimer {
    font-size: 9px;
    color: #aaa;
    margin-top: 10px;

}



.fonds-footer-mentions-fixed {
    position: fixed;
    bottom: 18px;
    right: 30px;
    background: none;
    color: #222b36;
    font-family: 'Clear Sans', Arial, sans-serif;
    font-size: 13px;
    opacity: 0.70;
    z-index: 40;
    padding: 0 0 0 0;
    letter-spacing: 0.08em;
    box-shadow: none;
    text-align: right;
    pointer-events: none; /* l’empêche de gêner les clics en dessous */
}

.fonds-footer-mentions-fixed a {
    color: #222b36;
    text-decoration: underline;
    opacity: 0.85;
    pointer-events: auto; /* MAIS rend les liens cliquables ! */
}

.fonds-footer-mentions-fixed a:hover {
    color: #113063;
    opacity: 1;
}
@media (max-width: 700px) {
    .fonds-footer-mentions-fixed {
        position: static;
        text-align: center;
        width: 100%;
        margin: 32px 0 0 0;
        opacity: 0.83;
        pointer-events: auto;
    }
    .fonds-links a {
        margin-left: 30vw!important;
    }
}


/* ----------- BLOC DROIT ----------- */
.fonds-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    min-height: 100%;
}

/* ----------- GRAPHIQUE + FILTRES ----------- */
.fonds-graph-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--bwf-ivory);
    border-radius: 20px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 1px 6px 0 rgba(30,33,41,0.04);
    min-width: 340px;
    width: 98%;
    height: 65vh;
    max-height: 650px;
    min-height: 320px;
    position: relative;
}
.fonds-graph-area canvas {
    width: 99% !important;
    height: 88% !important;
    max-width: 100%;
    display: inline-block;
    background: transparent;
}
.graph-filters {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 0;
    z-index: 2;
    position: relative;
}
.graph-btn {
    background: #eef0f7;
    color: #305099;
    border: 1px solid #bed1f6;
    border-radius: 16px;
    font-size: 0.97rem;
    padding: 3px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.graph-btn.selected,
.graph-btn:hover {
    background: #305099;
    color: #fff;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 1100px) {
    .fonds-bloc {
        grid-template-columns: 1fr;
        padding: 28px 4vw 32px 4vw;
        min-height: 72vh;
        max-height: none;
        width: 98vw;
    }
    .fonds-graph-area {
        height: 34vh;
        max-height: 340px;
        min-height: 180px;
    }
    .fonds-links {
        margin-left: -30vw!important;
    }
    .fonds-footnotes {
            margin-left: -10vw !important;
            max-width: 500px;
    }
    .fonds-ytd{
        margin-left:-47vw;
    }
}
@media (max-width: 650px) {
    .fonds-bloc {
        padding: 18px 4vw;
        border-radius: 14px;
        margin: 4vw 0;
    }
    .fonds-title { font-size: 1.4rem; margin-bottom: 10px; }
    .fonds-isin { font-size: 1rem; margin-bottom: 6px; }
    .fonds-desc { font-size: 1.1rem; margin-bottom: 10px; }
    .fonds-ytd { font-size: 1.3rem; margin-bottom: 10px; }
    .fonds-perf-label { font-size: 1.2rem; margin: 10px 0; }
    .fonds-perf-table { font-size: 1rem; letter-spacing: 0.02em; }
    .fonds-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 1rem;
        margin-top: 8px;
        background: #305099;
        color: #fff;
        border-radius: 12px;
    }
    .fonds-links a:hover { background: #1a4c9e; }
    .fonds-graph-area {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        margin-top: 14px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }
}

/* ========================= */
/* === FIX DU TEXTE INVISIBLE SUR CTA === */
/* ========================= */
.fonds-links a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: var(--bwf-link);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    z-index: 1;
}

.fonds-links a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.fonds-links a:active::before {
    width: 300%;
    height: 300%;
    opacity: 0;
    transition: none;
}

.fonds-links a:hover {
    background: var(--bwf-link-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
/* Fix: texte reste visible sur CTA avec effet ripple */
.fonds-links a {
    position: relative;
    display: list-item;
    overflow: hidden;
    background: var(--bwf-link);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    z-index: 1; /* ✅ Assure que le texte reste au-dessus */
    max-width:300px;
    margin-top: 15px;
}

.fonds-links a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1; /* ✅ Passe derrière le texte */
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.fonds-links a:active::after {
    width: 300%;
    height: 300%;
    opacity: 50%;
    transition: none;
    color:#f8f6f2;
}

.fonds-links a:hover {
    background: var(--bwf-link-hover);
}
@media (max-width: 1100px) {
    .fonds-left {
        place-self: center;
        align-items: center;
        max-width: 800px;
    }

    .fonds-perf-table {
        width: 60vw;
    }
    .fonds-title {
        min-width: 300px;
    }
    
    .fonds-isin {
        min-width: 300px;
    }

    .fonds-desc {
        min-width: 300px;
        display:flex;
    }

}



/* ====== Variables (fallbacks si ton :root existe déjà) ====== */
.bwf-duo{
  --bwf-blue: #5A6F8D;
  --ivory: #F5F7FA;
  --ink: #232323;
  --btn-grey:#BFC6CE;
  --shadow: 0 20px 40px rgba(0,0,0,.12);
    border-top: 4.5px solid #f8f6f2;
    border-bottom: 4.5px solid #f8f6f2;
    border-left: 9px solid #f8f6f2 ;
    border-right: 9px solid #f8f6f2 ;
  
  background: var(--bwf-blue);
  color: var(--ivory);
  padding: clamp(56px, 6vw, 120px) 24px;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, "Clear Sans", Arial, sans-serif;
}

/* ====== Layout ====== */
.bwf-row{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items:center;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
}
.bwf-row + .bwf-row{ margin-top: clamp(60px, 8vw, 120px); }

.bwf-row--funds{
  grid-template-columns: 1fr 1.1fr; /* image gauche, texte droite */
}

/* ====== Text column ====== */
.bwf-title{
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing:.02em;
  margin: 0 0 18px 0;
  text-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.bwf-lead{
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.6;
  opacity:.95;
  margin: 0 0 14px 0;
}
.bwf-copy{
  font-size: 16px;
  line-height: 1.6;
  opacity:.9;
  margin: 0 0 10px 0;
}

/* ====== Mini-cards (no advisory mandate) ====== */
.bwf-cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin: 22px 0 26px;
}
.bwf-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}
.bwf-card h3{
  margin:0 0 6px 0;
  font-weight:600;
  font-size: 15px;
  letter-spacing:.015em;
}
.bwf-card p{
  margin:0;
  font-size: 14px;
  line-height:1.55;
  opacity:.92;
}

/* ====== Button ====== */
.bwf-btn{
  display:inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .06em;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.bwf-btn:hover{ transform: translateY(-2px); }
.bwf-btn:active{ transform: translateY(0); box-shadow: 0 10px 22px rgba(0,0,0,.18); }

/* ====== Framed image (not a background) ====== */
.bwf-frame{
  margin:0;
  position: relative;
  border: 10px solid rgba(255,255,255,.35);     /* cadre externe */
  outline: 1px solid rgba(0,0,0,.15);           /* filet sombre */
  box-shadow: var(--shadow);
}
.bwf-frame::after{
  content:"";
  position:absolute; inset:10px;
  border: 6px solid rgba(255,255,255,.75);      /* passe-partout interne */
  pointer-events:none;
}
.bwf-frame img{
  display:block;
  width: min(720px, 100%);
  height: auto;
}

/* ====== Vertical side label ====== */
.bwf-side{
  position:absolute;
  top:50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin:center;
  letter-spacing: .5em;
  font-weight: 600;
  opacity:.7;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
  white-space: nowrap;
}
.bwf-side--right{ right: -56px; }
.bwf-side--left { left:  -56px; }

/* ====== Responsive ====== */
@media (max-width: 980px){
  .bwf-row,
  .bwf-row--funds{ grid-template-columns: 1fr; }
  .bwf-col--media{ order: -1; } /* image avant le texte sur mobile */
  .bwf-cards{ grid-template-columns: 1fr; }
  .bwf-side--right, .bwf-side--left{
    display:none; /* garde propre sur petits écrans */
  }
  .bwf-frame img{ width:100%; }
}


/* ====== Section wrapper (fallback vars) ====== */
.bwf-duo{
  --bwf-blue:#5A6F8D; --ivory:#F5F7FA; --ink:#232323;
  --shadow:0 20px 40px rgba(0,0,0,.12);

  background:var(--bwf-blue);
  color:var(--ivory);
  padding:clamp(56px,6vw,120px) 24px;
  font-family:"Outfit",system-ui,-apple-system,Segoe UI,Roboto,"Clear Sans",Arial,sans-serif;
}

/* ====== Grid & knobs par défaut ====== */
.bwf-row{
  /* layout */
  display:grid; grid-template-columns:1.1fr 1fr;
  gap:clamp(24px,4vw,56px); align-items:center;
  max-width:1220px; margin:0 auto; position:relative;
  /* knobs par défaut (surchargés par row inline/selector) */
  --media-w:570px;          /* largeur cadre */
  --media-h:700px;           /* hauteur (px pour crop, auto pour ratio) */
  --media-shift-x:0px;      /* décalage X */
  --media-shift-y:0px;      /* décalage Y */
  --side-offset:-216px;      /* distance label du bord (négatif = collé) */
  --side-top:50%;           /* position verticale du label */
  --side-rotate:-90deg;     /* orientation du label */
  --frame-outer:0px;       /* épaisseur cadre externe */
  --frame-inner:6px;        /* épaisseur passe-partout */
}
.bwf-row + .bwf-row{ margin-top:clamp(60px,8vw,120px); }
.bwf-row--funds{ grid-template-columns:1fr 1.1fr; } /* image gauche */

/* ====== Texte ====== */
.bwf-title{
  font-size:clamp(36px,5vw,64px); line-height:1.02; letter-spacing:.02em;
  margin:0 0 18px 0; text-shadow:0 8px 24px rgba(0,0,0,.25);
}
.bwf-lead{ font-size:clamp(16px,2.1vw,20px); line-height:1.6; opacity:.95; margin:0 0 14px; }
.bwf-copy{ font-size:16px; line-height:1.6; opacity:.9; margin:0 0 10px; }

/* ====== Mini-cards ====== */
.bwf-cards{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:22px 0 26px; }
.bwf-card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:14px; padding:16px 18px; box-shadow:var(--shadow); backdrop-filter:blur(2px);
}
.bwf-card h3{ margin:0 0 6px; font-weight:600; font-size:15px; letter-spacing:.015em; }
.bwf-card p{ margin:0; font-size:14px; line-height:1.55; opacity:.92; }

/* ====== Bouton ====== */
.bwf-btn{
  display:inline-block; margin-top:8px; padding:12px 22px; border-radius:14px;
  background:var(--ivory); color:var(--ink); text-decoration:none; font-weight:600; letter-spacing:.06em;
  box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.bwf-btn:hover{ transform:translateY(-2px); }
.bwf-btn:active{ transform:translateY(0); box-shadow:0 10px 22px rgba(0,0,0,.18); }

/* ====== Image encadrée (pas un background) ====== */
.bwf-col--media{ position:relative; }
.bwf-frame{
  margin:0; position:relative; width:var(--media-w);
  border:var(--frame-outer) solid rgba(255,255,255,.35);
  outline:1px solid rgba(0,0,0,.15); box-shadow:var(--shadow);
  transform:translate(var(--media-shift-x),var(--media-shift-y));
}
.bwf-frame::after{
  content:""; position:absolute; inset:var(--frame-outer);
  border:var(--frame-inner) solid rgba(255,255,255,.75); pointer-events:none;
}
.bwf-frame img{ display:block; width:100%; height:var(--media-h); object-fit:cover; }

/* ====== Label vertical ====== */
.bwf-side{
  position:absolute; top:var(--side-top);
  transform:translateY(-50%) rotate(var(--side-rotate));
  letter-spacing:.5em; font-weight:600; opacity:.7; text-shadow:0 6px 18px rgba(0,0,0,.35);
  white-space:nowrap;
}
.bwf-side--right{ right:var(--side-offset); }
.bwf-side--left { left: var(--side-offset); }

/* ====== Alignements par ligne ====== */
.bwf-row--company .bwf-col--media{ justify-self:end; }   /* image à droite */
.bwf-row--funds   .bwf-col--media{ justify-self:start; } /* image à gauche */

/* ====== Responsive ====== */
@media (max-width:980px){
  .bwf-row, .bwf-row--funds{ grid-template-columns:1fr; }
  .bwf-col--media{ order:-1; }           /* image avant texte */
  .bwf-cards{ grid-template-columns:1fr; }
  .bwf-side{ display:none; }             /* cache le label sur mobile */
  .bwf-row{ --media-w:100%; --media-shift-x:0; --media-shift-y:0; }
}


/* ====== Responsive ====== */
@media (max-width: 980px){
  /* On garde une seule colonne */
  .bwf-row,
  .bwf-row--funds {
    grid-template-columns: 1fr;
  }

  /* On masque complètement les images + labels */
  .bwf-col--media,
  .bwf-frame,
  .bwf-side {
    display: none !important;
  }

  /* On ajuste les espacements */
  .bwf-duo {
    padding: 60px 20px;
  }

  .bwf-cards {
    grid-template-columns: 1fr;
  }

  .bwf-title {
    font-size: clamp(28px, 8vw, 42px);
  }
}
