/* Shared Design System */
:root {
    /* Hireflix-like Light Theme Palette */
    --primary: #2563EB;
    --primary-hover: #1d4ed8;
    --accent-violet: #8B5CF6;

    --bg-dark: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-alt: #F8FAFC;

    --text-white: #0F172A;
    /* Dark Slate for main text */
    --text-gray: #64748B;
    --text-muted: #94A3B8;

    --border-dark: #E2E8F0;

    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(226, 232, 240, 0.8);

    --radius-lg: 16px;
    --radius-xl: 24px;

    --bg-gradient: #FFFFFF;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-white);
    line-height: 1.5;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ========== HEADER ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-dark);
    flex-wrap: nowrap;
}

.logo {
    display: inline-block;
    width: 300px;
    height: 109px;
    line-height: 0;
    text-decoration: none;
    z-index: 102;
    flex-shrink: 0;
    /* Above mobile menu */
}

.logo .logo-img {
    width: 300px;
    height: 109px;
    display: block;
    object-fit: contain;
}

html[lang="fr"] .logo .logo-img[data-lang="en"] {
    display: none;
}

html[lang="en"] .logo .logo-img[data-lang="fr"] {
    display: none;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2rem);
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    z-index: 102;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

#langToggleDesktop {
    font-weight: 600;
    margin-right: 0;
    padding: 0 0.15rem;
    color: var(--text-gray);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    #langToggleDesktop {
        display: none !important;
    }
}

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* Hamburger & Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
    padding: 0;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: #0f172a;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.btn-login-ghost {
    color: var(--text-white);
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1rem;
    transition: color 0.2s;
}

.btn-login-ghost:hover {
    color: var(--primary);
}

.btn-header-primary {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-header-primary:hover {
    opacity: 0.9;
}

.btn-header-secondary {
    background: var(--bg-alt);
    color: var(--text-white);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-dark);
    transition: all 0.2s;
}

.btn-header-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ========== HERO ========== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    letter-spacing: -0.03em;
}

.hero-text .highlight {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(37, 99, 235, 0.15);
    z-index: -1;
    transform: rotate(-2deg);
}

.hero-text .subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-dark);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: #cbd5e1;
}

/* ========== FOOTER ========== */
/* Footer overrides if necessary */
footer {
    margin-top: 5rem;
    padding: 3rem 5%;
    background: var(--primary);
    /* Blue Footer */
    color: white;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.6rem;
    transition: opacity 0.2s;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-align: center;
    margin: 5px 0;
}

/* SVG ICONS */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* Navigation desktop : éviter le tassement entre ~900px et ~1200px */
@media (max-width: 1180px) {
    .logo,
    .logo .logo-img {
        width: 240px;
        height: auto;
        max-height: 88px;
        object-fit: contain;
    }

    .logo {
        height: auto;
        max-height: 88px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 0.65rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }
}

/* RESPONSIVE — navigation type « mobile » ≤991px (menu hamburger toujours visible) */
@media (max-width: 991px) {
    .nav-links {
        display: none !important;
    }

    .navbar {
        padding: 0.65rem max(4%, env(safe-area-inset-left, 0px)) 0.65rem max(4%, env(safe-area-inset-right, 0px));
        padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
        gap: 0.5rem;
    }

    .logo,
    .logo .logo-img {
        width: min(152px, 44vw);
        height: auto;
        max-height: 50px;
        object-fit: contain;
    }

    .logo {
        height: auto;
        max-height: 50px;
    }

    .nav-actions {
        gap: 0.4rem;
        margin-left: 0;
    }

    .btn-header-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    .hamburger {
        display: flex !important;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
/* Sélecteur de pays dans l’en-tête (toujours visible, mobile compris) */
.header-country-label-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header-country-form { margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.header-country-ok { min-width: 44px; min-height: 44px; border: 1px solid #ccc; border-radius: 10px; background: #fff; color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.header-country-select { max-width: 150px; min-height: 44px; border: 1px solid #ccc; border-radius: 10px; padding: 0 8px; font-size: 0.9rem; background: #fff; color: #111; font-family: inherit; }
@media (max-width: 480px) { .header-country-select { max-width: none; width: auto; font-size: 0.78rem; padding: 0 2px; } .nav-actions > .btn-header-primary { display: none; } .header-country-form { gap: 0.25rem; } .header-country-ok { min-width: 44px; padding: 0 4px; } }
