/* GENERAL */

*{
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial,sans-serif;
    font-size: 15px;
}

h1, h2,h3,h4{
  color: #444;  
}

h1{
    font-family: 'Crete Round', serif;
    font-size: 45px;
}

h2{
    font-size: 55px;
}

h3{
    font-size: 30px;
}

h4{
    font-size: 24px;
}

p{
    line-height: 20px;
    color: #777;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: #444;
}

.wrapper{
    width: 940px;
    margin: 0 auto;
    padding: 0 10px;
}

.orange{
    color: #ff7a00;
}

.clear{
    clear: both;   
}

small{
    font-size: 13px;
    font-style:italic;
}

/* HEADER */

header {
    width: 100%;
    height: 120px;  
    position: fixed;
    background-color: white;
    z-index: 999;
}

header h1{
    float: left;
    margin-top: 32px;
}

header nav{
    float: right;   
    margin-top: 50px;
}

header nav ul li{
    display: inline-block;
}

header nav ul li a{
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 20px;
}

/* BOUTON HAMBURGER - caché sur PC */
.menu-toggle{
    display: none;
    position: absolute;
    top: 45px;
    right: 10px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span{
    display: block;
    width: 100%;
    height: 3px;
    background: #444;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: 0.4s;
}

.main{
    position: relative;
    top: 120px;
}

/* MAIN IMAGE */

#main-image{
    height: 580px;
    background: url('images/main.jpg') center;
}

#main-image h2{
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
    padding: 150px 0 40px 0;
    margin-bottom: 20px;
}

.button-1{
    display: block;
    width: 120px;
    height: 50px;
    background: #ff7a00;
    color: #fff;
    font-size: 20px;
    margin: 0 auto;
    line-height: 50px;
    text-align: center;
    border-radius:  3px;
}

.button-1:hover{
     background: #02b8dd;
}

/* STEPS */

#steps ul{
    margin: 80px 0;
    display: flex; /* AJOUTE ÇA */
    justify-content: space-between; /* AJOUTE ÇA */
    flex-wrap: wrap; /* AJOUTE ÇA */
}

#steps ul li{
    width: 300px;
    /* float:left; SUPPRIME ÇA */
    padding-top: 140px;
    text-align: center;
    margin-right: 10px;
}

#steps h4{
    text-transform: uppercase;
    margin-bottom: 20px;
}

#steps p{
    margin-bottom: 20px;
}

#step-1{
    background: url('images/steps-icon-1.png') no-repeat top center;
}

#step-2{
    background: url('images/steps-icon-2.png') no-repeat top center;
}

#step-3{
    background: url('images/steps-icon-3.png') no-repeat top center;
}

/* POSSIBILITIES */

#possibilities{
    background-color: #efefef;
    padding:  60px 0;
}

#possibilities article{
    width: 460px;
    height: 270px;
    float: left;
    border-radius: 10px;
}

#possibilities article:first-child{
    margin-right: 20px;
}

.overlay{
    background: rgba(255,255,255, 0.95);
    height: 100%;
    width: 190px;
    padding: 20px;
    border-radius: 10px 0 0 10px;
    text-align: center;
    box-sizing: border-box;
}

article h4{
    border-bottom:  1px solid #ddd;
    padding-bottom: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}

#possibilities p{
    text-align: center;
    margin-bottom: 20px;
}

.button-2{
    color: #fff;
    background-color: #ff7a00;
    padding: 6px 20px;
    border-radius: 3px;
}

.button-2:hover{
    color: #fff;
    background-color: #02b8dd;
}

/* CONTACT */
#contact{
    padding: 60px 0;
    text-align: center
}

#contact h3{
    width: 400px;
    text-transform: uppercase;
    margin: 0 auto 20px auto;
    border-bottom: 1px solid #02b8dd;
    padding-bottom: 20px;   
}

form{
    margin: 60px auto 20px auto;
    max-width: 900px;
    display: flex; 
    flex-wrap: wrap; /* permet de passer à la ligne */
    justify-content: center; 
    gap: 20px; /* espace entre les groupes */
}

.form-group{ 
    display: flex; /* AJOUT : Label et Input sur la même ligne */
    align-items: center; /* centre verticalement */
    gap: 15px; /* espace entre label et input */
    flex: 1 1 400px; /* chaque groupe fait 400px min */
    justify-content: center;
}

label{
    font-weight: bold;
    font-size: 18px;
    color: #777;
    white-space: nowrap; /* empêche le label de passer à la ligne */
}

input[type="text"]{
    padding:10px;
    font-size: 18px;
    flex: 1; /* l'input prend tout l'espace restant */
    min-width: 200px;
    border: 2px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.button-3{
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 11px 30px;
    background-color: #02b8dd;
    border-style: none;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.3s;
    flex-basis: 100%; /* Le bouton prend toute la ligne */
    max-width: 300px;
    margin-top: 10px;
}
.button-3:hover{
    background-color: #444;
}

/* FOOTER */

footer{
    height: 260px;
    background-color: #444;
}

footer h1{
    color:#fff;
    text-align: center;
    padding-top: 80px;
}

.copyright{
    text-align: center;
    font-weight: bold;
    padding-top: 30px;
    color: #777;
}

/* ========== RESPONSIVE ========== */

/* TABLETTE : 768px à 1024px */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    
    #contact h3{
        width: 80%;
    }
    
    form{
        width: 80%;
        margin: 40px auto; /* Centre le formulaire */
    }

    .form-group{
        display: flex; /* Met label et input sur la même ligne */
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    label{
        width: 120px; /* largeur fixe pour aligner */
        text-align: right;
        font-size: 18px;
        margin-right: 0;
    }

    input[type="text"]{
        width: 60%; /* prend le reste */
        max-width: 400px;
        font-size: 18px;
    }

    .button-3{
        margin-top: 20px;
    }
}

/* ========== RESPONSIVE TABLETTE < 980px ========== */

/* Tablettes : < 1024px */
@media screen and (max-width: 1024px) {
    .wrapper{
        width: 90%;
        padding: 0 5%;
    }

    #possibilities article{
        width: 48%;
    }
}

@media screen and (max-width: 980px) {
    
    header{
        height: 80px; 
    }
    header h1{
        margin-top: 22px;
        font-size: 35px;
    }

    /* 1. On affiche le bouton */
    .menu-toggle{
        display: block;
    }

    /* 2. On cache le menu et on le met en colonne */
    header nav{
        position: absolute;
        top: 80px; /* sous le header */
        left: 0;
        width: 100%;
        background: #fff; /* Fond blanc */
        float: none;
        margin-top: 0;
        max-height: 0; /* caché par défaut */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    header nav.active{ /* Quand on clique */
        max-height: 400px; /* assez grand pour contenir les liens */
    }

    header nav ul li{
        display: block; /* 1 lien par ligne */
        text-align: center;
    }
    
    header nav ul li a{
        display: block;
        padding: 15px 20px;
        margin-right: 0;
        border-bottom: 1px solid #f5f5f5;
    }
    header nav ul li a:hover{
        background: #ff7a00; /* Ton orange */
        color: #fff;
    }
    
    /* Animation du burger en croix */
    .menu-toggle.active span:nth-child(1){
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2){
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3){
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Mobile : < 768px */
@media screen and (max-width: 768px) {
    
    /* TYPO */
    h1{ font-size: 35px; }
    h2{ font-size: 38px; }
    h3{ font-size: 24px; }
    
    /* HEADER */
    header{
        height: auto;
        padding: 20px 0;
    }
    header h1, header nav{
        float: none; /* On enlève le float */
        text-align: center;
        margin: 10px 0;
    }
    header nav ul li{
        display: block; /* Menu en colonne */
        margin: 10px 0;
    }

    /* MAIN IMAGE */
    #main-image{
        height: 400px;
        background-size: cover;
    }
    #main-image h2{
        padding: 80px 20px 20px 0;
        font-size: 30px;
    }

    /* STEPS */
    #steps ul{
        margin: 40px 0;
    }
    #steps ul li{
        width: 100%; /* 1 par ligne */
        float: none;
        margin-right: 0;
        margin-bottom: 40px;
        padding-top: 120px;
    }

    /* POSSIBILITIES */
    #possibilities article{
        width: 100%; /* 1 par ligne */
        float: none;
        margin-bottom: 20px;
        background-size: cover !important;
    }
    #possibilities article:first-child{
        margin-right: 0;
    }
    .overlay{
        width: 100%; /* Overlay prend toute la largeur */
        border-radius: 10px;
    }

    /* CONTACT */
    #contact h3{
        width: 90%;
    }
    
    form{
        margin: 40px 0 20px 0;
    }

    .form-group{
        display: block; /* On repasse en colonne */
    }

    label{
        display: block; /* Label au dessus */
        text-align: center;
        margin-bottom: 10px;
        font-size: 18px;
    }
    input[type="text"]{
        width: 70%;
        font-size: 18px;
        margin: 0 auto 20px auto;
        display: block;
    }
    .button-3{
        width: 90%;
        max-width: 300px;
    }

    /* FOOTER */
    footer{
        height: auto;
        padding: 40px 0;
        
    }
    footer h1{
        padding-top: 20px;
    }
}

/* Très petits écrans : < 480px */
@media screen and (max-width: 480px) {
    h1{ font-size: 28px; }
    h2{ font-size: 30px; }
    .button-1{ width: 90%; }
}