/* ============================================
   CABANE DU FERMIER — Design System
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary palette — earthy green tones */
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --primary-lighter: #52b788;

    /* Accent — warm gold */
    --accent: #e9a319;
    --accent-light: #f5c55a;
    --accent-dark: #c7880e;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f9f6;
    --surface: #f1f4ee;
    --border: #dde4d6;
    --text: #1a2e1a;
    --text-secondary: #4a5f4a;
    --text-muted: #6b7f6b;
    --text-light: #8a9d8a;

    /* Functional */
    --whatsapp: #25d366;
    --shadow-sm: 0 2px 8px rgba(27,67,50,0.06);
    --shadow-md: 0 4px 20px rgba(27,67,50,0.10);
    --shadow-lg: 0 8px 40px rgba(27,67,50,0.14);
    --shadow-xl: 0 16px 56px rgba(27,67,50,0.18);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-py: 5rem;
    --container-px: 1.25rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration) var(--ease);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

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

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-whatsapp { color: var(--whatsapp) !important; }
.text-white-muted { color: rgba(255,255,255,0.75); }

.bg-surface { background: var(--surface); }
.bg-primary { background: var(--primary-dark); }
.bg-primary-light { background: var(--primary-light); }

.mt-12 { margin-top: 3rem; }
.w-full { width: 100%; }
.shadow-md { box-shadow: var(--shadow-md); }

/* Motif Background */
.motif-bg {
    position: relative;
}
.motif-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232d6a4f' fill-opacity='0.025'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
.motif-bg > * {
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(45,106,79,0.08);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.badge-white {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(45,106,79,0.08);
    color: var(--primary);
    transition: all var(--duration) var(--ease);
}
.btn-icon-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Icon sizes */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Text accent highlight ---------- */
.text-accent-highlight {
    color: var(--accent);
    position: relative;
}
.text-accent-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 6px;
    background: var(--accent-light);
    opacity: 0.35;
    border-radius: 3px;
    z-index: -1;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--duration) var(--ease);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.logo img {
    height: 46px;
    width: auto;
    transition: transform var(--duration) var(--ease);
}
.logo:hover img {
    transform: scale(1.05);
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}
.nav-link:hover {
    color: var(--primary);
    background: rgba(45,106,79,0.06);
}

.nav-btn {
    margin-left: 0.75rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    color: var(--text);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem var(--container-px) 1.5rem;
    gap: 0.25rem;
}
.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease);
}
.mobile-nav-link:hover {
    background: var(--surface);
    color: var(--primary);
}

.mobile-nav-btn {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: linear-gradient(170deg, var(--off-white) 0%, var(--white) 50%, var(--surface) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: linear-gradient(135deg, rgba(233,163,25,0.12), rgba(233,163,25,0.06));
    border: 1px solid rgba(233,163,25,0.2);
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}
.hero-btn:hover {
    box-shadow: var(--shadow-lg);
}

.hero-btn-outline {
    border-color: var(--primary-light);
    color: var(--primary);
}

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

.hero-image-placeholder {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.hero-stats-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: slideUp 0.8s ease-out 0.5s both;
}

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

.stat-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-text {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-secondary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-mission {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(45,106,79,0.06), rgba(45,106,79,0.02));
    border-left: 3px solid var(--primary-lighter);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.mission-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}
.mission-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    margin-bottom: 0.85rem;
}
.feature-icon {
    width: 22px;
    height: 22px;
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.55rem 1.3rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}
.filter-btn:hover {
    border-color: var(--primary-lighter);
    color: var(--primary);
}
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
    transition: all var(--duration) var(--ease);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-card.hidden {
    display: none;
}

/* Selected state */
.product-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.15), var(--shadow-md);
}
.product-card.selected .btn-icon-link.add-to-order {
    background: var(--primary);
    color: var(--white);
}

/* Selected badge overlay */
.product-selected-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.22rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    color: var(--white);
    background: var(--primary);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: scale(0.8) translateY(-4px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    pointer-events: none;
}
.product-card.selected .product-selected-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Cart button bounce on click */
@keyframes cartBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.add-to-order.bounce {
    animation: cartBounce 0.38s var(--ease);
}

/* Toast notification */
.order-toast {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    background: var(--primary-dark);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    white-space: nowrap;
}
.order-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.order-toast .toast-icon { font-size: 1rem; }

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-category-tag {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--primary);
    border-radius: var(--radius-full);
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.product-price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.product-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2d6a4f;
    background: #e8f5e9;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Légumes tag — distinct green shade */
.product-category-tag.tag-legume {
    background: #2d6a4f;
    color: var(--white);
}

/* Local/ethnic name shown in subtle style */
.product-local-name {
    font-size: 0.82rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
}

/* Short description on vegetable cards */
.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* ============================================
   LIVRAISON TOGGLE & MAP
   ============================================ */
.livraison-toggle {
    display: flex;
    gap: 0.6rem;
}

.toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.toggle-btn:hover {
    border-color: var(--primary-lighter);
    color: var(--primary);
}
.toggle-btn.active[data-value="non"] {
    background: rgba(220, 53, 69, 0.07);
    border-color: #dc3545;
    color: #dc3545;
}
.toggle-btn.active[data-value="oui"] {
    background: rgba(45, 106, 79, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* Map section */
.map-section {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: var(--surface);
    animation: fadeIn 0.3s ease;
}

.map-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.map-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}
.map-search-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--text);
    outline: none;
    padding: 0;
}
.map-search-wrapper input::placeholder {
    color: var(--text-light);
}
.map-search-btn {
    padding: 0.4rem 0.9rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: background var(--duration) var(--ease);
    white-space: nowrap;
}
.map-search-btn:hover {
    background: var(--primary-dark);
}

.leaflet-map {
    width: 100%;
    height: 240px;
}

.map-location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--white);
    border-top: 1px solid var(--border);
}
.map-location-info svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   GÉOLOCALISATION BOUTON
   ============================================ */
.geo-section {
    animation: fadeIn 0.3s ease;
}

/* Bouton principal */
.btn-geo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(45,106,79,0.06);
    border: 2px dashed var(--primary-lighter);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.btn-geo:hover {
    background: rgba(45,106,79,0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.btn-geo.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}
.btn-geo svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Résultat après géolocalisation */
.geo-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(45,106,79,0.06);
    border: 1.5px solid var(--primary-lighter);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}
.geo-result-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.geo-result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.geo-result-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}
.geo-result-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.geo-reset-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(45,106,79,0.1);
    color: var(--primary);
    cursor: pointer;
    border: none;
    transition: all var(--duration) var(--ease);
}
.geo-reset-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   ENGAGEMENT SECTION
   ============================================ */
.engagement-section {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}
.engagement-section::before {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.engagement-card {
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration) var(--ease);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.engagement-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.engagement-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.12);
    color: var(--accent-light);
}

.engagement-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}
.engagement-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.55;
}

/* ============================================
   BREEDERS SECTION
   ============================================ */
.breeders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.breeder-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}
.breeder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.breeder-img-container {
    height: 220px;
    overflow: hidden;
}
.breeder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.breeder-card:hover .breeder-img {
    transform: scale(1.05);
}

.breeder-info {
    padding: 1.25rem;
}
.breeder-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.breeder-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.breeder-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   ORDER SECTION
   ============================================ */
.order-section {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
}
.order-section::before {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.order-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.order-benefits {
    margin-top: 1.5rem;
}
.order-benefits li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.order-form-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-xl);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-display);
}
.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    outline: none;
}
.form-group input:focus {
    border-color: var(--primary-lighter);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(82,183,136,0.12);
}
.form-group input::placeholder {
    color: var(--text-light);
}

.order-form .btn {
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.9rem;
    font-size: 1rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    text-align: center;
    padding: 2.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-md);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.contact-icon svg,
.contact-icon i {
    width: 24px;
    height: 24px;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.contact-card .text-muted {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}

.contact-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(45,106,79,0.06);
    transition: all var(--duration) var(--ease);
}
.contact-link:hover {
    background: var(--primary);
    color: var(--white);
}
.contact-link.text-whatsapp {
    color: var(--whatsapp);
    background: rgba(37,211,102,0.08);
}
.contact-link.text-whatsapp:hover {
    background: var(--whatsapp);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 0;
    color: rgba(255,255,255,0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-signature {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}
.social-icon:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links-group h4,
.footer-contact h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links-group li {
    margin-bottom: 0.5rem;
}
.footer-links-group a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--duration) var(--ease);
}
.footer-links-group a:hover {
    color: var(--accent-light);
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-wrapper {
        order: -1;
    }
    .hero-image-placeholder {
        max-width: 380px;
    }
    .hero-img {
        height: 320px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .feature-card {
        flex: 1;
        min-width: 200px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .engagement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .breeders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .order-content {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-py: 3.5rem;
    }

    .desktop-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-img {
        height: 260px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .breeders-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }

    .order-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.55rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-btn, .hero-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.78rem;
    }
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    padding: 1.5rem;
    border-top: 4px solid var(--primary);
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.cookie-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}
.cookie-text p {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    padding: 1.5rem;
    border-top: 4px solid var(--primary);
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.cookie-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}
.cookie-text p {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.cookie-btn-refuse {
    border-color: var(--text-light);
    color: var(--text-light);
}
.cookie-btn-refuse:hover {
    background: var(--text-light);
    color: #fff;
}
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    background: var(--surface);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.partner-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--duration) var(--ease);
}
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.partner-logo-wrapper {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    flex-shrink: 0;
}

.partner-icon {
    width: 26px;
    height: 26px;
}

.partner-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.partner-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

/* Partner tags */
.partner-tag {
    display: inline-block;
    padding: 0.22rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    color: var(--primary-dark);
    background: rgba(45,106,79,0.1);
}
.partner-tag.tag-legume {
    color: #1b4332;
    background: rgba(82,183,136,0.15);
}
.partner-tag.tag-viande {
    color: #7b2d2d;
    background: rgba(220,100,100,0.12);
}
.partner-tag.tag-service {
    color: #5a4a1a;
    background: rgba(233,163,25,0.15);
}

/* CTA card */
.partner-card-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: transparent;
    color: var(--white);
}
.partner-card-cta:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(27,67,50,0.25);
}
.partner-logo-cta {
    background: rgba(255,255,255,0.15);
}
.partner-card-cta .partner-info h4 {
    color: var(--white);
}
.partner-card-cta .partner-info p {
    color: rgba(255,255,255,0.8);
}
.partner-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
}
.partner-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
}

/* Stats Banner */
.partners-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.partner-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}
.partner-stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.partner-stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.partner-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
    .partners-stats {
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
    }
    .partner-stat-divider {
        display: none;
    }
    .partners-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   PANIER ET OPTIONS PRODUITS
   ============================================ */
.product-options-wrapper {
    margin-bottom: 0.5rem;
}
.options-toggle {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.option-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-display);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.option-pill:hover {
    border-color: var(--primary-lighter);
}
.option-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.product-cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-full);
    padding: 0.2rem;
    border: 1px solid var(--border);
}
.btn-qty {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.2s;
}
.btn-qty:hover {
    background: rgba(0,0,0,0.05);
}
.qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0.3rem;
}

.cart-summary-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.cart-empty-msg {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cart-item-info {
    display: flex;
    flex-direction: column;
}
.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
}
.cart-item-option {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}
.cart-item-price {
    font-weight: 600;
    color: var(--accent-light);
}
.cart-total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    padding-top: 1rem;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAP & GEOLOCATION STYLES
   ============================================ */
.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

#delivery-map {
    width: 100%;
    height: 220px;
    z-index: 1;
    background: #e5e3df;
}

.map-overlay-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 500;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    pointer-events: none;
}

.btn-geolocate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    margin-top: 0.6rem;
}
.btn-geolocate:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.btn-geolocate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.geo-status {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    font-weight: 500;
    min-height: 1.2rem;
}
.geo-status.success {
    color: var(--primary-dark);
}
.geo-status.error {
    color: #d90429;
}

.geo-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(45, 106, 79, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-dark);
    animation: geoSpin 0.8s linear infinite;
}
@keyframes geoSpin {
    to { transform: rotate(360deg); }
}

/* Custom Leaflet Marker */
.custom-map-marker {
    position: relative;
}
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}
.marker-pulse {
    background: rgba(45, 106, 79, 0.3);
    border-radius: 50%;
    height: 14px;
    width: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 10px 0 0 -7px;
    transform: rotateX(55deg);
    z-index: -1;
    animation: pulseMarker 1.5s ease-out infinite;
}
@keyframes pulseMarker {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

