/* ============================================
   HEADER 3 LIGNES - Clinique Humanimaux
   Ligne 1: Emplacements (discret)
   Ligne 2: Header principal (logo + menu + heures + tel)
   Ligne 3: Services (discret)
   ============================================ */

/* Cache le checkbox */
.menu-toggle {
    display: none;
}

/* ============= HEADER CONTENEUR ============= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: white;
    box-shadow: var(--shadow-md);
}

/* ============= LIGNE 1 - EMPLACEMENTS (HAUT - discret) ============= */
.header-line-top {
    background: rgba(245, 245, 245, 0.95);
    border-bottom: 1px solid rgba(79, 195, 247, 0.08);
}

.header-line-top .header-line-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.4rem var(--space-lg);
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.location-text {
    font-size: 0.8rem;
    color: var(--texte-secondaire);
    opacity: 0.7;
    font-weight: 400;
}

/* ============= LIGNE 2 - HEADER PRINCIPAL (MILIEU) ============= */
.header-main {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(79, 195, 247, 0.12);
}

.header-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logos (hand + text) */
.header-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-hand {
    height: 55px;
    width: auto;
    transition: transform var(--transition-normale);
}

.logo-hand:hover {
    transform: scale(1.05) rotate(-3deg);
}

.logo-text {
    height: 50px;
    width: auto;
    display: block;
    transition: transform var(--transition-normale);
}

.header-logos a:hover .logo-text {
    transform: scale(1.05);
}

/* Navigation Desktop */
.nav-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-desktop ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop a,
.nav-desktop .nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--texte-secondaire);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-desktop a::after,
.nav-desktop .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #4FC3F7, #26C6DA);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop .nav-link:hover {
    color: var(--bleu-clair);
    background: rgba(79, 195, 247, 0.06);
}

.nav-desktop a:hover::after,
.nav-desktop .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-desktop a.active {
    color: var(--bleu-clair);
    background: rgba(79, 195, 247, 0.1);
}

.nav-desktop a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Heures */
.header-hours {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background: rgba(79, 195, 247, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.15);
    line-height: 1.2;
}

.hours-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texte-secondaire);
    font-weight: 500;
}

.hours-time {
    font-size: 0.85rem;
    color: var(--texte-principal);
    font-weight: 600;
}

/* Bouton tÃ©lÃ©phone */
.btn-tel-header {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4FC3F7, #26C6DA);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow:
        0 4px 16px rgba(79, 195, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-tel-header:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 24px rgba(79, 195, 247, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.15);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 195, 247, 0.3);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--texte-principal);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:checked~header .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle:checked~header .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked~header .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============= LIGNE 3 - SERVICES (BAS - discret) ============= */
.header-line-bottom {
    background: rgba(250, 250, 250, 0.95);
    border-top: 1px solid rgba(79, 195, 247, 0.08);
}

.header-line-bottom .header-line-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.4rem var(--space-lg);
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.service-text {
    font-size: 0.8rem;
    color: var(--texte-secondaire);
    opacity: 0.7;
    font-weight: 400;
}

/* ============= NAVIGATION MOBILE ============= */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    z-index: var(--z-modal);
    pointer-events: none;
}

.nav-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    cursor: pointer;
}

.menu-toggle:checked~.nav-mobile {
    pointer-events: all;
}

.menu-toggle:checked~.nav-mobile .nav-mobile-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.nav-mobile-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    padding: var(--space-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.menu-toggle:checked~.nav-mobile .nav-mobile-content {
    right: 0;
}

/* Logo mobile */
.mobile-nav-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(79, 195, 247, 0.15);
}

.mobile-nav-header img {
    height: 50px;
    margin: 0 auto;
}

/* Info box mobile */
.mobile-info-box {
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-info-item {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

/* Liens mobile */
.nav-mobile-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.nav-mobile-content li {
    margin-bottom: 0.5rem;
}

.nav-mobile-content a,
.nav-mobile-content .nav-link-mobile {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--texte-principal);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-mobile-content a:hover,
.nav-mobile-content .nav-link-mobile:hover {
    background: rgba(79, 195, 247, 0.08);
    color: var(--bleu-clair);
}

/* Bouton tÃ©lÃ©phone mobile */
.btn-tel-mobile {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4FC3F7, #26C6DA);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(79, 195, 247, 0.25);
    transition: all 0.3s ease;
}

.btn-tel-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 195, 247, 0.35);
}

/* ============= ESPACEMENT MAIN ============= */
main {
    margin-top: 85px;
    /* Hauteur header-main seulement */
}

/* ============= RESPONSIVE ============= */

/* Tablette - Cache lignes discrÃ¨tes + desktop elements */
@media (max-width: 991px) {

    .header-line-top,
    .header-line-bottom {
        display: none;
        /* Cache lignes haut/bas sur tablette */
    }

    .nav-desktop,
    .header-hours,
    .btn-tel-header {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-mobile {
        display: block;
    }

    main {
        margin-top: 80px;
        /* Header-main seulement sur tablette */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-main-container {
        padding: 0.75rem var(--space-md);
    }

    .logo-hand {
        height: 38px;
    }

    .logo-text {
        height: 35px;
    }

    .nav-mobile-content {
        width: 90%;
    }

    main {
        margin-top: 65px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .header-main-container {
        padding: 0.5rem var(--space-sm);
    }

    .logo-hand {
        height: 35px;
    }

    .logo-text {
        height: 32px;
    }

    .nav-mobile-content {
        width: 100%;
        max-width: none;
        padding: var(--space-md);
    }

    main {
        margin-top: 60px;
    }
}