/*
Theme Name: GRIM GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Description: Thème sur mesure pour les sites du Groupe GRIM utilisant Tailwind CSS
Author: Richard Roig
Author URI: https://osmova.com/
Version: 1.0
Text Domain: grim-generatepress-child
*/

/* --------------------------------
    Variables globales
-------------------------------- */
:root {
    --top-header-height: 40px;
    --main-header-height: 80px;
    --header-height: 145px;
}

/* --------------------------------
    Cacher barre de scroll
-------------------------------- */
.element {
    overflow: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ */
}

.element::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Edge */
}

.element,
.outer {
    width: 300px;
    height: 300px;
}

.outer {
    border: 2px solid #666666;
    position: relative;
    overflow: hidden;
}

.inner {
    position: absolute;
    left: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

.inner::-webkit-scrollbar {
    display: none;
}

/* --------------------------------
    Styles de base
-------------------------------- */
body {
    background-color: #fff;
}

.site-content {
    display: flex;
    justify-content: center;
}

.site-content .content-area {
    width: 100%;
}

.separate-containers.both-right .site-main, 
.separate-containers.right-sidebar .site-main {
    margin-left: 0;
    margin-right: 0;
}

/* --------------------------------
    Nettoyage GeneratePress
-------------------------------- */
.site-header,
.site-content,
.main-navigation {
    box-shadow: none !important;
}

/* --------------------------------
    Header principal
-------------------------------- */
.site-header {
    position: relative;
    width: 100%;
    z-index: 999;
    background: white;
    transition: transform 0.3s ease-in-out;
}

#top-header {
    height: var(--top-header-height);
    background-color: #ffffff; /* bg-white */
}

#main-header {
    height: var(--main-header-height);
    background-color: #ffffff; /* bg-white */
}

/* Style sticky header */
.header-spacer {
    display: none;
    height: calc(var(--top-header-height) + var(--main-header-height));
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(calc(-1 * var(--top-header-height)));
}

.site-header.is-sticky + .header-spacer {
    display: block;
}

.site-header.is-sticky #top-header-content {
    border-bottom: none;
}

/* --------------------------------
    Navigation principale
-------------------------------- */
.site-header nav a {
    text-decoration: none !important;
}

.site-header nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header nav ul li a {
    color: #374151; /* text-gray-700 */
    text-transform: uppercase;
    transition: color 0.2s ease-in-out;
}

.site-header nav ul li a:hover {
    color: #6646ff; /* Votre violet grim */
}

/* --------------------------------
    Menu Mobile Optimisé
-------------------------------- */

/* Positionnement principal du menu mobile */
#mobile-menu {
    position: fixed;
    top: calc(var(--top-header-height) + var(--main-header-height));
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--top-header-height) - var(--main-header-height));
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
}

/* États du menu mobile */
#mobile-menu:not(.hidden),
#mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu.is-open > div:first-child {
    opacity: 1;
}

#mobile-menu.is-open > div:last-child {
    transform: translateX(0);
}

/* Arrière-plan avec overlay */
#mobile-menu .bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

/* Panel principal du menu */
#mobile-menu .transform,
#mobile-menu > div:last-child {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: min(320px, 90vw);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* --------------------------------
    Bouton Hamburger Animé
-------------------------------- */

/* Structure du bouton hamburger */
.hamburger-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.hamburger-menu:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 6px;
}

/* Conteneur des barres du hamburger */
.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

/* Barres du hamburger */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: #4b5563;
    border-radius: 1px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Animation hamburger -> croix */
.hamburger-menu.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: #374151;
}

.hamburger-menu.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
    opacity: 1;
}

.hamburger-menu.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(90deg);
    opacity: 0;
}

/* États hover du hamburger */
.hamburger-menu:hover .hamburger-inner,
.hamburger-menu:hover .hamburger-inner::before,
.hamburger-menu:hover .hamburger-inner::after {
    background-color: #1f2937;
}

/* Focus pour l'accessibilité */
.hamburger-menu:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 6px;
}

/* --------------------------------
    Navigation Mobile
-------------------------------- */

/* Conteneur de navigation */
#mobile-menu nav {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.2) transparent;
}

/* Scrollbar personnalisée */
#mobile-menu nav::-webkit-scrollbar {
    width: 3px;
}

#mobile-menu nav::-webkit-scrollbar-track {
    background: transparent;
}

#mobile-menu nav::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.2);
    border-radius: 2px;
}

/* Liste de navigation */
#mobile-menu nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#mobile-menu nav ul li {
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

#mobile-menu nav ul li:last-child {
    border-bottom: none;
}

/* Liens de navigation */
#mobile-menu nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
}

/* États hover des liens */
#mobile-menu nav ul li a:hover {
    background-color: #f8fafc;
    color: #1f2937;
    transform: translateX(8px);
}

/* États actifs des liens */
#mobile-menu nav ul li a.active,
#mobile-menu nav ul li a.current-menu-item,
#mobile-menu nav ul li a.current-page-ancestor {
    background-color: #f1f5f9;
    color: #1e40af;
    font-weight: 600;
}

/* Focus des liens */
#mobile-menu nav ul li a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    border-radius: 4px;
}

/* --------------------------------
    Bouton Fermer
-------------------------------- */

.mobile-close-button {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-button:hover {
    background: #ef4444;
    transform: scale(1.05);
}

.mobile-close-button:hover span {
    background-color: white;
}

.mobile-close-button span {
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #6b7280;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.mobile-close-button span:first-child {
    transform: rotate(45deg);
}

.mobile-close-button span:last-child {
    transform: rotate(-45deg);
}

/* --------------------------------
    Animations
-------------------------------- */

/* Animation d'apparition des liens */
#mobile-menu.is-open nav ul li {
    animation: slideInFromRight 0.3s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

#mobile-menu.is-open nav ul li:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.is-open nav ul li:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.is-open nav ul li:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.is-open nav ul li:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.is-open nav ul li:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.is-open nav ul li:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------
    Responsive
-------------------------------- */

/* Masquer le bouton hamburger sur desktop */
@media (min-width: 1024px) {
    #mobile-menu-button,
    .hamburger-menu {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Affichage mobile uniquement */
@media (max-width: 1023px) {
    .hamburger-menu {
        display: inline-flex !important;
        visibility: visible !important;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    #mobile-menu .transform,
    #mobile-menu > div:last-child {
        width: 95vw;
    }
    
    #mobile-menu nav ul li a {
        font-size: 15px;
        padding: 0.875rem 1.25rem;
    }
}

/* Support pour les encoches d'écran */
@supports (padding-top: env(safe-area-inset-top)) {
    #mobile-menu .transform,
    #mobile-menu > div:last-child {
        padding-top: env(safe-area-inset-top);
    }
}
/* --------------------------------
    Vidéo d'en-tête
-------------------------------- */
#hero-section {
    position: relative;
    z-index: 1;
}

#video-container {
    position: relative;
    z-index: 2;
}

/* Optimisations vidéo */
#video-wrapper {
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform, max-width, border-radius;
    transform: translateZ(0);
}

#video-wrapper .video-wrapper {
    height: calc(60vh - var(--header-height));
    min-height: 400px;
}

#models-info {
    position: inherit;
    width: 100%;
    z-index: 2;
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform, opacity, visibility;
    transform: translateZ(0);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

#models-info.visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Espacements dynamiques */
.scroll-spacer {
    transition: height 0.3s ease-out;
    will-change: height;
}

/* Contenu principal */
.entry-content {
    position: relative;
    z-index: 1;
    background-color: white;
}

/* Conteneur du contenu principal */
#hero-section > .z-10 {
    position: relative;
    background-color: white;
    margin-top: -1px; /* Évite les gaps potentiels */
}

/* Optimisations des transitions */
.video-wrapper video,
.video-wrapper img {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Ombres des cartes modèles */
#models-info .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styles pour mobile */
@media (max-width: 767px) {
    #video-wrapper {
        height: 60vh !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #models-info {
        position: relative !important;
        padding: 1rem;
        top: 0 !important;
        transform: none !important;
    }

    .grid-cols-1 {
        gap: 1rem !important;
    }

    #hero-logo {
        max-width: 60% !important;
        margin: 0 auto;
    }
}

/* --------------------------------
   Footer
-------------------------------- */
.footer-background {
    background-color: #F9FAFB;
}

.text-align-last-left {
    text-align-last: left;
}

/* --------------------------------
    Article de Blog
-------------------------------- */
.prose {
    max-width: 95ch;
    color: inherit;
}

.prose p {
    text-align: justify;
}

/* Styles pour l'effet de l'image de mise en avant */
.parallax-image-container {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.parallax-image-container img {
    transform-origin: center center;
    will-change: transform, filter;
}

#featured-image {
    transition: transform 0.3s ease-out, filter 0.3s ease-out, opacity 0.3s ease-out;
}

/* --------------------------------
    Page de tous les articles
-------------------------------- */
.blog-card {
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.blog-card h2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card p.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* Effet glassmorphism moderne sur les badges de catégorie */
.category-badge {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.blog-card:hover .category-badge {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Style de la pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    background-color: white;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    transform: translateY(0);
}

.pagination .page-numbers:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.pagination .page-numbers.current {
    background-color: #000;
    color: white;
    border-color: #000;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

.pagination .prev,
.pagination .next {
    padding: 0 1rem;
}

/* Style des badges "Nouvel article" */
.new-post-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5;
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card:hover .new-post-badge {
    transform: translateY(-2px);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Animation de l'effet de pulsation pour la page active */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,0,0,0.2);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0,0,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .pagination .page-numbers {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
    
    .pagination .prev,
    .pagination .next {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .pagination .prev svg,
    .pagination .next svg {
        width: 0.75rem;
        height: 0.75rem;
    }
}

/* --------------------------------
    Corrections spécifiques
-------------------------------- */
/* Correction du hover sur les boutons noirs avec texte blanc */
.inline-flex.items-center.bg-black.text-white:hover,
.inline-flex.items-center.bg-black.text-white:focus,
.inline-flex.items-center.bg-black.text-white:active {
    color: white !important;
}

.inline-flex.items-center.bg-black.text-white:hover *,
.inline-flex.items-center.bg-black.text-white:focus *,
.inline-flex.items-center.bg-black.text-white:active * {
    color: white !important;
}

/* --------------------------------
    Template Rendez-vous
-------------------------------- */
.page-template-template-rendez-vous .form-step.hidden {
    display: none !important;
}

.page-template-template-rendez-vous .marque-item.active .bg-white,
.page-template-template-rendez-vous .ville-item.active,
.page-template-template-rendez-vous .motif-item.active div {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.page-template-template-rendez-vous .progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.page-template-template-rendez-vous .progress-bar-fill {
    height: 100%;
    background: #000;
    transition: width 0.3s ease;
}

.page-template-template-rendez-vous .back-button {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.page-template-template-rendez-vous .back-button.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Animation des cartes au survol */
.page-template-template-rendez-vous .marque-item div,
.page-template-template-rendez-vous .ville-item,
.page-template-template-rendez-vous .motif-item div {
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.page-template-template-rendez-vous .marque-item div:hover,
.page-template-template-rendez-vous .ville-item:hover,
.page-template-template-rendez-vous .motif-item div:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animation de succès */
@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.page-template-template-rendez-vous #success-message .fa-check {
    animation: checkmark 0.5s ease-in-out forwards;
}

/* État de traitement pour l'option Atelier */
.page-template-template-rendez-vous .motif-item.processing div {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    pointer-events: none;
}

.page-template-template-rendez-vous .motif-item.processing div::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
    animation: progress-bar 1s infinite linear;
}

@keyframes progress-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.legal .prose {
    max-width: 100%;
}

.legal .object-cover {
    margin-left: 0px;
}

/* --------------------------------
    Support des embeds vidéo
-------------------------------- */
.content-embeds-wrapper .wp-block-embed__wrapper,
.video-content-wrapper .wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* Pour un ratio 16:9 */
}

.content-embeds-wrapper .wp-block-embed__wrapper iframe,
.video-content-wrapper .wp-block-embed-youtube .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-content-wrapper .wp-block-embed-youtube {
    margin: 2rem 0;
}

.video-content-wrapper .wp-block-embed-youtube .wp-block-embed__wrapper {
    max-width: 100%;
}

/* Styles personnalisés pour les embeds YouTube dans les offres */
.youtube-custom-embed {
    margin: 2rem auto;
    max-width: 95%;
}

.youtube-custom-embed .wp-block-embed__wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-custom-embed:hover .wp-block-embed__wrapper {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.youtube-custom-embed .wp-block-embed__wrapper iframe {
    border-radius: 12px;
}

.youtube-custom-embed .wp-block-embed__wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-custom-embed:hover .wp-block-embed__wrapper::before {
    opacity: 1;
}

/* --------------------------------
    Formulaire d'offre
-------------------------------- */
.offre-contact-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offre-contact-form input[type="text"],
.offre-contact-form input[type="email"],
.offre-contact-form input[type="tel"],
.offre-contact-form textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.offre-contact-form input[type="text"]:focus,
.offre-contact-form input[type="email"]:focus,
.offre-contact-form input[type="tel"]:focus,
.offre-contact-form textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Sur mobile, le formulaire ne doit pas être trop haut */
@media (max-width: 1023px) {
    .offre-contact-form {
        max-height: none;
    }
}

/* Sur desktop, le formulaire s'adapte à la hauteur de l'image */
@media (min-width: 1024px) {
    .offre-contact-form {
        max-height: 702px;
        overflow-y: auto;
    }
    
    .offre-contact-form::-webkit-scrollbar {
        width: 4px;
    }
    
    .offre-contact-form::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .offre-contact-form::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .offre-contact-form::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Effet visuel pour le succès du formulaire */
@keyframes formSuccessFlash {
    0% { background-color: rgba(220, 252, 231, 0); }
    50% { background-color: rgba(220, 252, 231, 0.8); }
    100% { background-color: rgba(220, 252, 231, 0); }
}

.form-success-flash {
    animation: formSuccessFlash 1.5s ease-out;
}

.tab-btn {
    background-color: transparent !important;
    color: inherit !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    box-shadow: none !important;
}

.tab-btn:hover, .tab-btn:focus {
    background-color: transparent !important;
    color: inherit !important;
}

.tab-btn.active {
    color: #000 !important;
}

.tab-btn.inactive {
    color: #6b7280 !important;
}

/* Fix modal Preline - Forcer l'affichage */
#hs-modal-contact.open,
#hs-modal-contact.opened {
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}

#hs-modal-contact .hs-overlay-open\:opacity-100,
#hs-modal-contact.open .hs-overlay-open\:opacity-100 {
    opacity: 1 !important;
}

#hs-modal-contact .hs-overlay-open\:mt-7,
#hs-modal-contact.open .hs-overlay-open\:mt-7 {
    margin-top: 1.75rem !important;
}

/* S'assurer que le contenu de la modal est visible */
#hs-modal-contact .pointer-events-auto {
    pointer-events: auto !important;
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Fix modal Preline - Plein écran */
#hs-modal-contact.open,
#hs-modal-contact.opened {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 1rem !important;
}

/* Container de la modal centré */
#hs-modal-contact .pointer-events-auto {
    width: 100% !important;
    max-width: 32rem !important;
    margin: 0 auto !important;
}

/* Contenu de la modal */
#hs-modal-contact .pointer-events-auto {
    pointer-events: auto !important;
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
}