/* ============================================
   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);
}

/* Bouton fermer menu mobile */
.menu-close {
    display: none;
}

/* ============= 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;
    }

    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        color: var(--texte-secondaire);
        cursor: pointer;
        border-radius: 50%;
        background: rgba(79, 195, 247, 0.08);
        border: 1px solid rgba(79, 195, 247, 0.2);
        transition: all 0.2s ease;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .menu-close:hover,
    .menu-close:active {
        background: rgba(79, 195, 247, 0.18);
        color: var(--bleu-clair);
    }
}

/* 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;
    }
}/* ============================================
   FOOTER - MEGA CORP GLASSMORPHISM
   ============================================ */

.footer {
    background: linear-gradient(180deg,
        rgba(250, 250, 250, 0.98) 0%,
        rgba(245, 245, 245, 1) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    padding: var(--space-3xl) 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(79, 195, 247, 0.15);
}

/* Ligne glow animée en haut */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 195, 247, 0.4) 25%,
        rgba(38, 198, 218, 0.4) 50%,
        rgba(102, 187, 106, 0.4) 75%,
        transparent 100%);
    animation: lineGlow 8s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Formes flottantes subtiles */
.footer-glow {
    position: absolute;
    top: -40%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle,
        rgba(79, 195, 247, 0.06) 0%,
        transparent 70%);
    filter: blur(120px);
    animation: floatSlowFooter 40s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatSlowFooter {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-20px) translateX(0px); }
    75% { transform: translateY(-15px) translateX(-10px); }
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle,
        rgba(38, 198, 218, 0.05) 0%,
        transparent 70%);
    filter: blur(130px);
    animation: floatSlowFooter 45s ease-in-out infinite reverse;
    pointer-events: none;
}

/* CONTENU FOOTER */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-2xl);
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: var(--space-3xl);
    position: relative;
    z-index: 1;
}

/* LOGO SECTION */
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo-animated {
    width: 180px;
    height: auto;
    transition: transform var(--transition-normale);
}

.footer-logo-animated:hover {
    transform: scale(1.05);
}

.footer-logo p {
    color: var(--texte-secondaire);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
}

/* LOCATIONS */
.footer-locations h3 {
    font-size: var(--text-xl);
    color: var(--texte-principal);
    margin-bottom: var(--space-md);
    font-weight: var(--font-semibold);
}

.locations-grid {
    display: grid;
    gap: var(--space-md);
}

.location-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 195, 247, 0.1);
    transition: all var(--transition-normale);
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.15);
}

.location-item h4 {
    font-size: var(--text-base);
    color: var(--texte-principal);
    margin-bottom: var(--space-xs);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.location-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #4FC3F7, #26C6DA);
    color: white;
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.location-item address {
    font-style: normal;
    color: var(--texte-secondaire);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* INFO SECTION */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-hours-vivant h4,
.footer-links h4 {
    font-size: var(--text-lg);
    color: var(--texte-principal);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-semibold);
}

.footer-hours-vivant p {
    color: var(--texte-secondaire);
    font-size: var(--text-base);
    margin: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    color: var(--texte-secondaire);
    text-decoration: none;
    font-size: var(--text-base);
    transition: all var(--transition-normale);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bleu-clair);
    transform: translateX(5px);
}

/* BOUTON TÉLÉPHONE CTA */
.footer-phone-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #4FC3F7, #26C6DA);
    color: white;
    text-decoration: none;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 4px 16px rgba(79, 195, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normale);
    margin-top: var(--space-sm);
}

.footer-phone-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(79, 195, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* FOOTER BOTTOM */
.footer-bottom {
    background: rgba(245, 245, 245, 0.95);
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: var(--space-2xl) auto 0;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: var(--texte-secondaire);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.footer-legal a {
    color: var(--texte-secondaire);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-normale);
}

.footer-legal a:hover {
    color: var(--bleu-clair);
}

.footer-legal span {
    color: var(--gris-moyen);
}

/* BOUTON FLOTTANT RENDEZ-VOUS */
.floating-contact-btn {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #4FC3F7, #26C6DA);
    color: white;
    border-radius: 50px;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    box-shadow: 
        0 8px 32px rgba(79, 195, 247, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normale);
    animation: pulse-float 3s ease-in-out infinite;
}

@keyframes pulse-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 
            0 8px 32px rgba(79, 195, 247, 0.4),
            0 4px 16px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 
            0 12px 40px rgba(79, 195, 247, 0.5),
            0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

.floating-contact-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 12px 48px rgba(79, 195, 247, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 0 var(--space-md) var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .floating-contact-btn {
        bottom: var(--space-lg);
        right: var(--space-lg);
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-base);
    }
    
    .btn-text {
        display: none;
    }
    
    .btn-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .footer-logo-animated {
        width: 140px;
    }
    
    .floating-contact-btn {
        bottom: var(--space-md);
        right: var(--space-md);
        padding: var(--space-sm) var(--space-md);
    }
}
