/* ============================================================
   ALAN SPIRIT - Styles CSS
   Fichier : css/style.css
   ThÃ¨me : Chaleur, pierre rustique, feu de cheminÃ©e
   ============================================================ */

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    /* Couleurs principales */
    --color-bg: #1a1512;
    --color-bg-light: #2d2621;
    --color-bg-card: rgba(45, 38, 33, 0.85);
    
    /* Couleurs chaleureuses */
    --color-hearth-100: #f9ede0;
    --color-hearth-200: #e8bf94;
    --color-hearth-300: #dc9d67;
    --color-hearth-400: #d4824a;
    --color-hearth-500: #c66a3f;
    --color-hearth-600: #a45336;
    --color-hearth-700: #854432;
    --color-hearth-800: #6c3a2b;
    --color-hearth-900: #3a1c14;
    
    /* Couleurs pierre */
    --color-stone-200: #e0dace;
    --color-stone-300: #cdc4b2;
    --color-stone-400: #b7a992;
    --color-stone-500: #a6947b;
    --color-stone-600: #69594d;
    --color-stone-700: #564940;
    
    /* Texte */
    --color-text: #e0dace;
    --color-text-muted: #a6947b;
    --color-text-light: #faf6f1;
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    
    /* Shadows */
    --shadow-warm: 0 4px 20px rgba(212, 130, 74, 0.15);
    --shadow-glow: 0 0 30px rgba(232, 120, 37, 0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   VIDÃ‰O ARRIÃˆRE-PLAN PLEINE PAGE (FIXED)
   ============================================================ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.video-background video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 21, 18, 0.35);
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-hearth-200);
}

h1 { font-size: clamp(1.75rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.75rem); }

p {
    color: var(--color-stone-300);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-hearth-400);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-hearth-300);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

/* Sections avec fond semi-transparent pour lisibilitÃ© */
.section-content {
    background: rgba(26, 21, 18, 0.85);
    backdrop-filter: blur(5px);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.flex {
    display: flex;
    gap: var(--spacing-md);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center { text-align: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 21, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 58, 43, 0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-hearth-500), var(--color-hearth-700));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text-light);
    font-weight: 600;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-hearth-200);
}

.logo-text span {
    display: block;
    font-size: 0.6rem;
    color: var(--color-stone-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--color-stone-400);
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-hearth-300);
    background: rgba(108, 58, 43, 0.2);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-stone-400);
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(26, 21, 18, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-md);
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid rgba(108, 58, 43, 0.2);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .nav-toggle {
        display: block;
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-hearth-500), var(--color-hearth-600));
    color: var(--color-text-light);
    border: 1px solid rgba(212, 130, 74, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-hearth-400), var(--color-hearth-500));
    box-shadow: var(--shadow-warm);
    transform: translateY(-2px);
    color: var(--color-text-light);
}

.btn-secondary {
    background: rgba(86, 73, 64, 0.4);
    color: var(--color-stone-300);
    border: 1px solid rgba(86, 73, 64, 0.5);
}

.btn-secondary:hover {
    background: rgba(86, 73, 64, 0.6);
    color: var(--color-text-light);
}

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

.btn-block {
    width: 100%;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(108, 58, 43, 0.15);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(108, 58, 43, 0.3);
    transform: translateY(-4px);
}

.card-hearth {
    background: linear-gradient(135deg, rgba(58, 28, 20, 0.8), rgba(45, 38, 33, 0.8));
    border-color: rgba(108, 58, 43, 0.2);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(108, 58, 43, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-hearth-400);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

.card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--spacing-2xl) + 60px) var(--spacing-md) var(--spacing-2xl);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    width: 100%;
    background: rgba(26, 21, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 24px;
    border: 1px solid rgba(108, 58, 43, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-sun {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-hearth-300), var(--color-hearth-600));
    border-radius: 50%;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(232, 120, 37, 0.3); }
    50% { box-shadow: 0 0 50px rgba(232, 120, 37, 0.5); }
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero h1 span {
    display: block;
    color: var(--color-stone-400);
    font-size: 0.7em;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-stone-400);
    margin-bottom: var(--spacing-xs);
}

.hero-solution {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--color-hearth-300);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 0 30px rgba(212, 130, 74, 0.3);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SECTION SUBTITLE
   ============================================================ */
.section-subtitle {
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.section-quote {
    background: linear-gradient(180deg, 
        rgba(26, 21, 18, 0.9) 0%, 
        rgba(45, 38, 33, 0.85) 50%, 
        rgba(26, 21, 18, 0.9) 100%);
}

.quote-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote-wrapper blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3vw, 1.75rem);
    font-style: italic;
    color: var(--color-stone-300);
    line-height: 1.6;
}

.quote-highlight {
    display: block;
    margin-top: 1rem;
    color: var(--color-hearth-300);
}

.quote-author {
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(108, 58, 43, 0.2);
    border-radius: 20px;
    max-width: 650px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    text-align: center;
}

.cta-card h2 {
    margin-bottom: var(--spacing-md);
}

.cta-card > p {
    max-width: 480px;
    margin: 0 auto var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-stone-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-label .required {
    color: var(--color-hearth-400);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(45, 38, 33, 0.5);
    border: 1px solid rgba(86, 73, 64, 0.4);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-stone-500);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-hearth-500);
    box-shadow: 0 0 0 3px rgba(212, 130, 74, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid rgba(108, 58, 43, 0.15);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
    display: inline-flex;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--color-stone-500);
    max-width: 250px;
}

.footer h4 {
    font-size: 0.8rem;
    color: var(--color-stone-300);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

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

.footer-links li {
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
    color: var(--color-stone-500);
}

.footer-links a {
    color: var(--color-stone-500);
}

.footer-links a:hover {
    color: var(--color-hearth-400);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(86, 73, 64, 0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-stone-600);
    margin-bottom: var(--spacing-xs);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.text-muted { color: var(--color-text-muted); }
.text-hearth { color: var(--color-hearth-400); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.hidden { display: none !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .hero {
        padding: calc(var(--spacing-xl) + 70px) var(--spacing-sm) var(--spacing-xl);
    }
    
    .hero-sun {
        width: 60px;
        height: 60px;
    }
    
    .hero-sun svg {
        width: 30px;
        height: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: 0 var(--spacing-xs);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .cta-card {
        padding: var(--spacing-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text span {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-desc {
        text-align: center;
    }
}
