/* Couleur primaire personnalisée */
:root {
    --primary-color: #e68a29;
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 10px 25px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #d26220 !important;
    border-color: #d26220 !important;
}

/* Arrière-plans */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Bordures */
.border-primary {
    border-color: var(--primary-color) !important;
}

/* Liens */
.text-primary {
    color: var(--primary-color) !important;
}

.text-primary:hover {
    color: #d26220 !important;
}

/* Navbar */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .dropdown-menu {
    background-color: var(--primary-color) !important;
}

body {
    color: #646464;
}

/* Couleur de texte blanc par défaut dans la navbar */
.navbar-nav .nav-link {
    color: white !important;
}

/* Effet de survol en orange */
.navbar-nav .nav-link:hover {
    background-color: #e68a29 !important;
    color: white !important;
    border-radius: 5px;
    /* Optionnel : ajoute un léger arrondi pour l'effet de survol */
}

/* Couleur de texte blanc par défaut dans la navbar */
.navbar-nav .nav-link {
    color: white !important;
}

/* Effet de survol en orange */
.navbar-nav,
.dropdown-item {
    background-color: #e68a29;
    color: white !important;
    border-radius: 5px;
    /* Optionnel : ajoute un léger arrondi pour l'effet de survol */
}

.nav-link:hover {
    background-color: #d26220 !important;
}

.dropdown-item:hover {
    background-color: #d26220 !important;
}

/* Limite la hauteur des images de certification à 150px */
.certification-image {
    height: 150px;
    object-fit: contain;
    /* Garde les proportions de l'image sans étirement */
    width: auto;
    /* Ajuste automatiquement la largeur */
}

/* Transition générale pour tous les éléments */
* {
    transition: all 0.3s ease-in-out;
}

/* Transition de couleur pour les éléments de la navbar au survol */
.navbar-nav .nav-link {
    color: #ffffff;
    /* couleur par défaut blanche */
}

.navbar-nav .nav-link:hover {
    color: #e68a29;
    /* couleur au survol */
}

/* Transition sur les boutons */
.btn-primary {
    background-color: #e68a29;
    border-color: #e68a29;
}

.btn-primary:hover {
    background-color: #c95b00;
    /* couleur légèrement plus foncée au survol */
    border-color: #c95b00;
}

/* Transition pour les images et les cartes */
.img-fluid,
.card {
    transition: transform 0.3s ease-in-out;
}

.img-fluid:hover,
.card:hover {
    transform: scale(1.05);
    /* Zoom léger au survol */
}

html {
    scroll-behavior: smooth;
    /* animation: fadeIn 2s forwards; */
}

/* Dropdown au hover pour les grands écrans */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar .dropdown:hover .dropdown-toggle::after {
        display: inline-block;
        transform: rotate(180deg);
    }
}

#topButton {
    display: none;
    /* Caché par défaut */
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #e68a29;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0;
    /* Initialement invisible */
    transition: all 0.3s ease-in-out;
    width: 50px;
    /* Largeur égale à la hauteur */
    height: 50px;
    /* Hauteur égale à la largeur */
    border-radius: 50%;
    /* Arrondi complet pour créer un cercle */
    border: 3px solid white;
    /* Bordure blanche de 3px */
}

#topButton i {
    position: absolute;
    top: 30%;
    left: 35%;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animation de disparition */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Applique l'animation fadeIn */
#topButton.show {
    display: block;
    animation: fadeIn 0.5s forwards;
    /* Applique l'animation d'apparition */
}

/* Applique l'animation fadeOut */
#topButton.hide {
    animation: fadeOut 0.5s forwards;
    /* Applique l'animation de disparition */
}

#topButton:hover {
    background-color: #c95b00;
}

/*
#partners img {
    filter: grayscale(100%);
    opacity: 0.35;
}
*/

a {
    text-decoration: none;
}

html {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Styles responsifs pour le toast */
.toast-container {
    max-width: 600px;
    /* Largeur maximale sur grand écran */
    width: 100%;
}

/* Ajustement pour les écrans plus petits (tablettes et mobiles) */
@media (max-width: 768px) {
    .toast-container {
        max-width: 90%;
        /* Limite à 90% de la largeur de l'écran sur mobile */
    }
}

/* Styles pour la modale des portes ouvertes */
#portesOuvertesModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#portesOuvertesModal .modal-header {
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #e68a29 0%, #d26220 100%);
}

#portesOuvertesModal .modal-title {
    font-weight: bold;
    font-size: 1.3rem;
}

#portesOuvertesModal .modal-body {
    padding: 2rem;
}

#portesOuvertesModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}

#portesOuvertesModal img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#portesOuvertesModal img:hover {
    transform: scale(1.02);
}

#portesOuvertesModal .text-primary {
    color: #e68a29 !important;
}

#portesOuvertesModal .text-success {
    color: #28a745 !important;
}

#portesOuvertesModal .fw-bold {
    font-weight: 600 !important;
}

/* Animation d'entrée pour la modale */
#portesOuvertesModal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

#portesOuvertesModal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    #portesOuvertesModal .modal-dialog {
        margin: 1rem;
    }

    #portesOuvertesModal .modal-body {
        padding: 1.5rem;
    }

    #portesOuvertesModal .modal-footer {
        padding: 1rem 1.5rem;
    }

    #portesOuvertesModal .modal-title {
        font-size: 1.1rem;
    }
}

.logone {
    max-width: 300px;
}