:root {
    --bg: #F2EFFF;
    --bgDark: #232233;
    --dark: #0A0A3A;
    --lessDark: #151573;
    --blue: #026AD5;
    --clair: #56a3e1;
    --gold: #fcbc77;

    --diagH: 700px;
    --diagCut: 16%;

    --headerH: 70px;
    --barH: 6px;
    --anchorOffset: calc(var(--headerH) + var(--barH));

    --t: 650ms;
    --ease: cubic-bezier(.25, .9, .25, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Bebas Neue";



}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}


/* header */
/* ================= HEADER ======================================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--headerH);
    background: var(--bg);
    display: flex;
    align-items: center;

}

/* conteneur */


/* LOGO */

a  {
text-decoration: none;
}


#logo{
    color: var(--dark);
    font-style: italic;
    font-weight: bold;
}



/* NAV */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* on neutralise l'ancien style des <a> */
.nav a {

    text-decoration: none;
}

/* version compacte des boutons dans le header */
.nav .btn-frequence {
    padding: 10px 26px; /* plus petit que la version normale */
    font-size: 30px;
    line-height: 1;
}


.header{ z-index: 1100; }
.menu{ z-index: 1000; }
.overlay{ z-index: 900; }

/* mobile */
@media (max-width: 1000px) {
    .nav {
        display: none; /* tu pourras faire un menu burger plus tard */
    }
}


.is-active .btn-labels {
    color: var(--lessDark);
    transition: color 0.3s;
}

/* Burger ---------------------------------------------------------------------------------------*/

.burger{
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.burger__lines{
    position: relative;
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), background 150ms cubic-bezier(.2,.8,.2,1);
}

/* 2 autres lignes via pseudo-elements */
.burger__lines::before,
.burger__lines::after{
    content: "";
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    transition:
            transform 420ms cubic-bezier(.2,.8,.2,1),
            top 420ms cubic-bezier(.2,.8,.2,1),
            opacity 300ms cubic-bezier(.2,.8,.2,1);
}

.burger__lines::before{ top: -8px; }
.burger__lines::after{ top: 8px; }

/* ÉTAT OUVERT : ajoute .is-open sur le bouton */
.burger.is-open .burger__lines{
    background: transparent; /* on cache la ligne du milieu */
}

.burger.is-open .burger__lines::before{
    top: 0;
    transform: rotate(45deg);
}

.burger.is-open .burger__lines::after{
    top: 0;
    transform: rotate(-45deg);
}

/* focus visible clean */
.burger:focus-visible{
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 10px;
}

@media (min-width: 1000px) {
    .burger{
        display: none;
    }
}


/* MENU off-canvas (overlay) */
.menu{
    position: fixed;
    inset: 0;

    width: auto;              /* si tu veux full screen */
    transform: translateX(-100%);
    transition: transform var(--t) var(--ease);
    will-change: transform;
    z-index: 1000;

    background: var(--bg);     /* adapte */
    color: var(--dark);
}

.menu__inner{

    padding-top: var(--headerH);
    display: grid;
    height: 100vh;

    background: var(--bg);

    gap: clamp(12px, 3.5vh, 24px);  /* proche */
    align-content: center;        /* centre le "bloc" */

}


.menu__inner .menu__link{
    /* pensé pour 320px → 900px */
    font-size: clamp(60px, 12vw, 96px);
    font-style: italic;
    font-weight: 800;
    line-height: 0.95;
}

.menu__hit{
    width: 100%;
    transition: transform .18s ease, opacity .18s ease;
    transform-origin: left center;
}

.menu__hit.is-pressed{
    transform: scale(0.90);
    opacity: .75;
}


.menu__div span{

    font-size: clamp(28px, 7vw, 64px);
    font-weight: 800;
    text-align: right;
    line-height: 1;
}




/* Overlay */
.overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t) var(--ease);
    z-index: 900;
}

/* OUVERT */
.nav-open .menu{ transform: translateX(0); }
.nav-open .overlay{
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 600px) {
    .header .container{
        margin: 10vw;
    }
}

@media (max-width: 600px) {
    .menu__inner{
        padding: 10vw;
    }
}





/* blue bar  -------------------------------------------------------------------------------------------------*/
.bluebar {
    position: sticky;
    top: var(--headerH);
    z-index: 999;
    height: var(--barH);
    background: var(--bg);
    overflow: hidden;
}

.goldbar {
    position: sticky;
    top: var(--headerH);
    z-index: 999;
    height: var(--barH);
    background: var(--blue);
    overflow: hidden;
}

.bluebar__fill {
    height: 100%;
    width: 0%;
    background: var(--blue);
    transform-origin: left center;
}


/* sections */
.section {
    position: relative;
    height: auto; /* laisse grandir */
    overflow: hidden;
    scroll-margin-top: var(--anchorOffset);
}




/* FOCUS LIENS ==================================================================*/
.speedlines{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;

    color: #64AEEA; /* currentColor */


}

/* stroke settings centralisés */
.speedlines path{
    stroke: currentColor;
    stroke-width: 0;

}

/* contenu au-dessus */
.section .container{
    position: relative;
    z-index: 1;
}


.section.dark .speedlines{
    color: rgba(255,255,255,.65);
    opacity: .50;
}
.section.light .speedlines{
    color: #64AEEA;
    opacity: .50;
}



/* couleurs -----------------------------------------------------------------------------------*/


#s2, #s3, #s4, #s5, #s6 {
    padding-bottom: 10vh;
}



.section.light {
    background: var(--bg);
}

.section.dark {
    background: var(--bgDark);
}

/* IMPORTANT : on définit “la couleur actuelle” et “la suivante” */
.section.light {
    --current: var(--bg);
}

.section.dark {
    --current: var(--bgDark);
}

/* === 1) MASQUE (couleur de la section actuelle) : il coupe le bas === */
.section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--diagH);
    background: var(--current);
    z-index: -1;

    /* on laisse un vide en forme de diagonale (que la couche next viendra remplir) */
    clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - var(--diagCut)),
            0 100%
    );
}

/* === 2) DIAGONALE NEXT (couleur de la section suivante) : par dessus === */
.section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--diagH);
    background: var(--next, transparent);
    z-index: 2;

    /* la pièce diagonale qui “rentre” */
    clip-path: polygon(
            0 100%,
            100% calc(100% - var(--diagCut)),
            100% 100%,
            0 100%
    );
}

/* configuration section par section */
#s1 {
    --next: var(--bgDark);
}

#s2 {
    --next: var(--bg);
}

#s3 {
    --next: var(--bgDark);
}

#s4 {
    --next: var(--bg);
}

#s5 {
    --next: var(--bgDark);
}

/* mobile */
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    :root {
        --diagH: 120px;
        --diagCut: 18%;
    }
}


/* ===== Variante inversée (diagonale dans l'autre sens) ===== */
.section.flip::before {
    /* masque inversé */
    clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            0 calc(100% - var(--diagCut))
    );
}

.section.flip::after {
    /* pièce "next" inversée */
    clip-path: polygon(
            0 calc(100% - var(--diagCut)),
            100% 100%,
            100% 100%,
            0 100%
    );
}


/* BOUTOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN*/


.btn-frequence {
    position: relative;
    display: inline-block;
    padding: 16px 48px;
    background: var(--gold);
    color: var(--dark);
    font: 800 30px/1 "Bebas Neue", sans-serif;
    font-style: italic;

    text-decoration: none;
    overflow: hidden;

    /* ✅ trapèze sans déformer le texte */
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    border-radius: 0.1em;

}

.btn-frequence {
    transform: skewX(-18deg);
}


/* Le wrapper de labels prend la largeur du texte */
.btn-frequence .btn-labels {
    display: inline-grid;
    align-items: center;
    justify-items: center;

    /* IMPORTANT: garantit la hauteur comme avant */
    line-height: 1;
}

/* Les deux textes superposés dans la même case */
.btn-frequence .btn-txt {
    grid-area: 1 / 1;
    display: inline-block;

    /* ✅ ton contre-skew conservé */
    transform: skewX(18deg) translateX(0) translateZ(0);

    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;

    /* au-dessus du shine */
    position: relative;
    z-index: 2;

    transition: transform .45s cubic-bezier(.22, .61, .36, 1),
    opacity .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform, opacity;
}

/* état initial */
.btn-frequence .btn-txt--base {
    opacity: 1;
    transform: skewX(18deg) translateX(0);
}

.btn-frequence .btn-txt--alt {

    transform: skewX(18deg) translateX(-160%);
}

/* hover : base sort à droite, alt rentre par la gauche */
.btn-frequence:hover .btn-txt--base {

    transform: skewX(18deg) translateX(160%);
}

.btn-frequence:hover .btn-txt--alt {

    transform: skewX(18deg) translateX(0);
}


.btn-frequence::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -60%;
    width: 40%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    opacity: 0;
}

.btn-frequence:hover::after {
    opacity: 1;
    animation: shine .65s ease forwards;
}

@keyframes shine {
    from {
        left: -60%;
    }
    to {
        left: 120%;
    }
}



/* BTN DECOUVRIR -----------------------------------------------------------------------------------------------*/
.btn-decouvrir {
    position: relative;
    display: inline-block;
    padding: 0px 17px;
    color: var(--dark);
    font-size: clamp(35px, 10vw, 100px);
    font-weight: bold;
    font-style: italic;
    flex-shrink: 0;
    text-decoration: none;
    overflow: hidden;

    /* ✅ trapèze sans déformer le texte */
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);


}




/* Le wrapper de labels prend la largeur du texte */
.btn-decouvrir .btn-labels {
    display: inline-grid;
    align-items: center;
    justify-items: center;

    /* IMPORTANT: garantit la hauteur comme avant */
    line-height: 1;
}

/* Les deux textes superposés dans la même case */
.btn-decouvrir .btn-txt {
    grid-area: 1 / 1;
    display: inline-block;

    /* ✅ ton contre-skew conservé */
    transform:  translateX(0) translateZ(0);

    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;

    /* au-dessus du shine */
    position: relative;
    z-index: 2;

    transition: transform .45s cubic-bezier(.22, .61, .36, 1),
    opacity .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform, opacity;
}

/* état initial */
.btn-decouvrir .btn-txt--base {
    opacity: 1;
    transform:  translateX(0);
}

.btn-decouvrir .btn-txt--alt {

    transform: translateX(-160%);
}

/* hover : base sort à droite, alt rentre par la gauche */
.btn-decouvrir:hover .btn-txt--base {

    transform: translateX(160%);
}

.btn-decouvrir:hover .btn-txt--alt {

    transform:  translateX(0);
}


.btn-decouvrir::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -60%;
    width: 40%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    opacity: 0;
}

#hero-info{
    color: var(--gold);
    font-size: clamp(14px, 3vw, 40px);
}


/* BOX PLUSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS */


.info-box {
    position: relative;
    padding: clamp(24px, 4vw, 56px);
}





/* + commun */
.info-box .plus {
    position: absolute;
    font-weight: 900;
    color: var(--clair);
    font-size: clamp(24px, 2vw, 38px);
}


.zone::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/svg/fond.svg") no-repeat center / 100% 100%;
    filter: drop-shadow(1em 1em var(--gold));
    z-index: -1;

}
.zone {
    position: relative;



}

.zone-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}



/* positions */
.plus-tl {
    top: 0;
    left: 0;
}

.plus-tr {
    top: 0;
    right: 0;
}

.plus-bl {
    bottom: 0;
    left: 0;
}

.plus-br {
    bottom: 0;
    right: 0;
}


/* titres */
.info-title {
    font-size: clamp(28px, 5vw, 80px);
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--blue);
    line-height: 0.9;
    font-style: italic;
}

.info-subtitle {
    font-size: clamp(14px, 2vw, 36px);
    letter-spacing: .12em;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
}


/* paragraphes */
.info-box p {
    font-size: clamp(14px, 2vw, 22px);
    line-height: 1.7;
    margin-bottom: 14px;
    opacity: .85;
    font-family: "blinker";
    color: var(--clair);
    text-align: justify;
}


.clair {
    color: var(--clair);
}

.blue {
    color: var(--blue);
}

.dark{
    color: var(--dark);
}


.giant {
    font-size: clamp(70px, 10vw, 200px);
}

.bigger {
    font-size: clamp(50px, 8vw, 130px);
}


.video-shape {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%) translateY(10px);

    aspect-ratio: 16 / 9; /* desktop */
    -webkit-clip-path: url(#videoMask2);
    clip-path: url(#videoMask2);
    overflow: hidden;
}


.video-shape video{
    width: 101%;
    height: 101%;
    object-fit: cover;
    display: block;

}


@media (max-width: 1000px) {
    .video-shape {
        aspect-ratio: 4 / 3;   /* beaucoup plus vertical */
    }
}

@media (max-width: 600px) {
    .video-shape {
        aspect-ratio: 1 / 1;   /* beaucoup plus vertical */
    }
}

@media (max-width: 600px) {
    .video-shape {
        aspect-ratio: 3 / 5;   /* beaucoup plus vertical */
        -webkit-clip-path: url(#videoMask3);
        clip-path: url(#videoMask3);
    }
}


.video-shape video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* FOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOTERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR */

/* le footer devient une section */


/* IMPORTANT : c'est la dernière, donc pas de next */
#s7 {
    --next: transparent;
}


#s7::before,
#s7::after {
    bottom: 0;
}

/* titres/liens/texte restent identiques */
.footer-title {
    font-size: 26px;
    letter-spacing: .12em;
    margin-bottom: 16px;
    color: var(--blue);
    text-transform: uppercase;
    font-style: italic;
}

.footer-links {
    list-style: none;
    font-family: "Blinker";
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--clair);
    text-decoration: none;
    font-size: 18px;
    transition: all .25s;
}

.footer-links a:hover {
    color: var(--blue);

}


.footer-text {
    font-size: 18px;
    line-height: 1.6;
    font-family: "Blinker";
    color: var(--clair);
}


/* ===== FOOTER BUTTON ===== */

.footer-btn {
    display: inline-block;
    color: var(--clair);
    text-decoration: none;

    font-size: 18px;
    overflow: visible;
}

.footer-btn__inner {
    position: relative;
    display: inline-block;

    padding-left: 0; /* ✅ pas de décalage au repos */
    padding-right: 10px; /* marge anti-crop */
    transition: padding-left .35s cubic-bezier(.22, .61, .36, 1);
    z-index: 10;
}

/* flèche absolute => ne prend pas de place */
.footer-btn__arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-18px, -50%); /* hors champ à gauche */
    opacity: 0;

    color: var(--blue);
    font-weight: 800;

    transition: transform .35s cubic-bezier(.22, .61, .36, 1),
    opacity .35s cubic-bezier(.22, .61, .36, 1);
}

.footer-btn__text {
    display: inline-block;
    transform: translateX(0);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

/* hover : on crée la place + texte se décale */
.footer-btn:hover .footer-btn__inner {
    padding-left: 12px; /* ✅ la place apparaît seulement au hover */
}

.footer-btn:hover .footer-btn__arrow {
    transform: translate(0, -50%);
    opacity: 1;
}

.footer-btn:hover .footer-btn__text {
    transform: translateX(10px);
}


#s6 {
    --next: var(--bg);
}


/* LOTTIEEEEEEEEEEEEEEEEEEEEEE */


.lottie {
    justify-self: center;
    width: 80%;
}


.lottie-formation {
    justify-self: center;
    width: 100%;
}


.illu {
    width: 80%;
}

.illu-box {
    padding: 20px 0px;
    display: flex;
    justify-content: center
}


/* --------------------------------------------------------------------- CHARTS -------------------------------------*/

.chart1-card {
    position: relative;
    max-width: 980px;
    margin: 60px auto;
    padding: 60px 60px 30px;
    background-color: #eae0ff;

    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);

    /* 👇 forme parallélépipède */
    clip-path: polygon(
            6% 0,
            100% 0,
            94% 100%,
            0 100%
    );

    border-radius: 6px; /* très léger pour éviter l’aliasing */

}

.chart1-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.chart1-head h3 {
    margin: 0;
    font: 800 28px/1 "Bebas Neue", sans-serif;
    letter-spacing: .06em;
    color: var(--dark);
    font-style: italic;
}

.chart1-head p {
    margin: 0;
    font: 600 14px/1 "Blinker", sans-serif;
    color: var(--lessDark);
    opacity: .75;
}

.chart1-wrap {
    position: relative;
    height: 520px; /* ajuste si tu veux plus petit */
}


/* CARD parallélépipède */
.chart2-card {
    position: relative;
    max-width: 520px;
    margin: 70px auto;
    padding: 40px;

    box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}


/* Head */
.chart2-head h3 {
    margin: 0;
    font: 800 26px/1 "Bebas Neue", sans-serif;
    letter-spacing: .06em;
    color: var(--clair);
    font-style: italic;
}

.chart2-head p {
    margin: 4px 0 0;
    font: 600 13px/1 "Blinker", sans-serif;
    color: var(--blue);
    opacity: .75;
}

/* Donut */
.donut-wrap {
    position: relative;
    height: 280px;
    margin-top: 12px;
}

/* Centre du donut */
.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.donut-value {
    font: 900 64px/1 "Bebas Neue", sans-serif;
    color: var(--blue);
    letter-spacing: .04em;
}

.donut-label {
    font: 700 14px/1 "Blinker", sans-serif;
    color: var(--clair);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 6px;
}





