
.hero{
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6)), url(../img/iStock-1188452511.jpg);
    height:40vh;
    width:100%;
    position: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 45%;
    z-index: -999;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 150px 0;
}

.hero-title h1{
    margin: 0;
    max-width: 700px;
    font-weight: 600;
    color: var(--second-color);
    font-size: 3rem;
    line-height: 0.9;
    white-space: nowrap;
}

.rent-container{
    width: 100%;
    margin: auto;
    color: var(--second-color);
    padding: 2% 12%;
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.rent-container h2{
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4% 1% 2% 1%;
    font-style: italic;
}

.rent{
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 20px;
}

.rent img{
    width: 60px;
}

.rent p{
    font-size: 1.6rem;
    line-height: 2;
    padding-bottom: 50px;
}

.collaborateur{
    padding-top: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.background-svg-left{
    position: absolute;
    top: 25%;
    left: -48%;
    width: 95%;
    height: auto;
    z-index: 0;
}

.background-svg-right{
    position: absolute;
    top: -28%;
    left: 50%;
    width: 90%;
    height: auto;
    z-index: 0;
}

.collaborateur img{
    width: 20%;
}

.collaborateur-text{
    padding: 100px 0;
    font-size: 1.6rem;
    color: var(--second-color);
    text-align: center;
}

.separation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.separation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 50px; /* Ajustez cette valeur selon vos besoins */
}

.cle-bleu {
    transform: rotate(-90deg);
    z-index: 1;
    margin: 0 20px; /* Ajoute de l'espace entre les lignes et l'image */
    width: 10%; /* Utilisez une largeur relative pour la rendre responsive */
    max-width: 100px; /* Valeur maximale pour éviter qu'elle ne devienne trop grande */
    height: auto; /* Maintient les proportions */
}

.right, .left {
    border-bottom: 3px solid #334e6d;
    width: 20%;
    height: 3px;
}

.left {
    margin-left: auto; /* Pousse l'élément vers la gauche */
}

.right {
    margin-right: auto; /* Pousse l'élément vers la droite */
}

@media (max-width: 768px) {
    .collaborateur-text{
        padding: 50px 0;
    }
    .cle-bleu {
        width: 15%; /* Ajuste la taille pour les écrans plus petits */
        max-width: 80px; /* Réduit la taille maximale */
    }

    .left, .right {
        height: 2px; /* Réduit l'épaisseur des lignes */
    }
}

@media (max-width: 480px) {
    .cle-bleu {
        width: 20%; /* Ajuste la taille pour les très petits écrans */
        max-width: 60px; /* Réduit encore la taille maximale */
    }

    .left, .right {
        height: 1px; /* Réduit encore l'épaisseur des lignes */
    }
}

/* service*/

.container {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url(../img/marbre.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.container-service {
    width: 80%;
    margin: auto;
}

.container h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--second-color);
    padding: 8% 1% 8% 1%;
    text-transform: uppercase;
    font-style: italic;
}

.fresque {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Ajout de plus d'espacement entre les images */
    padding-top: 50px;
    position: relative;
    z-index: 2;
}

.service-image {
    width: 100%;
    height: auto;
    max-width: 250px; /* Taille maximale par défaut */
    cursor: pointer;
    transition: transform 0.3s;
}

.service-image:hover {
    transform: scale(1.4);
}
@media (max-width: 1624px) {
    .service-image {
        max-width: 200px;
    }
}

@media (max-width: 1324px) {
    .service-image {
        max-width: 170px;
    }
}

@media (max-width: 1124px) {
    .service-image {
        max-width: 160px;
    }
}

@media (max-width: 1060px) {
    .service-image {
        max-width: 140px;
    }
}
/* Trois colonnes sur les écrans tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
    .service-image {
        flex: 1 1 calc(33.333% - 40px); 
        max-width: calc(33.333% - 40px);
    }
}

/* Deux colonnes sur les écrans téléphones */
@media (max-width: 767px) {
    .service-image {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px)
    }
}

.nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 5;
}

.nav-arrows button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--second-color);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.nav-arrows button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.service-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    padding-bottom: 20px;
}

.service-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-dot.active {
    background-color: #666;
    transform: scale(1.2);
}

.service-details {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3; /* Positionne le détail au-dessus du SVG bleu */
}

.service-details.visible {
    display: flex; /* Afficher quand le contenu est ajouté */
}

.card {
    padding-top: 260px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
}

.service-content {
    width: 100%;
    flex-wrap: nowrap; /* Pour éviter l'empilement */
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.card img {
    width: 33%;
    max-height: 500px;
    flex-shrink: 0;
}

.card .service-description {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card .service-description h2 {
    padding-top: 40px;
    font-size: 2rem;
    color: var(--second-color);
    text-align: center;
    text-transform: uppercase;
}

.card .service-description p {
    padding-top: 40px;
    margin: 10px 0;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: underline;
    color: var(--second-color);
}

.card .service-description span {
    margin: 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--second-color);
}

.stars {
    display: flex;
    align-items: baseline;
    margin-top: 10px;
}

.stars .star {
    margin-right: 10px;
}

.background-svg-blue {
    position: relative;
    overflow: hidden;
    z-index: 1; /* Positionné sous le détail du service */
    height: 1100px; /* Ajustez cette valeur pour contrôler la hauteur */
}

.svg-background-decoration {
    position: absolute;
    top: 17%;
    left: -55%;
    width: 190%;
    height: 100%;
    object-fit: cover; /* Maintient les proportions de l'image */
    z-index: 0;
    pointer-events: none; /* Empêche le SVG d'interagir avec les événements de la souris */
}

.service-btn{
    text-align: center;
    margin: 30px 0;
}

@media screen and (max-width:1480px) {
    .rent-container h2{
        font-size: 1.8rem;
    }
    .container h3{
        font-size: 1.8rem;
    }
    .card{
        width: 95%;
        margin: auto;
        padding-top: 180px; /* Réduire l'espace supérieur */
        gap: 40px;
    }
    .collaborateur-text{
        font-size: 1.2rem;
    }
    .background-svg-left{
        display: none;
    }
    .card img {
        width: 29%; /* Réduire la taille de l'image */
        padding-top: 10px;
        max-height: 350px;
    }
    .card .service-description {
        padding-top: 20px;
        width: 60%; /* Ajuster la largeur de la description */
    }
    .card .service-description h2 {
        font-size: 1.1rem; /* Réduire la taille de la police */
        padding-top: 20px; /* Réduire l'espace supérieur */
    }

    .card .service-description p {
        font-size: 1rem; /* Réduire la taille de la police */
        padding-top: 10px; /* Réduire l'espace supérieur */
    }

    .card .service-description span {
        font-size: 0.9rem; /* Réduire la taille de la police */
    }
    .background-svg-blue{
        height: 900px;
    }
    .svg-background-decoration{
        width: 250%;
        top: 1%;
        left: -74%;
    }
    .service-btn .btn{
        font-size: 1rem;
        padding: 0.9rem 1.7rem;
    }
}

@media screen and (max-width:907px) {
    .hero-title h1{
        font-size: 1.5rem;
    }
    .rent-container h2{
        font-size: 1.5rem;
    }
    .rent img{
        width: 40px;
    }
    .rent p{
        font-size: 1rem;
        line-height: 1.4;
    }
    .collaborateur-text{
        font-size: 1rem;
    }
    .container h3{
        font-size: 1.5rem;
    }
    .card {
        padding-top: 60px; /* Réduire l'espace supérieur */
        flex-direction: column; /* Afficher la carte en colonne */
        align-items: center; /* Centrer les éléments */
        text-align: center;
    }
    .service-content {
        flex-direction: column;
    }
    .card img {
        width: 60%; /* Réduire la taille de l'image */
        margin: 0 auto; /* Centrer l'image */
    }
    .card .service-description {
        width: 100%; /* Utiliser toute la largeur */
        align-items: center; /* Centrer le contenu */
    }

    .card .service-description h2 {
        font-size: 1.2rem; /* Réduire la taille de la police */
        padding-top: 10px; /* Réduire l'espace supérieur */
    }

    .card .service-description p {
        font-size: 1rem; /* Réduire la taille de la police */
        padding-top: 10px; /* Réduire l'espace supérieur */
    }

    .card .service-description span {
        font-size: 0.8rem; /* Réduire la taille de la police */
        
    }
    .svg-background-decoration{
        display: none;
    }
    .background-svg-blue{
        height: 950px;
    }
    .service-btn .btn{
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
} 