@import '../../node_modules/bootstrap/dist/css/bootstrap.css';

@import url('https://fonts.googleapis.com/css2?family=Quattrocento&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@100&display=swap');

:root {
    --bs-dark-rgb: 25, 45, 45;

}

* {
    font-family: 'Quattrocento', serif;
}

.navbar {
    background-color: #305252 !important;
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: white !important;
}

.navbar .nav-link:hover {
    opacity: 0.8;
    /* Ajoutez un effet d'opacité pour une meilleure interactivité */
}

.navbar-brand {
    font-family: 'Quattrocento', serif !important;
}


/* Style pour les boutons  */
.custo-button {
    color: #305252 !important;
    border-radius: 0px !important;
    border: 1px solid #d6d3d1 !important;
    background-color: transparent !important;
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease !important;
    font-family: 'Gothic A1', sans-serif !important;
    font-weight: 100 !important;
    margin: 2% 0% 2% 0%;
}

.custo-button:hover {
    background-color: #d6d3d1 !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
}

.custo-button:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}


h1,
h2,
h3,
h4,
h5,
h6,
sup {
    color: #305252;

}

input,
textarea {
    border-radius: 0px !important;
    margin: 1% 0% 2% 0% !important;
}

label,
footer p,
nav a,
th,
td,
input,
textarea,
p,
select,
span {
    font-family: 'Gothic A1', sans-serif !important;
    font-weight: 100 !important;
}


.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.navbar-toggler-icon {
    background-image: none !important;
    width: 30px !important;
    height: 2px !important;
    background-color: white !important;
    /* Couleur des barres */
    position: relative !important;
    transition: transform 0.3s ease-in-out !important;
    /* Transition douce */
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: inherit !important;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out !important;
    /* Transition douce */
}

.navbar-toggler-icon::before {
    top: -10px !important;
}

.navbar-toggler-icon::after {
    bottom: -10px !important;
}

.navbar-toggler:hover .navbar-toggler-icon::before {
    transform: rotate(45deg) !important;
    top: 0 !important;
}

.navbar-toggler:hover .navbar-toggler-icon::after {
    transform: rotate(-45deg) !important;
    bottom: 0 !important;
}


/* Styles pour le tableau */
.table {
    font-size: 0.9rem;
    /* Diminue légèrement la taille de la police pour un aspect plus fin */
}

.table th,
.table td {
    /* Espacement interne des cellules */
    vertical-align: middle;
    /* Centrage vertical du contenu */
}

/* Styles pour les boutons dans le tableau */
.table .btn {
    font-family: 'Gothic A1', sans-serif !important;
    font-weight: 100 !important;
    color: #305252 !important;
    border-radius: 0px !important;
    border: 1px solid #d6d3d1 !important;
    background-color: transparent !important;
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease !important;
}

.table .btn:hover {
    background-color: #d6d3d1 !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
}

.table .btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}


/* Style pour le texte de pagination */
.d-flex p.small.text-muted {
    font-family: 'Gothic A1', sans-serif;
    font-weight: 100;
    color: #305252;
}

/* Styles pour les boutons de pagination */
ul.pagination .page-link {
    font-family: 'Gothic A1', sans-serif;
    font-weight: 100;
    color: #305252;
    border-radius: 0px;
    border: 1px solid #d6d3d1;
    background-color: transparent;
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

ul.pagination .page-link:hover {
    background-color: #d6d3d1;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

ul.pagination .page-item.active .page-link {
    background-color: #d6d3d1;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

ul.pagination .page-item.disabled .page-link {
    opacity: 0.6;
    /* Pour rendre le bouton légèrement transparent lorsqu'il est désactivé */
}

.pagination-container {
    flex-direction: column;
    /* Force les enfants à s'empiler verticalement */
}

.alert-success {
    font-family: 'Gothic A1', sans-serif;
    font-weight: 100;
}


#propertyOptions {
    display: none;
    position: fixed;
    /* Changement de absolute à fixed */
    z-index: 10;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 150px;
    border-radius: 5px;
}



/* Icone login */
.icon-small {
    height: 14px;
}


.content {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.32);
    /* Fond semi-transparent */
    color: #fff;
    /* Couleur du texte en blanc */
}

/* Style pour le select */
select.select-custo {
    font-family: 'Gothic A1', sans-serif !important;
    font-weight: 100 !important;
    border-radius: 0px !important;
    border: 1px solid #d6d3d1 !important;
    background-color: transparent !important;
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease !important;
    margin: 2% 0% 2% 0%;
}

select.select-custo:hover {
    background-color: #d6d3d1 !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
}

select.select-custo:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}


/* Style pour la mise en page des informations de la propriété */


/* Style par défaut pour .property-info, utilisé dans la vue show */



.small-photo {
    max-width: 150px;
    /* ou toute autre taille que vous préférez */
    height: auto;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.show-icon {
    height: 0.875rem;
}

.info-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.info-container img {
    margin-right: 10px;
}

.info-container span {
    font-size: 0.875rem;
    margin-right: 10px;

}

.profile-photo {
    width: 100px;
}


/* Tous les styles pour la vue welcome */



.price {
    font-weight: bold;
    font-size: 1.2em;
}

.property-card {
    border-radius: 0px !important;
}

.property-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}


.img-card {
    width: 100%;
    height: 20rem;
    display: inline-block;
}

.img-front {


    width: 100%;
    /* ou une valeur fixe comme 300px */
    height: 22rem;

    object-fit: cover;
    /* pour conserver le ratio d'aspect */
}


/* Vue show */

.img-card-show {
    width: 100%;
    height: 35rem;
    object-fit: cover;
}

.img-card-show-left {
    width: 100%;
    height: 17rem;
}

/* Gallery */

.fancybox__container {
    --fancybox-color: #0d0c22;
    --fancybox-bg: #fff;
    --f-spinner-color-1: rgba(0, 0, 0, 0.1);
    --f-spinner-color-2: rgba(17, 24, 28, 0.8);

    flex-direction: column-reverse;
}

.fancybox__toolbar {
    --f-button-bg: #f3f3f4;
    --f-button-hover-bg: #e7e7e9;
    --f-button-active-bg: #e7e7e9;
    --f-button-color: #0d0c22;
    --f-button-hover-color: #0d0c22;

    --f-button-border-radius: 8px;

    --f-button-svg-width: 20px;
    --f-button-svg-height: 20px;

    --f-button-svg-stroke-width: 1.5;
    --f-button-svg-filter: none;

    padding: 30px;
    z-index: 10;
}

.fancybox__slide {
    padding: 12px 0px;
}

.fancybox__thumbs.is-classic {
    --f-thumb-gap: 3px;
    --f-thumb-width: 88px;
    --f-thumb-height: 66px;
    --f-thumb-opacity: 1;
    --f-thumb-outline: 3px;
    --f-thumb-outline-color: #305252;
    --f-thumb-border-radius: 6px;
    --f-thumb-offset: 4px;

    padding: 10px 100px 10px 26px;
    border-bottom: 2px solid #f3f3f4;
}

/* Align thumbnails on right side if not draggable */
.f-thumbs__viewport:not(.is-draggable) .f-thumbs__track {
    justify-content: flex-end;
}

.f-thumbs__slide__img {
    border-radius: 7px;
}


.image-container-galery {
    width: 100%;
    /* Définissez la largeur totale de la div */
    height: 100%;
    /* Définissez la hauteur de la div */
    overflow: hidden;
    /* Cela permet de cacher tout contenu dépassant de la div */
    display: flex;
}

.image-galery {
    flex: 1;
    /* Cela fait en sorte que chaque image occupe une moitié de la largeur totale */
    height: 100%;
    /* Garantit que la hauteur de l'image est égale à la hauteur de la div parente */
    background-size: cover;
    /* Ajuste la taille de l'image pour couvrir la div */
    background-position: center;
    /* Centre l'image dans la div */
}


/* Style des liens du footer */
footer a {
    color: white;
    /* Couleur du texte des liens */
    text-decoration: none;
    /* Suppression de la décoration par défaut (soulignage) */
    transition: underline;
    /* Ajout d'une transition pour le soulignage au survol */
}

/* Style des liens du footer au survol */
footer a:hover {
    color: white;
    text-decoration: underline;
    /* Soulignage au survol */
}

footer h4 {
    color: white;
}

.bg-custo {
    background-color: #305252;
}

.bg-custobis {
    background-color: #192D2D;
}

footer .column {
    padding: 2%;
}


.energy-consumption {
    font-family: Arial, sans-serif;
}

.label {
    margin-bottom: 10px;
    font-size: 24px;
}

.bars {
    display: flex;
}

.bar {
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 0 2px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    /* Position relative pour la flèche */
    z-index: 1;
    /* Assure que la barre est sous la flèche */
}

/* Couleurs des barres */
.green {
    background: #4CAF50;
}

.yellow {
    background: #FFEB3B;
}

.orange {
    background: #FF9800;
}

.red {
    background: #F44336;
}

.light-blue {
    background-color: #ADD8E6;
    /* Bleu clair */
}

.blue {
    background-color: #87CEEB;
    /* Bleu */
}

.medium-blue {
    background-color: #6495ED;
    /* Bleu moyen */
}

.dark-blue {
    background-color: #4169E1;
    /* Bleu foncé */
}

.darker-blue {
    background-color: #00008B;
    /* Bleu plus foncé */
}

.darkest-blue {
    background-color: #000080;
    /* Bleu le plus foncé */
}

.black {
    background-color: #000000;
    /* Noir */
}

/* Barre sélectionnée */
.selected {
    width: 45px;
    /* Plus grand que les autres barres */
    height: 45px;
    /* Plus grand que les autres barres */
    line-height: 45px;
    /* Ajuster pour centrer le texte verticalement */
    font-size: 20px;
    /* Facultatif pour augmenter la taille du texte */
    transform: translateY(-7px);
    /* Décaler légèrement vers le haut */
    z-index: 2;
    /* Assure que la barre sélectionnée est au-dessus des autres */
}

.indicator {
    position: relative;
    margin-top: 10px;
    display: inline-block;
    z-index: 3;
    /* Assure que la flèche est au-dessus de tout */
}

.arrow-up {
    position: absolute;
    top: -10px;
    /* Ajustez selon l'aspect visuel */
    left: 0%;
    /* Centré par défaut */
    margin-left: 0px;
    /* Ajustez cette valeur pour centrer la pointe de la flèche */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #bbb;
    /* Couleur de la flèche correspondant à la barre sélectionnée */
    z-index: 4;
    /* La flèche doit être au-dessus de toutes les barres */
}

.value {
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    background: #FFEB3B;
    padding: 5px;
    border-radius: 5px;
    position: relative;
    z-index: 4;
    /* Au-dessus de la flèche pour éviter tout chevauchement */
}

/* Positions de la flèche pour chaque valeur de A à G */
.arrow-position-a {
    left: calc(50% - 3 * 30px);
}

.arrow-position-b {
    left: calc(50% - 2 * 30px);
}

.arrow-position-c {
    left: calc(50% - 1 * 30px);
}

.arrow-position-d {
    left: -50%;
}

.arrow-position-e {
    left: calc(50% + 1 * 30px);
}

.arrow-position-f {
    left: calc(50% + 2 * 30px);
}

.arrow-position-g {
    left: calc(50% + 3 * 30px);
}


/* Pour les écrans mobiles, vous pouvez le rendre un peu plus large pour une meilleure visibilité */
@media (max-width: 768px) {
    #propertyOptions {
        width: 250px;

    }

    .img-card-show {
        height: 15rem;
        width: 100%;
    }


}

@media (max-width: 992px) {
    .img-card-show {
        height: 20rem;
        width: 100%;
    }

}