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

body
{
    font-family: Arial, sans-serif;
    font-size: 15px;
    width: 100%;
    min-width: 100vw;
    overflow-x: hidden;
}

h1,h2,h3,h4
{
    color: #444; 
}

h1
{
    font-family: 'Create 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
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
.orange
{
    color: #ff7100;
}

.clear
{
    clear: both;
}

small
{
    font-size: 13px;
    font-style: italic;
}

/*HEADER*/
header
{
    height: 120px;
}
header h1
{
    float: left;
    margin-top: 32px;
}
header nav 
{
    float: right;
    margin-top: 50px;
}
header nav ul li
{
    display: inline-block;
    float: left;
}
header nav ul li a
{
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 20px;
}

/*MAIN IMAGE*/
#main-image
{
    background: url('images/main.jpg') center center no-repeat;
    height: 580px;
    width: 100%;
    background-size: cover;
}

#main-image h2
{
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
    padding: 150px 0 40px 0;
    margin-bottom: 20px;
}

/* MAIN IMAGE - Mobile optimization */
@media (max-width: 768px) {
    #main-image {
        position: relative;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #main-image h2 {
        position: relative;
        width: 100%; /* Prend toute la largeur de l'image */
        color: #444;
        font-size: 32px;
        text-align: center;
        margin: 0 auto;
        line-height: 1.2;
        padding: 0 10px;
    }
}


.button-1
{
    display: block;
    width: 120px;
    height: 50px;
    background: #ff7100;
    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
{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 80px 0;
    padding: 0;
}

#steps h4
{
    text-transform: uppercase;
    margin-bottom: 20px;
}

#steps ul li
{
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/*Possibilities*/

#possibilities 
{
    background-color: #efefef;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#possibilities article
{
    width: 460px;
    height: 270px;
    float: left;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px; /* Espace entre les articles en responsive */
}

#possibilities article:first-child
{
    margin-right: 20px;
}

.overlay
{
    background: rgba(255,255,255,0.95);
    height:100%;
    width: 190px;
    padding: 20px;
    border-radius: 10px 0px 0px 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;
}



/* Responsive */
@media (max-width: 1024px) {
    #steps ul {
        flex-wrap: wrap;
    }
    #possibilities .wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #steps ul {
        flex-direction: column;
        align-items: center;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header nav {
        margin-top: 10px;
    }

    header h1 {
        margin-top: 10px;
    }

    .wrapper {
        width: 100%;
        padding: 0 15px;
    }
    
    .contact  {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    header nav ul li {
        display: block;
        margin-bottom: 10px;
    }
    
    #main-image {
        height: 300px;
    }
    .contact  {
        flex-direction: column;
    }
}

/*contact*/
#contact
{
    padding: 60px 0px;
    text-align: center;
}

#contact h3
{
    width: 400px;
    text-transform: uppercase;
    margin: 0 auto 20px auto;
    border-bottom: 2px solid #02b8dd;
    padding-bottom: 20px ;
}

form
{
    margin: 60px 0 20px 0;
}

label
{
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
    color: #777;
}
   
input[type=text]
{
    padding: 10px;
    font-size: 20px;
    margin-right: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
}

.button-3
{
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 11px;
    background-color: #02b8dd;
    border-style: none;
    border-radius: 3px;
}

.button-3:hover
{
    color: #fff;
    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;
}
#steps li img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}