/* =========================================================
   Culture Nature — feuille de style
   ========================================================= */

:root {
    --green-900: #1f4d2b;
    --green-700: #2f6f3e;
    --green-500: #4c9a5b;
    --green-100: #e5f2e3;
    --orange-500: #e8772e;
    --orange-100: #fdebdc;
    --red-600: #c0392b;
    --red-100: #fbe3e0;
    --blue-600: #2a6fb0;
    --blue-100: #e1edf8;
    --cream: #fbf8f1;
    --sand: #f3ecdc;
    --ink: #24302a;
    --muted: #66746b;
    --line: #e4dfd2;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 2px 4px rgba(31, 77, 43, .06), 0 8px 24px rgba(31, 77, 43, .08);
    --shadow-hover: 0 4px 8px rgba(31, 77, 43, .08), 0 14px 34px rgba(31, 77, 43, .14);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-title: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

h1, h2, h3 { font-family: var(--font-title); color: var(--green-900); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.page { padding-block: 32px 56px; }
.section { padding-block: 56px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Bandeau d'annonce ---------- */
.announcement { padding: 10px 0; font-size: .95rem; text-align: center; }
.announcement .container { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.announcement-info { background: var(--blue-600); color: #fff; }
.announcement-promo { background: var(--orange-500); color: #fff; }
.announcement-alerte { background: var(--red-600); color: #fff; }
.announcement strong::before { content: "📣 "; }

/* ---------- En-tête ---------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-title); font-size: 1.35rem; font-weight: bold; color: var(--green-900); }
.brand-logo { width: auto; height: 50px; }
.brand-bio { font-weight: 900; }
@media (max-width: 420px) { .brand-logo { height: 38px; } }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav > a:not(.btn) { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.main-nav > a:not(.btn):hover { background: var(--green-100); }
.main-nav > a.active { background: var(--green-100); color: var(--green-900); }
.logout-form { margin: 0 0 0 8px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; transition: .2s; }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 12px 16px 16px; display: none;
    }
    .main-nav.open { display: flex; }
    .logout-form { margin: 8px 0 0; }
    .logout-form .btn, .main-nav .btn { width: 100%; }
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 999px; border: 2px solid var(--green-700);
    background: var(--green-700); color: #fff; font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-small { padding: 5px 12px; font-size: .875rem; }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost, .btn-outline { background: transparent; color: var(--green-700); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover, .btn-outline:hover { background: var(--green-100); color: var(--green-900); border-color: var(--green-500); }
.btn-danger-outline { background: transparent; color: var(--red-600); border-color: #eab4ad; }
.btn-danger-outline:hover { background: var(--red-100); color: var(--red-600); border-color: var(--red-600); }

/* ---------- Héros ---------- */
.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(232, 119, 46, .18), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(76, 154, 91, .2), transparent 45%),
        linear-gradient(160deg, #f6f1e3 0%, #e9f3e5 100%);
    overflow: hidden;
}
.hero-inner { padding-block: 28px 56px; }
.hero-top { padding-top: 24px; }
/* 2,5 fois la taille normale (.8rem x 2,5 = 2rem) sur ordinateur, réduite sur petit écran pour ne pas déborder */
.hero-top .eyebrow { margin: 0 0 8px; text-align: center; font-size: clamp(1.2rem, 4.2vw, 2rem); line-height: 1.15; letter-spacing: .08em; }
.hero-inner .lead { margin-top: 0; max-width: none; } /* accroche sur toute la largeur de la page */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--orange-500); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 span { color: var(--green-500); font-style: italic; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Image d'en-tête : toute la largeur, avec une petite marge (fond de la section conservé) */
.hero-banner { padding: 12px; }
/* drive-hd.jpg (1854x838, sans bandes blanches) : affichée entière, coins arrondis */
.hero-banner-crop { overflow: hidden; border-radius: 10px; aspect-ratio: 1854 / 838; width: 60%; margin-inline: auto; }
@media (max-width: 860px) { .hero-banner-crop { width: 100%; } } /* téléphone / tablette : pleine largeur */
.hero-banner-crop img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .hero-banner { padding: 6px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 860px) {
    .hero-inner { padding-block: 20px 40px; }
    .hero-top { padding-top: 16px; }
}

/* ---------- Présentation ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text p { font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
    background: #fff; border-radius: var(--radius); padding: 18px 20px 18px 84px; position: relative;
    box-shadow: var(--shadow);
}
.steps li p { margin: 4px 0 0; color: var(--muted); }
.step-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 26px;
    background: var(--green-100);
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Produits ---------- */
.products-section { background: var(--sand); }
.section-head, .page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2, .page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head .filters, .page-head .filters { margin: 0; }
.chip {
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--green-500); color: var(--green-900); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s;
}
.product-card.hidden-by-filter { display: none; }
.product-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-placeholder { display: grid; place-items: center; font-size: 72px; user-select: none; }
.photo-placeholder.cat-fruit { background: linear-gradient(135deg, #fdebdc, #fbd9bd); }
.photo-placeholder.cat-legume { background: linear-gradient(135deg, #e5f2e3, #cfe7cb); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin: 6px 0 4px; }
.product-desc { color: var(--muted); font-size: .9rem; margin: 0 0 10px; flex: 1; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--green-900); margin: 0; }
.price small { font-weight: 400; color: var(--muted); font-size: .85rem; }

.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.tag-fruit { background: var(--orange-100); color: #a24d12; }
.tag-legume { background: var(--green-100); color: var(--green-700); }

/* Cartes cliquables (espace client) */
.product-card.selectable { cursor: pointer; }
.product-card.selectable:hover, .product-card.selectable:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-hover); outline: none; }
.product-card.selectable:focus-visible { box-shadow: 0 0 0 3px var(--green-500), var(--shadow-hover); }
.product-card.in-basket { box-shadow: 0 0 0 3px var(--green-500), var(--shadow); }
.product-card.unavailable { opacity: .55; filter: grayscale(.7); }
.product-card.coming { opacity: .8; }
.product-card.coming .product-photo { filter: saturate(.6); }

/* Badges d'état de disponibilité */
.etat {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.etat-nouveau { background: var(--orange-500); color: #fff; }
.etat-aleatoire { background: #fff3cd; color: #8a6100; }
.etat-en_cours { background: var(--blue-100); color: var(--blue-600); }
.etat-indisponible { background: #ece9e2; color: #7a776f; }
.etat-prochainement { background: #ece4f7; color: #5b3a8c; }
.etat-hors_saison { background: #e3e8ec; color: #4f5d68; }

.etat-select { width: auto; padding: 5px 10px; font-size: .85rem; font-weight: 600; border-radius: 999px; }
.etat-select.etat-disponible { background: var(--green-100); color: var(--green-700); border-color: #b9dbb4; }
.etat-select.etat-nouveau { background: var(--orange-100); color: #a24d12; border-color: #f3c49f; }
.etat-select.etat-aleatoire { background: #fff3cd; color: #8a6100; border-color: #f0dc9a; }
.etat-select.etat-en_cours { background: var(--blue-100); color: var(--blue-600); border-color: #b5cfe8; }
.etat-select.etat-indisponible { background: #f1eee6; color: var(--muted); }
.etat-select.etat-prochainement { background: #ece4f7; color: #5b3a8c; border-color: #d3c3ea; }
.etat-select.etat-hors_saison { background: #e3e8ec; color: #4f5d68; border-color: #c9d2d9; }
.etat-select option { background: #fff; color: var(--ink); }
.product-card.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.04); } }
.add-hint { margin-top: 10px; font-weight: 600; color: var(--green-700); font-size: .9rem; }
.add-units { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.unavailable .badge { margin-top: 10px; align-self: flex-start; }
.in-cart {
    position: absolute; top: 10px; right: 10px; min-width: 34px; height: 34px; padding: 0 8px;
    border-radius: 999px; background: var(--green-700); color: #fff; font-weight: 700;
    display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ---------- Boutique + panier ---------- */
.shop { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 0; }
.cart { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.cart h2 { margin-bottom: 12px; }
.cart-items { display: grid; gap: 10px; margin-bottom: 12px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cart-line-name { font-weight: 600; }
.cart-line-price { color: var(--muted); font-size: .85rem; }
.cart-line-total { font-weight: 700; text-align: right; }
.qty-group { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.qty-field { display: inline-flex; align-items: center; gap: 6px; }
.qty-unit { font-size: .85rem; color: var(--muted); min-width: 52px; }
.qty-or { align-self: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.cart-onsite { background: var(--orange-100); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--green-100); font-size: 1.1rem; cursor: pointer; color: var(--green-900); }
.qty button:hover { background: #cfe7cb; }
.qty input { width: 44px; height: 32px; border: 0; text-align: center; font: inherit; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.remove-line { background: none; border: 0; color: var(--red-600); cursor: pointer; font-size: .85rem; padding: 0; justify-self: end; }
.cart-total { font-size: 1.1rem; display: flex; justify-content: space-between; margin: 0 0 12px; }
.cart-empty { margin: 0; }

@media (max-width: 960px) {
    .shop { grid-template-columns: 1fr; }
    .cart { position: static; max-height: none; }
}

/* ---------- Cartes & formulaires ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.form-card { margin-bottom: 24px; border-top: 4px solid var(--green-500); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 0; padding: 16px 0; background: linear-gradient(transparent, var(--cream) 40%); }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date],
input[type=search], input[type=number], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d6d0c1; border-radius: 10px;
    font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(76, 154, 91, .2); }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-700); }
input[type=file] { font: inherit; font-weight: 400; }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 44px; }
.toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 1.1rem; opacity: .6; }
.toggle-pw:hover { opacity: 1; }

.auth-box { max-width: 440px; margin: 24px auto; }
.auth-box h1 { margin-bottom: 4px; }

.product-form { grid-template-columns: 1fr 260px; align-items: start; }
.product-form-main { display: grid; gap: 14px; }
.product-form-photo { display: grid; gap: 12px; }
.photo-preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.product-form .form-actions { grid-column: 1 / -1; }
@media (max-width: 760px) { .product-form { grid-template-columns: 1fr; } }

.search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 520px; }

.filters-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 24px; padding: 16px 20px; }
.filters-bar label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.filters-bar input, .filters-bar select { width: auto; min-width: 160px; }

/* ---------- Alertes & badges ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: var(--green-100); border-color: var(--green-500); color: var(--green-900); }
.alert-error { background: var(--red-100); border-color: var(--red-600); color: #7d2318; }
.alert-info { background: var(--blue-100); border-color: var(--blue-600); color: #1d4a75; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-en_attente { background: #fff3cd; color: #8a6100; }
.badge-prete { background: var(--orange-100); color: #a24d12; }
.badge-retiree { background: var(--green-100); color: var(--green-700); }
.badge-annulee { background: #ece9e2; color: #7a776f; }

/* ---------- Tableaux ---------- */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #faf8f2; }
.table tbody tr:hover { background: #fcfbf7; }
.table .num { text-align: right; }
.table.compact th, .table.compact td { padding: 6px 4px; }
.table tfoot th { border-bottom: 0; font-size: 1.05rem; }
.table-wrap .table td.empty { text-align: center; padding: 32px; }
.row-muted td { color: var(--muted); }
.row-muted .thumb { filter: grayscale(.8); opacity: .6; }
.thumb-cell { width: 72px; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.thumb.photo-placeholder { font-size: 28px; }
form.inline { display: inline; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.switch {
    border: 1px solid #d6d0c1; background: #f1eee6; color: var(--muted); border-radius: 999px;
    padding: 4px 12px 4px 26px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; position: relative;
}
.switch::before { content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #b5b0a3; }
.switch.on { background: var(--green-100); color: var(--green-700); border-color: #b9dbb4; }
.switch.on::before { background: var(--green-500); }

/* ---------- Tableau de bord ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { text-decoration: none; color: inherit; display: grid; gap: 4px; padding: 20px; transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: inherit; }
.stat-value { font-family: var(--font-title); font-size: 2.2rem; font-weight: bold; color: var(--green-700); line-height: 1; }
.stat-value small { font-size: 1rem; color: var(--muted); }
.stat-label { color: var(--muted); font-size: .9rem; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }

dl.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; font-weight: 600; }

/* ---------- Vidéos ---------- */
.weekdays { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.weekdays legend { font-weight: 600; margin-bottom: 8px; }
.weekday { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #d6d0c1; border-radius: 10px; cursor: pointer; background: #fff; }
.weekday:has(input:checked) { border-color: var(--green-500); background: #eef6ea; font-weight: 600; }

.orders-clear { margin: 0 0 16px; text-align: right; }

/* Page Informations : blocs de texte */
.info-blocks { display: grid; gap: 20px; max-width: 820px; }
.info-block h2 { margin: 0 0 10px; }
.info-block p { margin: 0 0 12px; line-height: 1.6; }
.info-block p:last-child { margin-bottom: 0; }
.info-block.has-image { display: grid; grid-template-columns: 1fr minmax(0, 38%); gap: 24px; align-items: start; }
.info-image { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 640px) {
    .info-block.has-image { grid-template-columns: 1fr; } /* téléphone : l'image passe sous le texte */
}
.admin-video { display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.info-image-field { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.info-image-preview:empty { display: none; }
.info-image-preview img { display: block; width: 160px; height: auto; max-height: 160px; object-fit: cover; border-radius: 10px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.video-card { padding: 0; overflow: hidden; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-body { padding: 16px 20px 20px; }
.video-body h2 { font-size: 1.15rem; margin: 0 0 6px; }
.video-body p { margin: 0; }

/* ---------- Nous trouver ---------- */
.access { padding-bottom: 56px; scroll-margin-top: 90px; }
.access:target .access-card { animation: highlight 1.6s ease-out; }
@keyframes highlight { 0%, 30% { box-shadow: 0 0 0 4px var(--green-500), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.access-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.access-card h2 { margin-top: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Mentions légales & confidentialité ---------- */
.legal { max-width: 820px; margin: 0 auto; line-height: 1.6; }
.legal h2 { margin-top: 32px; }
.legal h3 { margin: 24px 0 6px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
@media (max-width: 520px) { .legal dl.details { grid-template-columns: 1fr; } .legal dl.details dd { margin-bottom: 8px; } }

/* ---------- Commandes ---------- */
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.order { display: grid; gap: 10px; align-content: start; }
.order-upcoming { border-top: 4px solid var(--green-500); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-head h2 { font-size: 1.15rem; margin: 0; }
.order-head p { margin: 2px 0 0; }
.pickup { margin: 0; background: var(--sand); padding: 8px 12px; border-radius: 10px; }
.status-form label { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.status-form select { width: auto; padding: 6px 10px; }
.recap { margin-bottom: 24px; border-top: 4px solid var(--orange-500); }
.empty { color: var(--muted); text-align: center; }
.card.empty { padding: 40px; }

@media (max-width: 420px) { .orders { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green-900); color: #d7e6d6; padding-top: 40px; margin-top: auto; }
.site-footer h3 { color: #fff; font-family: var(--font); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p { margin: 0 0 6px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-brand { font-family: var(--font-title); font-size: 1.4rem; color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding: 16px 0 24px; font-size: .85rem; color: #a9c2a8; }
.footer-copy a { color: inherit; }
/* Lien itinéraire du pied de page : jaune, bien lisible sur le fond vert foncé */
.site-footer .footer-map-link { color: #ffd84d; font-weight: 700; }
.site-footer .footer-map-link:hover, .site-footer .footer-map-link:focus { color: #fff3b0; }
/* Bouton « Copier » à côté de l'adresse e-mail */
.copy-btn {
    margin-left: 8px; padding: 3px 10px; font: inherit; font-size: .85rem; cursor: pointer;
    color: #ffd84d; background: transparent; border: 1px solid #ffd84d; border-radius: 999px;
}
.copy-btn:hover, .copy-btn:focus { background: #ffd84d; color: var(--green-900); }
.copy-btn[hidden] { display: none; }
.home + .site-footer { margin-top: 0; }

/* ---------- Impression (récap de préparation) ---------- */
@media print {
    .site-header, .site-footer, .announcement, .filters-bar, .no-print, [data-print], .alert { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    .orders { grid-template-columns: 1fr 1fr; }
}
