/* Boutique HappyCrea
   Une seule famille de polices (Poppins), deux graisses (400 et 600).
   Aplats de couleur, angles droits, aucun dégradé, aucune ombre. Mobile d'abord. */
:root {
  --nuit: #230b3b;
  --violet: #6a22d8;
  --papier: #faf8f3;
  --blanc: #ffffff;
  --encre: #1d1331;
  --gris: #5e5472;
  --trait: #ddd5ea;
  --doux: #f0e9fb;
  --vert: #12803f;
  --erreur: #b3261e;
  --police: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--police); font-weight: 400; font-size: 16px; line-height: 1.65;
  min-height: 100vh; display: flex; flex-direction: column;
}
.app { flex: 1; padding-bottom: 56px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3, b, strong, summary { font-weight: 600; }
h1, h2 { line-height: 1.2; text-wrap: balance; }
a { color: var(--violet); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.contenu { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.petit { font-size: 14px; color: var(--gris); }
.chargement { padding: 64px 16px; text-align: center; color: var(--gris); }

/* ---------- en-tête et pied ---------- */
.entete { background: var(--nuit); color: #fff; }
.entete-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 14px; }
.logo-lien img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.menu a { color: #fff; text-decoration: none; padding: 8px 2px; font-size: 15px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.actif { border-bottom-color: #fff; }
.menu .menu-panier { border: 1px solid #fff; padding: 8px 14px; }
.menu .menu-panier:hover, .menu .menu-panier.actif { background: #fff; color: var(--nuit); }
.compteur { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; text-align: center; background: #fff; color: var(--nuit); font-weight: 600; font-size: 13px; }
.menu-panier:hover .compteur, .menu-panier.actif .compteur { background: var(--nuit); color: #fff; }
.pied { background: var(--nuit); color: #e3d8f4; font-size: 14px; }
.pied-ligne { padding-block: 28px; display: grid; gap: 8px; }
.pied a { color: #fff; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 2px solid transparent;
  font-family: var(--police); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; }
.btn-fort { background: var(--violet); color: #fff; border-color: var(--violet); }
.btn-fort:hover { background: #5517b8; border-color: #5517b8; }
.btn-fort.dans-panier { background: var(--doux); color: var(--violet); border-color: var(--violet); }
.btn-clair { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-clair:hover { background: var(--encre); color: #fff; }
.btn-wa { background: var(--vert); color: #fff; border-color: var(--vert); width: 100%; font-size: 17px; }
.btn-wa:hover { background: #0e6a34; border-color: #0e6a34; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lien-bouton { background: none; border: 0; padding: 8px 0; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }

/* ---------- titres de page ---------- */
.titre-page { padding-block: 36px 24px; max-width: 46rem; }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.titre-page h1, .fiche-infos h1 { font-size: clamp(28px, 6.4vw, 44px); margin-top: 8px; }
.intro { margin-top: 14px; font-size: 17px; color: var(--gris); }

/* ---------- promo ---------- */
.bandeau-promo { background: var(--violet); color: #fff; }
.bandeau-ligne { display: grid; gap: 12px; padding-block: 16px; align-items: center; }
.bandeau-ligne p { font-size: 15px; }
.rebours { display: flex; gap: 8px; }
.rebours div { background: var(--nuit); color: #fff; min-width: 62px; padding: 8px 6px 6px; text-align: center; }
.rebours b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rebours small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #d9c9f3; }
.promo-fiche { margin-top: 18px; padding: 16px; background: var(--nuit); color: #fff; }
.promo-fiche .petit { color: #d9c9f3; }
.promo-fiche .rebours { margin-block: 10px; }
.promo-fiche .rebours div { background: var(--violet); }

/* ---------- catalogue ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filtre { min-height: 44px; padding: 8px 18px; background: transparent; color: var(--encre); border: 1px solid var(--encre); font-size: 15px; }
.filtre[aria-pressed="true"] { background: var(--encre); color: #fff; }
.grille { display: grid; gap: 22px; }
.carte { background: var(--blanc); border: 1px solid var(--trait); display: flex; flex-direction: column; }
.carte-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--trait); }
.carte-corps { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.carte h2 { font-size: 22px; margin-top: 6px; }
.carte h2 a { color: var(--encre); text-decoration: none; }
.carte h2 a:hover { text-decoration: underline; }
.desc { margin-top: 8px; color: var(--gris); flex: 1; }
.etiquette { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-block; padding: 1px 9px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #fff; }
.badge-vert { background: var(--vert); }
.badge-gris { background: var(--gris); }
.prix { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.prix-promo { font-size: 22px; font-weight: 600; }
.prix-barre { font-size: 16px; color: var(--gris); }
.carte .actions { margin-top: 16px; }
.carte .actions .btn { flex: 1 1 150px; }

.etapes-courtes { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--trait); }
.etapes-courtes h2 { font-size: 22px; }
.etapes-courtes ol { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; counter-reset: etape; }
.etapes-courtes li { counter-increment: etape; padding-left: 44px; position: relative; }
.etapes-courtes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: var(--encre); color: #fff; text-align: center; line-height: 30px; font-weight: 600; font-size: 14px; }

/* ---------- fiche produit ---------- */
.fil { padding-block: 18px 6px; font-size: 14px; color: var(--gris); }
.fil a { color: var(--gris); }
.fiche-haut { display: grid; gap: 24px; padding-block: 12px 8px; }
.fiche-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--trait); }
.promesse { margin-top: 12px; font-size: 18px; }
.fiche-infos .prix { margin-top: 18px; }
.fiche-infos .prix-promo { font-size: 30px; }
.section { margin-top: 48px; }
.section h2 { font-size: 24px; margin-bottom: 16px; }
.ba-paire { display: grid; gap: 14px; }
.ba { margin: 0; }
.ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--trait); }
.ba figcaption { display: inline-block; margin-top: 8px; padding: 2px 12px; background: var(--encre); color: #fff; font-weight: 600; font-size: 14px; }
.ba-apres figcaption { background: var(--vert); }
.section > .petit { margin-top: 10px; }
.lignes { list-style: none; padding: 0; border-bottom: 1px solid var(--trait); }
.lignes li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid var(--trait); }
.lignes .num { font-weight: 600; color: var(--violet); font-size: 18px; }
.lignes p { color: var(--gris); margin-top: 4px; }
.lignes.grandes li { padding-block: 24px; }
.limites { background: var(--doux); border: 1px solid var(--trait); padding: 22px 20px; }
.limites ul { padding-left: 20px; display: grid; gap: 10px; list-style: square; }
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--violet); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 16px; color: var(--gris); }
.barre-achat { position: fixed; left: 0; right: 0; bottom: 0; background: var(--blanc); border-top: 1px solid var(--trait); z-index: 5; padding-bottom: env(safe-area-inset-bottom, 0); }
.barre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.barre-ligne b { font-size: 14px; display: block; line-height: 1.3; }
.barre-ligne .prix { margin-top: 0; }
.barre-ligne .prix-promo { font-size: 18px; }
.barre-ligne .prix-barre { font-size: 14px; }
.barre-ligne .btn { min-height: 44px; padding-inline: 16px; font-size: 15px; }
.app:has(.barre-achat) { padding-bottom: 96px; }

/* ---------- panier ---------- */
.panier-grille { display: grid; gap: 24px; }
.liste-panier { list-style: none; padding: 0; border-bottom: 1px solid var(--trait); }
.ligne-panier { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; padding: 16px 0; border-top: 1px solid var(--trait); align-items: start; }
.ligne-panier img { width: 84px; height: 63px; object-fit: cover; border: 1px solid var(--trait); grid-row: span 2; }
.ligne-nom { font-weight: 600; color: var(--encre); text-decoration: none; }
.ligne-nom:hover { text-decoration: underline; }
.ligne-panier .prix { margin-top: 2px; }
.ligne-panier .prix-promo { font-size: 18px; }
.ligne-panier .lien-bouton { grid-column: 2; justify-self: start; }
.recap { background: var(--blanc); border: 1px solid var(--trait); padding: 22px 20px; align-self: start; }
.recap h2 { font-size: 18px; }
.total { font-size: 30px; font-weight: 600; margin: 4px 0 12px; }
.recap .btn-wa { margin-block: 14px 12px; }
.avis { background: var(--doux); border: 1px solid var(--violet); padding: 16px; margin-bottom: 16px; display: grid; gap: 12px; justify-items: start; }
.vide { padding: 40px 0 24px; display: grid; gap: 16px; justify-items: start; }

/* ---------- paiement et confirmation ---------- */
.coordonnees { margin-top: 14px; padding: 16px; background: var(--blanc); border: 1px solid var(--trait); display: grid; gap: 6px; justify-items: start; }
.gros-numero { font-size: clamp(24px, 6vw, 32px); font-weight: 600; letter-spacing: .02em; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.recap-commande { background: var(--blanc); border: 1px solid var(--trait); padding: 22px 20px; display: grid; gap: 10px; justify-items: start; max-width: 36rem; }
.reference { font-size: clamp(26px, 7vw, 38px); font-weight: 600; letter-spacing: .05em; border: 2px solid var(--encre); padding: 6px 14px; }
.liste-simple { list-style: none; padding: 0; display: grid; gap: 4px; }
.confirmation .section { max-width: 40rem; }
.confirmation > .petit { margin-top: 18px; }

/* ---------- écrans plus larges ---------- */
@media (min-width: 640px) {
  .bandeau-ligne { grid-template-columns: 1fr auto; gap: 24px; }
  .ba-paire { grid-template-columns: 1fr 1fr; }
  .etapes-courtes ol { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .etapes-courtes li { padding: 40px 0 0; }
}
@media (min-width: 860px) {
  body { font-size: 17px; }
  .grille { grid-template-columns: 1fr 1fr; gap: 28px; }
  .fiche-haut { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; padding-top: 20px; }
  .barre-achat { display: none; }
  .app:has(.barre-achat) { padding-bottom: 56px; }
  .panier-grille { grid-template-columns: 1fr 360px; gap: 48px; }
  .recap { position: sticky; top: 24px; }
  .ligne-panier { grid-template-columns: 120px 1fr auto; align-items: center; }
  .ligne-panier img { width: 120px; height: 90px; grid-row: auto; }
  .ligne-panier .lien-bouton { grid-column: auto; }
  .pied-ligne { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.recap-commande .total { font-size: 22px; margin: 4px 0; }

/* ---------- galerie d'affiches modèles ---------- */
.intro-petite { margin: -6px 0 18px; color: var(--gris); }
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.modele { margin: 0; }
.modele-cadre { position: relative; border: 1px solid var(--trait); background: var(--blanc); overflow: hidden; }
.modele-cadre img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.modele-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--nuit); color: #fff; padding: 6px 14px; font-weight: 600; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.modele figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; }
.suggestions { padding-top: 32px; border-top: 1px solid var(--trait); }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(4, 1fr); } }
