/**
 * Navigation header réservation — menu actions, connexion espace client (LAP37)
 * Chargé après app.css / app.min.css
 */

/* ——— Desktop ——— */
.header-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(10px, 1.8vw, 24px);
}

.header-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex-shrink: 0;
}

.header-logo-link {
    display: inline-block;
    line-height: 0;
}

.header-site-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.header-site-link:hover {
    color: #fff;
    border-bottom-color: rgba(232, 200, 74, 0.65);
}

.header .stepper {
    flex: 1;
    justify-content: center;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.header .stepper::-webkit-scrollbar {
    display: none;
}

.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 18px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.header-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.header-action-phone {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.header-action-phone:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.header-action-account {
    color: #14161c;
    background: linear-gradient(145deg, #f0d56c 0%, #c9a227 42%, #9e7b1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.38);
}

.header-action-account:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(201, 162, 39, 0.48);
}

.header-action-account.is-logged {
    background: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
    color: #1e3a8a;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 16px rgba(40, 89, 204, 0.22);
}

.header-action-account.is-logged:hover {
    filter: none;
    background: #fff;
}

.header-action-account:focus-visible {
    outline-color: #f0d56c;
}

@media (max-width: 1180px) {
    .header-action-phone-text {
        display: none;
    }

    .header-action-phone {
        padding: 10px 14px;
    }
}

@media (max-width: 1024px) {
    .header-nav-actions {
        gap: 6px;
    }

    .header-action {
        padding: 9px 12px;
        font-size: 12px;
    }

    .header-site-link {
        display: none;
    }
}

/* ——— Mobile ——— */
@media (max-width: 768px) {
    .mobile-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px 14px !important;
    }

    .mobile-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .mobile-logo-link {
        display: block;
        line-height: 0;
        flex: 1;
        min-width: 0;
    }

    .mobile-logo-link img {
        height: 32px;
        width: auto;
        max-width: min(200px, 52vw);
        display: block;
        object-fit: contain;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-header-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        text-decoration: none;
        font-size: 17px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        transition: background 0.2s ease, transform 0.12s ease;
    }

    .mobile-header-icon-btn:hover {
        background: rgba(255, 255, 255, 0.26);
    }

    .mobile-header-icon-btn:active {
        transform: scale(0.96);
    }

    .mobile-header-icon-btn:focus-visible {
        outline: 2px solid #f0d56c;
        outline-offset: 2px;
    }

    .mobile-header-account {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 14px;
        min-height: 42px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-decoration: none;
        color: #14161c;
        background: linear-gradient(145deg, #f5e08f 0%, #c9a227 100%);
        border: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        white-space: nowrap;
    }

    .mobile-header-account i {
        font-size: 16px;
        opacity: 0.92;
    }

    .mobile-header-account:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    .mobile-steps-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 10px;
        margin: 0 -2px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .mobile-steps-wrap .mobile-steps {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-action,
    .mobile-header-account,
    .mobile-header-icon-btn {
        transition: none;
    }

    .header-action:hover,
    .header-action-phone:hover,
    .header-action-account:hover {
        transform: none;
    }
}
