/* ========================================
   Variables CSS
   ======================================== */
:root {
    /* Couleurs inspirées du logo */
    --primary: #E67E22;        /* Orange principal */
    --primary-dark: #D35400;   /* Orange foncé */
    --primary-light: #F39C12;  /* Orange clair */
    --secondary: #F4DFC8;      /* Beige clair */
    --accent: #8B4513;         /* Marron bois */
    
    /* Couleurs complémentaires */
    --bg-light: #FFF8F0;       /* Fond très clair */
    --bg-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #95A5A6;
    
    /* Effets */
    --shadow-sm: 0 2px 8px rgba(230, 126, 34, 0.1);
    --shadow-md: 0 4px 16px rgba(230, 126, 34, 0.15);
    --shadow-lg: 0 8px 32px rgba(230, 126, 34, 0.2);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset et Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-medium);
}

/* ========================================
   Header
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--secondary) 100%);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.logo-container {
    margin-bottom: var(--spacing-sm);
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: clamp(120px, 30vw, 180px);
    height: auto;
    filter: drop-shadow(var(--shadow-md));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.site-title {
    font-family: 'Caveat', cursive;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.tagline {
    color: var(--text-medium);
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10h80v80H10z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Caveat', cursive;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-text {
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Buttons
   ======================================== */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    background: var(--secondary);
}

.cta-button.secondary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* ========================================
   Products Section
   ======================================== */
.products {
    background: var(--bg-white);
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.product-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    transform: translateX(-100%);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card:hover::before {
    transform: translateX(0);
}

.product-card.featured {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    border-color: var(--primary-dark);
}

.product-card.featured h3,
.product-card.featured p {
    color: white;
}

.badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: white;
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

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

.product-card.featured h3 {
    color: white;
}

.product-card p {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.feature {
    font-size: 0.9rem;
    color: var(--text-medium);
    padding: 0.4rem 0;
}

.product-card.featured .feature {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-white) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--primary-light);
    transition: var(--transition);
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-color: var(--primary-dark);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

.gallery-item:hover .placeholder-icon {
    opacity: 1;
    transform: scale(1.2);
}

.gallery-placeholder p {
    color: var(--text-medium);
    font-weight: 600;
    text-align: center;
}

.gallery-item:hover .gallery-placeholder p {
    color: white;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    background: var(--bg-white);
}

.pricing-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--secondary) 100%);
    padding: var(--spacing-lg);
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    border: 3px solid var(--primary-light);
}

.price-main {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.price-label {
    display: block;
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.price-amount {
    display: block;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--primary);
    font-family: 'Caveat', cursive;
    line-height: 1;
}

.price-details {
    border-top: 2px solid var(--primary-light);
    padding-top: var(--spacing-md);
}

.price-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.price-icon {
    font-size: 1.5rem;
}

.price-note {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: var(--spacing-md);
    text-align: center;
}

.pricing-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.contact-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.contact-card a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-card p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.8;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.footer-info,
.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: var(--spacing-xs) 0;
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
    }
    
    .product-cards,
    .gallery-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .pricing-box {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

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