*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    box-sizing: border-box;
    font-family: Lato, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 16px;
    color: rgba(169, 169, 169, 1);
}

.header {
    display: inline-block;
    width: 100%;
    background: #1F1F23;
    align-items: center;
    height: 520px;
    padding: 10px 20px;
    padding-top: 30px;
    margin-bottom: 50px;
}

h1, h2 {
    font-family: Raleway, sans-serif monospace;
    font-weight: 700;
    color: rgba(240, 255, 255, 1);
    line-height: 1.3;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 50px;
}

.menu a {
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: color .3;
    color: inherit;
}
.menu {
    display: flex;
    max-width: 100%;
    width: 50%;
    position: absolute;
    top: 0;
    right: 0;
}

#menu-toggle {
    display: none;
}

.menu.active {
    display: flex;
}

.menu a:hover {
    color: rgba(240, 255, 255, 1);
}

span {
    color: rgba(132, 255, 215, 1);
}

.phrase {
    display: block;
    text-align: center;
    max-width: 100%;
    font-size: 1.6rem;
}

.logo-container {
    display: flex;
}

.logo-deco1 {
    position: absolute;
    top: 150px;
    right: 150px;
}

.logo-deco2 {
    position: absolute;
    top: 250px;
    right: 250px;
}

.logo-deco3 {
    position: absolute;
    top: 350px;
    right: 150px;
}

.logo-deco4 {
    position: absolute;
    top: 450px;
    right: 250px;
}


.body {
    background: #2D2D31;
}

.first-container{
    display: flex;
    margin-bottom: 50px
}

.first-block-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 100px;
}

.first-small-block-left, .second-small-block-left {
    background: rgba(31, 31, 35, 0.5);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba( 0, 0, 0, 0.1);
    width: 500px;
    height: 150px;
}

.first-block-right {
    margin-left: 200px;
    margin-right: 100px;
}

.title-small-block-left {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-top: 15px;
}

.first-block-left p {
    margin-left: 20px;
}

.second-small-block-left a {
    color: inherit;
    text-decoration: none;
    transition: color .3;
    color: rgba(169, 169, 169, 1);
}

.second-small-block-left a:hover {
    color: rgba(240, 255, 255, 1);

}

.bienvenue {
    margin-bottom: 15px;
}

.slogan {
    margin-bottom: 15px;
    font-weight:300;
}

.cards-container {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 20px;
}

.card {
    background-color: rgba(31, 31, 35, 0.5);
    color: rgba(230, 230, 230, 1);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 300px;
    text-align: center;
    margin: 10px;
    transition: transform 0.3 ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card a {
    color: inherit;
    text-decoration: none;
    transition: color .3;
}

.card a:hover {
    color: rgba(240, 255, 255, 1);
} 

.card_title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-decoration: none;
}

.card-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}


.second-slogan {
    margin-left: 200px;
    margin-top: 20px;
    font-weight: 300;
}

.title-second-block-centered {
    
    margin-top: 100px;
    margin-left: 200px;
}

img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(31, 31, 35, 0.5);
    max-width: 100%;
    height: auto;
}

.title-notice {
    text-align: center;
    margin-top: 100px;
}

.reviews-container {
    width: 50%; 
    height: 200px;
    margin-left: 25%;
    background-color: rgba(31, 31, 35, 0.5); 
    color: rgba(230, 230, 230, 1); 
    border-radius: 12px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    overflow: hidden; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
}

.review {
    position: absolute; 
    opacity: 0; 
    transform: translateX(100%); 
    transition: all 0.8s ease;

}

.review.active {
    opacity: 1; 
    transform: translateX(0); 
}

.review.exit {
    opacity: 0; 
    transform: translateX(-100%); 
}

.avis {
    width: 10%;
    margin-left: 45%;
    margin-bottom: 400px;
    margin-top: 20px;
}

.midle-section {
    display: flex;
    position: relative;
    width: 100%;
}

.formulaire-left {
    width: 25%;
    background-color: #2D2D31;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #E6E6E6;
    margin: 50px 20px 100px 100px;
    position: relative;
}

.merci {
    position: absolute;
    text-align: center;
    bottom: 0px;
    right: 50px;
    font-size: 1.6rem;
    margin: 0 0 10px 100px;
}

.last-logo {
    width: 20%;
    position: absolute;
    top: 0;
    right: 50px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea, button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #3A3A3F;
    color: #E6E6E6;
    font-size: 1rem;
}

button {
    background-color: #008080;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #006666;
}

.feedback {
    display: none;
    text-align: center;
    font-size: 1rem;
    margin-top: 10px;
    color: #006666;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feedback.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.feedback.succes {
    background-color: #006666;
    color: #E6E6E6;
}

.feedback.error {
    background-color: #640202;
    color: #E6E6E6;
}

footer {
    background: #1F1F23;
    max-width: 100%;
    max-height: auto;
}


@media (max-width: 1280px) {
    .first-container {
        display: flex;
        flex-direction: column;
    }

    .first-block-right {
        text-align: center;
        margin-top: 50px;
    }

    .avis {
        width: 50%;
        margin-left: 25%;
    }

    .formulaire-left {
        width: 40%;
    }
}

@media (max-width: 960px) {
    .avis {
        width: 50%;
        margin-left: 25%;
        margin-bottom: 200px;
    }
    .midle-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: static;
    }

    .formulaire-left {
        width: 75%;
        margin-right: 77px;
    }

    .last-logo {
        width: auto;
        position: inherit;
        align-items: inherit;
        margin-bottom: 50px
    }

    .merci{
        position: inherit;
        margin-left: 0;
        margin-bottom: 20px
    }

}  

@media (max-width: 850px) {
    .header {
        width: 100%;
        display: flex;
        flex-direction: column;
        position: static;
    }

    .first-block-left {
        width: 360px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .first-small-block-left, .second-small-block-left {
        width: 360px;
    }

    .first-block-right {
        width: 75%;
        margin: auto;
        margin-top: 50px;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .first-block-right p {
        text-align: justify;
        margin-left: 0px;
        margin-right: 0px;
    }

    .title-second-block-centered, .second-slogan {
        margin-left: auto;
        text-align: center;
    }

    .reviews-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .avis {
        width: 100%;
        margin-left: 0;
    }

    .main-pages {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 55px;
        right: 10px;
        background-color: #006666;
        color: #E6E6E6;
        opacity: 0.9;
        z-index: 1;
        border-radius: 5px;
    }

    #menu-toggle {
        display: block;
    }

    .button-menu {
        background: #1F1F23;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 10%;
        z-index: 2;
    }

    .logo-deco1 {
        position: absolute;
        top:300px;
        left: 50px;
    }
    
    .logo-deco2 {
        position: absolute;
        top: 450px;
        left: 50px;
    }
    
    .logo-deco3 {
        position: absolute;
        top: 300px;
        right: 50px;
    }
    
    .logo-deco4 {
        position: absolute;
        top: 450px;
        right: 50px;
    }

    .phrase {
        position: absolute;
        top: 350px;
    }

    .cards-container {
        flex-direction: column;
    }
    


}


