/* Easy Biznis — page publique d'une entreprise (boutique) */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
:root {
  --encre: #262b38; --ardoise: #4a4f61; --gris: #6c7183; --papier: #f1f2ee; --blanc: #fbfbf9; --filet: #d3d6cd;
  --vert: #1b6b57; --vert-fonce: #14513f; --mangue: #e2951f; --rouge: #a8362a;
  --titre: "Archivo", "Arial Narrow", Arial, sans-serif; --texte: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --page: min(1160px, 100% - 32px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; margin: 0; background: var(--papier); color: var(--encre); font: 1.0625rem/1.55 var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-stretch: 108%; margin: 0; line-height: 1.12; }
.wrap { width: var(--page); margin-inline: auto; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }

.nav { position: sticky; top: 0; z-index: 20; background: var(--papier); border-bottom: 1px solid var(--filet); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-stretch: 112%; font-weight: 700; font-size: 1.12rem; min-width: 0; }
.brand #brand-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: .98rem; }
.nav nav a { text-decoration: none; color: var(--ardoise); }
.nav nav a:hover { color: var(--vert); }
.btn-panier { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; background: var(--encre); color: #fff; border: 0; padding: 9px 14px; border-radius: 6px; font-weight: 600; }
.nav nav:not(.hidden) + .btn-panier { margin-left: 0; }
.btn-panier b { background: var(--mangue); color: var(--encre); min-width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; font-size: .85rem; padding: 0 6px; }

.etat { padding: 72px 0; text-align: center; color: var(--ardoise); }
.etat h2 { margin-bottom: 10px; color: var(--encre); }
.hero { padding: 52px 0 36px; border-bottom: 1px solid var(--filet); }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; max-width: 18ch; }
.hero .lead { margin: 16px 0 0; max-width: 62ch; color: var(--ardoise); font-size: 1.18rem; }
.statut { margin-top: 22px; display: inline-block; padding: 9px 14px; border-left: 4px solid var(--mangue); background: var(--blanc); font-weight: 600; }
.statut.ferme { border-color: var(--rouge); }

.bloc { padding: 44px 0; }
.bloc.alt { background: var(--blanc); border-block: 1px solid var(--filet); }
.bloc-tete { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.bloc-tete h2 { font-size: 1.7rem; }
.note { margin: 0; color: var(--gris); font-size: .95rem; }

.outils { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.recherche input { width: min(320px, 100%); padding: 10px 12px; border: 1px solid var(--filet); border-radius: 6px; background: var(--blanc); font: inherit; }
.puces { display: flex; gap: 8px; flex-wrap: wrap; }
.puce { border: 1px solid var(--filet); background: transparent; border-radius: 999px; padding: 5px 13px; font-size: .95rem; color: var(--ardoise); }
.puce[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.prod { background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.prod .photo { aspect-ratio: 4 / 3; background: #e6e8e1; display: grid; place-items: center; color: var(--gris); font-family: var(--titre); font-size: 2.4rem; font-weight: 800; overflow: hidden; }
.prod .photo img { width: 100%; height: 100%; object-fit: cover; }
.prod .corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod .cat { font-size: .82rem; color: var(--gris); }
.prod h3 { font-size: 1.05rem; font-weight: 700; font-stretch: 100%; }
.lignes-prix { margin-top: auto; display: grid; gap: 6px; }
.lp { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-top: 1px dashed var(--filet); padding-top: 7px; }
.lp .lib { flex: 1; font-size: .92rem; color: var(--ardoise); }
.lp .lib small { color: var(--gris); }
.prix { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.prix em { font-style: normal; font-weight: 500; font-size: .82rem; color: var(--gris); margin-left: 2px; }
.ajout { border: 1px solid var(--vert); background: var(--vert); color: #fff; border-radius: 6px; padding: 4px 11px; font-weight: 600; font-size: .92rem; }
.ajout:hover { background: var(--vert-fonce); }
.pas { display: inline-flex; align-items: center; border: 1px solid var(--vert); border-radius: 6px; overflow: hidden; }
.pas button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--vert); font-size: 1.15rem; line-height: 1; }
.pas button:hover { background: #e3eee9; }
.pas span { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.en-magasin { margin-top: auto; font-size: .9rem; color: var(--gris); border-top: 1px dashed var(--filet); padding-top: 7px; }
.vide { color: var(--gris); padding: 20px 0; }

.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mag { border: 1px solid var(--filet); background: var(--papier); border-radius: 8px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.mag h3 { font-size: 1.15rem; }
.mag .r { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: .98rem; }
.mag .r span:first-child { color: var(--gris); }
.mag a { color: var(--vert); font-weight: 600; }
.mag .etiq { justify-self: start; }
.sem { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 4px 0; }
.sem th { text-align: left; font-weight: 500; color: var(--gris); padding: 4px 0; width: 105px; }
.sem td { padding: 4px 0; font-variant-numeric: tabular-nums; }
.sem tr.auj th, .sem tr.auj td { color: var(--encre); font-weight: 700; }
.sem tr + tr th, .sem tr + tr td { border-top: 1px dashed var(--filet); }
.liste-feries { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.liste-feries li { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.liste-feries .d { font-weight: 700; font-variant-numeric: tabular-nums; }
.etiq { font-size: .85rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #f3dcd8; color: var(--rouge); white-space: nowrap; }
.etiq.ouvert { background: #dcebe5; color: var(--vert-fonce); }
main { flex: 1 0 auto; }
.pied { flex-shrink: 0; margin-top: auto; padding: 28px 0 40px; color: var(--gris); font-size: .95rem; border-top: 1px solid var(--filet); }

.voile { position: fixed; inset: 0; background: rgba(38, 43, 56, .45); z-index: 30; }
.panier { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--papier); z-index: 31; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0, 0, 0, .18); }
.panier-tete { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--filet); }
.panier-tete h2 { font-size: 1.3rem; }
.fermer { border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--ardoise); width: 36px; height: 36px; }
.panier-corps { padding: 16px 20px 28px; overflow-y: auto; flex: 1; }
.pl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--filet); align-items: center; }
.pl .n { font-weight: 600; }
.pl .m { grid-column: 1; font-size: .88rem; color: var(--gris); }
.pl .s { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 4px; }
.pl .rm { border: 0; background: none; color: var(--rouge); font-size: .85rem; padding: 0; text-decoration: underline; }
.total { display: flex; justify-content: space-between; padding: 14px 0 4px; font-weight: 700; font-size: 1.1rem; }
.avert { font-size: .9rem; color: var(--gris); margin: 4px 0 16px; }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: grid; gap: 4px; font-size: .92rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--filet); border-radius: 6px; background: var(--blanc); font-weight: 400; }
.erreur { background: #f3dcd8; color: var(--rouge); padding: 9px 12px; border-radius: 6px; font-size: .95rem; }
.btn { border: 0; border-radius: 6px; padding: 12px 18px; font-weight: 700; background: var(--vert); color: #fff; width: 100%; font-size: 1.02rem; }
.btn:hover { background: var(--vert-fonce); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.clair { background: transparent; color: var(--ardoise); border: 1px solid var(--filet); }

/* Ticket de précommande : bordure perforée, code à dicter au magasin */
.ticket { background: var(--blanc); border: 2px dashed var(--filet); padding: 22px 18px; text-align: center; margin-top: 8px; border-radius: 4px; }
.ticket .tit { color: var(--gris); font-size: .9rem; }
.ticket .code { font-family: "Plex Mono", "Courier New", monospace; font-size: 2.3rem; font-weight: 700; letter-spacing: .22em; padding-left: .22em; margin: 8px 0; }
.ticket .sous { color: var(--ardoise); font-size: .98rem; }
.ticket hr { border: 0; border-top: 1px dashed var(--filet); margin: 16px 0; }

@media (max-width: 720px) {
  .nav nav { display: none; }
  .btn-panier { margin-left: auto; }
  .liste-feries li { grid-template-columns: 1fr auto; }
  .liste-feries li .d { grid-column: 1 / -1; }
  .hero { padding: 34px 0 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .nav, .panier, .voile, .pied { display: none !important; } }
