/*
Theme Name: La Vésubie Explorer
Theme URI: https://la-vesubie.com
Author: La Vésubie
Description: Thème touristique pour la Vallée de la Vésubie - Alpes-Maritimes
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vesubie
Tags: tourism, nature, mountains, responsive, custom-menu
*/

/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Background & Surfaces */
    --background: hsl(40 20% 98%);
    --foreground: hsl(150 30% 15%);

    --card: hsl(40 15% 96%);
    --card-foreground: hsl(150 30% 15%);

    /* Vésubie Brand Colors */
    --primary: hsl(160 50% 22%);
    --primary-foreground: hsl(40 20% 98%);

    --secondary: hsl(190 55% 38%);
    --secondary-foreground: hsl(40 20% 98%);

    /* Sensation Orange */
    --accent: hsl(32 90% 45%);
    --accent-foreground: hsl(40 20% 98%);

    /* Muted & Subtle */
    --muted: hsl(40 15% 92%);
    --muted-foreground: hsl(150 15% 45%);

    /* Winter Glacier */
    --glacier: hsl(215 20% 65%);
    --glacier-foreground: hsl(40 20% 98%);

    /* UI Elements */
    --border: hsl(40 15% 88%);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Category Colors */
    --rando: hsl(160 50% 22%);
    --rando-light: hsl(160 40% 95%);
    --vtt: hsl(35 60% 30%);
    --vtt-light: hsl(35 40% 94%);
    --eau: hsl(190 55% 38%);
    --eau-light: hsl(190 50% 94%);
    --sensation: hsl(32 90% 45%);
    --sensation-light: hsl(32 80% 95%);
    --hiver: hsl(215 20% 65%);
    --hiver-light: hsl(215 25% 96%);
    --patrimoine: hsl(20 30% 35%);
    --patrimoine-light: hsl(20 25% 95%);
    --loisirs: hsl(280 40% 45%);
    --loisirs-light: hsl(280 35% 96%);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsla(160, 50%, 22%, 0.9), hsla(190, 55%, 38%, 0.8));
    --gradient-card-overlay: linear-gradient(180deg, transparent 0%, hsla(150, 30%, 10%, 0.7) 100%);
    --gradient-warm: linear-gradient(135deg, hsla(32, 90%, 45%, 0.1), hsla(40, 80%, 50%, 0.05));

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(150, 30%, 15%, 0.08);
    --shadow-medium: 0 8px 30px -6px hsla(150, 30%, 15%, 0.12);
    --shadow-strong: 0 12px 40px -8px hsla(150, 30%, 15%, 0.18);
    --shadow-glow: 0 0 40px -10px hsla(160, 50%, 22%, 0.3);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-handwritten: 'Caveat', cursive;

    /* Spacing */
    --section-padding-mobile: 4rem;
    --section-padding-desktop: 6rem;
    --container-max-width: 1400px;
    --container-padding: 1rem;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Dark Mode (optionnel) */
@media (prefers-color-scheme: dark) {
    :root.dark-mode {
        --background: hsl(150 25% 8%);
        --foreground: hsl(40 20% 95%);
        --card: hsl(150 20% 12%);
        --card-foreground: hsl(40 20% 95%);
        --primary: hsl(160 45% 45%);
        --primary-foreground: hsl(150 25% 8%);
        --secondary: hsl(190 50% 50%);
        --secondary-foreground: hsl(150 25% 8%);
        --accent: hsl(32 85% 55%);
        --accent-foreground: hsl(150 25% 8%);
        --muted: hsl(150 20% 18%);
        --muted-foreground: hsl(40 15% 65%);
        --border: hsl(150 20% 20%);
    }
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary);
}

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

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.font-handwritten {
    font-family: var(--font-handwritten);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section-padding {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: var(--section-padding-desktop);
        padding-bottom: var(--section-padding-desktop);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: hsl(160 50% 18%);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: hsl(190 55% 32%);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: hsl(32 90% 40%);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
