:root {
    --terre: #8b3a1a;
    --terre-fonce: #5c2410;
    --ocre: #d97706;
    --or: #f2b134;
    --sable: #faf6f0;
    --creme: #f3e8d8;
    --bordure: #eadbc6;
    --encre: #2b1d14;
    --gris: #7a6a5d;
}

body { background: var(--sable); color: var(--encre); font-family: 'Inter', system-ui, sans-serif; }
h1, h2, h3, .logo, .serif { font-family: 'Fraunces', Georgia, serif; }
a { color: var(--terre); }
.text-muted { color: var(--gris) !important; }

/* ---------- En-tête ---------- */
.barre-info { background: var(--encre); color: #f5e9da; font-size: .8rem; padding: .45rem 0; }
.barre-info a { color: var(--or); text-decoration: none; }
.entete { background: #fff; border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.45rem; font-weight: 700; color: var(--encre); text-decoration: none; display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.logo em { color: var(--terre); }
.pied .logo em { color: var(--or); }
.logo-marque { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--terre) 0 25%, var(--ocre) 0 50%, #1e3a8a 0 75%, #166534 0); color: #fff; font-size: 1.1rem; }
.recherche { align-items: center; background: var(--sable); border: 1px solid var(--bordure); border-radius: 999px; padding: 0 1rem; max-width: 520px; }
.recherche i { color: var(--gris); }
.recherche input { border: 0; background: transparent; padding: .6rem .7rem; width: 100%; outline: none; }
.lien-nav { color: var(--encre); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lien-nav.actif, .lien-nav:hover { color: var(--terre); }
.btn.btn-panier { background: var(--encre); color: #fff; border-radius: 999px; padding: .5rem 1.1rem; }
.btn.btn-panier:hover { background: var(--terre); color: #fff; }
.pastille { background: var(--or); color: var(--encre); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; margin-left: .2rem; }
.menu-categories { border-top: 1px solid var(--bordure); overflow-x: auto; white-space: nowrap; }
.menu-categories a { display: inline-block; padding: .7rem 0; color: var(--gris); text-decoration: none; font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; }
.menu-categories a:hover, .menu-categories a.actif { color: var(--terre); border-color: var(--terre); }

/* ---------- Boutons ---------- */
.btn.btn-terre { background: var(--terre); color: #fff; border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn.btn-terre:hover { background: var(--terre-fonce); color: #fff; }
.btn.btn-contour { border: 1.5px solid var(--encre); color: var(--encre); border-radius: 999px; font-weight: 600; padding: .55rem 1.3rem; }
.btn.btn-contour:hover { background: var(--encre); color: #fff; }
.btn.btn-ajout { width: 40px; height: 40px; border-radius: 50%; background: var(--creme); color: var(--terre); padding: 0; }
.btn.btn-ajout:hover { background: var(--terre); color: #fff; }

/* ---------- Visuels produits (motifs de pagne) ---------- */
.visuel { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.95);
          background: linear-gradient(135deg, var(--t1), var(--t2)); font-size: 4rem; }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel i { position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); transition: transform .35s; }
.visuel::before { content: ''; position: absolute; inset: 0; opacity: .22; }
.motif-1::before { background: repeating-linear-gradient(90deg, #fff 0 6px, transparent 6px 22px), repeating-linear-gradient(0deg, transparent 0 30px, rgba(0,0,0,.5) 30px 36px); }
.motif-2::before { background: radial-gradient(circle, #fff 2px, transparent 2.5px) 0 0 / 18px 18px; }
.motif-3::before { background: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%) 0 0 / 28px 28px, linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%) 14px 14px / 28px 28px; opacity: .14; }
.motif-4::before { background: repeating-linear-gradient(135deg, #fff 0 3px, transparent 3px 16px); }
.motif-5::before { background: repeating-radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 2px 20px); }
.visuel-lg { font-size: 9rem; border-radius: 1.5rem; }
.visuel-sm { font-size: 1.6rem; border-radius: .9rem; width: 64px; flex-shrink: 0; }
.visuel-xs { font-size: 1.1rem; border-radius: .6rem; width: 42px; flex-shrink: 0; }

/* ---------- Cartes produits ---------- */
.carte-produit { background: #fff; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--bordure); height: 100%; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.carte-produit:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(92,36,16,.5); }
.carte-produit:hover .visuel i { transform: scale(1.12) rotate(-4deg); }
.lien-visuel { display: block; position: relative; }
.lien-titre { color: var(--encre); text-decoration: none; }
.lien-titre:hover { color: var(--terre); }
.badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .35rem; z-index: 2; }
.badge-promo, .badge-nouveau { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .2rem .6rem; }
.badge-promo { background: #dc2626; color: #fff; }
.badge-nouveau { background: #fff; color: var(--encre); }
.prix { font-weight: 700; color: var(--terre); font-size: 1.05rem; }
.etoiles { color: var(--or); font-size: .8rem; white-space: nowrap; }
.etoiles small { color: var(--gris); }

/* ---------- Accueil ---------- */
.hero { border-radius: 2rem; overflow: hidden; position: relative; color: #fff; min-height: 460px;
        background: linear-gradient(100deg, rgba(43,29,20,.95) 30%, rgba(43,29,20,.35)), repeating-linear-gradient(90deg, #1e3a8a 0 22px, #f2b134 22px 30px, #8b3a1a 30px 60px, #166534 60px 70px, #8b3a1a 70px 92px); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; }
.hero .surtitre { letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: var(--or); font-weight: 600; }
.hero-carte { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: 1.25rem; padding: 1rem; }
.chiffre strong { display: block; font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--or); line-height: 1.1; }
.chiffre small { opacity: .75; font-size: .8rem; }
.titre-section { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.titre-section h2 { margin: 0; font-size: 1.9rem; }
.titre-section a { text-decoration: none; font-weight: 600; white-space: nowrap; }
.tuile-categorie { display: flex; flex-direction: column; justify-content: space-between; height: 150px; border-radius: 1.25rem; padding: 1.1rem; color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: transform .2s; }
.tuile-categorie:hover { transform: translateY(-3px); color: #fff; }
.tuile-categorie i { font-size: 2rem; }
.tuile-categorie::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.bandeau-promo { background: var(--creme); border-radius: 1.75rem; overflow: hidden; }
.carte-artisan { background: #fff; border: 1px solid var(--bordure); border-radius: 1.25rem; padding: 1.4rem; height: 100%; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.carte-avis { background: #fff; border-radius: 1.25rem; padding: 1.4rem; border: 1px solid var(--bordure); height: 100%; }

/* ---------- Boutique ---------- */
.filtres { background: #fff; border: 1px solid var(--bordure); border-radius: 1.25rem; padding: 1.25rem; position: sticky; top: 140px; }
.filtres a { display: flex; justify-content: space-between; color: var(--encre); text-decoration: none; padding: .35rem .5rem; border-radius: .5rem; font-size: .92rem; }
.filtres a:hover, .filtres a.actif { background: var(--creme); color: var(--terre); font-weight: 600; }
.filtres h3 { font-family: 'Inter', sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); margin: 1rem 0 .5rem; }
.pagination .page-link { color: var(--terre); border-radius: .6rem !important; margin: 0 .15rem; border-color: var(--bordure); }
.pagination .active .page-link { background: var(--terre); border-color: var(--terre); color: #fff; }

/* ---------- Fiche produit ---------- */
.fil { font-size: .85rem; }
.fil a { color: var(--gris); text-decoration: none; }
.stock-ok { color: #15803d; font-weight: 600; }
.stock-bas { color: #c2410c; font-weight: 600; }
.qte { display: inline-flex; align-items: center; border: 1px solid var(--bordure); border-radius: 999px; background: #fff; overflow: hidden; }
.qte button { border: 0; background: transparent; width: 40px; height: 44px; color: var(--encre); }
.qte button:hover { background: var(--creme); }
.qte input, .qte span { width: 44px; text-align: center; border: 0; font-weight: 600; background: transparent; }
.caracteristiques div { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--bordure); font-size: .92rem; }
.repartition-notes .barre { height: 8px; background: var(--creme); border-radius: 999px; overflow: hidden; flex-grow: 1; }
.repartition-notes .barre div { height: 100%; background: var(--or); }

/* ---------- Panier / commande ---------- */
.carte { background: #fff; border-radius: 1.25rem; border: 1px solid var(--bordure); }
.resume { position: sticky; top: 140px; }
.ligne-total { font-size: 1.35rem; font-weight: 700; }
.etapes { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--gris); }
.etapes .actif { color: var(--terre); font-weight: 700; }
.etapes .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--creme); margin-right: .3rem; font-size: .75rem; }
.etapes .actif .num { background: var(--terre); color: #fff; }
.etapes .fait .num { background: #15803d; color: #fff; }
.form-control, .form-select { border-radius: .8rem; border-color: var(--bordure); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--terre); box-shadow: 0 0 0 .2rem rgba(139,58,26,.15); }
.choix-livraison { border: 1.5px solid var(--bordure); border-radius: 1rem; padding: 1rem; cursor: pointer; display: flex; gap: .75rem; align-items: start; }
.choix-livraison:has(input:checked) { border-color: var(--terre); background: #fff8f2; }
.zone-paiement form, .zone-paiement button { width: 100%; }
.zone-paiement button { border-radius: 999px !important; padding: .9rem 1rem !important; font-weight: 700 !important; font-size: 1.05rem !important; }
.moyens { display: flex; gap: .4rem; flex-wrap: wrap; }
.moyens span { background: var(--creme); color: var(--encre); border-radius: .5rem; padding: .25rem .6rem; font-size: .75rem; font-weight: 600; }
.pied .moyens span { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Suivi / retours ---------- */
.retour { max-width: 640px; margin: 3rem auto; }
.retour .rond { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.25rem; font-size: 2.6rem; color: #fff; }
.chronologie { list-style: none; padding: 0; margin: 0; }
.chronologie li { position: relative; padding: 0 0 1.4rem 2.2rem; }
.chronologie li::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--bordure); }
.chronologie li:last-child::before { display: none; }
.chronologie .point { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bordure); }
.chronologie .fait .point { background: #15803d; }
.chronologie .en-cours .point { background: var(--ocre); box-shadow: 0 0 0 5px rgba(217,119,6,.2); }

/* ---------- Bas de page ---------- */
.engagements { background: #fff; border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.engagement { display: flex; gap: .75rem; align-items: center; justify-content: center; }
.engagement i { font-size: 1.8rem; color: var(--terre); }
.engagement strong, .engagement small { display: block; text-align: left; }
.engagement small { color: var(--gris); font-size: .8rem; }
.pied { background: var(--encre); color: #fff; }
.pied a { color: rgba(255,255,255,.75); text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied li { margin-bottom: .4rem; }
.titre-pied { font-weight: 700; margin-bottom: .8rem; }

/* ---------- Espace gestion ---------- */
.admin-nav { background: var(--encre); }
.kpi { background: #fff; border: 1px solid var(--bordure); border-radius: 1.25rem; padding: 1.25rem; height: 100%; }
.kpi .valeur { font-family: "Fraunces", serif; font-size: 1.45rem; font-weight: 700; margin: .35rem 0 .15rem; white-space: nowrap; }
.kpi .d-flex > i { width: 44px; height: 44px; border-radius: .9rem; display: grid; place-items: center; font-size: 1.3rem; }
.graphe { display: flex; align-items: end; gap: 4px; height: 180px; }
.graphe div { flex: 1; background: linear-gradient(180deg, var(--ocre), var(--terre)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.graphe div:hover::after { content: attr(data-info); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--encre); color: #fff; font-size: .7rem; padding: .2rem .45rem; border-radius: .35rem; white-space: nowrap; margin-bottom: 4px; }
.table-admin { font-size: .9rem; }
.table-admin th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); font-weight: 600; }
