/**
 * Header Client — Pages publiques
 * Pro-Artisan · 2026
 * Utilisé sur : Accueil, Plans, Contact, Inscription
 */

/* ─── Structure de base ────────────────────────────────────── */
.header-client {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(216, 221, 230, 0.85);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-client__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    height: 78px;
    max-width: 1320px;
    margin: 0 auto;
}

.header-client__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* ─── Logo ──────────────────────────────────────────────────── */
.header-client__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-client__logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.header-client__finder {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f0f2f5;
    border: 1px solid transparent;
    color: #65676b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-client__finder:hover {
    background: #ffffff;
    border-color: #dce1e8;
    color: var(--g-brand-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* ─── Navigation centrale ───────────────────────────────────── */
.header-client__nav-shell {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-client__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-client__nav li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    min-width: 118px;
    padding: 12px 18px;
    border-radius: 14px;
    color: #65676b;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.header-client__nav li a:hover {
    color: var(--g-brand-cta);
    background: rgba(24, 119, 242, 0.08);
    transform: translateY(-1px);
}

.header-client__nav li.active a {
    color: var(--g-brand-cta);
    background: rgba(24, 119, 242, 0.10);
    box-shadow: inset 0 -3px 0 var(--g-brand-cta);
}

.header-client__nav li a i {
    font-size: 0.85em;
    opacity: 0.8;
}

/* ─── Boutons droits ────────────────────────────────────────── */
.header-client__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bouton Connexion (outline) */
.header-client__btn-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--g-brand-primary);
    background: white;
    border: 1px solid var(--g-border-soft);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.header-client__btn-login:hover {
    background: #f7f8fa;
    color: var(--g-brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}

/* Bouton Inscription (gradient, ouvre la popup) */
.header-client__btn-register {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    background: var(--g-brand-cta) !important;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(24, 119, 242, 0.22);
}

.header-client__btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(24, 119, 242, 0.26);
    color: white;
    text-decoration: none;
}

/* ─── Mobile burger ─────────────────────────────────────────── */
.header-client__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.header-client__burger:hover {
    background: rgba(0, 112, 243, 0.08);
}

.header-client__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--g-brand-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile drawer */
.header-client__mobile {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid #eee;
    padding: 12px 0 16px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.10);
}

.header-client__mobile.is-open {
    display: flex;
}

.header-client__mobile a,
.header-client__mobile button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.header-client__mobile a:hover,
.header-client__mobile button:hover {
    background: rgba(0, 112, 243, 0.08);
    color: var(--g-brand-primary);
}

.header-client__mobile a.active {
    color: var(--g-brand-primary);
}

.header-client__mobile .mobile-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.header-client__mobile-finder {
    margin: 0 16px 10px;
    padding: 12px 16px !important;
    border-radius: 14px;
    background: #f0f2f5 !important;
    color: #65676b !important;
}

.header-client__mobile .btn-register-mobile {
    margin: 8px 24px;
    justify-content: center;
    background: linear-gradient(135deg, var(--g-brand-cta) 0%, var(--g-brand-cta-hover) 100%);
    color: white;
    border-radius: 25px;
    width: calc(100% - 48px);
    padding: 12px 20px;
}

.header-client__mobile .btn-register-mobile:hover {
    background: linear-gradient(135deg, var(--g-brand-cta-hover) 0%, #004FA8 100%);
    color: white;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .header-client__finder,
    .header-client__nav,
    .header-client__actions {
        display: none;
    }

    .header-client__burger {
        display: flex;
    }
}

@media (max-width: 576px) {
    .header-client__inner {
        padding: 0 12px;
        height: 60px;
    }

    .header-client__logo img {
        height: 48px;
    }

    /* Menu mobile : boutons pleine largeur */
    .header-client__mobile a,
    .header-client__mobile button {
        padding: 13px 16px;
        font-size: 1rem;
    }

    .header-client__mobile .btn-register-mobile {
        margin: 8px 16px;
        width: calc(100% - 32px);
    }
}

@media (max-width: 400px) {
    .header-client__inner {
        height: 56px;
    }

    .header-client__logo img {
        height: 40px;
    }
}
