@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');
html{
    scroll-behavior: smooth;
}
body{
    margin: 0px;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
}
nav{
    display:flex;
    flex-wrap:wrap;
    justify-content: center;
    align-items: center;
    border-bottom: 5px solid #6f6f6f;
}
nav h1 {
    display: flex;
    align-items: center;
    color: #717171;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
}

.nav-logo {
    width: 90px; /* Ajustez la taille de l'image selon vos besoins */
    height: auto;
    margin-right: 10px; /* Espace entre l'image et le texte */
}

nav .onglets{
    margin-top: 3px;
    margin-left: 300px;
}
nav .onglets a {
    position: relative;
    text-decoration: none;
    color: #000;
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav .onglets a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

nav .onglets a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

nav .onglets a.active {
    border: 1px solid #000;
    background-color: #f0f0f0;
}

nav .onglets a.active::before {
    background-color: transparent;
}


header{
    display: flex;
    flex-direction: column;
    align-items: center;
	background:	
        linear-gradient(
            to right ,
            black 40%, /* Dégradé noir jusqu'à la moitié */
            DarkSlateBlue 100% /* Dégradé bleu à droite */
        );
    background-size: cover  ;
	background-position: top center;
    color: #fff;
    padding: 40px;
	background-repeat: no-repeat
}
header h1{
    font-family: 'Playfair Display', serif;
    font-size: 50px;
}
header h4{
    margin-top: -20px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #fff;
}
header button{
    padding: 10px 20px;
    background-color: #fff;
    color:#000;
    border:none;
    margin-bottom: 30px;
    outline:none;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
}

.main{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main .content .card{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom:20px;
}
.main .content .card .left{
   flex: 0 0 30%;
   padding: 20px;
   background-color:black;
   color:#fff;
}
.main .content .card .right img{
    height:400px;
    width: 300px;
    margin-top: 5px;
}

footer{
    margin-top: 40px;
    border-top: 5px solid #6f6f6f;
    background-color: rgb(0, 0, 0);
    color: #fff;
    padding: 30px 100px;;
}
footer h1{
    font-family: 'Playfair Display', serif;
    border-bottom: 1px solid white;
    width: 20%;
    padding-bottom: 5px;
}
footer .services{
    margin-top: -10px;
    display:flex;
    flex-wrap:wrap;
}
footer .services .service{
    margin-right: 30px;
}
footer .services .service p{
    max-width: 300px;
}
footer #contact{
    color: rgb(181, 181, 181);
}

@media screen and (max-width:680px){
    nav .onglets {
        margin-left: 0px;
        margin-bottom: 20px;
    }
    .main .card {
        margin: 10px;
    }
    .main .content .card .right img{
        height:200px;
        width: 100%;
        margin-top: -0px;
    }
    .main .content .card{
        display: block;
    }
    footer{
        padding: 30px;
    }
}
.card-button {
    display: flex;
    text-align: center;
    margin: 10px auto 20px;
    padding: 8px 16px; /* Réduire le padding pour un bouton plus petit */
    background-color: #717171;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
    max-width: 200px; /* Définir une largeur maximale */
}

.card-button:hover {
    background-color: #505050;
}

@media screen and (max-width:680px) {
    .card-button {
        width: 80%;
        max-width: none; /* Annuler la largeur maximale sur les petits écrans */
        margin: 10px auto;
    }
}
.card-button-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}