/*style apropos*/
.fond-logo{
    background-image: url(../images/contenue_a_propos/fond.PNG);
    background-size: cover, contain; 
    background-position: center;
}
.fond-transparent{
    background-color: rgba(255, 255, 255, 0.822);
    width: 100%;
    height: 100%;
}
.section-image .container .row{
    padding: 0;
    margin: 0;
}
.col-five {
    position: relative;
    width: 20%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.portfolio-item img {
    width: 100%;
    object-fit: cover;
    height:  auto;
    /* margin-right: -80%; */

}
.portfolio-item {
    position: relative;
    overflow: hidden;
}
.portfolio-item img {
    transition: transform 0.5s ease;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}
.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(252, 249, 249, 0.932);
    color: #5b402f;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    height: 100%;
    width: 100%;
    overflow: visible;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width:  1199px) {
    .portfolio-item .overlay {
        font-size: 0.7em;
        padding: 7px;
    }
}

@media (max-width:  991px) {
    .portfolio-item .overlay {
        font-size: 0.5em;
        padding: 7px;
    }
}

@media (max-width:  767px) {
    .portfolio-item .overlay {
        font-size: 15px;
        padding: 15px;
    }
}

.btn-marron{
    background-color: #5b402f;
    color: #fff;
    border-radius: 20px;
    letter-spacing: 1px;
    line-height: 30px;
    border: none;
    transition: all 0.3s ease 0s;
    /* margin-left: 5%; */
}
.portfolio .overlay .title-text{
    margin-top: -80%;
}
.portfolio-item:hover .overlay {
    opacity: 1;
}
.overlay h1 {
    font-size: 2em; 
    color: #5B4333; 
    font-weight: normal;
    padding-top: 20%;
    margin-top: -42%;
}
.overlay h4 {
    color: #27507E; 
    font-weight: normal;
    padding-top: 20%;
    margin-top: -57%;
    font-weight: bold;
}
.overlay .p{
    color: #27507E;
    font-size: 21px;
    margin-top: 10px;
}
u {
    text-underline-offset: 20%; 
  }
.overlay h1 .apropos-dropped-cap {
    font-size: 2.5em; 
    /* vertical-align: top; */
    /* margin-top: -25%; */
}
.underline-text {
    text-decoration: underline;
    text-decoration-thickness: 70%; 
    text-decoration: none;
    border-bottom: 2px solid currentColor;
}
.line {
    height: 3px; 
    background-color:  #27507E !important; 
    margin-bottom: 10px;
    width: 98%; 
    margin-left: auto;
    margin-right: auto;
}
/*style apropos*/

/* Nah */
.cardVoit {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.voitForm {
    position: absolute;
}

/* Mise à jour de .description-hover pour avoir la même taille que .car-card */
.infoVoit {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Assure que la largeur soit identique à .car-card */
    height: 100%; /* Assure que la hauteur soit identique à .car-card */
    background-color: rgba(255, 255, 255, 0.7); /* Fond bleu semi-transparent */
    color: rgb(0, 0, 0);
    padding: 10px;
    border-radius: 5px;
    display: flex; /* Utilisation de Flexbox pour centrer le texte */
    justify-content: center; /* Centre horizontalement le texte */
    align-items: center; /* Centre verticalement le texte */
    flex-direction: column;
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transition fluide */
}

/* Survol de .car-card qui rend visible la description */
.cardVoit:hover .infoVoit {
    opacity: 1; /* Affiche la description avec une transition */
    transform: scale(1.05); /* Légère mise à l'échelle pour un effet plus dynamique */
}

.centered-line {
    position: relative;
    border-top: 2px solid blue; /* Ligne bleue */
    margin: 20px auto;
    width: 100%; /* Largeur de la ligne */
}

.centered-text {
    position: absolute;
    top: -12px; /* Ajuste la position verticale du texte */
    left: 50%;
    transform: translateX(-50%);
    background-color: white; /* Fond blanc derrière le texte */
    padding: 0 10px; /* Espacement autour du texte */
    color: rgb(69, 119, 212); /* Couleur du texte */
    font-weight: bold;
}

/* end Nah */

