/*
Theme Name: Vesubie Theme
Description: Thème personnalisé pour Vesubie Web - Développement local dans la vallée de la Vésubie
Author: Vesubie Web
Version: 1.0.0
Text Domain: vesubie-theme
*/

/* 
 * Vesubie Web Design System - Inspiré par la beauté naturelle de la vallée de la Vésubie
 * Toutes les couleurs sont en HSL et évoquent le paysage montagnard
 */

/* Variables CSS - Système de couleurs HSL complet */
:root {
    /* Couleurs de base inspirées de la vallée de la Vésubie */
    --background: 0 0% 100%;
    --foreground: 215 25% 15%;
    
    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;
    
    /* Primary: Bleu montagne profond - EXACT du React */
    --primary: 215 70% 25%;
    --primary-foreground: 0 0% 98%;
    --primary-light: 215 60% 35%;
    --primary-lighter: 215 40% 85%;
    
    /* Secondary: Vert vallée naturel pour les CTAs - EXACT du React */
    --secondary: 135 60% 45%;
    --secondary-foreground: 0 0% 98%;
    --secondary-light: 135 50% 55%;
    
    /* Accent: Orange terracotta - EXACT du React */
    --accent: 25 85% 65%;
    --accent-foreground: 215 25% 15%;
    --accent-light: 25 75% 75%;
    
    --muted: 215 20% 96%;
    --muted-foreground: 215 15% 45%;
    
    --border: 215 15% 88%;
    --input: 215 15% 88%;
    --ring: 215 70% 25%;
    
    /* Dégradés personnalisés Vésubie */
    --gradient-mountain: linear-gradient(135deg, hsl(215 70% 25%), hsl(215 60% 35%));
    --gradient-valley: linear-gradient(180deg, hsl(215 40% 95%), hsl(135 30% 95%));
    --gradient-hero: linear-gradient(135deg, hsla(215, 70%, 25%, 0.705), hsla(215, 60%, 35%, 0.205));
    --gradient-accent: linear-gradient(45deg, hsl(25 70% 65%), hsl(25 60% 75%));
    
    /* Contours élégants au lieu d'ombres */
    --border-card: 1px solid hsl(215 20% 90%);
    --border-card-hover: 1px solid hsl(215 30% 80%);
    --border-elegant: 1px solid hsl(215 15% 85%);
    
    /* Transitions fluides */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-mountain: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --radius: 0.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container moderne */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typographie moderne */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: hsl(var(--foreground));
    font-weight: 600;
}

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

p {
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

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

a:hover {
    color: hsl(var(--secondary));
    transform: translateY(-1px);
}

/* Boutons modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: hsl(var(--secondary)) !important;
    color: white !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 8px !important;
    border: none !important;
    min-height: 40px !important;
}

.btn-primary:hover {
    background: hsl(var(--secondary-light)) !important;
    color: white !important;
    transform: translateY(-2px);
    border: var(--border-card-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.4);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: var(--border-elegant);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -0.25rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    color: hsl(var(--foreground));
    padding: 0;
    position: relative;
    transition: var(--transition-smooth);
    border-radius: 6px;
}

.main-navigation a:hover {
    color: hsl(var(--primary));
    background: hsl(var(--muted));
    transform: translateY(-1px);
}

.main-navigation a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--secondary));
    transition: width 0.3s ease;
}

.main-navigation a:not(.btn):hover::after {
    width: 100%;
}

/* ========================================
   MENU HAMBURGER MOBILE
   ======================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    margin: 2px 0;
    transition: var(--transition-smooth);
    border-radius: 1px;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: hsl(var(--primary));
}

/* Animation du hamburger quand le menu est ouvert */
.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(7px, -6px);
}

/* Style spécifique pour le bouton dans la navigation */
.main-navigation .btn-primary {
    background: hsl(var(--secondary)) !important;
    color: white !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 8px !important;
    border: none !important;
    min-height: 40px !important;
    display: inline-block !important;
}

/* ========================================
   HERO SECTION MODERNE
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('https://www.vesubie-web.fr/wp-content/uploads/2025/09/WebP-Saint-Martin-vesubie.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 4xl;
    margin: 0 auto;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-location svg {
    width: 20px;
    height: 20px;
    stroke: hsl(var(--accent));
}

.hero-location span {
    color: hsl(var(--accent));
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    color: white;
}

.hero-title .accent {
    color: hsl(var(--accent));
    font-weight: 700;
}

.hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.hero-stat {
    color: white;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--accent));
    display: block;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin: 0 auto 8px auto;
}

.scroll-dot {
    width: 4px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollDot 2s ease-in-out infinite;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ========================================
   SECTIONS STYLES COMPLÉMENTAIRES
   ======================================== */

/* Services Section */
.services-section .service-card {
    border: var(--border-card);
    transition: var(--transition-smooth);
}

.services-section .service-card:hover {
    transform: translateY(-4px);
    border: var(--border-card-hover);
}

.services-section .service-card svg {
    transition: var(--transition-smooth);
}

.services-section .service-card:hover svg {
    transform: scale(1.1);
}

/* About Section */
.about-section {
    background: hsl(var(--background));
}

.about-section .advantage-item:hover {
    background: hsl(var(--muted));
    transform: translateX(5px);
}

.about-section .engagement-card {
    position: relative;
    overflow: hidden;
}

.about-section .engagement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-mountain);
}

.about-section .engagement-card:hover::before {
    left: 100%;
}

/* Contact Section */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mountain);
    opacity: 0.9;
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

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

@media (max-width: 1024px) {
    .about-section div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
        gap: 2rem !important;
    }
    
    .about-section div[style*="grid-template-columns: 1fr 1fr"]:first-of-type {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Afficher le bouton hamburger sur mobile */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Masquer la navigation normale sur mobile */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        transition: left 0.3s ease;
        z-index: 9999;
        padding-top: 80px;
        border-right: var(--border-elegant);
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        height: 100%;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: var(--border-card);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
        margin-top: 2rem;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }
    
    .main-navigation .btn-primary {
        text-align: center !important;
        margin: 1rem 0;
        display: block !important;
        width: 100% !important;
    }
    
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem) !important;
        line-height: 1.1 !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
    }
    
    .services-section,
    .about-section,
    .contact-section {
        padding: 3rem 0 !important;
    }
    
    .about-section div[style*="padding: 3rem"] {
        padding: 2rem !important;
    }
}

/* ========================================
   UTILITAIRES ET AMÉLIORATIONS
   ======================================== */

/* Focus states pour l'accessibilité */
.btn:focus,
a:focus {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
}

/* Loading states */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Améliorations de performance */
.service-card,
.hero-section,
.about-section {
    will-change: transform;
}

/* Print styles */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .hero-section::before {
        display: none !important;
    }
    
    .scroll-indicator {
        display: none !important;
    }
}
