/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --purple: #8B4A78;
    --purple-light: #A96891;
    --purple-dark: #643255;

    --cream: #F3EDF2;
    --cream-light: #FBF8FA;

    --pink: #D77A9F;
    --pink-light: #E5A0BA;

    --text: #332631;
    --white: #FFFFFF;

    --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
	font-size: 112.5%;
}
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;

    background: var(--cream-light);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 620px;

    /*background:
        linear-gradient(
            to bottom,
            rgba(16, 46, 37, 0.10),
            rgba(16, 46, 37, 0.85)
        ),
        var(--purple);

    
        Plus tard :
*/
        background:
            linear-gradient(
                to bottom,
                rgba(16, 46, 37, 0.10),
                rgba(16, 46, 37, 0.85)
            ),
            url("images/landing.webp");
    

    background-position: center;
    background-size: cover;

    display: flex;
    align-items: flex-end;
}

.hero-content {
    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding-bottom: 70px;

    color: white;
}

.hero-date {
    display: inline-block;

    margin-bottom: 12px;
    padding: 7px 14px;

    background: var(--pink);

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;

    margin: 0;

    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.9;

    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    margin-top: 22px;

    font-size: 1.15rem;
    font-weight: 600;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;

    background: var(--white);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);
}

.stat {
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    padding: 20px;

    border-right: 1px solid #e7e2d9;
}

.stat:last-child {
    border-right: 0;
}

.stat-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    color: var(--pink);
}

.stat-label {
    display: block;

    color: #777;

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    display: block;

    margin-top: 2px;

    color: var(--purple);

    font-size: 1.35rem;
    font-weight: 800;
}

.stat-value a:hover{
    opacity: 0.75;
 }
/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding: 90px 0;
}

.section-header {
    max-width: 760px;

    margin-bottom: 45px;
}

.eyebrow {
    margin-bottom: 8px;

    color: var(--pink);

    font-size: 0.8rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.section h2 {
    margin: 0;

    color: var(--purple);

    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1;

    letter-spacing: -0.035em;
}

.section-intro {
    margin-top: 20px;

    color: #59615d;

    font-size: 1.05rem;
}


/* =========================================================
   PRESENTATION
   ========================================================= */

.presentation {
    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 70px;

    align-items: center;
}

.presentation-text p {
    margin-top: 20px;
}

.presentation-highlight {
    padding: 35px;

    background: var(--purple);

    color: white;
}

.presentation-highlight strong {
    display: block;

    margin-bottom: 10px;

    color: var(--pink-light);

    font-size: 2rem;
}

.presentation-highlight p {
    margin-top: 0;
}


/* =========================================================
   BUTTON
   ========================================================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 18px;
    padding: 13px 22px;

    background: var(--pink);

    color: white;

    font-size: 0.9rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.06em;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.button span {
    font-size: 1.2rem;

    transition:
        transform 0.2s ease;
}

.button:hover {
    background: var(--pink-light);

    transform: translateY(-2px);
}

.button:hover span {
    transform: translateX(4px);
}

/* =========================================================
   Clique me
   ========================================================= */

.clickMe{
	    font-size: 1.2rem;

		transition:
			transform 0.2s ease;	
			
		color: var(--pink);
}
.clickMe:hover{
    opacity: 0.75;
}

/* =========================================================
   CAROUSEL
   ========================================================= */

/*
   Les radio buttons contrôlent la position du carousel.
   Aucun JavaScript n'est nécessaire.
*/

.carousel {
    position: relative;
}


/* Cache les boutons radio */

.carousel > input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


/* Fenêtre */

.carousel-window {
    overflow: hidden;

    width: 100%;
}


/* Bande contenant les images */

.carousel-track {
    display: flex;

    width: 300%;

    transition:
        transform 0.5s ease;
}


/* Image */

.carousel-slide {
    width: calc(100% / 3);

    flex-shrink: 0;

    aspect-ratio: 16 / 8;

    overflow: hidden;

    background: var(--purple);
}

.carousel-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ---------------------------------------------------------
   Position des slides
   --------------------------------------------------------- */

#slide-1:checked
~ .carousel-window
.carousel-track {
    transform: translateX(0);
}

#slide-2:checked
~ .carousel-window
.carousel-track {
    transform: translateX(-33.333333%);
}

#slide-3:checked
~ .carousel-window
.carousel-track {
    transform: translateX(-66.666666%);
}


/* =========================================================
   CAROUSEL NAVIGATION
   ========================================================= */

.carousel-navigation {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 9px;

    margin-top: 20px;
}

.carousel-navigation label {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.carousel-navigation label span {
    display: block;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #c7c1b7;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}


/* Point actif */

#slide-1:checked
~ .carousel-navigation
label[for="slide-1"]
span,

#slide-2:checked
~ .carousel-navigation
label[for="slide-2"]
span,

#slide-3:checked
~ .carousel-navigation
label[for="slide-3"]
span {
    width: 24px;

    border-radius: 5px;

    background: var(--pink);
}


/* =========================================================
   ACCORDIONS
   ========================================================= */

.accordion {
    border-top: 1px solid #cfc9bd;
}

.accordion details {
    border-bottom: 1px solid #cfc9bd;
}

.accordion summary {
    position: relative;

    padding: 28px 55px 28px 0;

    color: var(--purple);

    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 800;

    cursor: pointer;

    list-style: none;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "+";

    position: absolute;

    right: 5px;
    top: 50%;

    transform:
        translateY(-50%);

    color: var(--pink);

    font-size: 2rem;
    font-weight: 400;

    transition:
        transform 0.25s ease;
}

.accordion details[open]
summary::after {
    transform:
        translateY(-50%)
        rotate(45deg);
}

.accordion-content {
    max-width: 1100px;

    padding: 0 0 35px;

    color: #59615d;
}

.accordion-content h3 {
    color: var(--purple);
}

.accordion-content ul {
    padding-left: 20px;
}

/* =========================================================
   GOOGLE   ========================================================= */

.google-map {
    display: block;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 600 / 450;
    height: auto;
    border: 0;
}

/* =========================================================
   ROUTE
   ========================================================= */

.route {
    display: grid;

    gap: 25px;
}

.route-box {
    min-width: 0;

    padding: 30px;

    background: var(--white);
    border: 1px solid #e3ded5;

    color: var(--text);

    text-align: left;
}

.route-box strong {
    display: block;

    margin-bottom: 15px;

    color: var(--purple);

    font-size: 1.5rem;
}

.route-box p {
    margin: 0 0 20px;

    color: #59615d;
}

.route-image {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   WARNING
   ========================================================= */

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    margin: 25px 0;
    padding: 18px 20px;

    background: #f3e6ef;
    border-left: 5px solid var(--purple);

    border-radius: 8px;

    color: var(--text);
}

.warning-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: var(--purple);
}

.warning-box p {
    margin: 0;
    line-height: 1.6;
}

.warning-box strong {
    color: var(--purple-dark);
}

/* =========================================================
   Taiso level
   ========================================================= */

.level-icon {
    width: 45px;
    height: 45px;
    color: var(--purple);
	vertical-align: middle;
}

.level-marge  {
	display: inline-block;
	margin-left: 3rem;
}

/* =========================================================
   PARTNERS
   ========================================================= */

.partners {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.partner {
    min-height: 120px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: white;

    border: 1px solid #e3ded5;

    color: #777;

    text-align: center;
    font-weight: 700;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 55px 20px;

    background: var(--purple-dark);

    color: white;

    text-align: center;
}

footer strong {
    color: var(--pink-light);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px;
    
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 30px;
}

/* Gauche */
.footer-event {
    text-align: left;
    line-height: 1.6;
}

/* Centre */
.footer-location {
    text-align: center;
}

.footer-location a {
    color: inherit;
    text-decoration: none;
}

.footer-location a:hover {
    opacity: 0.75;
}

/* Droite */
.footer-social {
    text-align: right;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    color: inherit;
    text-decoration: none;
}

.footer-social a:hover {
    opacity: 0.75;
}

.footer-social svg {
    width: 22px;
    height: 22px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
	html {
	font-size: 100%;
	}


    /* ---------------------------------------------------------
       HERO
       --------------------------------------------------------- */

    .hero {
        min-height: 480px;
    }

    .hero-content {
        width: calc(100% - 30px);
        padding-bottom: 45px;
    }


    .hero h1 {
        /*
         * On réduit volontairement la taille sur mobile.
         * Le titre doit toujours rester entièrement visible.
         */
        font-size: clamp(2.4rem, 12vw, 4rem);

        /*
         * Évite qu'un mot très long puisse dépasser
         * horizontalement.
         */
        overflow-wrap: anywhere;

        letter-spacing: -0.045em;
    }

    /* ---------------------------------------------------------
       STATS
       --------------------------------------------------------- */

    .stats {
        width: 100%;

        margin-top: 0;

        grid-template-columns:
            repeat(2, 1fr);

        box-shadow: none;
    }

    .stat {
        min-height: 100px;

        flex-direction: column;

        gap: 5px;

        padding: 15px 5px;

        text-align: center;

        border-right: 1px solid #e7e2d9;
        border-bottom: 1px solid #e7e2d9;
    }

    /* colonne de droite : pas de bordure droite */
    .stat:nth-child(2n) {
        border-right: 0;
    }

    /* dernière ligne (les 2 derniers éléments) : pas de bordure basse */
    .stat:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }


    /* ---------------------------------------------------------
       SECTIONS
       --------------------------------------------------------- */

    .section {
        width: calc(100% - 30px);

        padding: 65px 0;
    }


    /* ---------------------------------------------------------
       PRESENTATION
       --------------------------------------------------------- */

    .presentation {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* ---------------------------------------------------------
       CAROUSEL
       --------------------------------------------------------- */

    .carousel-slide {
        aspect-ratio: 4 / 3;
    }


    /*
       Sur mobile on garde une image entière visible.
       La navigation par points reste disponible.
    */

    .carousel-navigation {
        margin-top: 14px;
    }


    /* ---------------------------------------------------------
       ROUTE
       --------------------------------------------------------- */

    .route {
        grid-template-columns: 1fr;
    }


    /* ---------------------------------------------------------
       Waring
       --------------------------------------------------------- */

    .warning-box {
        gap: 12px;
        padding: 15px;
    }

    .warning-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

 
 /* ---------------------------------------------------------
       PARTNERS
       --------------------------------------------------------- */

    .partners {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px;
    }

    .footer-event,
    .footer-location,
    .footer-social {
        text-align: center;
    }

    .footer-social a {
        justify-content: center;
    }
}


/* ---------------------------------------------------------
   STATS - très petits écrans (1 colonne)
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid #e7e2d9;
    }
    
	/* dernière ligne (les 2 derniers éléments) : pas de bordure basse */
	.stat:nth-last-child(-n+2) {
        border-bottom: 1px solid #e7e2d9;
    }

    .stat:last-child {
        border-bottom: 0;
    }

}