/* ===================================================================
   EmmaHarmonie - Bilan Sommeil
   style.css
   =================================================================== */

:root {

    --primary: #4d7396;
    --primary-dark: #35546f;
    --secondary: #7fb7c9;
    --accent: #82c6a8;

    --background: #f4f7fb;
    --surface: #ffffff;

    --text: #24313f;
    --text-light: #667688;

    --border: #dde6ef;

    --success: #48b87a;
    --warning: #ffb545;

    --shadow: 0 15px 35px rgba(0,0,0,.08);

    --radius: 18px;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Poppins",sans-serif;

    background:var(--background);

    color:var(--text);

    line-height:1.7;

}

img{

    max-width:100%;

}

button{

    font-family:inherit;

}

.hidden{

    display:none;

}

/* ====================================================== */

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:60px 20px;

    background:

        linear-gradient(rgba(38,60,82,.70),
        rgba(38,60,82,.78)),

        url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80");

    background-size:cover;

    background-position:center;

}

.hero-overlay{

    position:absolute;

    inset:0;

    backdrop-filter:blur(3px);

    pointer-events:none;

}

.hero-content{

    position:relative;

    max-width:850px;

    text-align:center;

    color:#fff;

    z-index:2;

}

.badge{

    display:inline-block;

    background:rgba(255,255,255,.16);

    padding:10px 18px;

    border-radius:999px;

    margin-bottom:25px;

    font-weight:600;

    backdrop-filter:blur(12px);

}

.hero h1{

    font-size:3rem;

    line-height:1.2;

    margin-bottom:25px;

}

.hero-text{

    font-size:1.15rem;

    opacity:.95;

    max-width:720px;

    margin:auto;

}

.hero-infos{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

    margin:40px 0;

}

.info-card{

    width:170px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.2);

    border-radius:16px;

    padding:20px;

    backdrop-filter:blur(15px);

    font-size:1.1rem;

}

.info-card span{

    display:block;

    margin-top:8px;

    font-size:.95rem;

}

/* ====================================================== */

.primary-btn{

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

    border:none;

    border-radius:999px;

    padding:18px 34px;

    cursor:pointer;

    font-size:1rem;

    font-weight:600;

    transition:.25s;

    box-shadow:var(--shadow);

}

.primary-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.secondary-btn{

    background:#fff;

    border:1px solid var(--border);

    border-radius:999px;

    padding:16px 30px;

    cursor:pointer;

    font-weight:600;

}

.secondary-btn:hover{

    background:#f8fbff;

}

/* ====================================================== */

.quiz-container{

    max-width:900px;

    margin:60px auto;

    padding:20px;

}

.progress-top{

    margin-bottom:35px;

}

.progress-text{

    display:flex;

    justify-content:space-between;

    margin-bottom:12px;

    font-weight:600;

}

.progress-bar{

    height:14px;

    background:#e7edf5;

    border-radius:999px;

    overflow:hidden;

}

#progressFill{

    height:100%;

    width:0;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--accent)
    );

    transition:.35s;

}

.question-card{

    background:var(--surface);

    border-radius:var(--radius);

    padding:40px;

    box-shadow:var(--shadow);

    scroll-margin-top:20px;

}

.question-card h2{

    margin-bottom:35px;

    font-size:1.6rem;

}

#answersContainer{

    display:grid;

    gap:16px;

}

.answer{

    border:2px solid var(--border);

    border-radius:16px;

    padding:18px;

    cursor:pointer;

    transition:.25s;

    background:#fff;

}

.answer:hover{

    border-color:var(--primary);

    transform:translateY(-2px);

}

.answer.selected{

    background:#eef6fb;

    border-color:var(--primary);

}

.navigation{

    display:flex;

    justify-content:space-between;

    margin-top:35px;

}

/* ====================================================== */
/* RESULTATS */
/* ====================================================== */

.result-container{

    max-width:1000px;

    margin:70px auto;

    padding:20px;

}

.score-circle{

    width:260px;

    margin:0 auto 40px;

    position:relative;

}

.score-circle svg{

    width:260px;

    height:260px;

    transform:rotate(-90deg);

}

.bg-circle{

    fill:none;

    stroke:#e8edf3;

    stroke-width:16;

}

.progress-circle{

    fill:none;

    stroke:var(--success);

    stroke-width:16;

    stroke-linecap:round;

    stroke-dasharray:565;

    stroke-dashoffset:565;

    transition:stroke-dashoffset 1.2s ease;

}

.score-content{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

}

.score-content span{

    font-size:3rem;

    font-weight:700;

    color:var(--primary);

}

.score-content small{

    color:var(--text-light);

    font-size:1rem;

}


    text-align:center;

    margin-bottom:15px;

}

.intro-result{

    text-align:center;

    max-width:700px;

    margin:0 auto 45px;

    color:var(--text-light);

}

.profiles{

    margin-top:30px;

}

#profileCards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-top:25px;

}

.profile-card{

    background:#fff;

    border-radius:18px;

    padding:25px;

    box-shadow:var(--shadow);

    border-top:6px solid var(--primary);

}

.profile-card h4{

    margin-bottom:10px;

}

.profile-percent{

    margin-top:12px;

    font-weight:700;

    color:var(--primary);

}

.analysis,
.tips{

    margin-top:50px;

    background:#fff;

    padding:35px;

    border-radius:18px;

    box-shadow:var(--shadow);

}

.analysis h3,
.tips h3{

    margin-bottom:18px;

}

.analysis p,
.tips p{

    margin-bottom:16px;

}

/* ====================================================== */
/* HYPNOSE / REIKI */
/* ====================================================== */

.therapy-section{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:25px;

    margin-top:45px;

}

.therapy-card{

    background:#fff;

    padding:35px;

    border-radius:18px;

    box-shadow:var(--shadow);

}

.therapy-card h3{

    margin-bottom:18px;

}

.therapy-card p{

    margin-bottom:14px;

}

/* ====================================================== */

.medical-warning{
    margin-top:40px;
    padding:28px;
    background:#fff8ef;
    border-left:6px solid #e4b363;
    border-radius:14px;
    font-size:.95rem;
    line-height:1.7;
}

.medical-warning strong{
    display:block;
    margin-bottom:12px;
}

.medical-warning p{
    margin-bottom:12px;
}

/* ====================================================== */

.cta{

    text-align:center;

    margin-top:55px;

    padding:55px 30px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

    border-radius:22px;

}

.cta h3{

    font-size:2rem;

    margin-bottom:15px;

}

.cta p{

    max-width:700px;

    margin:0 auto 30px;

}

.booking-btn{

    display:inline-block;

    padding:18px 36px;

    background:#fff;

    color:var(--primary);

    text-decoration:none;

    border-radius:999px;

    font-weight:700;

    transition:all .30s ease;

}

.booking-btn:hover{

    transform:translateY(-4px) scale(1.03);

box-shadow:0 18px 35px rgba(0,0,0,.18);
}

/* ====================================================== */
/* SEO */
/* ====================================================== */

.seo-content{

    margin-top:80px;

    padding:70px 20px;

    background:#fff;

}

.seo-container{

    max-width:900px;

    margin:auto;

}

.seo-container h2{

    margin:35px 0 15px;

}

.seo-container p{

    margin-bottom:18px;

    color:var(--text-light);

}

/* ====================================================== */

footer{

    background:#21384d;

    color:#fff;

    text-align:center;

    padding:35px 20px;

}

/* ====================================================== */
/* RESPONSIVE */
/* ====================================================== */
/* ====================================================== */
/* Barre de progression des profils */
/* ====================================================== */

.progress-profile{

    width:100%;
    height:10px;
    background:#e7edf5;
    border-radius:999px;
    overflow:hidden;
    margin-top:12px;

}

.progress-profile-fill{

    height:100%;
    background:linear-gradient(
        90deg,
        #4d7396,
        #82c6a8
    );

    border-radius:999px;
    transition:width .8s ease;

}

@media(max-width:900px){


    .hero h1{

        font-size:2.2rem;

    }

    .question-card{

        padding:30px;

    }

    .score-circle{

        width:210px;

    }

    .score-circle svg{

        width:210px;
        height:210px;

    }

}

@media(max-width:600px){

    .hero{

        padding:40px 18px;

    }

    .hero-text{

        font-size:1rem;

    }

    .hero-infos{

        flex-direction:column;

        align-items:center;

    }

    .info-card{

        width:100%;

        max-width:260px;

    }

    .navigation{

        flex-direction:column;

        gap:15px;

    }

    .navigation button{

        width:100%;

    }

    .question-card{

        padding:24px;

    }

    .question-card h2{

        font-size:1.3rem;

    }

    .analysis,
    .tips,
    .therapy-card{

        padding:25px;

    }

    .cta{

        padding:40px 22px;

    }

    .cta h3{

        font-size:1.6rem;

    }

}

   .result-title{
    text-align:center;
    font-size:2rem;
    margin-bottom:20px;
    color:#35546f;
    font-weight:700;
}

    text-align:center;
    max-width:700px;
    margin:0 auto 35px;
    color:#667085;
    font-size:1.05rem;
       line-height:1.7;
   }
   .email-box{
    max-width:900px;
    margin:70px auto;
    padding:40px;
    background:#ffffff;
    border-radius:24px;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
}

.email-box h3{
    text-align:center;
    color:#35546f;
    margin-bottom:15px;
    font-size:2rem;
}

.email-box p{
    text-align:center;
    color:#667085;
    margin-bottom:30px;
    line-height:1.7;
}

.email-box input[type="text"],
.email-box input[type="email"]{
    width:100%;
    padding:16px;
    margin-bottom:18px;
    border:1px solid #d7dee8;
    border-radius:12px;
    font-size:16px;
    box-sizing:border-box;
}

.rgpd{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin:25px 0;
    font-size:14px;
    color:#667085;
    line-height:1.5;
}

.rgpd input{
    margin-top:4px;
    width:auto;
    flex-shrink:0;
}

.email-box button{
    display:block;
    width:100%;
    max-width:340px;
    margin:35px auto 0;
}

.medical-warning{
    margin-top:35px;
    padding:20px;
    border-left:5px solid #e4b363;
    background:#fff8ef;
    border-radius:12px;
    font-size:.95rem;
    line-height:1.7;
}
    

