/* 
   PATCHES ET AJUSTEMENTS DE RENDU 
   Ces styles s'appliquent en surcharge des feuilles de style Odoo pour corriger les intégrations.
*/

:root {
    --primary-color: #004651;
    --primary-light: #006070;
    --primary-dark: #002d35;
    --accent-gold: #BDD143;
    --accent-gold-rgb: 189, 209, 67;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


#main-content {
    min-height: 70vh;
    position: relative;
    z-index: 1;
}

/* S'assurer que le header et la navbar restent toujours au-dessus du contenu principal et des covers */
header#top,
.o_header_standard,
.navbar {
    position: relative !important;
    z-index: 1030 !important;
}

.nav-item.dropdown {
    position: relative !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1050 !important;
    min-width: 200px !important;
    padding: 8px 0 !important;
    margin: 0 !important; /* Pas de marge pour éviter que le survol se perde */
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 70, 81, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Pont de survol invisible pour ne jamais perdre le survol lors des mouvements de souris */
.dropdown-menu::before {
    content: "" !important;
    position: absolute !important;
    top: -12px !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    background: transparent !important;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ouverture au survol en CSS pur pour desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 10px 20px !important;
    clear: both !important;
    font-weight: 500 !important;
    color: #004651 !important; /* Couleur sombre AEH */
    text-align: inherit !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.dropdown-item span {
    color: #004651 !important;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    color: #004651 !important;
    background-color: rgba(0, 70, 81, 0.08) !important;
}

.dropdown-item:hover span, 
.dropdown-item:focus span {
    color: #004651 !important;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #ffffff !important;
    background-color: #004651 !important;
}

.dropdown-item.active span,
.dropdown-item:active span {
    color: #ffffff !important;
}

/* Fixer le positionnement du fond parallaxe et des filtres de couleur dans les covers */
.s_cover, .parallax, .s_banner {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.s_parallax_bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -2 !important; /* Force le fond à se mettre tout à l'arrière */
    background-size: cover !important;
    background-position: center !important;
    transform: none !important; /* Désactiver la transformation dynamique Odoo si elle bugge */
}

.o_we_bg_filter {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important; /* Filtre au-dessus du fond mais sous le texte */
}

.s_cover .container, .parallax .container, .s_banner .container {
    position: relative !important;
    z-index: 2 !important; /* Force le texte et boutons au premier plan */
}

/* Logo de la marque dans la barre de navigation */
.navbar-brand img {
    max-height: 50px !important;
    height: auto !important;
    width: auto !important;
}

/* Styles customisés pour la Boutique (/shop) */
.product-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 70, 81, 0.08) !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 70, 81, 0.1) !important;
}

#cart-items-container::-webkit-scrollbar {
    width: 6px;
}

#cart-items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#cart-items-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#cart-items-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Styles pour la page Réservation Local (/appointment) */
.s_website_form_label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    display: block;
}

/* Fixer la visibilité des icônes Odoo (FontAwesome fallback) */
.fa, .fa-stack {
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
}
.dropdown-menu.show { display: block !important; }

/* Styles pour le menu mobile offcanvas */
.offcanvas {
    z-index: 1060 !important;
}

.offcanvas-body .accordion-button {
    font-weight: 600 !important;
    color: #004651 !important;
}

.offcanvas-body .accordion-button span {
    color: #004651 !important;
}

.offcanvas-body .list-group-item {
    color: #004651 !important;
    background-color: transparent !important;
}

.offcanvas-body .list-group-item span {
    color: #004651 !important;
}

.offcanvas-body .list-group-item:hover {
    background-color: rgba(0, 70, 81, 0.05) !important;
}
