/* 
   Histoire de Lard - Stylesheet
   Theme: Classy, Professional, Warm (Slate, Bordeaux Red, Beige/Gold)
*/

:root {
    /* Color Palette */
    --color-primary: #9b111e; /* Rubis/Bordeaux Red for Butchery feel */
    --color-primary-dark: #7a0c16;
    --color-primary-light: #c21e2e;
    
    --color-accent: #ffffff; /* White for premium accents */
    --color-accent-hover: #e6e6e6;
    
    --color-bg-main: #141414; /* Deep Slate/Charcoal */
    --color-bg-alt: #1a1a1a;
    --color-bg-card: #222222;
    --color-bg-overlay: rgba(20, 20, 20, 0.85);

    --color-text-main: #f5f5dc; /* Beige text for warmth on dark bg */
    --color-text-muted: #b0b0b0;
    --color-text-black: #111111;

    /* Typography */
    --font-heading: 'Oranienbaum', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --section-padding: 5rem 0rem;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transit-fast: 0.2s ease;
    --transit-normal: 0.3s ease;
    --transit-slow: 0.5s ease-out;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-main);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

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

.hidden {
    display: none !important;
}

.relative {
    position: relative;
}

/* Typography Utilities */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-primary);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transit-normal);
    border: 2px solid transparent;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(155, 17, 30, 0.4);
}

.btn-gold {
    background-color: var(--color-accent);
    color: var(--color-text-black);
    font-weight: 600;
}

.btn-gold:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-main);
    transform: translateY(-3px);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transit-normal), padding var(--transit-normal), box-shadow var(--transit-normal);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: var(--color-bg-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-container-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.nav-social-mobile {
    display: none;
}

.social-link-nav {
    color: var(--color-text-main);
    font-size: 1.2rem;
    transition: color var(--transit-fast);
}

.social-link-nav:hover {
    color: var(--color-accent);
}

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transit-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transit-fast);
}

.cta-outline {
    border: 1px solid var(--color-text-main);
}
.cta-outline:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-main);
}

.cta-primary {
    background-color: var(--color-primary);
    color: white;
}
.cta-primary:hover {
    background-color: var(--color-primary-dark);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(20,20,20,0.7), rgba(20,20,20,0.9)), url('../assets/facade-histoire-de-lard.png') center/cover no-repeat;
    background-color: var(--color-bg-main);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--color-bg-main) 120%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-logo-img {
    height: 80px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    text-shadow: 2px 4px 10px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* =========================================================================
   Presentation (Services) Section
   ========================================================================= */
.presentation {
    background-image: linear-gradient(rgba(40, 25, 15, 0.6), rgba(20, 15, 10, 0.85)), 
                      url('https://images.unsplash.com/photo-1510173826346-3eb37ecbcc0d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform var(--transit-normal), box-shadow var(--transit-normal);
    border: 1px solid rgba(255,255,255,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.2);
}

.service-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--color-bg-card), transparent);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 3px solid var(--color-bg-card);
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.service-text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--color-primary-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
}

.service-link:hover {
    color: var(--color-accent);
    gap: 0.8rem;
}

/* =========================================================================
   Actualités Section (Carousel)
   ========================================================================= */
.news-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.news-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 2rem; /* space for scrollbar */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.news-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.news-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transit-normal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 320px;
    max-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    border: 1px solid #333;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transit-fast);
}

.carousel-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transit-slow);
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
}

.news-readmore:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* =========================================================================
   Banner / CTA Parallax
   ========================================================================= */
.cta-banner {
    position: relative;
    padding: 6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    overflow: hidden;
}

.cta-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(155, 17, 30, 0.85), rgba(20, 20, 20, 0.9)), url('assets/banner-bg.jpg') center/cover fixed;
    z-index: 0;
}

.cta-banner-content {
    z-index: 1;
    max-width: 800px;
}

.cta-banner-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-banner-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

/* =========================================================================
   Contact Section & Footer
   ========================================================================= */
.contact-section {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 4rem;
    background-color: var(--color-bg-main);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/planche-texture-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer {
    background-color: #0a0a0a;
    padding-top: 4rem;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.footer-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* Form Styles */
.contact-form {
    display: grid;
    gap: 1.2rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: var(--color-bg-alt);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transit-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(155, 17, 30, 0.2);
    background-color: #222;
}

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

.form-submit {
    width: 100%;
    border: none;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}
.form-status.success { color: #4caf50; }
.form-status.error { color: #f44336; }

/* Footer Info Column */
.info-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
}

.footer-company {
    font-size: 1.8rem;
}

.info-block {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.info-content p, .hours-list {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

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

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--color-bg-alt);
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all var(--transit-fast);
}

.social-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #050505;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links-wrapper {
    display: flex;
    justify-content: flex-end;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links-list a {
    color: var(--color-text-muted);
}

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

.footer-legal a {
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: var(--color-text-main);
}

/* =========================================================================
   Animations & Reveals
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 992px) {
    .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-container-split {
        display: flex;
        justify-content: space-between;
    }
    
    .nav-social {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-social-mobile {
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-logo img {
        height: 24px;
        width: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 350px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 3rem 1.5rem;
    }

    .cta-banner-title {
        font-size: 2rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }

    .footer-links-wrapper {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }

    .footer-logo {
        height: 60px !important;
        width: auto !important;
    }

    .footer-legal a {
        margin: 0 0.5rem;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}
