/* ==========================================================================
   Variables de styles & Reset partiel du Header
   ========================================================================== */
:root {
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    padding-block: 5px;
}

/* États du fond de navigation */
.main-header.transparent-nav {
    background-color: transparent;
}
.main-header.transparent-nav .nav-desktop a,
.main-header.transparent-nav .lang-current {
    color: #ffffff;
}

.main-header.scrolled-nav {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.main-header.scrolled-nav .nav-desktop a,
.main-header.scrolled-nav .lang-current {
    color: var(--slate-900);
}

/* Conteneur principal */
.header-container {
    max-width: 80rem; /* 1280px (max-w-7xl) */
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: all 0.3s ease;
}
@media (min-width: 1024px) {
    .header-container {
        height: 100px; /* Équivalent lg:py-4 */
    }
}

/* Logo */
.logo .logo-img {
    height: 90px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}
@media (min-width: 640px) {
    .logo .logo-img {
        height: 120px;
    }
}

/* ==========================================================================
   Navigation Bureau (Desktop)
   ========================================================================== */
.nav-desktop {
    display: none;
    align-items: center;
}
@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

/* Nettoyage des listes WordPress standard */
.nav-desktop ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem; /* space-x-6 */
}

.nav-desktop ul li a {
    text-decoration: none;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-desktop ul li a:hover,
.nav-desktop ul li.current_page_item > a {
    color: #c8202a !important;
}

/* Gestion du menu déroulant (Dropdown classique) */
.nav-desktop ul li.menu-item-has-children {
    position: relative;
    padding-right: 1.25rem;
}

.nav-desktop ul li.menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 16rem; /* w-64 */
    background-color: #ffffff;
    border: 1px solid var(--slate-100);
    border-radius: 0.125rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 60;
}

.nav-desktop ul li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.nav-desktop ul li.menu-item-has-children .sub-menu a {
    color: var(--slate-700) !important;
    padding: 0.75rem 1rem;
    display: block;
    border-b: 1px solid var(--slate-100);
}
.nav-desktop ul li.menu-item-has-children .sub-menu li:last-child a {
    border-b: none;
}

/* Sélecteur de langue Desktop */
.main-header.scrolled-nav ul .wpml-ls-menu-item a {
    color: #0f172b;
}

.main-header ul .wpml-ls-menu-item {
    position: relative;
    top: 2.2px;
}
.lang-selector-wrapper {
    margin-left: 1.5rem;
    position: relative;
    cursor: pointer;
}
.lang-current {
    font-size: 0.875rem;
    font-weight: 600;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 6rem;
    background: #ffffff;
    border: 1px solid var(--slate-100);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    flex-direction: column !important;
    gap: 0 !important;
    display: none !important;
}
.lang-selector-wrapper:hover .lang-dropdown {
    display: flex !important;
}
.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--slate-700) !important;
}

/* Icône Flèche directionnelle */
.chevron-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.nav-desktop li:hover .chevron-icon,
.lang-selector-wrapper:hover .chevron-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   Navigation Mobile (Drawer) & Burger
   ========================================================================== */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .mobile-actions {
        display: none;
    }
}

.lang-mobile-active {
    font-size: 0.875rem;
    font-weight: 600;
    color: inherit;
}

/* Bouton Burger */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.burger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

/* Animation de transformation du bouton burger en croix (X) */
.menu-toggle.is-active .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active .burger-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tiroir Mobile */
.nav-mobile-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--slate-100);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: none; /* Piloté en jQuery via slideToggle ou classes */
}
.nav-mobile-drawer.is-open {
    display: block;
}

.mobile-menu-content {
    padding: 0.5rem 1rem 1.5rem 1rem;
}

.mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-content ul li a {
    display: block;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-900);
    text-decoration: none;
    border-bottom: 1px solid var(--slate-100);
}

/* Accordéon des sous-menus sous Mobile */
.mobile-menu-content .sub-menu {
    display: none;
    background-color: #f8fafc; /* bg-slate-50 */
    padding-left: 1rem;
}
.mobile-menu-content .sub-menu a {
    font-size: 0.875rem;
    color: var(--slate-700);
}

/* Langues sous Mobile */
.mobile-lang-selector {
    display: flex;
    gap: 1rem;
    padding: 1rem 0.75rem;
}
.mobile-lang-selector a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}
.mobile-lang-selector a.active {
    color: var(--amber-600);
}

body.no-scroll {
    overflow: hidden;
}
#root header{
    display: none;
}

.home h1 {
    max-width: 580px;
    margin-inline: auto;
}
/* ==========================================================================
   Composant Footer Intégral
   ========================================================================== */
.main-footer {
    background-color: #0f172a; /* bg-slate-900 */
    color: #cbd5e1; /* text-slate-300 */
    padding-top: 3rem; /* py-12 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* gap-12 */
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Éléments Communs & Logos */
.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    height: 120px;
    width: auto;
    display: block;
}

.footer-desc {
    font-size: 0.875rem; /* text-sm */
    line-height: 1.625;
    color: #94a3b8; /* text-slate-400 */
    margin: 1.5rem 0;
}

/* Titres de Sections */
.footer-title {
    color: #ffffff;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 1.5rem; /* mb-6 */
}

/* Liste de Navigation Principale (Nos Activités) */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 0.75rem; /* space-y-3 */
}

.footer-nav ul li a {
    font-size: 0.875rem; /* text-sm */
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: #f59e0b; /* hover:text-amber-500 */
}

/* Liste de Contacts */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* gap-3 */
    font-size: 0.875rem; /* text-sm */
    margin-bottom: 1rem; /* space-y-4 */
    line-height: 1.5;
}

.footer-contact-list .contact-item.align-start {
    align-items: flex-start;
}

/* Réseaux Sociaux */
.footer-socials {
    display: flex;
    gap: 1rem; /* space-x-4 */
}

.social-icon-link {
    color: #94a3b8; /* text-slate-400 */
    transition: color 0.2s ease;
}

.social-icon-link:hover {
    color: #c8202a; /* hover:text-amber-500 */
}

/* SVGs / Lucide Icons */
.main-footer .icon {
    width: 1.25rem; /* h-5 */
    height: 1.25rem; /* w-5 */
    flex-shrink: 0; /* shrink-0 */
}

.text-amber {
    color: #c8202a; /* text-amber-500 */
}

/* Zone Certifications */
.certs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* gap-3 */
    margin-bottom: 1.5rem;
}

.cert-badge {
    background-color: #1e293b; /* bg-slate-800 */
    color: #cbd5e1; /* text-slate-300 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 500;
    padding: 0.375rem 0.75rem; /* px-3 py-1.5 */
    border-radius: 0.125rem; /* rounded-sm */
}

/* Sélecteur de Langue */
.footer-lang-selector-zone {
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b; /* border-slate-800 */
}

.footer-select {
    background-color: transparent;
    color: #cbd5e1;
    font-size: 0.875rem;
    border: 1px solid #334155; /* border-slate-700 */
    border-radius: 0.125rem;
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    width: 100%;
    cursor: pointer;
    appearance: none; /* Supprime le design natif de l'OS */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.footer-select:focus {
    outline: none;
    border-color: #f59e0b;
}

.footer-select option {
    background-color: #0f172a; /* Évite un fond blanc flash sur le dropdown */
    color: #cbd5e1;
}

/* ==========================================================================
   Barre Basse (Copyright & Extra Menus)
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid #1e293b; /* border-slate-800 */
    margin-top: 3rem;
    padding: 1.5rem 0; /* py-6 */
}

.footer-bottom-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* gap-4 */
}

@media (min-width: 768px) {
    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.75rem; /* text-xs */
    color: #64748b; /* text-slate-500 */
    margin: 0;
}

/* Rendu du menu WP des Mentions / CGU */
.footer-bottom-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem; /* space-x-6 */
}

.footer-bottom-nav ul li a {
    font-size: 0.75rem; /* text-xs */
    color: #64748b; /* text-slate-500 */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-nav ul li a:hover {
    color: #cbd5e1; /* hover:text-slate-300 */
}

div#root footer {
    display: none;
}