:root {
    /* Variables couleurs */
    --color-white: #ffffff;
    --color-black: #1B0132;

    --color-orange: #CA3904;
    --color-orange-bg: #FFF1EA;

    --color-violet-1: #4C2F91;

    /* Variables typo */
    --typo-h1: 2.45rem;
    --typo-h2: 1.25rem;

    --typo-h1-mid:2.2rem;
    --typo-h1-tel: 1.7rem;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    color: var(--color-black);
}

.textGras {
    font-weight: 600;
}

.skip-to-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-to-summary:focus {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    margin: 12px 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
}


/* --- Header --- */
header {
    background-color: var(--color-orange-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4.3% 12px 4.3%;
    position: sticky;
    top: 0;
    z-index: 10;
}

header img {
    width: 120px;
}

header .CTA {
    background-color: var(--color-orange);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 12px;
    padding: 8px 28px;
    font-size: 1.125rem;
}

    /* Responsive */
    @media (max-width: 380px) {
        header .CTA {
            padding: 8px 16px;
            text-align: center;
        }

        header img {
            width: 100px;
        }
    }

    @media (max-width: 280px) {
        header {
            gap: 20px;
        }
    }
/* --- End Header --- */


/* --- Hero --- */
.hero {
    background-color: var(--color-orange-bg);
    padding: 0 100px 48px 100px;

}

h1 {
    font-family: "Dosis", sans-serif;
    font-size: var(--typo-h1);
    color: var(--color-violet-1);
    margin: auto;
    margin-top: 0;
    margin-bottom: 44px;
    text-align: center;
    width: 85%;
}

.divHero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 46px;
}

.videoContainer {
    width: 70%;
    aspect-ratio: 16 / 9;
}

.videoContainer iframe {
    border-radius: 15px;
    width: 100%;
    height: 98%;
}

.summary {
    width: 25%;
    margin-top: 84px;
}

.summary h2 {
    color: var(--color-violet-1);
    font-family: "Open Sans", sans-serif;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 4px;
    width: fit-content;
}

.summary ul {
    margin: 0;
    list-style: none;
    padding-left: 12px;
}

.summary li a {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 7%;
    text-underline-offset: 12%; /* 1.84px */
    color: var(--color-black);
    font-weight: 400;
    line-height: 28px;
}

/* Bouton burger : masqué dans le hero */
.summary-toggle {
    display: none;
}

/* Sommaire flottant fermé */
.summary.is-floating {
    position: fixed;
    top: 20%;
    right: 3%;
    transform: translateY(-50%);
    z-index: 1000;

    width: auto;
    max-width: calc(100vw - 24px);
    padding: 0;

    background: transparent;
    border-radius: 12px 0 0 12px;
    box-shadow: none;
}

/* Bouton burger */
.summary.is-floating .summary-toggle {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px;
    border: none;
    border-radius: 12px;

    background: #E7E1FA;
    color: var(--color-violet-1);

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
}

/* Icône burger */
.summary-toggle .burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.summary-toggle .burger-icon span {
    display: block;
    width: 32px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
}

/* Sommaire replié : masquer le titre et les liens */
.summary.is-floating:not(.is-open) h2,
.summary.is-floating:not(.is-open) ul {
    display: none;
}

/* Sommaire déplié */
.summary.is-floating.is-open {
    width: 300px;
    padding: 16px 16px 20px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 20%);
}

/* Bouton en haut du panneau ouvert */
.summary.is-floating.is-open .summary-toggle {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 16px;
}

/* Conserver l'espace initial du sommaire */
.summary-placeholder {
    display: none;
    pointer-events: none;
}

.summary-placeholder.is-active {
    display: block;
}

    /* Responsive */
    @media (max-width: 1250px) {
        .hero {
            padding: 0 4.3% 48px 4.3%;
        }
    }

    @media (max-width: 1030px) {
        .hero {
            padding: 8px 4.3% 48px 4.3%;
        }

        h1 {
            font-size: var(--typo-h1-mid);
        }

        .videoContainer {
            width: 62%;
        }

        .summary {
            margin-top: 32px;
        }
    }

    @media (max-width: 935px) {
        .hero {
            padding: 12px 4.3% 48px 4.3%;
        }

        h1 {
            width: 100%;
        }

        .divHero {
            flex-direction: column;
            gap: 32px;
        }

        .videoContainer {
            width: 72%;
            margin: auto;
        }

        .summary {
            width: 80%;
            text-align: center;
            margin: auto;
        }

        .summary h2 {
            width: initial;
        }

        .summary.is-floating.is-open {
            text-align: left;
        }
    }

    @media (max-width: 800px) {
        .videoContainer {
            width: 90%;
        }
    }

    @media (max-width: 600px) {
        .hero {
            padding: 20px 4.3% 48px 4.3%;
        }

        h1 {
            font-size: var(--typo-h1-tel);
            margin-bottom: 32px;
        }

        .videoContainer {
            width: 100%;
        }
    }
    
/* --- End Hero --- */


/* --- Contexte --- */
.contexte {
    display: flex;
    padding: 52px 0 24px 0;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;

    scroll-margin-top: 80px;
}

.contexte p {
    width: 56%;
    margin: 0;
}

.contexte .textTransition {
    color: var(--color-violet-1);
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    width: 64%;
}

    /* Responsive */
    @media (max-width: 1300px) {
        .contexte p {
            width: 68%;
        }

        .contexte .textTransition {
            width: 72%;
        }
    }

    @media (max-width: 1030px) {
        .contexte {
            padding: 52px 4.3% 24px 4.3%;
        }

        .contexte p {
            width: 80%;
        }

        .contexte .textTransition {
            width: 96%;
        }
    }

    @media (max-width: 935px) {
        .contexte p {
            width: 96%;
        }

        .contexte .textTransition {
            width: 96%;
        }
    }

/* --- End Contexte --- */

.titleContainer {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.titleContainer img {
    height: 40px;
}

h2 {
    font-size: var(--typo-h2);
    color: var(--color-violet-1);
    margin: 0;
}

.CTA_secondaire {
    padding: 6px 20px;
    border-radius: 42px;
    color: var(--color-white);
    text-decoration: none;
}

.CTA_orange {
    background-color: var(--color-orange);
}

.CTA_violet {
    background-color: var(--color-violet-1);
}

/* --- Retrouver lien --- */
.refindLink {
    display: flex;
    padding: 24px 8% 24px 8%;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 24px;

    scroll-margin-top: 20px;
}

.refindLink .textContainer {
    width: 56%;
}

.refindLink .textContainer::before {
    content: "";
    position: absolute;

    background-image: url("./assets/fils/fil1.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    width: 40vw;
    height: 115px;
    left: 12%;
    top: 0;
}

    /* Responsive */
    @media (max-width: 935px) {
        .refindLink {
            padding: 100px 8% 24px 8%;
            flex-direction: column-reverse;
        }

        .refindLink .textContainer {
            width: 85%;
        }

        .refindLink .textContainer::before {
            background-image: url("./assets/fils/fil1_tel.svg");
            width: 40vw;
            height: 90px;
            top: -4px;
            left: 30%;
        }
    }

    @media (max-width: 700px) {
        .refindLink .textContainer {
            width: 100%;
        }
    }

    @media (max-width: 550px) {
        .refindLink .illu {
            width: 90%;
        }

        .refindLink .textContainer::before {
            width: 52vw;
            left: 23%;
        }
    }
/* --- End Retrouver lien --- */

/* --- Réapprendre se déplacer --- */
.reWalk {
    display: flex;
    padding: 12px 8%;
    justify-content: space-between;
    align-items: center;
    gap: 32px;

    scroll-margin-top: 100px;
}

.reWalk .textContainer {
    width: 60%;
    position: relative;
}

.reWalk .textContainer::before {
    content: "";
    position: absolute;

    background-image: url("./assets/fils/fil2.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    width: 40vw;
    height: 125px;
    left: -30%;
    top: -144px;
}

.donContainer {
    background-color: var(--color-orange-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 24px 32px 20px 28px;
    width: 95%;
    margin: auto;
    margin-top: 24px;
    gap: 20px;
}

.donContainer p {
    margin: 0;
    font-family: "Dosis", sans-serif;
    font-size: 1.125rem;
    text-align: center;
}

.textDon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.donContainer p.equivalence {
    color: var(--color-violet-1);
    font-size: 1.2rem;
    font-weight: 700;
}

    /* Responsive */
    @media (max-width: 1115px) {
        .donContainer {
            padding: 20px 28px 24px 28px;
            flex-direction: column;
        }
    }

    @media (max-width: 935px) {
        .reWalk {
            flex-direction: column;
            gap: 24px;
            position: relative;
            padding-top: 80px;
        }

        .reWalk::before {
            content: "";
            position: absolute;

            background-image: url("./assets/fils/fil2_tel.svg");
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;

            width: 40vw;
            height: 90px;
            top: -20px;
            left: 30%;
        }

        .reWalk .textContainer {
            width: 85%;
        }

        .donContainer {
            margin-top: 32px;
        }

        .reWalk .textContainer::before {
            content: none;
        }
    }

    @media (max-width: 700px) {
        .reWalk .textContainer {
            width: 100%;
        }
    }

    @media (max-width: 470px) {
        .reWalk .illu {
            width: 90%;
        }
    }
/* --- End Réapprendre se déplacer --- */

/* --- Réapprendre gestes quotidien --- */
.reEverydayLife {
    display: flex;
    padding: 100px 8% 52px 8%;
    justify-content: space-between;
    align-items: center;
    gap: 32px;

    scroll-margin-top: 40px;
}

.reEverydayLife .textContainer {
    width: 56%;
    position: relative;
}

.reEverydayLife .textContainer::before {
    content: "";
    position: absolute;

    background-image: url("./assets/fils/fil3.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    width: 38vw;
    height: 115px;
    left: 18%;
    top: -120px;
}

.petitionContainer {
    background-color: var(--color-orange-bg);
    border-radius: 20px;
    padding: 24px 32px 28px 28px;
    width: 95%;
    margin: auto;
    margin-top: 24px;
    text-align: center;
}

.petitionContainer p {
    font-family: "Dosis", sans-serif;
    font-size: 1.125rem;
    margin: 0;
    margin-bottom: 20px;
}

.petitionContainer p.titlePetition {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-violet-1);
    margin-bottom: 8px;
}

    /* Responsive */
    @media (max-width: 1100px) {
        .reEverydayLife .illu {
            width: 44%;
        }
    }

    @media (max-width: 935px) {
        .reEverydayLife {
            flex-direction: column-reverse;
            gap: 24px;
            position: relative;
        }

        .reEverydayLife::before {
            content: "";
            position: absolute;

            background-image: url("./assets/fils/fil3_tel.svg");
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;

            width: 40vw;
            height: 90px;
            top: 0px;
            left: 30%;
        }

        .reEverydayLife .textContainer {
            width: 85%;
        }

        .reEverydayLife .textContainer::before {
            content: none;
        }

        .reEverydayLife .illu {
            width: auto;
        }

        .petitionContainer {
            margin-top: 32px;
        }

    }

    @media (max-width: 700px) {
        .reEverydayLife .textContainer {
            width: 100%;
        }
    }

    @media (max-width: 550px) {
        .reEverydayLife .illu {
            width: 90%;
        }

        .reEverydayLife::before {
            width: 55vw;
            height: 90px;
            top: 0;
            left: 23%;
        }
    }
/* --- End Réapprendre gestes quotidien --- */


/* --- Retrouver avenir pro --- */
.reWork {
    display: flex;
    padding: 40px 8%;
    justify-content: space-between;
    align-items: center;
    gap: 32px;

    scroll-margin-top: 40px;
}

.reWork .textContainer {
    width: 60%;
    position: relative;
}

.reWork .textContainer::before {
    content: "";
    position: absolute;

    background-image: url("./assets/fils/fil4.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    width: 35vw;
    height: 130px;
    left: -10%;
    top: -140px;
}

    /* Responsive */
    @media (max-width: 935px) {
        .reWork {
            flex-direction: column;
            gap: 24px;
            position: relative;
            padding-top: 80px;
        }

        .reWork::before {
            content: "";
            position: absolute;

            background-image: url("./assets/fils/fil4_tel.svg");
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;

            width: 40vw;
            height: 100px;
            top: -32px;
            left: 30%;
        }

        .reWork .textContainer {
            width: 85%;
        }

        .reWork .textContainer::before {
            content: none;
        }
    }

    @media (max-width: 700px) {
        .reWork .textContainer {
            width: 100%;
        }
    }

    @media (max-width: 550px) {
        .reWork .illu {
            width: 90%;
        }

        .reWork::before {
            width: 58vw;
            height: 100px;
            top: -32px;
            left: 21%;
        }
    }
/* --- End Retrouver avenir pro --- */

/* --- Action --- */
.action {
    display: flex;
    padding: 52px 8% 64px 8%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.action::before {
    content: "";
    position: absolute;

    background-image: url("./assets/fils/fil5.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    width: 35vw;
    height: 118px;
    top: -100px;
}

.action h2 {
    font-family: "Dosis", sans-serif;
    font-size: 1.75rem;
    margin-top: 28px;
    margin-bottom: 20px;
}

.action p {
    width: 50%;
    margin: 0;
}

.actionContainer {
    display: flex;
    align-items: center;
    gap: 52px;
}

.action .CTA_secondaire {
    padding: 8px 28px;
}

    /* Responsive */
    @media (max-width: 1200px) {
        .action::before {
            top: -80px;
        }
    }

    @media (max-width: 1030px) {
        .action::before {
            height: 96px;
            top: -60px;
        }

        .action p {
            width: 64%;
        }
    }

    @media (max-width: 935px) {
        .action::before {
            height: 80px;
            top: -40px;
        }

        .action p {
            width: 80%;
        }
    }

    @media (max-width: 700px) {
        .action p {
            width: 100%;
        }
    }

    @media (max-width: 635px) {
        .actionContainer {
            gap: 32px;
        }

        .action .CTA_secondaire {
            padding: 8px 24px;
        }
    }

    @media (max-width: 530px) {
        .action {
            padding: 60px 8% 64px 8%;
        }

        .action h2 {
            margin-bottom: 44px;
        }

        .actionContainer {
            flex-direction: column;
            gap: 20px;
        }

        .action img {
            width: 80px;
        }

        .action::before {
            height: 80px;
            top: -40px;
            width: 40vw;
        }
    }
/* --- End Action --- */