
/* ----------------- RESET ----------- */
*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Inter', sans-serif;
    background: #0f0f0f;
    color: #f5f5f5;
    line-height: 1.6;
}

h1,h2,h3{
    font-family: 'Playfair Display',serif;
    letter-spacing: 1px;
}

a{
    text-decoration: none;
    color: inherit;
}

/* ----------- les couleurs--------- */
:root{
    --gold:#d6b77a;
    --beige:#f2e8d8;
}

/* ----------- utilitaires --------- */
.center{
    text-align: center;
}

section, .center{
    padding: 80px 8%;
}

/* --------------------------------- */


/* ------------- NAVIGATION -------------------- */

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

nav .logo{
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 600;
}

nav .nav-links{
    display: flex;
    gap: 30px;
}

nav .nav-links a{
    font-size: 0.9rem;
    color: #ccc;
    transition: color 0.3s;
}

nav .nav-links a:hover{
    color: var(--gold);
}

/* ------------------------------------------------ */

/*  ------------ styling de la hero section ------ */

.hero{
    min-height: 100vh;
    background: #0f0f0f;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 100px 8% 80px;
}

.hero-content{
    max-width: 600px;
}

.hero-image{
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img{
    width: 100%;
    max-width: 500px;
    border-radius: 25px;
    object-fit: cover;
}

.hero h1{
    font-size: 3.3rem;
    margin-bottom: 20px;
}

.hero p{
    font-size:1.1rem;
    margin-bottom:35px;
    color:#ddd;
}
.btn{
    background: var(--gold);
    color: #000;
    padding:14px 36px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.3s;
}

.btn:hover{
    opacity: 0.85;
}

/* ---------------------------------------------- */

/* --------------SECTION ------------------------- */

.promise h2{
    font-size: 2.6rem;
    margin-bottom: 20px;
}


.promise p{
    max-width: 650px;
    margin: auto;
    font-size: 1.05rem;
    color:#ccc;
}

/* -------------------------------------------- */


/* --------------Features----------------------- */

.features{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap:40px;
    margin-top: 60px;
}

.feature {
    background: #141414;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.feature h3{
    color:var(--gold);
    margin-bottom: 10px;
}
/* -------------------------------------------------- */

/* ---------------- PRODUCT ------------------------ */

.product{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap:60px;
    align-items: center;
}

.product img{
    width: 120%;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product img:hover{
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------- */
/* ---------------QUIZ ------------------------------ */

.quiz{
    background: #141414;
    border-radius: 30px;
    padding: 60px;
    max-width: 700px;
    margin: auto;
}

.quiz h3{
    margin-bottom: 30px;
}

.quiz label{
    display: inline-block;
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #333;
    border-radius: 20px;
    margin: 5px;
    transition: background 0.3s, border-color 0.3s;
    font-size: 0.95rem;
}

.quiz label:hover{
    border-color: var(--gold);
}

.quiz input[type="radio"]{
    accent-color: var(--gold);
    margin-right: 6px;
}

.quiz button{
    margin-top:20px;
    background: var(--gold);
    border:none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.quiz button:hover{
    opacity: 0.85;
}

#quizResult{
    margin-top: 20px;
    color: var(--gold);
    font-weight: 500;
}
/* --------------------------------------------------- */

/* -------------- OFFER ------------------------------ */

.offer{
    background: #111111;
    text-align: center;
}

.offer h2{
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.offer p{
    color: #ccc;
    margin-bottom: 25px;
}

.offer input {
    width: 250px;
    padding: 12px;
    margin: 10px;
    border-radius: 25px;
    border: none;
}

.offer button{
    background: var(--gold);
    border:none;
    border-radius: 25px;
    margin-top: 20px;
    padding: 14px 36px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
}

/* ------------------------------------------------ */


/* --------------- WHATSAPP FLOAT ----------------*/
.whatsapp-float{
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    padding: 14px 22px;
    border-radius: 30px;
    font-weight: 500;
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover{
    transform: scale(1.05);
}

/* ---------------------------------------------------- */


/*  ------------- Footer------------------------------- */

footer{
    padding: 40px;
    text-align: center;
    font-size: 0.8rem;
    background: #0b0b0b;
}

/* ------------- ANIMATIONS -------------------- */

/* Hero : animation au chargement */
@keyframes heroFadeIn{
    from{ opacity: 0; transform: translateY(30px); }
    to{ opacity: 1; transform: translateY(0); }
}

.hero-content h1{
    animation: heroFadeIn 1s ease forwards;
}

.hero-content p{
    animation: heroFadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .btn{
    animation: heroFadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes heroImageIn{
    from{ opacity: 0; transform: translateX(50px); }
    to{ opacity: 1; transform: translateX(0); }
}

.hero-image{
    animation: heroImageIn 1.2s ease 0.4s forwards;
    opacity: 0;
}

/* Reveal au scroll : etats initiaux */
.reveal{
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left{
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right{
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale{
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Etat actif quand visible */
.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active{
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Delais echelonnes pour les feature cards */
.feature.reveal:nth-child(1){ transition-delay: 0s; }
.feature.reveal:nth-child(2){ transition-delay: 0.2s; }
.feature.reveal:nth-child(3){ transition-delay: 0.4s; }

/* Animation subtile sur la navbar au chargement */
@keyframes navSlideDown{
    from{ opacity: 0; transform: translateY(-20px); }
    to{ opacity: 1; transform: translateY(0); }
}

nav{
    animation: navSlideDown 0.8s ease forwards;
}

/* ------------------------------------------------ */

/* ------------- RESPONSIVE -------------------- */

@media (max-width: 768px){
    .hero{
        grid-template-columns: 1fr;
        padding: 100px 6% 60px;
        text-align: center;
        min-height: auto;
    }

    .hero h1{
        font-size: 2rem;
    }

    .hero-image img{
        max-width: 350px;
    }

    section, .center{
        padding: 60px 6%;
    }

    .promise h2{
        font-size: 1.8rem;
    }

    .product{
        text-align: center;
    }

    .quiz{
        padding: 40px 25px;
    }

    .offer input{
        width: 100%;
        max-width: 300px;
    }

    nav{
        padding: 15px 6%;
    }

    nav .nav-links{
        display: none;
    }
}

@media (max-width: 480px){
    .hero h1{
        font-size: 1.6rem;
    }

    .hero p{
        font-size: 0.95rem;
    }

    .btn{
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .features{
        gap: 20px;
    }

    .feature{
        padding: 25px;
    }
}
