/* GENERAL */
* {
    margin:0;
    padding:0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

h1,h2,h3,h4,a,small {
    color: #444;
}

h1 {
  font-family: 'Crete Round', serif;
  font-size: 3em;
}

h2 {
    font-size: 4em;
}

h3 {
    font-size: 2em;
}

h4 {
    font-size: 1.5em;
}

p {
    line-height: 1.5em;
    color:#777;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.wrapper {
    width: 80em;
    margin:0 auto;
    padding: 0 0.7em;
}

.orange {
    color:#ff7a00;
}

.clear {
    clear:both;
}

small {
    font-size: 0.9em;
    font-style: italic;
}


/* HEADER */
header {
    height: 8em;
    margin-top:2em;
}

header h1 {
    float: left;
}

header nav {
    float: right;
    margin-top: 2em ;
}

header nav ul li {
    float: left;
    /*display: inline-block;*/
}

header nav ul li a {
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 1.5em;
}

header nav ul li :hover {
    color: blueviolet;
}

/* MAIN IMAGE */
#main_image {
    height: 39em;
    background-image: url('images/main.jpg');
    background-position: center;
}

#main_image h2 {
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
    padding : 2.5em 0 3em 0;
    margin-bottom: 3em;
}

.button_1 {
    display: block;
    width: 6em;
    height: 2.5em;
    background-color: #ff7a00;
    color: #fff;
    font-size: 1.5em;
    margin: -14em auto;
    line-height: 2.5em;
    text-align: center;
    border-radius: 3px ;
}

.button_1:hover {
    background-color: #02b8dd;
}

/* STEPS */
#steps ul {
    margin: 3em 0;
}

#steps ul li {
    width: 26em;
    float: left;
    padding-top: 8em;
}

#steps h4 {
    text-transform: uppercase;
    margin-bottom: 0.5em ;
    text-align: center;
}

#steps p {
    text-align: justify;
    padding : 0 1.5em;
    margin-bottom: 1em;

}

#step_1 {
    background-image: url('images/steps-icon-1.png');
    background-repeat: no-repeat;
    background-position: top center;
}

#step_2 {
    background-image: url('images/steps-icon-2.png');
    background-repeat: no-repeat;
    background-position: top center;    
}

#step_3 {
    background-image: url('images/steps-icon-3.png');
    background-repeat: no-repeat;
    background-position: top center;    
}

/* POSSIBILITIES */
#possibilities {
    background-color: #efefef;
    padding: 3em 0;
}

#possibilities .wrapper {
    display: flex;
    justify-content: center; /* Permet de centrer horizontalement les articles */
    gap: 6em; /* Espace entre les deux articles */
}

#possibilities article {
    width: 27em;
    height: 16.8em;
    border-radius: 1em;
}

#parter #evader {
    margin: 0;
}

.overlay {
    background: rgba(255,255,255,0.80);
    height: 100%;
    width: 60%;
    padding: 1.8em;
    border-radius: 1em 0 0 1em ;
    box-sizing: border-box;

    display: flex;
    flex-direction: column; /* Aligne les éléments verticalement */
    justify-content: center; /* Centre les éléments sur l'axe vertical */
    align-items: center; /* Centre les éléments sur l'axe horizontal */
    text-align: center; /* Centre le texte */
}


#possibilities h4 {
    text-transform: uppercase;
    margin-bottom: 1em;
    border-bottom: 1px solid #444;
    margin-top: -1em;
}

#possibilities p {
    margin: 0.5em 0;
}

.button_2 {
    color :#fff;
    background-color: #ff7a00;
    padding: 6px 20px;
    border-radius: 3px;
    margin-top: 1em;
}

.button_2:hover {
    background-color: #02b8dd;
}

/* CONTACT */
#contact {
   padding : 1.7em 0; 
   text-align: center;
}

#contact h3 {
    width: 15em;
    text-transform: uppercase;
    margin: 0 auto 1em auto;
    border-bottom: 3px solid #02b8dd;
    padding-bottom: 0.5em;
}

form {
    margin : 2em 0 1em 0;
}

label {
    font-weight: bold;
    font-size: 1em;
    margin-right: 0.5em;
    color :#777
}

#name, #email {
    padding : 0.5em;
    font-size: 1em;
    margin-right : 2em;
    border: 2px solid #ddd;
    border-radius: 3px;
}

.button_3 {
    color:#fff;
    font-size:1em ;
    font-weight: bold;
    padding : 0.55em;
    background-color: #02b8dd;
    border-style: none;
    border-radius: 3px;
}

.button_3:hover {
    color:#fff;
    background-color: #444;
}

/* FOOTER */
footer {
    height: 12em;
    background-color: #444;
}

footer h1 {
    color:#fff;
    text-align: center;
    padding-top: 1em;
}

.copyright {
    text-align: center;
    font-weight: bold;
    padding-top: 1em;
    color:#777;
}


/* Media Queries pour les écrans de moins de 1300px (ajustement pour les tablettes et petits écrans d'ordinateur) */
@media screen and (max-width: 1300px) {
    .wrapper {
        width: 90%;
    }
    #possibilities .wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }
}

/* Media Queries pour les écrans de moins de 768px (smartphones et tablettes en mode portrait) */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 2.5em;
    }
    header {
        height: auto;
        margin-top: 1em;
        text-align: center;
    }
    header h1, header nav {
        float: none;
        display: block;
    }
    header nav ul li {
        float: none;
        display: block;
        text-align: center;
        margin: 0.5em 0;
    }
    header nav ul li a {
        margin: 0;
    }
    #main_image {
        height: auto;
        padding: 2em 0;
    }
    #main_image h2 {
        padding: 0;
        margin-bottom: 2em;
    }
    .button_1 {
        margin: 0 auto;
    }
    #steps ul li {
        width: 100%;
        float: none;
        padding: 0;
        margin-bottom: 2em;
        padding-top: 8em; /* Pour maintenir l'icône au-dessus du texte */
        box-sizing: border-box; /* S'assure que le padding n'ajoute pas à la largeur totale */
    }
    #steps p, #steps h4 {
        text-align: center;
    }
    #possibilities article {
        width: 100%;
        height: auto;
    }
    .overlay {
        width: 100%;
        border-radius: 1em;
    }
    #contact form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #name, #email {
        margin: 0.5em 0;
        width: 80%;
    }
    .button_3 {
        width: 80%;
        margin-top: 1em;
    }
}
