/* En-tête du site. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 251, 248, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    /* `.site-header` est lui-même un conteneur flex : sans `flex: 1`, le
       conteneur se réduit à la largeur de son contenu et se retrouve centré,
       logo compris — désaligné du reste de la page. */
    flex: 1;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    height: 40px;
    width: auto;
}

.brand-fallback {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--c-green-deep);
}

/* Sur mobile : logo à gauche, « Prendre RDV » et le menu à droite. */
.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    list-style: none;
}

.main-nav a {
    color: var(--c-anthracite);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    padding-block: 4px;
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.15s,
        color 0.15s;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--c-green-deep);
    border-color: var(--c-brass);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--c-anthracite);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
}

.header-phone svg {
    width: 18px;
    height: 18px;
    color: var(--c-green-leaf);
    flex: none;
}

/* Menu mobile en <details>/<summary> natif : il fonctionne sans JavaScript. */
.nav-details {
    position: relative;
}

.nav-details summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    /* Le panneau se pose au-dessus de l'en-tête : sans cet empilement, le fond
       flouté de l'en-tête passerait devant lui. */
    position: relative;
    z-index: 96;
}

.nav-details summary::-webkit-details-marker {
    display: none;
}

.nav-details summary svg {
    width: 22px;
    height: 22px;
}

.nav-details[open] summary {
    border-color: var(--c-anthracite);
}

.mobile-nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 95;
    width: min(84vw, 320px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: var(--sp-4);
}

.mobile-nav-panel ul {
    list-style: none;
    display: grid;
    gap: 2px;
    margin-bottom: var(--sp-4);
}

.mobile-nav-panel a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.mobile-nav-panel a:hover {
    background: var(--bg-alt);
}

.mobile-nav-panel .header-phone {
    display: flex;
    padding: 10px;
    font-size: 1rem;
    border-top: 1px solid var(--line);
    padding-top: var(--sp-4);
}
