/* Boutique : une devanture peinte, le catalogue rangé comme une boîte à compartiments, et un ticket de caisse au panier. */
@font-face { font-family: "Gloock"; src: url("/polices/gloock-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/polices/spectral-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/polices/spectral-400-italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/polices/spectral-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/polices/spectral-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --enseigne: #173a2e; /* boiserie de la devanture */
  --ivoire: #f4eedd;   /* lettrage sur la boiserie */
  --papier: #f0f3ef;   /* papier de soie : fond des pages */
  --case: #fff;        /* fond d'un compartiment */
  --carton: #d3d9d1;   /* cloisons et bord de la boîte */
  --encre: #17231d;
  --doux: #56635b;
  --accent: #b5261e;   /* houx : prix et boutons */
  --metal: #b9963f;    /* laiton : filets sur la boiserie */
  --vert: #1e6b33;     /* confirmation */
  --police-titre: "Gloock", "Bodoni 72", Didot, Georgia, serif;
  --police-texte: "Spectral", Georgia, "Times New Roman", serif;
  --large: 1240px;
  --marge: clamp(16px, 4vw, 40px);
  --ombre: 0 34px 60px -38px color-mix(in srgb, var(--enseigne) 75%, transparent);
  /* anciens noms, encore utilisés par l'administration */
  --fond: var(--papier); --carte: var(--case); --texte: var(--encre); --trait: var(--carton);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--police-texte); font-size: 1.0625rem; line-height: 1.6; font-variant-numeric: lining-nums; background: var(--papier); color: var(--encre); }
@media (min-width: 1000px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
h1, h2 { font-family: var(--police-titre); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main { max-width: var(--large); margin: 0 auto; padding: 2.4rem var(--marge) 5rem; }
.trait { flex: none; width: 1.5rem; height: 1.5rem; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--case); color: var(--encre); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Devanture : bandeau de livraison, enseigne qui suit le visiteur, navigation */
.test { margin: 0; padding: .5rem var(--marge); background: #fff3c4; color: #5c4700; text-align: center; font-size: .9rem; }
.bandeau { margin: 0; padding: .5rem var(--marge); background: var(--enseigne); color: var(--ivoire); text-align: center; font-size: .92rem; text-wrap: balance; border-bottom: 1px solid color-mix(in srgb, var(--metal) 60%, transparent); }
.entete { position: sticky; top: 0; z-index: 20; background: var(--enseigne); color: var(--ivoire); transition: box-shadow .25s; }
.entete :focus-visible, .enseigne :focus-visible, .pied :focus-visible { outline-color: var(--ivoire); }
.defile .entete { box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .55); }
.entete-dedans { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: var(--large); min-height: 3.75rem; margin: 0 auto; padding: .6rem var(--marge); }
.marque { font-family: var(--police-titre); font-size: 1.5rem; line-height: 1.1; color: var(--ivoire); text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) { .marque { min-width: 0; font-size: 1.3rem; line-height: 1.05; white-space: normal; text-wrap: balance; } }
.entete nav { display: flex; align-items: center; gap: 1.6rem; }
.entete nav a { color: var(--ivoire); text-decoration: none; white-space: nowrap; }
.lien-rayon:hover { text-decoration: underline; text-decoration-color: var(--metal); text-underline-offset: .3em; }
.lien-panier { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .85rem .32rem .65rem; border: 1px solid color-mix(in srgb, var(--ivoire) 45%, transparent); border-radius: 99px; transition: background .2s, color .2s; }
.entete nav a.lien-panier:hover { background: var(--ivoire); color: var(--enseigne); }
.lien-panier .trait { width: 1.25rem; height: 1.25rem; }
.compteur[hidden] { display: none; }
@keyframes sursaut { 40% { transform: scale(1.35); } }
.compteur.sursaut { animation: sursaut .45s ease-out; }
@media (prefers-reduced-motion: reduce) { .compteur.sursaut { animation: none; } }
.compteur { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 1em; background: var(--ivoire); color: var(--enseigne); font-size: .8rem; font-weight: 600; line-height: 1.5; text-align: center; }
.lien-panier:hover .compteur { background: var(--enseigne); color: var(--ivoire); }
@media (max-width: 900px) { .lien-rayon { display: none; } }

@media (max-width: 560px) { .bandeau-plus { display: none; } }

/* Accueil : l'enseigne en grand, puis la boîte posée à cheval sur la devanture */
.accueil .marque { opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.accueil.defile .marque { opacity: 1; visibility: visible; }
.enseigne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 3rem; align-items: end; padding: .2rem var(--marge) 6.6rem; background: var(--enseigne); color: var(--ivoire); }
@media (min-width: 760px) { .enseigne { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); padding: clamp(.4rem, 2.5vw, 1.8rem) max(var(--marge), calc(50vw - var(--large) / 2 + var(--marge))) clamp(6.5rem, 13vw, 10rem); } }
.enseigne-titre { container-type: inline-size; }
.enseigne h1 { margin: 0; max-inline-size: 9.5ch; font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .9; letter-spacing: -.015em; text-wrap: balance; }
/* Un nom long ne déborde pas de sa colonne : le corps se règle sur le plus long morceau insécable (compté par le serveur). */
@supports (width: 1cqi) { .enseigne h1 { font-size: min(clamp(3.2rem, 11vw, 8.5rem), calc(100cqi / (var(--lettres, 9) * .62))); } }
.enseigne-texte p { margin: 0 0 1.1rem; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: color-mix(in srgb, var(--ivoire) 88%, transparent); }
.rayons-enseigne { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .7rem; padding: 0; list-style: none; }
.rayons-enseigne a { display: inline-block; padding: .28rem .95rem; border: 1px solid color-mix(in srgb, var(--ivoire) 50%, transparent); border-radius: 99px; color: var(--ivoire); font-size: 1rem; text-decoration: none; transition: background .2s, color .2s; }
.rayons-enseigne a:hover { background: var(--ivoire); color: var(--enseigne); }
.accueil main { padding-top: 0; }
.accueil main > .plateau:first-child { position: relative; margin-top: clamp(-8rem, -10vw, -5rem); }

/* La boîte à compartiments. Sur téléphone : deux colonnes, les grands compartiments prennent toute la largeur. */
.plateau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 1px; margin-inline: calc(var(--marge) * -.5); padding: 6px; background: var(--carton); box-shadow: var(--ombre); }
.case { position: relative; display: flex; flex-direction: column; background: var(--case); color: var(--encre); text-decoration: none; }
.case .vue { position: relative; display: block; overflow: hidden; background: color-mix(in srgb, var(--papier) 55%, var(--carton)); }
.case .vue img, .sans-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.case:hover .vue img { transform: scale(1.035); }
.modeles { position: absolute; left: .55rem; bottom: .55rem; padding: .05rem .55rem; background: color-mix(in srgb, var(--case) 92%, transparent); color: var(--encre); font-size: .8rem; line-height: 1.6; }
.case .legende { display: flex; flex-direction: column; gap: .15rem; flex: 1; padding: .6rem .7rem .85rem; font-size: .95rem; }
.case .nom { margin: 0; font-family: var(--police-texte); font-size: 1em; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.case .legende p { margin: 0; }
.case .prix { white-space: nowrap; }
.case:hover .nom, .case:focus-visible .nom { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.case:focus-visible { outline-offset: -4px; }
.case-grande, .case-large { grid-column: 1 / -1; }
.case-grande .legende { padding: 1rem 1rem 1.2rem; font-size: 1rem; }
.case-grande .nom { font-family: var(--police-titre); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.005em; }
.case-grande .prix { font-size: 1.2rem; }
.case-grande .legende .resume { margin: .35rem 0 0; font-style: italic; max-width: 32rem; }
.case-info { justify-content: center; gap: .25rem; padding: 1.1rem 1rem; background: var(--enseigne); color: var(--ivoire); }
.case-info .trait { width: 1.9rem; height: 1.9rem; margin-bottom: .45rem; color: var(--metal); }
.case-info strong { font-family: var(--police-titre); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.15; }
.case-info span { font-size: .93rem; line-height: 1.45; color: color-mix(in srgb, var(--ivoire) 82%, transparent); }
.case-info:hover strong { text-decoration: underline; text-decoration-color: var(--metal); text-underline-offset: .2em; }
.case-info:focus-visible { outline-color: var(--ivoire); }
.prix { font-weight: 600; color: var(--accent); }
.resume { color: var(--doux); }
@media (min-width: 760px) {
  .plateau { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 0; padding: 10px; }
  .case .legende { padding: .8rem 1rem 1.05rem; font-size: 1rem; }
  .case-grande { grid-column: span 2; grid-row: span 2; }
  .case-grande.a-droite { grid-column: 3 / span 2; }
  .case-grande .vue { flex: 1; min-height: 0; }
  .case-grande .vue img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .case-grande .legende { flex: 0 0 auto; padding: 1.1rem 1.25rem 1.3rem; }
  .case-large { grid-column: span 2; }
  .case-info { padding: 1.4rem 1.4rem; }
}

/* Les engagements de la boutique */
.engagements { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-block: 1px solid var(--carton); }
.engagements ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.engagements li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.5rem 1.3rem; }
.engagements li:first-child { padding-left: 0; }
.engagements li + li { border-left: 1px solid var(--carton); }
.engagements .trait { width: 1.9rem; height: 1.9rem; margin-top: .1rem; color: var(--accent); }
.engagements strong { display: block; font-weight: 600; line-height: 1.3; }
.engagements span { display: block; margin-top: .25rem; color: var(--doux); font-size: .95rem; line-height: 1.45; }
@media (max-width: 980px) {
  .engagements ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engagements li { padding: 1.2rem 1rem; }
  .engagements li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .engagements li:nth-child(n + 3) { border-top: 1px solid var(--carton); }
}
@media (max-width: 560px) {
  .engagements ul { grid-template-columns: minmax(0, 1fr); }
  .engagements li, .engagements li:nth-child(odd) { padding: .95rem 0; border-left: 0; }
  .engagements li + li { border-top: 1px solid var(--carton); }
}

/* Présentation de la boutique, conseils et rayons */
.presentation, .conseils, .rayons, .aussi, .avis { margin-top: clamp(3rem, 7vw, 5.5rem); }
.presentation { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
.presentation h2, .conseils h2, .rayons h2, .aussi h2 { margin: 0 0 1.1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.presentation p { margin: 0 0 1rem; max-width: 36rem; }
.questions h3 { margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--carton); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.questions h3:first-of-type { padding-top: 0; border-top: 0; }
.questions p { margin: .3rem 0 1.1rem; color: var(--doux); }
@media (max-width: 760px) { .presentation { grid-template-columns: minmax(0, 1fr); } }
.conseils ul, .rayons ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.conseils a, .rayons a { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; height: 100%; padding: .65rem 1.1rem .65rem .65rem; border: 1px solid var(--carton); background: var(--case); color: inherit; text-decoration: none; }
.conseils a:not(:has(img)), .rayons a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 1.2rem; }
.conseils a > img, .rayons a > img { width: 6.5rem; height: 6.5rem; object-fit: cover; }
.conseils strong, .rayons strong { display: block; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.conseils a:hover strong, .rayons a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); }
.conseils span span, .rayons span span { display: block; margin-top: .3rem; color: var(--doux); font-size: .95rem; line-height: 1.45; }

/* En-tête d'une page (rayon) et fil d'Ariane */
.fil { margin: 0 0 1.3rem; font-size: .92rem; color: var(--doux); }
.fil a { color: inherit; }
.tete-page { max-width: 48rem; margin-bottom: 2.2rem; }
.tete-page h1 { margin: 0 0 .8rem; font-size: clamp(2.3rem, 5.5vw, 3.8rem); text-wrap: balance; }
.chapeau { margin: 0; font-size: 1.15rem; color: var(--doux); }

/* Page produit */
.produit { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.galerie { position: sticky; top: 5rem; }
.cadre { position: relative; }
.vues { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--case); border: 10px solid var(--carton); }
.vues::-webkit-scrollbar { display: none; }
.vues img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; scroll-snap-align: start; }
.galerie > .sans-image { border: 10px solid var(--carton); }
.compte { display: none; }
.miniatures { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.miniatures button { flex: 0 0 76px; padding: 0; border: 1px solid var(--carton); background: var(--case); cursor: pointer; }
.miniatures button:hover { border-color: var(--doux); }
.miniatures button[aria-current="true"] { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.miniatures img { width: 74px; height: 74px; object-fit: cover; }
.fiche h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 3.6vw, 2.9rem); text-wrap: balance; }
.prix-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; margin: 0 0 .8rem; }
.fiche .prix { font-size: 1.9rem; line-height: 1.15; }
.port { color: var(--doux); font-size: .98rem; }
.fiche .resume { margin: 0 0 1.5rem; font-style: italic; font-size: 1.15rem; }
.options { margin: 0 0 1.3rem; padding: 0; border: 0; }
.options legend { margin-bottom: .55rem; padding: 0; font-weight: 600; }
.options legend span { font-weight: 400; }
.options .choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.options label { position: relative; display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .28rem .9rem .28rem .28rem; border: 1px solid var(--carton); background: var(--case); cursor: pointer; }
.options label.sans-photo { padding: .5rem 1rem; }
.options label:hover { border-color: var(--doux); }
.options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.options label.choisi { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.options label:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.options label.choisi:has(input:not(:checked)) { border-color: var(--carton); box-shadow: none; }
.options label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.options label img { width: 2.6rem; height: 2.6rem; object-fit: cover; }
.options em { font-style: normal; font-size: .92rem; color: var(--doux); white-space: nowrap; }
/* Sur téléphone, les modèles se rangent sur deux colonnes : le bouton d'achat reste proche même avec sept modèles. */
@media (max-width: 560px) {
  .options .choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 .6rem; padding-right: .5rem; font-size: .98rem; line-height: 1.25; }
  .options label.sans-photo { grid-template-columns: minmax(0, 1fr); }
  .options label:has(em) img { grid-row: span 2; }
  .options em { grid-column: 2; }
  .options label.sans-photo em { grid-column: 1; }
}
.achat { display: flex; gap: .6rem; align-items: stretch; }
.pas { display: inline-flex; align-items: stretch; border: 1px solid color-mix(in srgb, var(--encre) 40%, transparent); background: #fff; }
.pas button { width: 2.8rem; padding: 0; border: 0; background: none; color: var(--encre); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pas button:hover { background: color-mix(in srgb, var(--carton) 55%, #fff); }
input, textarea, button, select { font: inherit; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), textarea { padding: .55rem .65rem; border: 1px solid #aeb7ac; border-radius: 2px; background: #fff; color: var(--encre); }
.pas input:not([type=radio]):not([type=checkbox]):not([type=file]) { width: 2.6rem; padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 600; text-align: center; }
input[type=number] { width: 5rem; }
.bouton { display: inline-block; padding: .85rem 1.7rem; border: 0; border-radius: 2px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1.05rem; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s; }
.bouton:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }
.bouton[disabled] { opacity: .6; cursor: wait; }
.bouton.grand { flex: 1; padding: 1rem 1.4rem; font-size: 1.12rem; }
.bouton.contour { background: none; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bouton.contour:hover { background: var(--accent); color: #fff; }
.confirmation { color: var(--vert); }
.ajoute { margin-top: .9rem; padding: .9rem 1.1rem; border-left: 3px solid var(--vert); background: color-mix(in srgb, var(--vert) 8%, var(--case)); }
.ajoute[hidden] { display: none; }
.ajoute p { margin: 0; }
.ajoute .suite { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; margin-top: .7rem; }
.ajoute .bouton { padding: .6rem 1.2rem; font-size: 1rem; }
.arrivee { display: flex; gap: .8rem; align-items: flex-start; margin: 1.5rem 0 0; padding: .9rem 1.1rem; border: 1px solid var(--carton); background: var(--case); }
.arrivee .trait { margin-top: .15rem; color: var(--accent); }
.noel { display: block; color: var(--doux); }
.noel-avant { color: var(--vert); }
.garanties { margin: .5rem 0 0; padding: 0; list-style: none; font-size: .98rem; }
.garanties li { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--carton); }
.garanties .trait { width: 1.35rem; height: 1.35rem; margin-top: .2rem; color: var(--doux); }
.description { max-width: 36rem; margin-top: 2.2rem; }
.description h2 { margin: 2rem 0 .7rem; font-size: 1.5rem; }
.description h2:first-child { margin-top: 0; }
.description p { margin: 0 0 1rem; }
.details { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--carton); }
.details li { padding: .5rem 0; border-bottom: 1px solid var(--carton); }
.details strong { font-weight: 600; }
.plateau-rang { box-shadow: none; }
.barre-achat { display: none; }
@media (max-width: 760px) {
  .produit { grid-template-columns: minmax(0, 1fr); }
  .galerie { position: relative; top: auto; margin-inline: calc(var(--marge) * -.5); }
  .vues { border-width: 6px; }
  .compte { display: block; position: absolute; right: 1rem; bottom: 1rem; margin: 0; padding: .05rem .6rem; background: color-mix(in srgb, var(--encre) 78%, transparent); color: #fff; font-size: .82rem; border-radius: 99px; }
  .miniatures button { flex-basis: 58px; }
  .miniatures img { width: 56px; height: 56px; }
  .fil .ici { display: none; }
  .barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: .8rem; padding: .6rem var(--marge) calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--carton); background: var(--case); box-shadow: 0 -14px 30px -20px rgba(0, 0, 0, .4); transform: translateY(115%); transition: transform .25s; }
  .barre-achat.visible { transform: none; }
  .barre-nom { flex: 1; min-width: 0; overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
  .barre-achat strong { color: var(--accent); white-space: nowrap; }
  .barre-achat .bouton { padding: .7rem 1rem; font-size: 1rem; white-space: nowrap; }
  .barre-achat a.bouton, .barre-achat.a-choisir button { display: none; }
  .barre-achat.a-choisir a.bouton { display: inline-block; }
  .barre-achat:not(.visible) { visibility: hidden; }
  .barre-achat { transition: transform .25s, visibility .25s; }
  body:has(.barre-achat) .pied { padding-bottom: 6.5rem; }
}

/* Pages de texte et formulaires */
.etroit { max-width: 44rem; margin: 0 auto; }
.texte h2 { margin-top: 2.2rem; font-size: 1.45rem; }
blockquote { margin: 1rem 0; padding: .6rem 1.1rem; border-left: 3px solid var(--accent); background: var(--case); }
mark { background: #ffe08a; padding: 0 .2em; }
.formulaire { display: grid; gap: 1.1rem; }
.formulaire label { display: grid; gap: .3rem; font-weight: 600; }
.formulaire input, .formulaire textarea { width: 100%; font-weight: 400; }
.piege { position: absolute; left: -9999px; }
/* Suivi de commande : quatre étapes en ligne, celle en cours mise en avant */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 1.5rem 0 1rem; padding: 0; list-style: none; font-size: .95rem; }
.etapes li { padding-top: .6rem; border-top: 4px solid var(--carton); color: var(--doux); }
.etapes li.faite { border-color: var(--encre); color: var(--encre); }
.etapes li.en-cours { border-color: var(--accent); color: var(--encre); font-weight: 600; }
.colis { padding: 1rem 1.1rem; background: var(--papier); border: 1px solid var(--carton); line-height: 2.2; }
.articles-commande { padding-left: 1.2rem; }
.erreur { padding: .7rem 1rem; border-radius: 2px; background: #fde8e6; color: #8c1d18; }

/* Panier : les articles à gauche, le ticket de caisse à droite */
.page-panier h1 { margin-bottom: 1.6rem; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.panier { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.panier.vide { display: block; max-width: 36rem; }
.lignes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--carton); }
.lignes li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--carton); }
.lignes img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--carton); background: var(--case); }
.lignes .nom { font-weight: 600; line-height: 1.3; color: var(--encre); text-decoration: none; }
.lignes .nom:hover { text-decoration: underline; }
.lignes small { display: block; color: var(--doux); }
.lignes strong { white-space: nowrap; }
.qte { display: inline-flex; align-items: center; gap: .5rem; margin-top: .45rem; }
.qte button { width: 2.1rem; height: 2.1rem; border: 1px solid #aeb7ac; border-radius: 2px; background: #fff; cursor: pointer; }
.retirer { width: auto !important; margin-left: .6rem; padding: 0; border: 0 !important; background: none !important; color: var(--doux); font-size: .92rem; text-decoration: underline; cursor: pointer; }
.suggestions { margin-top: 2.2rem; }
.suggestions h2 { margin: 0 0 .7rem; font-family: var(--police-texte); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.suggestions ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.suggestions li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .45rem .7rem .45rem .45rem; border: 1px solid var(--carton); background: var(--case); }
.suggestions img { width: 56px; height: 56px; object-fit: cover; }
.suggestions a.nom { display: block; font-weight: 500; line-height: 1.3; color: var(--encre); text-decoration: none; }
.suggestions a.nom:hover { text-decoration: underline; }
.suggestions small { color: var(--accent); font-weight: 600; }
.suggestions .bouton { padding: .45rem .9rem; font-size: .95rem; }
.ticket { position: sticky; top: 5.5rem; padding: 1.5rem 1.5rem 1.6rem; background: var(--case); filter: drop-shadow(0 20px 22px color-mix(in srgb, var(--enseigne) 20%, transparent)); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background-size: 12px 9px; background-repeat: repeat-x; }
.ticket::before { top: -9px; background-image: linear-gradient(135deg, transparent 50%, var(--case) 50%), linear-gradient(225deg, transparent 50%, var(--case) 50%); }
.ticket::after { bottom: -9px; background-image: linear-gradient(45deg, transparent 50%, var(--case) 50%), linear-gradient(315deg, transparent 50%, var(--case) 50%); }
.ticket h2 { margin: 0 0 .2rem; font-size: 1.6rem; text-align: center; }
.ticket .quand { margin: 0 0 1.1rem; padding-bottom: 1rem; border-bottom: 1px dashed color-mix(in srgb, var(--encre) 40%, transparent); color: var(--doux); font-size: .92rem; text-align: center; }
.rang { display: flex; align-items: baseline; gap: .5rem; margin: .4rem 0; }
.rang i { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--encre) 30%, transparent); transform: translateY(-.28em); }
.rang.total { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed color-mix(in srgb, var(--encre) 40%, transparent); font-weight: 600; font-size: 1.3rem; }
.jauge { margin: 1.1rem 0 0; }
.jauge p { margin: 0 0 .45rem; font-size: .95rem; line-height: 1.4; }
.jauge-fond { height: 6px; background: var(--carton); }
.jauge-plein { height: 100%; background: var(--accent); transition: width .4s; }
.jauge.atteinte p { color: var(--vert); font-weight: 600; }
.jauge.atteinte .jauge-plein { background: var(--vert); }
.ticket .bouton { display: block; width: 100%; margin-top: 1.2rem; padding: 1rem; font-size: 1.12rem; }
.ticket .notes { margin: 1rem 0 0; padding: 0; list-style: none; color: var(--doux); font-size: .9rem; line-height: 1.45; }
.ticket .notes li { margin-top: .45rem; }
.poursuivre { display: inline-block; margin-top: 1.4rem; }
@media (max-width: 860px) {
  .panier { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: relative; top: auto; margin-top: 1rem; }
  .lignes li { grid-template-columns: 76px minmax(0, 1fr) auto; gap: .8rem; }
  .lignes img { width: 76px; height: 76px; }
}

/* Pied de page : retour à la boiserie */
.pied { padding: 3rem var(--marge) 2.2rem; background: var(--enseigne); color: color-mix(in srgb, var(--ivoire) 78%, transparent); font-size: .98rem; }
.pied-colonnes { display: flex; flex-wrap: wrap; gap: 2rem 3rem; max-width: calc(var(--large) - 2 * var(--marge)); margin: 0 auto; }
.pied-maison { flex: 1.5 1 17rem; }
.pied-marque { margin: 0 0 .5rem; font-family: var(--police-titre); font-size: 1.8rem; line-height: 1.1; color: var(--ivoire); }
.pied p { margin: 0 0 .6rem; max-width: 27rem; }
.pied-vendeur { font-size: .92rem; }
.pied nav { display: flex; flex: 1 1 11rem; flex-direction: column; align-items: flex-start; gap: .4rem; }
.pied h2 { margin: 0 0 .35rem; font-family: var(--police-texte); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ivoire); }
.pied a { color: color-mix(in srgb, var(--ivoire) 90%, transparent); line-height: 1.35; text-decoration: none; }
.pied a:hover { color: var(--ivoire); text-decoration: underline; text-decoration-color: var(--metal); }
.pied .pied-bas { max-width: calc(var(--large) - 2 * var(--marge)); margin: 2.2rem auto 0; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--metal) 60%, transparent); font-size: .92rem; }

/* Administration */
.admin { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1rem; }
.admin h1, .admin h2 { font-family: inherit; font-weight: 700; letter-spacing: 0; }
.admin h1 { font-size: 1.6rem; }
.admin table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--carte); }
.admin th, .admin td { border: 1px solid var(--trait); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.admin ul { margin: 0; padding-left: 1.1rem; }
.admin .droite { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin table.ensemble tfoot th { background: var(--carton, #eee); }
.defile { overflow-x: auto; }
.bouton.petit { padding: .4rem .7rem; font-size: .85rem; margin: .3rem 0; }
.admin .erreur { display: block; padding: .3rem .5rem; }

/* Administration du catalogue */
.fiche-admin { border: 1px solid #e5e0d8; border-radius: 10px; padding: 1rem; margin: 1rem 0; background: #fff; }
.fiche-admin.retire { opacity: .7; background: #f3f1ed; }
.fiche-admin header { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.fiche-admin h3 { margin: 0; font-size: 1.05rem; }
.fiche-admin .etat { font-size: .8rem; padding: .15rem .5rem; border-radius: 99px; background: #e8f3e8; color: #1f5c2a; }
.fiche-admin.retire .etat { background: #eee; color: #555; }
.fiche-admin header form { margin-left: auto; display: flex; gap: .5rem; }
.fiche-admin td { vertical-align: middle; }
.fiche-admin form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .15rem 0; }
.photo-admin img { border-radius: 6px; object-fit: cover; display: block; }
.prix-admin input { width: 5.5rem; padding: .3rem .4rem; text-align: right; }
button.petit { font: inherit; font-size: .85rem; padding: .3rem .7rem; border-radius: 6px; border: 1px solid #c9c2b6; background: #fff; cursor: pointer; }
button.petit:hover { background: #f3f1ed; }
button.petit:disabled { opacity: .5; cursor: not-allowed; }
button.petit.danger { border-color: #c0392b; color: #c0392b; }
button.petit.discret { border-color: transparent; text-decoration: underline; padding-left: 0; }
.supprimes li { display: flex; align-items: center; gap: .75rem; margin: .4rem 0; }
.admin p.confirmation { background: #e8f3e8; color: #1f5c2a; padding: .6rem .9rem; border-radius: 8px; }
.ajout-admin, .textes-admin { margin: 1rem 0 0; }
.ajout-admin { border: 1px dashed #c9c2b6; border-radius: 10px; padding: .8rem 1rem; background: #fff; }
.ajout-admin summary, .textes-admin summary { cursor: pointer; font-weight: 600; }
.textes-admin summary { font-weight: 400; font-size: .9rem; text-decoration: underline; }
.admin form.colonne { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; max-width: 40rem; margin-top: .8rem; }
.admin form.colonne label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.admin form.colonne label.case { flex-direction: row; align-items: center; gap: .5rem; }
.admin form.colonne input:not([type=checkbox]):not([type=file]), .admin form.colonne textarea { font: inherit; padding: .4rem .5rem; border: 1px solid #c9c2b6; border-radius: 6px; width: 100%; box-sizing: border-box; }
.admin form.colonne button { align-self: flex-start; }
.admin .alerte { padding: .9rem 1.1rem; border: 2px solid #b5261e; background: #fdf1ef; color: #5c120d; }

/* Pages de conseil */
.guide { max-width: 42rem; margin: 0 auto; }
.guide + .conseils { max-width: 42rem; margin-inline: auto; }
.guide h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; text-wrap: balance; }
.guide .chapeau { margin: 0 0 2rem; }
.guide h2 { margin: 2.2rem 0 .7rem; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.guide p, .guide li { line-height: 1.65; }
.guide ul { padding-left: 1.2rem; }
.guide .renvois { display: grid; gap: .6rem; padding: 0; list-style: none; }
.guide .renvois a { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .5rem .9rem .5rem .5rem; border: 1px solid var(--carton); background: var(--case); color: inherit; text-decoration: none; }
.guide .renvois a:hover span { text-decoration: underline; text-decoration-color: var(--accent); }
.guide .renvois img { width: 64px; height: 64px; object-fit: cover; }
.guide .renvois em { font-style: normal; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* Avis recueillis par le fournisseur (origine affichée) */
.avis { max-width: 46rem; margin-inline: auto; }
.avis .note { color: var(--accent); font-size: 1.1rem; }
.avis-article { margin: 1rem 0; padding: 1rem; border: 1px solid var(--carton); }
.avis-article legend { padding: 0 .4rem; font-weight: 600; }
.avis h2 { margin: 0 0 .6rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.avis .origine { margin: 0 0 1.4rem; padding: .8rem 1rem; font-size: .92rem; color: var(--doux); border-left: 3px solid color-mix(in srgb, currentColor 30%, transparent); }
.avis ul { list-style: none; margin: 0; padding: 0; }
.avis li { padding: 1rem 0; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.avis li p { margin: .3rem 0; }
.avis .note { letter-spacing: .1em; }
.avis small { color: var(--doux); }
