/* Boutique — Les Paniers de Cléo.
   Une épicerie fine imprimée : papier crème, encre brune, filets osier, un seul accent châtaigne.
   Beaucoup d'air, des titres en sérif de livre, des produits présentés comme des étiquettes. */

/* ---------- En-tête ---------- */
/* Téléphone : le logo rond seul (le nom y est écrit, et en grand sur l'accueil), pour garder compte et panier sur la même ligne. */
@media (max-width: 420px) { .marque .logo { height: 38px; } }
.nav-boutique { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-boutique a { position: relative; color: var(--encre); text-decoration: none; font-weight: 500; font-size: .9375rem; min-height: var(--cible); display: inline-flex; align-items: center; }
.nav-boutique a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--sortie); }
.nav-boutique a:hover { color: var(--accent); }
.nav-boutique a:hover::after, .nav-boutique a[aria-current=page]::after { transform: scaleX(1); }
.bouton-panier { gap: .5rem; padding-inline: 1rem .75rem; }
.compteur-panier { display: inline-grid; place-items: center; min-width: 1.375rem; height: 1.375rem; padding: 0 .3125rem; border-radius: 3px; background: var(--sur-accent); color: var(--accent); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .nav-large { display: none !important; } }
/* Très petits écrans : rien ne se tasse, on resserre les espaces et le texte. */
.barre .marque, .nav-boutique a, .bouton-panier { flex: none; }
@media (max-width: 520px) { .barre .barre-in { flex-wrap: nowrap; gap: .75rem; padding-inline: .75rem; } .nav-boutique { gap: .75rem; } .nav-boutique a { font-size: .875rem; white-space: nowrap; } .bouton-panier { padding-inline: .75rem .5rem; } }
/* Plus étroit encore : la navigation passe sur une seconde ligne, centrée. */
@media (max-width: 340px) { .barre .barre-in { flex-wrap: wrap; justify-content: space-between; row-gap: 0; }
  .nav-boutique { order: 3; flex-basis: 100%; justify-content: center; gap: 1.25rem; margin-left: 0; border-top: 1px solid var(--trait); } }

/* ---------- Mise en page ---------- */
main { max-width: var(--largeur); margin: 0 auto; padding: 0 1rem 4rem; }
.bloc { padding: 3.5rem 0 0; display: grid; gap: 1.5rem; }
h1 { font-size: var(--t-h1); letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: var(--t-h2); letter-spacing: -0.012em; line-height: 1.15; }
.chapo { font-size: var(--t-chapo); line-height: 1.5; color: var(--encre-2); margin: 0; max-width: var(--mesure); }

/* Titre de section : titre à gauche, lien à droite, posés sur un filet. */
.section-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding-bottom: .875rem; border-bottom: 1px solid var(--filet); }

/* Apparition douce du contenu (une seule fois, à l'arrivée sur la page). */
@media (prefers-reduced-motion: no-preference) {
  main > *, .grille-produits > * { animation: apparition 520ms var(--sortie) both; }
  main > :nth-child(2) { animation-delay: 60ms; } main > :nth-child(3) { animation-delay: 120ms; } main > :nth-child(n+4) { animation-delay: 160ms; }
  .grille-produits > :nth-child(2) { animation-delay: 40ms; } .grille-produits > :nth-child(3) { animation-delay: 80ms; } .grille-produits > :nth-child(n+4) { animation-delay: 110ms; }
  @keyframes apparition { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  main > *, .grille-produits > * { animation: fondu 200ms ease both; }
  @keyframes fondu { from { opacity: 0; } }
}

/* ---------- Accueil ---------- */
/* Façon Apple : une promesse en très grand, centrée, puis de grandes images et des bandes pleine largeur
   qui alternent clair, papier et sombre. Pas de dégradé, pas d'effet : l'échelle fait le travail. */
.btn { border-radius: 999px; }
.actions-heros .btn { padding-inline: 1.375rem; }
.lien-fleche { display: inline-flex; align-items: center; min-height: var(--cible); font-size: 1.0625rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: .2em; }
.lien-fleche span { transition: transform 200ms var(--sortie); display: inline-block; white-space: pre; }
.lien-fleche:hover span { transform: translateX(3px); }

.heros { display: grid; justify-items: center; text-align: center; gap: 1.25rem; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
/* Le logo complet en grand : son fond est exactement le papier de la page, il s'y fond sans cadre. */
.logo-grand { width: clamp(13rem, 30vw, 20rem); height: auto; aspect-ratio: 1; display: block; margin-bottom: -.5rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .logo-grand { background: var(--papier); border-radius: 24px; padding: 1.25rem; box-sizing: border-box; margin-bottom: 0; } }
.heros h1 { font-size: clamp(2.75rem, 8vw, 6rem); line-height: .98; letter-spacing: -0.035em; font-weight: 400; margin: .25rem 0 0; text-wrap: balance; }
.h1-suite { color: var(--accent); font-style: italic; }
.heros .chapo { font-size: clamp(1.125rem, 2.2vw, 1.375rem); max-width: 34rem; margin-inline: auto; text-wrap: pretty; }
.actions-heros { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.75rem; margin-top: .5rem; }

/* La grande image sous le titre : le coffret, en large. */
.heros-image { display: block; text-decoration: none; }
.heros-image .visuel { aspect-ratio: 16 / 8; border-radius: 22px; }
.heros-image .etiquette-vitrine { max-width: 22rem; font-size: clamp(.75rem, 4cqi, 1.25rem); }
@media (max-width: 760px) { .heros-image .visuel { aspect-ratio: 4 / 3; border-radius: 16px; } }
/* L'étal : les étiquettes posées sur le papier, légèrement de biais, à hauteurs différentes. */
.etal { display: flex; justify-content: center; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); padding: clamp(2.5rem, 6vw, 5rem) 1rem; background: var(--fond-2); border-radius: 22px; overflow: hidden; container-type: inline-size; }
.etal .etiquette-vitrine { flex: 0 1 12rem; min-width: 0; font-size: clamp(.625rem, 1.6cqi, 1rem); box-shadow: 0 1px 1px rgb(38 42 33 / .06), 0 10px 24px rgb(38 42 33 / .10); border-top: 6px solid var(--teinte); }
.etal .etiquette-vitrine:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.etal .etiquette-vitrine:nth-child(2) { transform: rotate(2deg) translateY(-14px); }
.etal .etiquette-vitrine:nth-child(3) { transform: rotate(-1deg) translateY(6px); }
.etal .etiquette-vitrine:nth-child(4) { transform: rotate(2.5deg) translateY(-8px); }
.etal .etiquette-vitrine:nth-child(5) { transform: rotate(-2deg) translateY(12px); }
@media (max-width: 760px) { .etal { border-radius: 16px; flex-wrap: wrap; } .etal .etiquette-vitrine { flex-basis: 40%; } .etal .etiquette-vitrine:nth-child(n+4) { display: none; } }

/* Titres de section façon Apple : une phrase en deux temps, la seconde en encre douce. */
.titre-section { font-size: clamp(1.875rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; margin: 0; text-wrap: balance; }
.titre-section span { color: var(--encre-2); }

/* Bande pleine largeur, sans débordement horizontal (l'ombre et le découpage élargissent le fond). */
.bande { position: relative; margin-top: clamp(3.5rem, 8vw, 6rem); padding-block: clamp(3rem, 8vw, 6rem); background: var(--fond-2); box-shadow: 0 0 0 100vmax var(--fond-2); clip-path: inset(0 -100vmax); }
.bande-sombre { background: var(--bande); box-shadow: 0 0 0 100vmax var(--bande); color: var(--papier); }
.bande-sombre .titre-section, .bande-sombre h3 { color: var(--papier); }

/* Rayons : de grandes tuiles teintées, défilables au doigt sur téléphone. */
.rayons ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.rayons ul::-webkit-scrollbar { display: none; }
.rayons li { scroll-snap-align: start; }
.rayon { display: grid; align-content: end; gap: .25rem; aspect-ratio: 1; padding: 1.25rem; border-radius: 18px; background: var(--teinte); color: var(--encre-papier); text-decoration: none; transition: transform 220ms var(--sortie); -webkit-tap-highlight-color: transparent; }
.rayon:hover { transform: translateY(-3px); }
.rayon:active { transform: scale(.97); transition-duration: 100ms; }
.rayon-nom { font-family: var(--police-titre); font-size: 1.625rem; line-height: 1.05; letter-spacing: -0.015em; }
.rayon-nombre { font-size: .875rem; color: var(--encre-papier-2); }
@media (max-width: 520px) { .rayons ul { grid-auto-columns: 42vw; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; } .rayon-nom { font-size: 1.375rem; } }

/* Le coffret à offrir : centré sur la bande papier, prix en grand. */
.vedette { display: grid; justify-items: center; text-align: center; gap: 1rem; }
.vedette h2 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 400; margin: 0; }
.vedette .chapo { margin-inline: auto; }
.vedette-prix { margin: 0; font-family: var(--police-titre); font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-variant-numeric: lining-nums; }

/* Notre façon de faire : trois engagements en grand sur la bande sombre. */
.atouts { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.atouts-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem 2rem; }
.atouts-grille > div { display: grid; gap: .5rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--papier) 25%, transparent); }
.atout-chiffre { margin: 0; font-family: var(--police-titre); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--osier-clair); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .atout-chiffre { color: var(--accent-fort); } }
@media (prefers-reduced-motion: reduce) { .rayon, .lien-fleche span, .produit-carte .visuel { transition: none; } .rayon:hover, .lien-fleche:hover span, .produit-carte:hover .visuel { transform: none; } }
.atouts h3 { font-family: var(--police-titre); font-size: 1.375rem; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
.atouts-grille p:not(.atout-chiffre) { margin: 0; color: color-mix(in srgb, var(--papier) 80%, transparent); }

/* Apparition au défilement : montée courte et fondu, une seule fois (jamais si l'on préfère moins d'animations). */
main > .reveler { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveler { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--sortie), transform 900ms var(--sortie); }
  .reveler.visible { opacity: 1; transform: none; }
  .bande.reveler { transform: none; }
  .bande.reveler > * { transform: translateY(24px); transition: transform 900ms var(--sortie); }
  .bande.reveler.visible > * { transform: none; }
}

/* ---------- Produits ---------- */
.visuel { position: relative; border-radius: var(--rayon-petit); overflow: hidden; background: var(--fond-2); aspect-ratio: 4 / 5; }
.visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sans photo : une étiquette imprimée, posée sur un papier teinté selon le rayon. */
.sans-photo { background: var(--teinte); display: grid; place-items: center; padding: 12%; container-type: inline-size; }
/* Dessins des rayons (même trait que le logo) : sur les produits sans photo et sur les tuiles de rayon. */
.sans-photo .illustration { width: min(70%, 14rem); height: auto; transition: transform 320ms var(--sortie); }
.produit-carte:hover .sans-photo .illustration { transform: scale(1.04) rotate(-1.5deg); }
.rayon { grid-template-rows: 1fr auto auto; align-content: stretch; }
.rayon .illustration { width: 72%; height: auto; justify-self: center; align-self: center; transition: transform 320ms var(--sortie); }
.rayon:hover .illustration { transform: scale(1.05) rotate(-2deg); }
/* Mode sombre : les tuiles gardent leur papier clair, comme des cartes posées sur la table. */
@media (prefers-reduced-motion: reduce) { .sans-photo .illustration, .rayon .illustration { transition: none; transform: none !important; } }
.etiquette-vitrine { width: 100%; max-width: 15rem; display: grid; justify-items: center; gap: .55em; text-align: center; padding: 1.4em 1em 1.2em; background: var(--papier-blanc); color: var(--encre-papier); border: 1px solid color-mix(in srgb, var(--sapin) 45%, transparent); outline: 1px solid color-mix(in srgb, var(--sapin) 45%, transparent); outline-offset: -5px; border-radius: 2px; font-size: clamp(.625rem, 6cqi, .9375rem); }
.vitrine-famille, .vitrine-lieu { font-size: .72em; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sapin); }
.vitrine-nom { font-family: var(--police-titre); font-size: 1.45em; line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; padding-block: .45em; border-block: 1px solid color-mix(in srgb, var(--sapin) 25%, transparent); width: 100%; }
.vitrine-lieu { font-weight: 500; letter-spacing: .14em; }

.grille-produits { display: grid; gap: 2.25rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
@media (max-width: 520px) { .grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .875rem; } }
.produit-carte { display: grid; gap: .75rem; align-content: start; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.produit-carte .visuel { border-radius: 18px; transition: transform 260ms var(--sortie), box-shadow 260ms var(--sortie); }
.produit-carte:hover .visuel { transform: translateY(-4px); box-shadow: var(--ombre); }
.produit-carte:active .visuel { transform: scale(.97); transition-duration: 100ms; }
.produit-carte:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.produit-carte:focus-visible { outline-offset: 6px; }
.produit-texte { display: grid; gap: .1875rem; }
.produit-famille { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); }
.produit-texte h3 { font-family: var(--police-titre); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.005em; line-height: 1.2; }
.prix { color: var(--encre); font-variant-numeric: tabular-nums; font-size: .9375rem; }
@media (max-width: 520px) { .produit-texte h3 { font-size: 1.0625rem; } }

/* Catalogue */
.catalogue { padding-top: 2.5rem; }
.catalogue-tete { display: grid; gap: .875rem; }
.catalogue-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; border-block: 1px solid var(--filet); }
/* Filtres : des onglets de texte, le rayon choisi souligné d'un trait d'encre. */
.filtres { display: flex; gap: .25rem 1.25rem; overflow-x: auto; scrollbar-width: none; margin-inline: -.25rem; padding-inline: .25rem; }
.filtres::-webkit-scrollbar { display: none; }
.filtre { position: relative; flex: none; font: inherit; font-weight: 500; font-size: .9375rem; border: 0; background: none; color: var(--encre-2); padding: .5rem 0; min-height: calc(var(--cible) + 4px); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.filtre::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--encre); transform: scaleX(0); transition: transform 240ms var(--sortie); }
.filtre:hover { color: var(--encre); }
.filtre[aria-pressed=true] { color: var(--encre); font-weight: 600; }
.filtre[aria-pressed=true]::after { transform: scaleX(1); }
.compte-produits { margin: 0; }
@media (max-width: 520px) { .compte-produits { display: none; } }

/* Fiche produit */
.fiche { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-top: 2.5rem; align-items: start; }
@media (max-width: 760px) { .fiche { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1rem; } }
.visuel-fiche { aspect-ratio: 1 / 1; }
.defileur { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .5rem; border-radius: var(--rayon-petit); }
.defileur img { flex: none; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: start; border-radius: var(--rayon-petit); }
.fiche-texte { display: grid; gap: 1.125rem; position: sticky; top: 5rem; }
@media (max-width: 760px) { .fiche-texte { position: static; } }
.fil { font-size: var(--t-petit); color: var(--encre-2); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.fil a { color: var(--encre-2); min-height: 32px; display: inline-flex; align-items: center; }
.fil a:hover { color: var(--accent); }
.prix-fiche { font-family: var(--police-titre); font-size: 1.625rem; margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.prix-fiche .discret { font-family: var(--police); font-size: 1rem; }
.description { font-size: 1.0625rem; line-height: 1.6; margin: 0; max-width: 36rem; }
.achat { display: flex; gap: .5rem; padding-top: .25rem; }
.achat input { width: 5rem; flex: none; text-align: center; font-variant-numeric: tabular-nums; }
.achat .btn { flex: 1; min-height: 3rem; font-size: 1rem; }
.garantie { margin: 0; }
/* Informations réglementaires : des rubriques en petites capitales, séparées par des filets. */
.infos-liste { display: grid; margin-top: .5rem; border-top: 1px solid var(--filet); }
.infos { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: .875rem 0; border-bottom: 1px solid var(--trait); }
.infos h2 { font-family: var(--police); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); padding-top: .1875rem; }
.infos p { margin: 0; } .infos p + p { margin-top: .25rem; }
@media (max-width: 520px) { .infos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tiroir du panier ---------- */
.contenu-panier { display: grid; gap: 1.125rem; }
.lignes-panier { list-style: none; margin: 0; padding: 0; display: grid; }
.lignes-panier li { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 5.5rem; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--trait); }
.lignes-panier li:first-child { padding-top: 0; }
.lignes-panier input { text-align: center; font-variant-numeric: tabular-nums; }
.lignes-panier .montant, .total-panier strong { text-align: right; font-variant-numeric: tabular-nums; }
.ligne-nom { font-family: var(--police-titre); font-size: 1.0625rem; font-weight: 500; }
.total-panier { display: flex; justify-content: space-between; align-items: baseline; padding-top: .25rem; font-size: 1.0625rem; }
.total-panier strong { font-family: var(--police-titre); font-size: 1.375rem; font-weight: 500; }
.panier-vide { display: grid; gap: 1rem; justify-items: start; padding-block: .5rem 1rem; }
.panier-vide p { margin: 0; }
.feuille .btn[href] { text-decoration: none; text-align: center; }
.contenu-panier > .btn { min-height: 3.25rem; font-size: 1.0625rem; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--filet); margin-top: 5rem; background: var(--fond-2); }
.pied-in { max-width: var(--largeur); margin: 0 auto; padding: 2.75rem 1rem calc(2.5rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 2.5rem; }
.pied-in p { margin: 0; }
.pied-marque { display: flex; align-items: flex-start; gap: 1rem; }
.pied-marque img { width: 64px; height: auto; flex: none; }
.pied-marque strong { font-family: var(--police-titre); font-size: 1.3125rem; font-weight: 500; display: block; margin-bottom: .25rem; }
.pied-marque .discret { font-size: .9375rem; max-width: 22rem; display: block; }
.pied-titre { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); margin-bottom: .375rem !important; }
.pied-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pied-nav a { color: var(--encre); font-size: .9375rem; text-decoration: none; min-height: 2.25rem; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.pied-nav a:hover { color: var(--accent); text-decoration: underline; }
.pied-bas { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--trait); }
@media (max-width: 760px) {
  .pied-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .pied-in { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .pied-nav a { min-height: var(--cible); }
}

@media (prefers-reduced-motion: reduce) { .produit-carte .visuel { transition: none; } .produit-carte:active .visuel { transform: none; } .nav-boutique a::after, .filtre::after { transition: none; } }

/* ---------- Pages de texte (Notre histoire, Livraison, Questions, pages légales) ---------- */
.page-texte { max-width: calc(var(--mesure) + 2rem); margin-inline: auto; padding: 2.5rem 1rem 0; font-size: 1.0625rem; line-height: 1.65; }
main.page-texte { padding-bottom: 4rem; }
.page-texte > * + * { margin-top: 1.125rem; }
.page-texte h1 { font-size: var(--t-h1); margin-bottom: .25rem; }
.page-texte h1 + .chapo, .page-texte .surtitre + h1 { margin-top: .75rem; }
.page-texte h2 { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--filet); font-size: clamp(1.375rem, 2.4vw, 1.625rem); }
.page-texte h3 { margin-top: 1.75rem; font-size: 1.125rem; }
.page-texte h2 + *, .page-texte h3 + * { margin-top: .625rem; }
.page-texte :where(p, ul, ol, figure, dl, blockquote) { margin-bottom: 0; }
.page-texte > :first-child { margin-top: 0; }
.page-texte .chapo { font-family: var(--police-titre); font-size: clamp(1.1875rem, 2.2vw, 1.375rem); line-height: 1.5; color: var(--encre); max-width: none; }
.page-texte ul { padding-left: 1.25rem; list-style: none; }
.page-texte ul > li { position: relative; }
.page-texte ul > li::before { content: ''; position: absolute; left: -1.125rem; top: .8em; width: .5rem; height: 1px; background: var(--accent); }
.page-texte li + li { margin-top: .375rem; }
.page-texte figure { margin: 2rem 0; }
.page-texte figure img { display: block; width: 100%; height: auto; border-radius: var(--rayon-petit); }
.page-texte figcaption { margin-top: .5rem; font-size: var(--t-petit); color: var(--encre-2); font-style: italic; }
.page-texte strong { font-weight: 650; }

/* Encart : une note en marge, sur papier plus soutenu. */
.encart { background: var(--fond-2); border: 1px solid var(--trait); border-left: 3px solid var(--accent); border-radius: var(--rayon-petit); padding: 1rem 1.25rem; display: grid; gap: .5rem; font-size: 1rem; }
.page-texte .encart { margin-block: 1.75rem; }
.encart > * { margin: 0 !important; }
.encart h2, .encart h3 { font-family: var(--police); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 0; padding: 0; }

/* Étapes : une liste numérotée en chiffres de sérif, reliés par un filet vertical. */
.etapes { list-style: none; padding: 0 !important; counter-reset: etape; display: grid; gap: 0; }
.etapes > li { counter-increment: etape; position: relative; padding: 0 0 1.5rem 3.25rem; margin: 0 !important; }
.etapes > li::before { content: counter(etape); position: absolute; left: 0; top: -.1rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; font-family: var(--police-titre); font-size: 1.125rem; color: var(--accent); background: var(--fond); font-variant-numeric: lining-nums; }
.etapes > li::after { content: ''; position: absolute; left: 1.125rem; top: 2.4rem; bottom: .25rem; width: 1px; background: var(--filet); }
.etapes > li:last-child { padding-bottom: 0; } .etapes > li:last-child::after { display: none; }
.etapes strong { display: block; font-weight: 600; }

/* Questions fréquentes : des volets qui s'ouvrent, séparés par des filets. */
.faq { border-top: 1px solid var(--filet); }
.page-texte .faq { margin-top: 1.25rem; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--cible); padding: .875rem 0; font-family: var(--police-titre); font-size: 1.1875rem; line-height: 1.3; color: var(--encre); text-wrap: balance; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
/* Le signe plus, dessiné en deux traits : la barre verticale se couche à l'ouverture. */
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 14px no-repeat; transition: transform 260ms var(--sortie); }
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details > :not(summary) { margin: 0 0 1rem; color: var(--encre-2); max-width: var(--mesure); }
.faq details > :not(summary) + :not(summary) { margin-top: -.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > :not(summary) { animation: apparition 320ms var(--sortie); }
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Commande et compte : une seule colonne calme, validation en direct. ---------- */
.page-commande { max-width: 40rem; margin-inline: auto; padding-top: 2.5rem; }
.page-commande > h1 { margin-bottom: .25rem; }
.etape { display: grid; gap: .875rem; padding: 1.375rem 1.375rem 1.5rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); }
.etape h2 { font-size: 1.3125rem; letter-spacing: -0.01em; padding-bottom: .625rem; border-bottom: 1px solid var(--filet); }
@media (max-width: 520px) { .etape { padding: 1.125rem 1rem 1.25rem; } }
.champ-adresse { position: relative; }
.suggestions { position: absolute; left: 0; right: 0; z-index: 5; list-style: none; margin: .25rem 0 0; padding: .25rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-petit); box-shadow: var(--ombre); }
.suggestions li { padding: .625rem .75rem; border-radius: 3px; cursor: pointer; min-height: var(--cible); display: flex; align-items: center; }
.suggestions li:hover, .suggestions li:focus { background: var(--fond-2); outline: none; }
.choix-livraison { display: grid; gap: .5rem; }
.choix-livraison:empty { display: none; }
.option-livraison { display: flex; gap: .75rem; align-items: flex-start; padding: .8125rem .875rem; border: 1px solid var(--trait); border-radius: var(--rayon-petit); cursor: pointer; min-height: var(--cible); transition: border-color 150ms, background-color 150ms; }
.option-livraison:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.option-livraison:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--carte)); box-shadow: inset 0 0 0 1px var(--accent); }
.option-livraison input { width: 1.125rem; height: 1.125rem; min-height: 0; margin-top: .125rem; flex: none; accent-color: var(--accent); }
.option-livraison > span { display: grid; gap: .125rem; }
.creneaux { border: 0; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.creneaux legend { font-weight: 600; margin-bottom: .375rem; }
.avis { background: var(--alerte-fond); color: var(--alerte); padding: .625rem .875rem; border-radius: var(--rayon-petit); margin: 0; }
.avis-ok { background: var(--ok-fond); color: var(--ok); padding: .625rem .875rem; border-radius: var(--rayon-petit); margin: 0; }
.encart-compte { display: grid; gap: .25rem; background: var(--fond-2); padding: .875rem 1rem; border-radius: var(--rayon-petit); border-left: 3px solid var(--accent); }
.recap > div { display: flex; justify-content: space-between; padding: .4375rem 0; border-bottom: 1px solid var(--trait); font-variant-numeric: tabular-nums; }
.recap > div.total { font-weight: 600; font-size: 1.125rem; border-bottom: 0; padding-top: .75rem; }
.recap > div.total span:last-child { font-family: var(--police-titre); font-size: 1.5rem; font-weight: 500; }
.recap p { margin: .25rem 0 0; }
.btn-payer { width: 100%; min-height: 3.25rem; font-size: 1.0625rem; }
.message-erreur { color: var(--erreur); margin: 0; }
.message-erreur:empty { display: none; }
.solde-points { font-family: var(--police-titre); font-size: clamp(2.5rem, 7vw, 3.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.etape p { margin: 0; }
.jauge { height: .375rem; border-radius: 999px; background: var(--fond-3); overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .jauge span { animation: jauge 900ms var(--sortie) 200ms both; transform-origin: left; }
  @keyframes jauge { from { transform: scaleX(0); } }
}
.liste-commandes { list-style: none; margin: 0; padding: 0; display: grid; }
.liste-commandes li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--trait); }
.liste-commandes li:last-child { border-bottom: 0; }
@media (max-width: 520px) { .liste-commandes li { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Facture : A4 lisible, imprimable telle quelle. ---------- */
.facture { max-width: 48rem; margin: 2.5rem auto 0; display: grid; gap: 1.25rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: clamp(1.25rem, 4vw, 3rem); }
.facture-entete { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; line-height: 1.5; padding-bottom: 1.25rem; border-bottom: 1px solid var(--filet); }
.facture-client { text-align: right; }
.facture-emetteur { display: flex; gap: 1rem; align-items: flex-start; }
.logo-facture { width: 220px; height: auto; flex: none; }
.facture h1 { font-family: var(--police-titre); font-size: clamp(1.625rem, 3.6vw, 2.125rem); }
.tableau-facture { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tableau-facture th { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); }
.tableau-facture th, .tableau-facture td { padding: .5625rem .25rem; border-bottom: 1px solid var(--trait); text-align: left; }
.tableau-facture thead th { border-bottom-color: var(--encre); }
.tableau-facture .n { text-align: right; white-space: nowrap; }
.tableau-facture .total td { font-weight: 600; font-size: 1.125rem; border-bottom: 0; border-top: 1px solid var(--encre); padding-top: .75rem; }
.mention { font-size: .875rem; color: var(--encre-2); margin: 0; }
.facture > p { margin: 0; }
.actions-facture { display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .facture-client { text-align: left; } }
@media print {
  header.barre, footer.pied, .actions-facture, .toast { display: none !important; }
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  main { padding: 0; }
  main > * { animation: none !important; }
  .facture { margin: 0; max-width: none; border: 0; padding: 0; background: none; }
  .tableau-facture th, .discret, .mention { color: #444; }
  .tableau-facture thead th, .tableau-facture .total td { border-color: #000; }
  @page { size: A4; margin: 18mm; }
}
