/*
 Theme Name:   SmartMag Child – ExcelDent
 Theme URI:    https://www.exceldent.fr
 Description:  Thème enfant de SmartMag pour exceldent.fr — homepage éditoriale santé
 Author:       ExcelDent
 Template:     smart-mag
 Version:      1.0.0
 Text Domain:  bunyad
*/

/* ═══════════════════════════════════════════════════
   CONTENEUR GLOBAL (utilisé dans header sur toutes pages)
═══════════════════════════════════════════════════ */
.exc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════
   HEADER GLOBAL — toutes les pages
═══════════════════════════════════════════════════ */
#exc-site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8eef6;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 1px 16px rgba(11,79,138,.06);
}

.exc-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 70px;
}

/* ── Logo ── */
.exc-header-logo {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.exc-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #0b4f8a;
    letter-spacing: -.03em;
}

.exc-header-logo img {
    height: 44px;
    width: auto;
    display: block;
}

/* ── Navigation ── */
.exc-header-nav { flex: 1; }

.exc-nav-list,
.exc-nav-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.exc-nav-list > li { margin: 0 !important; padding: 0 !important; }

.exc-nav-list > li > a {
    font-size: 14px;
    font-weight: 600;
    color: #2d3a4a !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 7px;
    transition: color .15s, background .15s;
    display: block;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.exc-nav-list > li > a:hover,
.exc-nav-list > li.current-menu-item > a,
.exc-nav-list > li.current-page-ancestor > a {
    color: #0b4f8a !important;
    background: #eef4fc;
}

/* ── Bouton hamburger (mobile) ── */
.exc-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid #dde5f0;
    border-radius: 7px;
    cursor: pointer;
    padding: 9px 11px;
    margin-left: auto;
    flex-shrink: 0;
}

.exc-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #2d3a4a;
    border-radius: 2px;
    transition: .2s;
}

.exc-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.exc-nav-toggle.active span:nth-child(2) { opacity: 0; }
.exc-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive header ── */
@media (max-width: 820px) {
    .exc-nav-toggle { display: flex; }

    .exc-header-nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 70px;
        background: #fff;
        border-bottom: 1px solid #e8eef6;
        box-shadow: 0 8px 24px rgba(11,79,138,.09);
        padding: 10px 0 16px;
        z-index: 9998;
    }
    .exc-header-nav.open { display: block; }
    .exc-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .exc-nav-list > li > a { padding: 12px 24px; border-radius: 0; }
}

/* ── Masquer l'ancien header SmartMag s'il se charge ── */
.th-header,
.bunyad-header,
.site-header:not(#exc-site-header),
.header-above,
.header-main,
.tc-smart-header { display: none !important; }
