/**
 * Header & Footer CSS - Simple Zen Travel
 * Styles partagés sur toutes les pages (header, footer, utilitaires de base)
 * La front-page utilise le style.css complet à la place.
 */

:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #c9a962;
    --color-accent-light: #e4d4a8;
    --color-accent-dark: #a88b4a;
    --color-gold: #d4af37;
    --color-gold-light: #f4e4b5;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-gray-light: #e9ecef;
    --color-dark: #212529;
    --color-text: #333333;
    --color-text-light: #666666;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.3);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --container-max: 1200px;
    --section-padding: 100px;
    --header-height: 80px;
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.header .container {
    max-width: 1400px;
}

/* ========== HEADER ========== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.header--scrolled {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all var(--transition-base);
}

.header--scrolled .nav {
    padding-top: 0;
    padding-bottom: 0;
    min-height: var(--header-height);
}

.nav__logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    transition: opacity var(--transition-fast);
}

.nav__logo-img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    transition: all var(--transition-base);
}

.header--scrolled .nav__logo-img {
    width: 50px;
    height: 50px;
}

.nav__logo-text {
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

.nav__logo:hover {
    color: var(--color-accent);
}

.logo-simple {
    color: var(--color-white);
    font-weight: 400;
}

.logo-zen {
    color: var(--color-white);
}

.logo-travel {
    color: var(--color-accent);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--color-accent);
    padding: 10px 24px;
    border-radius: 4px;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--color-accent-dark);
}

.btn--primary {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
}

.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active {
    background: var(--color-accent-dark) !important;
    color: var(--color-white) !important;
}

.btn,
.btn:focus,
.btn:hover,
.btn:active,
button.btn,
button.btn:focus,
button.btn:hover,
button.btn:active,
[type="submit"].btn,
[type="submit"].btn:focus,
[type="submit"].btn:hover,
[type="submit"].btn:active {
    color: var(--color-white) !important;
    text-decoration: none !important;
    background-color: inherit !important;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
}

/* ========== FOOTER ========== */

.footer {
    background: var(--color-primary);
    padding: 80px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer__logo-img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.footer__logo-text {
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.footer__social a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer__links h4,
.footer__legal h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer__links ul,
.footer__legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a,
.footer__legal a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer__links a:hover,
.footer__legal a:hover {
    color: var(--color-accent);
}

.footer__badges {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer__badges img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.footer__badges img:hover {
    opacity: 1;
}

.footer__bottom {
    padding-top: 30px;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__credit {
    margin-top: 10px;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.footer__credit a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer__credit a:hover {
    color: var(--color-gold);
}

/* ========== SCROLL TOP ========== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
}

/* ========== PAGE CONTENT ========== */

.szt-page-content {
    padding: 60px 0;
    min-height: 50vh;
}

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

@media (max-width: 1180px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-primary);
        padding: 100px 40px 40px;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 24px;
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 24px;
        right: 24px;
    }

    .nav__logo-img {
        width: 50px;
        height: 50px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --header-height: 70px;
    }

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

    .footer__social {
        justify-content: center;
    }

    .footer__badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}
