/* ========================================
   AU CŒUR CHOCO - STYLES PRINCIPAUX
   Design System + Styles Globaux
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #3E2723;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* === CSS VARIABLES === */
:root {
    /* Colors */
    --color-chocolate-dark: #3E2723;
    --color-chocolate-medium: #5D4037;
    --color-chocolate: #6D4C41;
    --color-caramel: #8D6E63;
    --color-gold: #D4AF37;
    --color-champagne: #F5E6D3;
    --color-cream: #F5F5DC;
    --color-cream-light: #FFF8E7;
    --color-beige-light: #FAF3E0;
    --color-beige: #E8DCC4;
    --color-white: #FFFFFF;
    
    /* Gradients */
    --gradient-chocolate: linear-gradient(135deg, #3E2723 0%, #6D4C41 100%);
    --gradient-primary: linear-gradient(135deg, #6D4C41 0%, #8D6E63 100%);
    --gradient-gold: linear-gradient(135deg, #F5E6D3 0%, #FFF8E7 100%);
    
    /* Spacing */
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 3rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    
    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-chocolate-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-chocolate-dark);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-chocolate-dark);
    font-family: var(--font-display);
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-chocolate-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.btn-primary-nav {
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    padding: 0.75rem 1.5rem;
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-chocolate-dark);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* === BREADCRUMB === */
.breadcrumb-nav {
    background: var(--color-cream-light);
    padding: 1rem 0;
    margin-top: 80px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '→';
    margin-left: 0.5rem;
    color: var(--color-caramel);
}

.breadcrumb-link {
    color: var(--color-chocolate-medium);
    transition: var(--transition-base);
}

.breadcrumb-link:hover {
    color: var(--color-gold);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.7) 0%, rgba(109, 76, 65, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 2.5rem;
    color: var(--color-champagne);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-white);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    margin: 1rem auto 0;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 30px;
        opacity: 0.5;
    }
}

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

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--color-chocolate-dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: var(--color-chocolate-dark);
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-chocolate-medium);
    max-width: 800px;
}

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

/* === INTRO SECTION === */
.intro-section {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream-light) 100%);
}

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

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(109, 76, 65, 0.1) 50%,
        rgba(62, 39, 35, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    border-color: var(--color-gold);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--color-chocolate-medium);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* === FAIT MAISON SECTION === */
.fait-maison-section {
    background: var(--color-white);
}

.fait-maison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.fait-maison-card {
    background: var(--color-cream-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.fait-maison-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}

.fait-maison-card.highlight {
    background: var(--gradient-gold);
    border-color: var(--color-gold);
    position: relative;
}

.fait-maison-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fait-maison-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.fait-maison-card p {
    color: var(--color-chocolate-medium);
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.fait-maison-note {
    background: var(--color-beige-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-gold);
    margin-top: 3rem;
    text-align: center;
}

.fait-maison-note p {
    font-size: 1.125rem;
    color: var(--color-chocolate-medium);
}

/* === MENU HIGHLIGHTS === */
.menu-highlights {
    background: var(--color-beige-light);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.menu-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    border: 2px solid transparent;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(109, 76, 65, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.menu-card:hover::before {
    opacity: 1;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    border-color: var(--color-gold);
}

.menu-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
}

.menu-card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.menu-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.menu-card p {
    color: var(--color-chocolate-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.link-arrow {
    color: var(--color-gold);
    font-weight: 600;
    transition: var(--transition-base);
}

.link-arrow:hover {
    color: var(--color-chocolate-dark);
    padding-left: 5px;
}

/* === GALLERY PREVIEW (Homepage only) === */
.gallery-preview {
    background: var(--color-white);
}

.gallery-preview .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-preview .gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    aspect-ratio: 1;
}

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

.gallery-preview .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview .gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* === TESTIMONIALS === */
.testimonials-section {
    background: var(--color-cream-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    border: 2px solid transparent;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(109, 76, 65, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25);
    border-color: var(--color-gold);
}

.testimonial-stars {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-chocolate-medium);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    color: var(--color-chocolate-dark);
    font-size: 1.125rem;
}

.testimonial-author span {
    color: var(--color-caramel);
    font-size: 0.875rem;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--gradient-chocolate);
    text-align: center;
    color: var(--color-white);
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--color-champagne);
    margin-bottom: 2.5rem;
}

/* === FOOTER === */
.footer {
    background: var(--gradient-chocolate);
    color: var(--color-champagne);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.75rem;
    font-family: var(--font-display);
}

.footer-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-text {
    color: var(--color-champagne);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links,
.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-info li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-champagne);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-info li {
    color: var(--color-champagne);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.social-link:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-champagne);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* === FOOTER CREDITS === */
.footer-credits {
    font-size: 0.9rem;
    color: rgba(245, 230, 211, 0.8);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.footer-credits a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.footer-credits a:hover {
    color: var(--color-champagne);
    text-decoration: underline;
}

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

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

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

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--color-white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    
    .gallery-preview .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-credits {
        font-size: 0.85rem;
    }
}
