/**
 * Header global — direction "Photo silencieuse" (v4).
 *
 * 2 modes :
 *  - .hv-header (par défaut)        → fond beige + texte sombre, position normale
 *  - .hv-header--on-photo (home)    → transparent, position absolute, texte clair
 *
 * Préfixe `.hv-*` pour ne pas entrer en conflit avec main.css / leadkit.css
 * du thème historique.
 */

:root {
    --hv-bg:        #ebe5d8;
    --hv-text:      #2a2520;
    --hv-text-soft: #5a4f44;
    --hv-accent:    #8b6f47;
    --hv-light:     #faf7f0;
    --hv-border:    rgba(42, 37, 32, 0.12);
}

/* ─── Container header par défaut (sur fond beige) ────────────────────── */

.hv-header {
    background: var(--hv-bg);
    color: var(--hv-text);
    border-bottom: 1px solid var(--hv-border);
    position: relative;
    z-index: 50;
}

.hv-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

/* ─── Mode "transparent sur photo" (home) ─────────────────────────────── */

.hv-header--on-photo {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--hv-light);
    z-index: 50;
}

.has-overlay-header {
    /* Le hero v4 a min-height 620px, le header (~70px) tient en surimpression */
    /* Pas besoin de margin-top sur le main, le hero gère le padding */
}

/* ─── Brand (logo image) ──────────────────────────────────────────────── */

.hv-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}

.hv-header__brand:hover {
    opacity: 0.7;
    text-decoration: none;
}

.hv-header__logo {
    display: block;
    height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Sur la home (header transparent sur fond sombre), forcer le logo en clair.
   Si ton logo est déjà clair / sur fond transparent, retire le filter ou
   inverse-le (filter: none;) selon le rendu. */
.hv-header--on-photo .hv-header__logo {
    filter: brightness(0) invert(1);
}

/* ─── Navigation ──────────────────────────────────────────────────────── */

.hv-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv-header__nav .hv-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.hv-header__nav .hv-menu li {
    margin: 0;
}

.hv-header__nav .hv-menu a {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: inherit;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.hv-header__nav .hv-menu a:hover {
    border-bottom-color: var(--hv-accent);
    text-decoration: none;
    opacity: 1;
}

.hv-header__nav .hv-menu .current-menu-item > a,
.hv-header__nav .hv-menu .current_page_item > a {
    border-bottom-color: var(--hv-accent);
}

/* Toggle burger mobile (caché desktop) */
.hv-header__toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.hv-header__toggle span {
    display: block;
    height: 1.5px;
    background: currentColor;
    margin: 7px auto;
    width: 22px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hv-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hv-header__toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-1px) rotate(-45deg);
}

/* ─── Actions (téléphone + CTA) ──────────────────────────────────────── */

.hv-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hv-header__phone {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: opacity 0.15s ease;
}

.hv-header__phone:hover {
    opacity: 0.7;
    text-decoration: none;
}

.hv-header__cta {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--hv-accent);
    padding-bottom: 4px;
    transition: opacity 0.15s ease;
}

.hv-header__cta:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* ─── Contraste sur photo : adoucir certains éléments ─────────────────── */

.hv-header--on-photo .hv-header__phone {
    color: rgba(250, 247, 240, 0.85);
}

.hv-header--on-photo .hv-header__nav .hv-menu a {
    color: rgba(250, 247, 240, 0.85);
}

.hv-header--on-photo .hv-header__nav .hv-menu a:hover {
    color: var(--hv-light);
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hv-header__inner {
        gap: 12px;
        padding: 14px 20px;
        /* On garde grid-template-columns: auto 1fr auto (3 colonnes) */
    }

    /* Nav reste visible (sinon le toggle qui est dedans disparaît).
       Le toggle est aligné à droite de la zone nav, juste avant les actions. */
    .hv-header__nav {
        position: relative;
        justify-content: flex-end;
    }

    .hv-header__toggle {
        display: inline-block;
        color: inherit;
    }

    /* Le menu (ul) lui-même est masqué par défaut.
       Quand la nav est ouverte, il devient un dropdown absolu sous le toggle. */
    .hv-header__nav .hv-menu {
        display: none;
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        background: var(--hv-bg);
        color: var(--hv-text);
        padding: 18px 24px;
        border: 1px solid var(--hv-border);
        border-radius: 8px;
        min-width: 220px;
        z-index: 100;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    }

    .hv-header__nav.is-open .hv-menu {
        display: flex;
    }

    /* Sur la home (header --on-photo), le dropdown garde son fond beige
       opaque, donc les liens doivent passer en couleur sombre pour être lisibles */
    .hv-header--on-photo .hv-header__nav .hv-menu a {
        color: var(--hv-text);
    }

    .hv-header--on-photo .hv-header__nav .hv-menu a:hover {
        color: var(--hv-text);
        opacity: 0.7;
    }

    .hv-header__actions {
        gap: 12px;
    }

    .hv-header__cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .hv-header__brand-name {
        font-size: 13px;
    }
    .hv-header__phone {
        font-size: 13px;
    }
}

/* ════════════════════════════════════════════════════════════════════════
 * FOOTER — direction "Photo silencieuse" (v4)
 * Cohérent avec le header. Préfixe `.hv-footer__*`.
 * ════════════════════════════════════════════════════════════════════════ */

.hv-footer {
    background: var(--hv-text);
    color: rgba(235, 229, 216, 0.85);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Bandeau CTA en haut du footer ───────────────────────────────────── */

.hv-footer__cta {
    background: #1a2520;
    padding: 80px 32px;
    border-bottom: 1px solid rgba(235, 229, 216, 0.08);
}

.hv-footer__cta-inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.hv-footer__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--hv-accent);
    margin-bottom: 24px;
}

.hv-footer__cta-title {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hv-light);
    margin: 0 0 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hv-footer__cta-title em {
    font-style: italic;
    color: rgba(235, 229, 216, 0.85);
}

.hv-footer__cta-channels {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
}

.hv-footer__cta-phone {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 500;
    color: var(--hv-light);
    text-decoration: none;
    letter-spacing: -0.01em;
    border-bottom: 2px solid var(--hv-accent);
    padding-bottom: 4px;
    transition: opacity 0.15s ease;
}

.hv-footer__cta-phone:hover {
    opacity: 0.7;
    text-decoration: none;
}

.hv-footer__cta-sep {
    color: var(--hv-accent);
    font-size: 18px;
}

.hv-footer__cta-email {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(235, 229, 216, 0.85);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.hv-footer__cta-email:hover {
    opacity: 0.7;
    text-decoration: none;
    color: var(--hv-light);
}

/* ─── Footer principal : 4 colonnes ───────────────────────────────────── */

.hv-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 32px 32px;
}

.hv-footer__columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.hv-footer__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 16px;
    transition: opacity 0.15s ease;
}

.hv-footer__brand:hover {
    opacity: 0.7;
    text-decoration: none;
}

.hv-footer__logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    /* Logo en clair sur fond sombre */
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.hv-footer__pitch {
    color: rgba(235, 229, 216, 0.7);
    font-size: 14px;
    margin: 0;
    line-height: 1.65;
    max-width: 320px;
}

.hv-footer__pitch em {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    color: rgba(235, 229, 216, 0.85);
}

.hv-footer__col-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--hv-light);
    margin: 0 0 16px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.hv-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hv-footer__list--two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 8px;
}

.hv-footer__list a {
    color: rgba(235, 229, 216, 0.7);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.hv-footer__list a:hover {
    color: var(--hv-light);
    border-bottom-color: var(--hv-accent);
    text-decoration: none;
}

/* ─── Copyright ──────────────────────────────────────────────────────── */

.hv-footer__copy {
    border-top: 1px solid rgba(235, 229, 216, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(235, 229, 216, 0.5);
    letter-spacing: 0.02em;
}

.hv-footer__copy-mark em {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    color: rgba(235, 229, 216, 0.7);
}

.hv-footer__copy-meta {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hv-footer__cta {
        padding: 64px 24px;
    }
    .hv-footer__inner {
        padding: 48px 24px 24px;
    }
    .hv-footer__columns {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
    }
}

@media (max-width: 560px) {
    .hv-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hv-footer__list--two-cols {
        grid-template-columns: 1fr 1fr;
    }
    .hv-footer__copy {
        flex-direction: column;
        align-items: flex-start;
    }
}
