* {
    box-sizing: border-box;
    margin: 0;
    font-family: "Inria Sans", sans-serif;
    color: #fff;
}

body {
    padding-top: 70px;
    background: linear-gradient(145deg, #110930 0%, #2F2068 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    background-color: #08031b;
    border-bottom: 1px solid #2F2068;
    z-index: 1000;
}

.navbar img {
    height: 50px;
}

.navigation {
    list-style: none;
    display: flex;
    gap: 40px;
    padding-left: 0; 
}

.navigation a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navigation a:hover {
    color: #a1acff;
    text-decoration: underline;
}

.menu-burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* SECTION ACCUEIL */
.accueil {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 5%;
    gap: 40px;
}

.left {
    min-width: 300px;
}

.accueil h1 {
    font-size: clamp(2rem, 5.5vw, 5rem);
    margin-bottom: 20px;
}

.accueil h1 .title {
    display: block;
    white-space: nowrap;
    font-family: "Comfortaa", sans-serif;
}

.accueil p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 600px;
}

.header-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #a1acff;
    color: #000;
    border: 2px solid #a1acff;
}

.btn-secondary {
    color: #a1acff;
    border: 2px solid #a1acff;
}

.btn-primary:hover {
    background-color: #5f70f4;
    border-color: #5f70f4;
    color: #fff;
    box-shadow: 0 5px 20px rgba(95, 112, 244, 0.4);
}

.btn-secondary:hover {
    background-color: #a1acff;
    color: #000;
    box-shadow: 0 5px 20px rgba(161, 172, 255, 0.2);
}

.right img {
    max-width: clamp(350px, 40vw, 750px);
    filter: drop-shadow(0 0 15px rgba(161, 172, 255, 0.5));
}

/* SECTION CONTEXTE */
.contexte {
    background-color: #110930; 
    border-top: 1px solid #2F2068;
    display: flex;
    align-items: center;
    padding: 180px 80px;
    gap: 100px;
}

.contexte .left {
    max-width: 950px;
}

.contexte h2 {
    text-align: left;
    padding: 0;
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    color: #a1acff;
}

.contexte p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: #fff;
}

.contexte .right {
    margin: auto;
}

.contexte img {
    max-width: clamp(200px, 30vw, 400px);
    height: auto;
    filter: drop-shadow(0 0 10px rgba(161, 172, 255, 0.2)); 
}

/* SECTION CRISE */
.crise {
    border-top: 1px solid #110930; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 100px 80px;
}

.crise .left {
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crise .right {
    max-width: 900px;
    padding-left: 70px;
}

.crise h2 {
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    color: #fff; 
}

.crise p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: #fff;
}

/* SECTION METHODE */
.methode {
    background-color: #110930;
    padding: 100px 80px;
    text-align: left;
}

.methode h2 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    margin-bottom: 10px;
    color: #a1acff;
}

.methode > p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    max-width: 900px;
    line-height: 1.5;
    color: #fff;
}

.card {
    display: grid;
    gap: 30px;
    padding: 20px 0;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: 
        "card1 card2 card3"
        "mini-jeu mini-jeu mini-jeu";
}

.card1, .card2, .card3 {
    background-color: #2F2068;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    height: 100%;
}

.card1 { 
    grid-area: card1; 
}

.card2 { 
    grid-area: card2; 
}

.card3 { 
    grid-area: card3; 
}

.card h3 {
    font-family: "Comfortaa", sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    color: #fff;
    margin-bottom: 15px;
    margin-bottom: 25px;
}

.card p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: #fff;
}

.mini-jeu {
    grid-area: mini-jeu;
    background-color: #2F2068; 
    border-radius: 12px;
    padding: 30px;
    margin-top: 10px;
    text-align: center;
}

.mini-jeu p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-family: "Inria Sans", sans-serif;
}

.mini-jeu span {
    position: relative;
    cursor: pointer;
    font-weight: bold;
    color: #eb2ffc;
}

.mini-jeu span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1.2em;
    background-color: #fff;
    border-radius: 3px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    opacity: 1;
    z-index: 2;
}

/* Classe JS pour révéler le mot */
.mini-jeu span.afficher::before {
    opacity: 0;
    pointer-events: none;
}

/* SECTION PARCOURS */
.parcours {
    padding-top: 100px;
    padding-bottom: 60px;
    padding-inline: 80px;
    text-align: center;
}

.parcours h2 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    padding-bottom: 20px;
}

.parcours > p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    max-width: 900px;
    margin: auto;
    line-height: 1.5;
}

.event h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin-bottom: 25px;
    color: #a1acff;
}

.event p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
}

.frise {
    position: relative;
    padding: 20px 0;
    margin: 40px auto;
}

.ligne {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 10px;
    background: #a1acff;
}

.event {
    position: relative;
    display: flex;
    width: 50%;
    padding: 50px 20px;
    box-sizing: border-box;
    opacity: 0; 
    transform: translateY(50px); 
    transition: all 0.6s;
}

.event.visible {
    opacity: 1; 
    transform: translateY(0); 
}

.event::before {
    content: "";
    position: absolute;
    top: 25%;
    width: 25px;
    height: 25px;
    background: #fff;
    border: 3px solid #110930;
    border-radius: 50%;
    transform: translateY(-50%);
}

.event:nth-child(odd)::before {
    right: -18px; /* Positionnement du cercle à droite */
}

.event:nth-child(even) {
    left: 50%;
}

.event:nth-child(even)::before {
    left: -13px; /* Positionnement du cercle à gauche */
}

.contenu-event {
    background-color: #110930;
    padding: 30px;
    border-radius: 8px;
    margin: 0 30px;
    text-align: left;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* SECTION ENGAGEMENT */
.engagement {
    padding-bottom: 90px;
    padding-inline: 80px; 
    text-align: center;
}

.engagement h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: 20px;
}

.engagement p {
    max-width: 1000px; 
    margin: auto; 
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.5;
}

/* SECTION FOOTER */
.footer {
    background-color: #08031b; 
    border-top: 1px solid #2F2068;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    padding: 30px 80px;
    font-size: 0.9rem;
}

.footer .left img {
    height: 80px;
}

.footer .right a {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    display: block; 
    text-decoration: none;
    transition: color 0.3s;
    text-align: right;
    padding: 8px 0;
}

.footer .right a:hover {
    color: #a1acff;
    text-decoration: underline;
}

/* ANIMATION POSITION */
.contexte, .crise {
    scroll-margin-top: 160px; 
}

.methode {
    scroll-margin-top: 105px; 
}

.parcours {
    scroll-margin-top: 40px; 
}

.engagement {
    scroll-margin-top: 50px; 
}



.retour-container {
    padding-left: 20px;
    max-width: 1400px;
    margin: auto;
    padding-inline: 40px;
}

.retour {
    text-decoration: none;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #2F2068;
    transition: all 0.2s;
}

.retour i {
    margin-right: 10px;
}

.retour:hover {
    background-color: #5f70f4;
}

.content {
    max-width: 1000px;
    margin-top: 60px;
    margin-bottom: 60px;
    margin-inline: auto;
    padding-inline: 40px;
}

.content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 3px solid #a1acff;
}

.content h2 {
    font-family: "Comfortaa", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #a1acff;
    margin-top: 40px;
    margin-bottom: 15px;
}

.content h3 {
    font-family: "Comfortaa", sans-serif;
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content p,
.content a,
.content li {
    font-family: "Inria Sans", sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.5;
    margin-bottom: 8px;
}

.content a {
    color: #a1acff;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content ul {
    padding-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .accueil {
        flex-direction: column; 
        text-align: center;
        padding-inline: 50px;
        min-height: auto;
    }

    .accueil h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .accueil p {
        margin-inline: 50px;
    }

    .header-buttons {
        justify-content: center;
    }
    
    .right img {
        max-width: clamp(300px, 70vw, 600px); 
    }

    .contexte img {
        max-width: clamp(200px, 30vw, 400px);
    }


    .methode {
        padding: 80px 40px; 
    }
    
    .card {
        padding-inline: 10px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "card1 card2"
            "card3 ."
            "mini-jeu mini-jeu"; 
    }
    
    .card3 {
        grid-column: 1 / -1; 
    }

    .mini-jeu {
        grid-column: 1 / -1; 
    }   
}

@media (max-width: 1000px) {
    .contexte {
        flex-direction: column; 
        padding: 80px 20px; 
        gap: 70px;
    }
    
    .contexte h2 {
        padding-inline: 10px;
        text-align: center;
    }

    .contexte p {
        font-size: 1.1rem;
        max-width: 700px;
        padding-inline: 10px;
    }

    .contexte .right {
        max-width: 80%; 
        margin: 0;
    }

    .contexte img {
        max-width: clamp(200px, 70vw, 400px); 
    }

    .crise {
        flex-direction: column; 
        padding: 80px 30px; 
        gap: 40px; 
    }
    
    .crise .left {
        max-width: 400px;
        order: 1;
    }

    .crise .right {
        padding-left: 0;
    }

    .crise h2 {
        text-align: center; 
    }
    
    .crise p {
        text-align: left;
        margin: auto;
    }


    .parcours {
        padding-top: 50px;
        padding-bottom: 0px;
        padding-inline: 40px;
    }
    
    .frise {
        padding-left: 20px;
    }

    .ligne {
        left: 0px;
    }

    .event,
    .event:nth-child(even) {
        width: 100%;
        padding: 20px 0;
        left: 0;
    }

    .event:nth-child(odd)::before {
        left: -33px;
    }

    .event:nth-child(even)::before {
        left: -33px;
    }

    .event::before {
        top: 20%;
    }
}

@media (max-width: 768px) {
    .retour-container {
        padding-left: 20px; 
    }
    
    .retour {
        padding: 8px 12px;
    }

    .content {
        margin-top: 40px;
        margin-bottom: 50px;
        padding-inline: 20px; 
    }
    
    .content h1 {
        font-size: clamp(2rem, 8vw, 3rem); 
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .content h2 {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
    }

    .content h3 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .content p,
    .content a,
    .content li {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 6px;
    }
}

@media (max-width: 700px) {
    .navbar {
        padding: 10px 20px;
    }

    .navigation {
        position: fixed;
        inset: 0;
        background: rgba(17, 9, 48, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .navigation a {
        font-size: 1.5rem;
    }

    .navbar.open .navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-burger {
        display: block;
        z-index: 1000;
    }

    .menu-burger .fa-xmark { 
        display: none; 
    }

    .navbar.open .menu-burger .fa-bars { 
        display: none; 
    }

    .navbar.open .menu-burger .fa-xmark { 
        display: inline-block; 
    }

    .accueil {
        padding: 40px 20px;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        padding: 8px 18px;
    }


    .methode {
        padding: 50px 20px;
    }
    
    .methode h2 {
        text-align: center;
    }

    .methode > p {
        padding-inline: 10px;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .card {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "card1"
            "card2"
            "card3"
            "mini-jeu";
        gap: 20px;
    }
    
    .mini-jeu {
        padding-bottom: 30px;
        padding-inline: 20px;
    }

    .engagement {
        padding: 50px 30px;
    }
    
    .engagement h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .contexte, .crise {
        scroll-margin-top: 50px; 
    }

    .methode {
        scroll-margin-top: 60px; 
    }

    .parcours {
        scroll-margin-top: 60px; 
    }

    .engagement {
        scroll-margin-top: 50px; 
    }
}

@media (max-width: 650px) {
    .footer {
        padding: 10px 30px;
        flex-direction: column;
        text-align: center;
    }
    
    .footer .right a {
        text-align: center; 
        padding: 5px 0; /* Réduit le padding vertical */
    }
}