/**
 * Header SafeSante Styles
 * Extracted from header-safesante.php
 */

:root {
    /* Safesanté Brand Colors */
    --primary-color: #202B6D;
    --primary-dark: #1a2158;
    --electric-color: #2F4ACD;
    --accent-color: #A7DBEE;
    --sky-color: #A7DBEE;
    --yellow-color: #FEC400;
    --coral-color: #ff6b5b;
    --coral-hover: #ff5445;
    --white: #ffffff;
    --text-dark: #4E585B;
    --light-blue: #A7DBEE;
    --glow-color: #F4F4F4;
    --gradient-blue: linear-gradient(135deg, #202B6D 0%, #2F4ACD 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans';
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Screen Reader Only - Visually hidden but accessible to SEO and screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Styles - Always visible with solid background */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: rgba(26, 31, 61, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 40px;
    width: auto;
}

/* Navigation Pill */
.header-nav {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Show nav when scrolled past hero section */
.site-header.nav-visible .header-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--coral-color);
    color: var(--white);
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
}

.btn-pharmacie,
.btn-praticien {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: var(--white);
    padding: 0;
    background: none;
}

.btn-pharmacie:hover,
.btn-praticien:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - Hidden by default */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 20px;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav-menu li a:hover {
    color: var(--accent-color);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-buttons .btn-pharmacie,
.mobile-menu-buttons .btn-praticien {
    text-align: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mobile-menu-buttons .btn-pharmacie:hover,
.mobile-menu-buttons .btn-praticien:hover {
    background: var(--coral-color);
}

/* Mobile Styles */
@media (max-width: 1200px) {
    .header-nav {
        display: none;
    }

    .site-header {
        padding: 15px 25px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-buttons {
        display: none;
    }

    .header-buttons.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary-dark);
        padding: 20px;
        gap: 10px;
    }

    .btn-pharmacie,
    .btn-praticien {
        text-align: center;
    }

    .header-logo img {
        height: 32px;
    }
}
