@import url(reset.css);
@import url(global_components.css);

html {
    scroll-behavior: smooth;
}

* {
    text-decoration: none;
}

body {
    font-family: "Belanosima", sans-serif;
    background-color: #f8f4ea;
}

/* ============================================================
   SECTION INTRO — le grand logo avec le personnage
   ============================================================ */
#section-intro {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 5rem;
    min-height: 100vh;
    box-sizing: border-box;
    scroll-margin-top: 75px;
}

#intro {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #F8F4EA;
}

/* Logo centré en haut */
#logo {
    width: 45%;
    display: block;
    margin: 0 auto;
    padding-top: 5vh;
}

/* Personnage qui se balade */
#perso {
    position: absolute;
    top: 6%;
    right: 25%;
    animation: balader 6s ease-in-out infinite alternate;
}

@keyframes balader {
    0% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }

    100% {
        transform: translateY(-5px) rotate(3deg);
    }
}

/* Fourchette qui flotte */
#fourchette {
    position: absolute;
    top: 10%;
    left: 15%;
    animation: flotter 3s ease-in-out infinite alternate;
}

@keyframes flotter {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    100% {
        transform: translateY(-12px) rotate(5deg);
    }
}

/* Cookies qui flottent */
#cookies {
    position: absolute;
    top: 41%;
    right: 7%;
    width: 4%;
    animation: flotter 2.5s ease-in-out infinite alternate;
}

/* Croix qui tourne */
#croix {
    position: absolute;
    bottom: 20%;
    left: 4%;
    width: 4%;
    z-index: 2;
    animation: tourner 4s ease-in-out infinite alternate;
}

@keyframes tourner {
    0% {
        transform: rotate(-10deg) scale(1);
    }

    100% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* Lignes décoratives */
#ligne1 {
    position: absolute;
    top: 15%;
    right: 0%;
    width: 8%;
}

#ligne2 {
    position: absolute;
    top: 50%;
    right: 0%;
    width: 8%;
}

#ligne3 {
    position: absolute;
    bottom: 0%;
    left: 0;
    width: 15%;
    z-index: 1;
}

#ligne4 {
    position: absolute;
    top: 15%;
    left: 0;
    width: 15%;
}

/* Nuage en bas à gauche */
#nuage {
    position: absolute;
    bottom: -.1%;
    left: 0%;
    width: 30%;
    z-index: 2;
}

/* ============================================================
   BOUTON CIRCULAIRE "JE DÉCOUVRE"
   ============================================================ */

/* Conteneur principal — positionné en bas à gauche de #intro */
.btn-decouvre {
    position: absolute;
    left: 80%;
    bottom: 8%;
    /* transform: translateX(-50%); */
    width: 150px;
    height: 150px;
    z-index: 3;
}

/* Cercle dégradé en fond — le grand cercle coloré */
.btn-decouvre::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    margin: -5px;
    background: linear-gradient(180deg, #CB55E4, #FFC84D);
}

/* Cercle blanc */
.btn-decouvre::after {
    content: "";
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    background: #FFF;
}

.texte-circulaire {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    animation: tournerBouton 8s linear infinite;
}

/* Style du texte dans le SVG */
.texte-circulaire text {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 10%;
    fill: #FFF;
}

/* Icône play au centre */
.play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-left: 9px;
    background: linear-gradient(180deg, #CB55E4, #FFC84D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 3;
}

@keyframes tournerBouton {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* .btn-decouvre:hover .texte-circulaire {
    animation-duration: 10s;
} */


/* ============================================================
   SECTION PRESENTATION — photo avec le texte
   ============================================================ */
#section-presentation {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 5rem;
    box-sizing: border-box;
    scroll-margin-top: 75px;
}

#layout-presentation {
    background-image: url("../assets/index/photo.svg");
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: -1;
}

/* Texte à gauche */
#info {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-left: 7vw;
    margin-top: 17vh;
}

#meta {
    display: flex;
    align-items: center;
    flex-direction: row;
}

#text-meta {
    font-size: 1rem;
    font-weight: 400;
    color: #FFF;
}

/* Titre dégradé violet → orange */
.text-gradient {
    background: linear-gradient(90deg, #CB55E4, #FFB801);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 600;
    font-size: 2.5rem;
}

.text-info {
    margin-top: 2rem;
    margin-bottom: 7rem;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: normal;
    color: #FFF;
}

/* Ellipse de réduction à droite */
#reduc {
    display: flex;
    justify-content: flex-end;
    margin-top: 5rem;
    margin-right: 6rem;
}

#ellipse {
    width: 10vw;
    min-width: 120px;
    aspect-ratio: 1 / 1;
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    z-index: 4;
}

#ellipse::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #CB55E4;
    z-index: 1;
}

.text-reduc {
    position: relative;
    font-size: clamp(.7rem, 1.1rem, 1.2rem);
    font-weight: 600;
    line-height: normal;
    margin: 0vh 2vw 2vh 2vw;
    text-align: center;
    text-transform: uppercase;
    z-index: 5;
}

/* Personnage dans l'ellipse */
#img-reduc1 {
    position: absolute;
    bottom: 75%;
    right: 5%;
    /* bottom: 85%;
    right: -5%; */
    z-index: -1;
}

#img-reduc2 {
    position: absolute;
    bottom: 82%;
    right: 17%;
    /* bottom: 82%;
    right: 20%; */
    z-index: 6;
}

/* Petits œufs décoratifs */
#oeuf1 {
    position: absolute;
    bottom: 18%;
    right: 40%;
    width: 60px;
}

#oeuf2 {
    position: absolute;
    bottom: 18%;
    right: 35%;
    width: 50px;
}

#oeuf3 {
    position: absolute;
    bottom: 5%;
    left: 35%;
    width: 75px;
}



/* ============================================================
   SECTION ABOUT — 3 cartes "la magie commence"
   ============================================================ */
#star {
    display: block;
    margin: 0 auto;
}

#section-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 8vw;
    scroll-margin-top: 75px;
}

.about-title {
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.about-card {
    background: #FFF;
    border-radius: 20px;
    padding: 3rem 1.5rem;
    width: 293px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #FF9925;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: normal;
    color: #000;
}

/* ============================================================
   SECTION CHEMIN — les 4 étapes sur le chemin SVG
   ============================================================ */
#section-chemin {
    position: relative;
    background-color: #F8F4EA;
    min-height: 120vh;
    margin: 8vw 0vw;
    scroll-margin-top: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chemin-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
}

/* Éléments décoratifs du chemin */
#panneau {
    position: absolute;
    bottom: 55%;
    left: 8%;
    width: auto;
}

#pas {
    position: absolute;
    bottom: 9%;
    left: 40%;
    width: auto;
}

#echelle {
    position: absolute;
    top: 40%;
    right: 8%;
    width: auto;
}

#herbe {
    position: absolute;
    bottom: 48%;
    left: 8.5%;
    transform: rotate(-25deg);
    width: auto;
}

#herbe2 {
    position: absolute;
    bottom: 52%;
    left: 10%;
    transform: rotate(-25deg);
    width: auto;
}

/* Étape 1 */
.etape1 {
    position: absolute;
    top: 20%;
    left: 13%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#numero1 {
    width: 4vw;
}

#texte1 {
    font-size: 1rem;
    color: #000;
    text-align: center;
    margin-top: .5rem;
}

#Vector1 {
    position: absolute;
    width: 0.5%;
    top: 30%;
    left: 16%;
    z-index: 5;
}

/* Étape 2 */
.etape2 {
    position: absolute;
    bottom: 25%;
    left: 23%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#numero2 {
    width: 4vw;
}

#texte2 {
    font-size: 1rem;
    color: #000;
    text-align: center;
    max-width: 8vw;
    margin-bottom: .5rem;
}

#Vector2 {
    position: absolute;
    width: 3%;
    bottom: 37%;
    left: 27%;
}

/* Étape 3 */
.etape3 {
    position: absolute;
    top: 19%;
    right: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#numero3 {
    width: 4vw;
}

#texte3 {
    font-size: 1rem;
    color: #000;
    text-align: center;
    max-width: 8vw;
    margin-top: .5rem;
}

#Vector3 {
    position: absolute;
    width: 1.5%;
    top: 30%;
    right: 32%;
}

/* Étape 4 */
.etape4 {
    position: absolute;
    bottom: 29%;
    right: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#numero4 {
    width: 4vw;
}

#texte4 {
    font-size: 1rem;
    color: #000;
    text-align: center;
    margin-bottom: .5rem;
}

#Vector4 {
    position: absolute;
    width: 2%;
    bottom: 39%;
    right: 17%;
}

/* Animation scroll — les étapes apparaissent au scroll */
#numero1,
#texte1,
#numero2,
#texte2,
#numero3,
#texte3,
#numero4,
#texte4 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#numero1,
#texte1 {
    transition-delay: 0s;
}

#numero2,
#texte2 {
    transition-delay: 0.4s;
}

#numero3,
#texte3 {
    transition-delay: 0.8s;
}

#numero4,
#texte4 {
    transition-delay: 1.2s;
}

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

.bulle-hover {
    /* ← remplace display:none par ça */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem 1.0rem;
    font-size: .8rem;
    line-height: 1.4;
    max-width: 350px;
    width: max-content;
    text-align: center;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: #000000;
    font-weight: 400;
}

.bulle-hover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: #fff;
}

/* ← remplace display:block par opacity:1 */
.etape1:hover .bulle-hover,
.etape2:hover .bulle-hover,
.etape3:hover .bulle-hover,
.etape4:hover .bulle-hover {
    opacity: 1;
    pointer-events: auto;
}

.etape2 .bulle-hover,
.etape4 .bulle-hover {
    bottom: unset;   /* ← annule le bottom */
    top: -220px;     /* ← positionne au-dessus */
}

.etape2 .bulle-hover,
.etape4 .bulle-hover {
    bottom: unset;
    top: 120%;  /* ← en dessous au lieu d'au-dessus */
}

/* Flèche qui pointe vers le HAUT */
.etape2 .bulle-hover::after,
.etape4 .bulle-hover::after {
    top: unset;
    bottom: 100%;        /* ← triangle en haut de la bulle */
    border-top-color: transparent;    /* ← annule le triangle du bas */
    border-bottom-color: #fff;        /* ← triangle vers le haut */
}


.etoile-hover {
    position: absolute; /* ← par rapport à #section-chemin */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 6;
}

/* Apparaissent au survol */
.etape1:hover .etoile-hover,
.etape2:hover .etoile-hover,
.etape3:hover .etoile-hover,
.etape4:hover .etoile-hover {
    opacity: 1;
}

/* Étoiles etape1 */
.etape1 .etoile-a { top: 10%; left: -20%; width: 12px; }
.etape1 .etoile-b { top: -15%; left: 25%; width: 8px; }
.etape1 .etoile-c { top: 16%; right: -5%; width: 10px; }

.etape3 .etoile-a { top: 10%; left: -5%; width: 12px; }
.etape3 .etoile-b { top: -18%; left: 30%; width: 8px; }
.etape3 .etoile-c { top: 16%; right: 5%; width: 10px; }

/* Étoiles etape2 */
.etape2 .etoile-a { bottom: 5%; left: 5%; width: 12px; }
.etape2 .etoile-b { bottom: -5%; left: 70%; width: 8px; }
.etape2 .etoile-c { bottom: 25%; left: 90%; width: 10px; }

.etape4 .etoile-a { bottom: 15%; left: -45%; width: 12px; }
.etape4 .etoile-b { bottom: -10%; left: 75%; width: 8px; }
.etape4 .etoile-c {bottom: 25%; right: -40%; width: 10px;}
/* ============================================================
   SLIDER — les 5 box avec le swiper
   ============================================================ */
.vague {
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.vague1 {
    bottom: 100%;
    margin-bottom: -2px;
}

.vague2 {
    top: 100%;
    margin-top: -2px;
}

.vague-path {
    fill: #6872FF;
    transition: fill 0.5s ease-in-out;
}

.section-slider {
    position: relative;
    background-color: #6872FF;
    height: 100vh;
    scroll-margin-top: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5vw;
    margin-bottom: 5vw;
    transition: background-color 0.5s ease-in-out;
}

.slider {
    width: 100%;
    height: 650px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    margin: 0 8vw;
    min-height: 100vh;
    position: relative;
    z-index: 5;
}

.slider-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
    padding: 1em 1.5em;
    color: #FFF;
    /* background-color: #3840A9;
    font-family: "Belanosima", sans-serif;
    border-radius: 40px;
    box-shadow: 0px 10px 0px rgba(0, 0, 0, 1); */
}

.slider-title h2 {
    font-weight: 100;
}

#slider-navigation {
    width: 650px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#navigation-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    color: #FFF;
}

/* Bouton "JE PERSONNALISE" */
#slider-navigation #btn-custo-slider {
    color: #FFF;
    padding: 0.5em 1.5em;
    border: 5px #FFF solid;
    border-radius: 40px;
    background: linear-gradient(90deg, rgba(255, 184, 2, 1) 0%, rgba(203, 85, 228, 1) 100%);
    font-size: 24px;
    font-weight: 600;
}

/* Bouton flèche */
.btn-nav-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFF;
    height: 70px;
    width: 70px;
    border: none;
    border-radius: 100%;
    cursor: pointer;
}

.btn-nav-slider img {
    height: 30px;
    width: 30px;
    user-select: none;
}

.slider-content {
    display: flex;
    justify-content: center;
    width: 100%;
    height: min-content;
}

/* Fond avec les décors */
.slider-backgrounds {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    z-index: 0;
}

.bg-item {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    inset: 0;
}

/* Animation d'apparition des décors */
@keyframes anim {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bg-item img {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    animation: anim 0.8s ease-out forwards;
}

.img-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.img-slider img {
    object-fit: contain;
}

/* --- Positions des décors par thème --- */

/* THÈME PIRATE */
/* PERROQUET */
.theme-nuage #decor-1 {
    width: 17%;
    left: -2%;
    top: 10%;
}

/* pieces */
.theme-nuage #decor-2 {
    width: 10%;
    left: 10%;
    bottom: 15%;
}

/* gouvernail */
.theme-nuage #decor-3 {
    width: 15%;
    right: -1%;
    top: 15%;
}

/* ÉPÉE */
.theme-nuage #decor-4 {
    width: 12%;
    right: 8%;
    bottom: 5%;
}

/* THÈME FÉES */
/* TRAINÉE D'ÉTOILES */
.theme-fees #decor-1 {
    width: 36%;
    left: -3%;
    top: 5%;
}

/* BAGUETTE */
.theme-fees #decor-2 {
    width: 25%;
    left: 3%;
    bottom: -18%;
}

/* FÉE */
.theme-fees #decor-3 {
    width: 8%;
    right: 20%;
    top: 10%;
}

/* FLEUR */
.theme-fees #decor-4 {
    width: 20%;
    right: 5%;
    bottom: 3%;
}

/* THÈME DRAGON */
/* FEU */
.theme-dragon #decor-1 {
    width: 20%;
    left: -2%;
    top: 5%;
}

/* OEUF 1 */
.theme-dragon #decor-2 {
    width: 10%;
    left: -3%;
    bottom: 10%;
}

/* DRAGON */
.theme-dragon #decor-3 {
    width: 10%;
    left: 15%;
    bottom: 22%;
}

/* CHATEAU */
.theme-dragon #decor-4 {
    width: 18%;
    right: 0%;
    top: 25%;
}

/* OEUF 2 */
.theme-dragon #decor-5 {
    width: 7%;
    right: 15%;
    bottom: 0%;
}

/* THÈME JUNGLE */
/* LIANE 1 */
.theme-jungle #decor-1 {
    width: 35%;
    left: 5%;
    top: -10%;
}

/* LIANE 2 */
.theme-jungle #decor-2 {
    width: 30%;
    left: 12%;
    top: -5%;
}

/* PERROQUET */
.theme-jungle #decor-3 {
    width: 14%;
    left: -2%;
    bottom: 20%;
}

/* SINGE */
.theme-jungle #decor-4 {
    width: 10%;
    right: -1%;
    top: 25%;
}

/* FLEUR */
.theme-jungle #decor-5 {
    width: 15%;
    right: 8%;
    bottom: 0%;
}

/* THÈME ESPACE */
/* ÉTOILE 1 */
.theme-espace #decor-1 {
    width: 4%;
    left: 13%;
    top: 25%;
}

/* PLANÈTE 1 */
.theme-espace #decor-2 {
    width: 11%;
    left: -1%;
    bottom: 43%;
}

/* ÉTOILE FILANTE */
.theme-espace #decor-3 {
    width: 11%;
    left: 12%;
    bottom: 12%;
}

/* PLANÈTE 2 */
.theme-espace #decor-4 {
    width: 15%;
    left: 28%;
    top: 27%;
}

/* FUSÉE */
.theme-espace #decor-5 {
    width: 13%;
    right: 12%;
    top: 25%;
}

/* PLANÈTE 3 */
.theme-espace #decor-6 {
    width: 10%;
    right: -.5%;
    bottom: 25%;
}

/* ÉTOILE 2 */
.theme-espace #decor-7 {
    width: 3%;
    right: 10%;
    bottom: 15%;
}

/* ============================================================
   SECTION AVIS — cartes défilantes
   ============================================================ */
.section-avis {
    padding: 12rem 2rem 8rem 2rem;
    overflow: hidden;
}

#avis-header {
    position: relative;
    margin-bottom: 7.5rem;
    text-align: center;
}

/* Images décoratives */
#avis-deco-cookies {
    position: absolute;
    left: -3.5%;
    top: -25%;
    width: 200px;
    object-fit: contain;
    filter: blur(2px);
}

#avis-deco-creme {
    position: absolute;
    left: 2%;
    top: 90%;
    width: 110px;
    object-fit: contain;
}

#avis-deco-salade {
    position: absolute;
    right: -3.5%;
    top: -25%;
    width: 200px;
    object-fit: contain;
    filter: blur(2px);
}

#avis-deco-ile {
    position: absolute;
    right: 1%;
    top: 60%;
    width: 170px;
    object-fit: contain;
}

/* Titre et orange */
#avis-titre-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

#avis-titre-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.8rem;
}

#avis-sub {
    font-size: 1.25rem;
    font-weight: 400;
    color: #000;
    max-width: 800px;
    margin: 0 auto;
}

#avis-orange {
    position: absolute;
    width: 4%;
    top: -50%;
    right: 33%;
}

/* Défilement infini */
.avis-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.avis-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 1rem 0.5rem;
    animation: defilement 40s linear infinite;
}

.avis-track:hover {
    animation-play-state: paused;
    /* pause au survol */
}

@keyframes defilement {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cartes d'avis */
.avis-card {
    display: flex;
    flex-direction: column;
    width: calc(33vw - 3rem);
    min-width: 457px;
    min-height: 400px;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    flex-shrink: 0;
    background: #FFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.avis-nom {
    font-size: 1.5rem;
    color: #000;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.avis-etoiles {
    color: #FFC800;
    font-size: 3rem;
}

.avis-card hr {
    width: 90%;
    border: none;
    border-top: 2px solid #FFD979;
    margin-top: .5rem;
    margin-bottom: 1.5rem;
}

.avis-texte {
    font-size: 1.3rem;
    color: #000;
    font-size: 1.3rem;
    line-height: 1.7;
    flex: 1;
}