/* RESET + BASE GLOBALE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #111827;
}

/* ---------------- HEADER / ACCUEIL ---------------- */

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(../img/wallpaper_5_OPSYNET.JPG);
    background-position: center;
    background-size: cover;
    position: relative;
    /* pour éviter les bugs sur mobile, on garde le fixed pour desktop plus bas */
    background-attachment: scroll;
}

/* on évite de toucher TOUTES les images dans des <a> */
/* on cible uniquement le logo de la page d'accueil */
.text-box h1 img {
    display: block;
    margin: 0 auto;
    height: 220px;
    width: auto;
    max-width: 90%;
}

/* NAV BAR HAUT DE PAGE */

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: flex-end;
    align-items: center;
}

.nav-links{
    flex: 1;
    text-align: right;
}

.nav-links ul{
    list-style: none;
}

.nav-links ul li{
    display: inline-block;
    padding: 8px 14px;
    position: relative;
}

.nav-links ul li a{
    color: #f5f5ff;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.12em;
}

/* petit soulignement bleu au survol */
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #333399;
    display: block;
    margin: auto;
    transition: 0.4s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

/* icônes menu (burger / croix) */
nav .fa{
    display: none;
}

/* CITATION */

.citazione h5 {
    margin: 40px 0 5px;
    font-size: 28px;
    color: white;
    text-align: right;
    padding-right: 30px;
    font-family: "Brush Script MT", "Brush Script Std", cursive;
}

/* BLOC CENTRAL : LOGO + TITRE + SOUS-TITRE + BOUTON */

.text-box{
    width: 90%;
    color: white;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1{
    font-size: 52px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.text-box p{
    margin: 10px 0 30px;
    font-size: 24px;
    color: white;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 10px 40px;
    font-size: 18px;
    background: transparent;
    position: relative;
    cursor: pointer;
    border-radius: 999px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-btn:hover{
    border: 1px solid #333399;
    background: #333399;
    transition: 0.4s;
}

/* ---------------- DESCRIPTION ---------------- */

.description{
    width: 70%;
    max-width: 900px;
    margin: 40px auto 40px;   /* plus de marge négative */
    text-align: left;
    padding: 30px 25px 35px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15);
}

.description h4{
    text-align: left;
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #333399;
}

.description-intro{
    font-size: 18px;
    margin-bottom: 12px;
    color: #111827;
}

/* liste des "→" */
.description-list{
    list-style: none;
    padding-left: 0;
    margin: 10px 0 20px;
}

.description-list li{
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.4;
    color: #111827;
}

.description-list li::before{
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #333399;
    font-weight: 700;
}

/* sous-titre BUT */
.description-subtitle{
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #333399;
}

.description p{
    color: #111827;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
    padding: 2px 0;
}

/* ---------------- QUESTIONNAIRE ---------------- */

.app{
    background: #E6E6FA;
    width: 90%;
    max-width: 600px;
    margin: 40px auto 0;
    border-radius: 14px;
    padding: 25px 20px 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.app h4{
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.questionnaire{
    padding: 10px 0 0;
}

.questionnaire h2{
    font-size: 18px;
    color: black;
    font-weight: 600;
    margin-bottom: 10px;
}

/* tes boutons de réponses créés en JS utilisent la classe .btn */
.btn{
    background: #ffffff;
    color: #222;
    font-weight: 500;
    width: 100%;
    border: 1px solid #222;
    padding: 10px;
    margin: 8px 0;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover{
    background: #222;
    color: #ffffff;
}

#prochaine_btn{
    background: #111827;
    color: #ffffff;
    font-weight: 500;
    width: 160px;
    border: 0;
    padding: 10px;
    margin: 20px auto 0;
    border-radius: 20px;
    cursor: pointer;
    display: none;
}

/* ---------------- PHOTOS (description2) ---------------- */

#description2 {
    margin: 60px 8%;
}

.delphine {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

/* ---------------- SERVICES ---------------- */

#services {
    background-image: linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)),url(../img/wallpaper_2_OPSYNET.png);
    background-size: cover;
    background-position: center;
    color: #efefef !important;
    background-attachment: scroll; /* évite les bugs sur mobile */
    padding-top: 50px;
    padding-bottom: 50px;
}

#services h4{
    text-align: center;
    color: #efefef !important;
    padding-bottom: 10px;
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#services h4::after{
    content: '';
    background: #efefef;
    display: block;
    height: 3px;
    width: 170px;
    margin: 20px auto 5px;
}

.services {
    margin-top: 30px;
}

#services p {
    color: white;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    padding: 10px 5px;
}

.icon {
    font-size: 40px;
    margin: 20px auto;
    padding: 18px;
    height: 88px;
    width: 88px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services .col-md-3{
    margin-bottom: 20px;
}

.services .col-md-3:hover {
    background: rgba(0,0,0,0.7);
    cursor: pointer;
    transition: 0.3s;
}

/* ---------------- CONTACT ---------------- */

#contacte {
    background-color: white;
    background-size: cover;
    background-position: center;
    color: black !important;
    background-attachment: scroll;
    padding-top: 50px;
    padding-bottom: 50px;
}

#contacte .hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contacte .container {
    background-color: #E6E6FA;
    border-radius: 30px;
    padding: 25px;
}

form {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 25px 22px;
    font-size: 18px;
    border-radius: 20px;
}

.massage-icon {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.massage-icon i {
    font-size: 32px;
}
.massage-icon span {
    font-size: 20px;
    font-weight: bold;
    margin-left: 15px;
}

form input, textarea {
    width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid black;
    outline: none;
}

.input-field {
    padding-bottom: 18px;
    display: flex;
    align-items: center;
}
.input-field i {
    font-size: 20px;
    margin-right: 15px;
}

.input-field~span{
    color: red;
    font-weight: 500;
    font-size: 0.8rem;
}

textarea{
    resize: vertical;
    min-height: 130px;
}

.Envoyer {
    width: 130px;
    border: none;
    background: black;
    color: white;
    font-size: 16px;
    padding: 8px 0;
    border-radius: 999px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}

/* ---------------- POPUP MESSAGE ---------------- */

.popup{
    width: 400px;
    background-color: #E6E6FA;
    border-radius: 12px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    padding: 20px 30px 30px;
    visibility: hidden;
    transition: transform 0.4s, top 0.4s;
    z-index: 9999;
}

.open-popup {
    visibility: visible;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.popup svg{
    margin-top: -40px;
}

.popup h2{
    font-size: 28px;
    font-weight: 500;
    margin: 20px 0 10px;
}

.popup button{
    width: 100%;
    margin-top: 25px;
    padding: 10px 0;
    background: black;
    color: white;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

/* ---------------- INFOS + FOOTER ---------------- */

.info_sup .container{
    background-color: #E6E6FA;
    border-radius: 30px;
    padding: 25px 25px;
}

footer {
    background-color: white;
    padding: 20px 10px;
    text-align: center;
    font-size: 14px;
    color: #4b5563;
}

/* =================== RESPONSIVE =================== */

@media screen and (max-width: 700px){

    .header {
        width: 100%;
    }

    /* MENU MOBILE */
    .nav-links{
        position: absolute;
        background: #ADD8E6;
        height: 100vh;
        width: 220px;
        top: 0;
        right: -220px;     /* ton JS mettra right:0 */
        text-align: left;
        z-index: 2;
        transition: 0.4s;
        padding-top: 60px;
    }

    .nav-links ul li{
        display: block;
    }

    .nav-links ul{
        padding: 0 30px;
    }

    nav .fa{
        display: block;
        color: white;
        margin: 20px;
        font-size: 24px;
        cursor: pointer;
    }

    .citazione h5 {
        display: none; /* ça charge trop le mobile */
    }

    .text-box{
        top: 55%;
    }

    .text-box h1{
        font-size: 30px;
    }

    .text-box h1 img {
        height: 180px;
        width: auto;
    }

    .text-box p {
        font-size: 18px;
    }

    .description{
        width: 90%;
        margin: 30px auto 30px;
        padding: 20px 16px;
    }

    .description-intro,
    .description-list li,
    .description p{
        font-size: 15.5px;
    }

    .app{
        width: 92%;
        margin: 30px auto 0;
        padding: 20px 16px;
    }

    #description2 {
        margin: 40px 6%;
    }

    #services p{
        font-size: 16px;
    }

    .icon{
        font-size: 30px;
        height: 70px;
        width: 70px;
        padding: 10px;
    }

    #contacte .container{
        padding: 18px;
        border-radius: 22px;
    }

    form{
        padding: 18px 16px;
        font-size: 16px;
    }

    .input-field{
        flex-direction: column;
        align-items: flex-start;
    }

    .input-field i{
        margin-bottom: 6px;
    }

    .Envoyer{
        width: 100%;
    }

    .popup{
        width: 90%;
        padding: 18px 15px 22px;
    }

    .popup h2{
        font-size: 22px;
    }

    .popup button{
        margin-top: 15px;
    }

    .info_sup .container{
        padding: 16px;
        border-radius: 20px;
    }
}

/* effet "parallaxe" uniquement pour les écrans plus larges */
@media (min-width: 900px) {
    .header{
        background-attachment: fixed;
    }
    #services{
        background-attachment: fixed;
    }
}
