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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ACCESSIBILITÉ — UTILITAIRES
============================================ */

/* Visible uniquement pour les lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lien d'évitement : apparaît à la première tabulation */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 2000;
    background: #2d5016;
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Indicateur de focus visible et homogène sur tous les éléments
   interactifs. Auparavant seuls les champs de formulaire en avaient un. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #8b4513;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Sur fond vert foncé, un contour clair reste lisible */
.navbar a:focus-visible,
.navbar button:focus-visible,
.mobile-menu a:focus-visible,
.footer a:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 3px;
}

/* ============================================
   ANIMATIONS
============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

/* <picture> ne doit pas créer de boîte intermédiaire */
.hero picture {
    display: contents;
}

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

/* Le logo porte le <h1> : on neutralise les styles de titre par défaut */
.hero-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 0;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    max-width: 600px;
    width: 80%;
    height: auto;
    margin-bottom: 1px;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.8));
    animation: fadeInLogo 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: #e8e8e8;
    font-weight: 300;
}

.hero-location {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: #d4d4d4;
    margin-bottom: 2.5rem;
}

.hero-cta {
    margin-top: 2rem;
    animation: pulse 2s infinite;
}

/* ============================================
   NAVIGATION
============================================ */
.navbar {
    background-color: #2d5016;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.navbar-logo {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.navbar-logo:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Burger Menu — <button> : accessible au clavier et aux lecteurs d'écran.
   Zone tactile de 44x44 px, le minimum recommandé pour une cible au doigt. */
.burger-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    border-radius: 10px;
    font: inherit;
    color: inherit;
    transition: background-color 0.25s ease;
}

.burger-menu:hover,
.burger-menu.active {
    background-color: rgba(255, 255, 255, 0.14);
}

.burger-line {
    width: 26px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Croix : les barres extrêmes rejoignent le centre (3 px de barre + 5 px
   d'écart = 8 px) avant de pivoter. */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #2d5016, #3d6b20);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    /* visibility:hidden retire les liens du parcours clavier ET de l'arbre
       d'accessibilité quand le menu est fermé. Sans ça, la tabulation
       traversait six liens invisibles. Le délai laisse l'animation finir. */
    visibility: hidden;
    transition: left 0.4s ease, visibility 0s linear 0.4s;
}

.mobile-menu.active {
    left: 0;
    visibility: visible;
    transition: left 0.4s ease, visibility 0s linear 0s;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    margin: 1.5rem 0;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5016, #3d6b20);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

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

/* ============================================
   SECTIONS
============================================ */
.section {
    padding: 6rem 0;
}

/* La navigation par ancre est native (plus de JS) : ce décalage évite que
   la barre fixe recouvre le titre de la section ciblée. */
.section,
#main {
    scroll-margin-top: 90px;
}

.section-alt {
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2.8rem;
    color: #2d5016;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2d5016, #8b4513);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.intro-text {
    font-size: 1.3rem;
    color: #2d5016;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PRODUCTS SECTION
============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 80, 22, 0.1);
    position: relative;
    padding: 2rem;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2d5016, #8b4513);
}

.product-card h3 {
    color: #2d5016;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.product-desc {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* ============================================
   PRICING SECTION
============================================ */
.pricing-section {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-intro p {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
}

.pricing-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background-color: #2d5016;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-table td {
    color: #555;
    font-size: 1rem;
}

.pricing-table tbody td:first-child {
    font-weight: 600;
    color: #2d5016;
}

.pricing-table tbody td:not(:first-child) {
    font-weight: 700;
    color: #8b4513;
    font-size: 1.1rem;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background-color: rgba(45, 80, 22, 0.05);
}

/* ============================================
   DELIVERY SECTION
============================================ */
.delivery-content {
    max-width: 1000px;
    margin: 0 auto;
}

.delivery-info {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.delivery-main h3 {
    color: #2d5016;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
}

.delivery-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.delivery-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.delivery-list li:last-child {
    border-bottom: none;
}

.delivery-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-weight: bold;
    font-size: 1.5rem;
}

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

.zone-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.zone-1 {
    border: 5px solid #164950;
}


.zone-2 {
    border: 5px solid #218b13;
}


.zone-3 {
    border: 5px solid #8b2513;
}


.zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.zone-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2d5016;
    font-weight: 700;
}

.zone-card p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
    font-weight: 600;
}

.zone-areas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.zone-areas span {
    background: rgba(45, 80, 22, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2d5016;
    font-weight: 500;
}

/* Équivalent texte de la carte : l'information des zones n'existait
   nulle part ailleurs qu'en image. */
.zone-localities {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: #555;
    font-weight: 400;
    line-height: 1.5;
}

.zones-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #555;
    font-size: 0.98rem;
    font-style: italic;
}

.zones-note a {
    color: #6d3610;
    font-weight: 600;
}

.delivery-map {
    text-align: center;
    margin-top: 2rem;
}

.map-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ORDER FORM SECTION
============================================ */
.order-content {
    max-width: 900px;
    margin: 0 auto;
}

.order-form {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-col {
    flex: 1;
    min-width: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d5016;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5016;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

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

/* Astérisque des champs obligatoires */
.req {
    color: #a2411a;
    font-weight: 700;
}

/* Messages de validation sous chaque champ (remplace alert()) */
.field-error {
    margin-top: 0.4rem;
    color: #a11d1d;
    font-size: 0.88rem;
    font-weight: 600;
    min-height: 0;
}

.field-error:empty {
    display: none;
}

.field-hint {
    margin-top: 0.4rem;
    color: #5f5f5f;
    font-size: 0.85rem;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #a11d1d;
    background: #fff7f7;
}

/* Champ quantité avec son unité */
.input-suffix {
    display: flex;
    align-items: stretch;
}

.input-suffix input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-suffix .suffix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #eef0ea;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #2d5016;
    font-weight: 600;
    white-space: nowrap;
}

/* Piège à robots : sorti du flux plutôt que display:none, que certains
   robots détectent. Invisible, non focusable, ignoré des lecteurs d'écran. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Repli si JavaScript est désactivé */
.form-fallback {
    background: #fff3cd;
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #6d3610;
    font-weight: 600;
    margin-bottom: 2rem;
}

.price-estimate {
    background: rgba(45, 80, 22, 0.05);
    border: 2px solid rgba(45, 80, 22, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.price-estimate span {
    color: #2d5016;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b4513;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Barre supérieure en pseudo-élément, comme les cartes produits.
   Un border-top classique se courbe avec le border-radius et laisse
   une entaille claire visible aux deux angles. */
.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #2d5016;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-item h3 {
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-item p {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1.2rem;
}

.contact-item a {
    color: #8b4513;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    /* L'adresse email est un mot de 31 caractères insécable : sans ça
       elle touche les deux bords de la carte, voire la déborde. */
    overflow-wrap: anywhere;
}

.contact-item a:hover {
    color: #2d5016;
    text-decoration: underline;
}

/* #888 sur blanc = 3,54:1, sous le minimum WCAG AA de 4,5:1.
   #6b6b6b = 5,33:1. */
.contact-item small {
    color: #6b6b6b;
    font-size: 1rem;
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: linear-gradient(135deg, #2d5016, #1a2e0a);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.footer-contact {
    margin-top: 1rem !important;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-contact a {
    color: #fff;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1024px) {
    .hero-logo {
        max-width: 400px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 1rem 0.8rem;
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile */
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    /* L'IntersectionObserver se déclenche mal sur certains navigateurs
       mobiles : on affiche le contenu directement plutôt que de risquer
       une section invisible. */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Hero Mobile */
    .hero {
        padding: 2rem 0;
        min-height: 100vh;
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-location {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    /* Grids */
    .products-grid,
    .zones-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Form */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Cards */
    .product-card,
    .zone-card,
    .contact-item {
        padding: 2rem 1.5rem;
    }
    
    .order-form {
        padding: 2rem 1.5rem;
    }
    
    .delivery-info {
        padding: 2rem 1.5rem;
    }
    
    /* Table responsive */
    .pricing-table-container {
        overflow-x: auto;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .mobile-menu a {
        font-size: 1.2rem;
        min-width: 200px;
        margin: 1rem 0;
    }
    
    .product-card,
    .zone-card,
    .contact-item {
        padding: 1.5rem 1rem;
    }

    /* Sur écran étroit, l'email en 1.2rem remplit toute la largeur utile
       de la carte et supprime visuellement les marges intérieures. */
    .contact-item p {
        font-size: 1rem;
    }

    .order-form {
        padding: 1.5rem 1rem;
    }
    
    .delivery-info {
        padding: 1.5rem 1rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }
    
}
/* ============================================
   PAGE 404
============================================ */
.error-page {
    max-width: 620px;
    margin: 4rem auto;
    text-align: center;
}

.error-logo {
    width: 240px;
    height: auto;
    /* Le logo est blanc : il lui faut un fond sombre pour être lisible */
    background: #2d5016;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
}

.error-page h1 {
    font-size: 2.4rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.error-page > p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2rem;
}

.error-contact {
    margin-top: 2.5rem;
    font-size: 1rem;
    color: #555;
}

.error-contact a {
    color: #6d3610;
    font-weight: 600;
}

/* ============================================
   MODALES (confirmation / erreur d'envoi)
   Anciennement construites en styles inline depuis le JS.
============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 460px;
    width: 100%;
}

.modal--success {
    background: linear-gradient(135deg, #2d5016, #3d6b20);
}

/* Le rouge d'origine (#f44336) ne donnait que 3,7:1 avec du texte blanc. */
.modal--error {
    background: linear-gradient(135deg, #8f1d17, #c1332a);
}

.modal h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.4rem;
}

.modal p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal a {
    color: #fff;
    font-weight: 700;
}

.modal-detail {
    font-size: 0.78rem;
    opacity: 0.85;
    font-style: italic;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    margin-top: 0.5rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MOUVEMENT RÉDUIT
   Respecte le réglage système de l'utilisateur (WCAG 2.3.3 / 2.2.2).
============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
