/* Nuvi : CSS des maquettes (maquettes/nuvi), regroupé par outils/generer.py. Ne pas modifier à la main :
   les ajouts du prototype sont dans prototype.css. */
/* Nuvi : variables de DA. Fichier généré par da/outils/planche.py, ne pas modifier à la main. */

:root {
  /* Palette du brief */
  --garrigue: #1F3D2B; /* Vert garrigue : Texte, fonds forts */
  --creme: #FFF6E5; /* Crème : Fond */
  --soleil: #FFD447; /* Jaune soleil : Étoiles, promo, bouton */

  /* Les 4 parfums */
  --thym: #9BCB3C; /* Thym-citron */
  --romarin: #FF7A9A; /* Romarin-pamplemousse */
  --figue: #8B6FD6; /* Figue-lavande */
  --abricot: #FF9A3C; /* Abricot-ciste */

  /* Nuances AA pour le petit texte (4,5:1 minimum). La couleur du brief reste pour les aplats et les gros titres. */
  --figue-texte: #7B5BD0; /* 4.6 sur #FFF6E5, 4.9 sur #FFFFFF */

  /* Rôles */
  --fond: var(--creme);
  --texte: var(--garrigue);
  --marque: var(--garrigue);
  --accent: var(--soleil);
  --surface: #FFFFFF;

  /* Typographies */
  --police-titre: 'Bricolage Grotesque', system-ui, sans-serif;
  --police-texte: 'DM Sans', system-ui, sans-serif;

  --rayon: 999px;
}

/* Nuvi : styles communs, ordinateur (1440) et mobile (390). Variables : da/nuvi/tokens.css (intégré avant). */

:root { --gris: #4E5F52; --ligne: #E7DCC4; --ombre-sticker: 0 4px 0 var(--garrigue); }
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--creme); color: var(--garrigue); font: 500 16px/1.5 var(--police-texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
img, svg { max-width: none; }
:is(a, button, input, select, label):focus-visible { outline: 3px solid var(--garrigue); outline-offset: 3px; } /* le contour suit l'arrondi de chaque élément */
/* Les choix (pack, mode d'achat) cachent leur bouton radio : le contour passe sur la carte entière. */
.carte-choix:has(input:focus-visible) { outline: 3px solid var(--garrigue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.titre { font-family: var(--police-titre); font-weight: 800; letter-spacing: -0.03em; line-height: .9; text-transform: uppercase; }
.multicolore span:nth-child(4n+1) { color: var(--thym); } .multicolore span:nth-child(4n+2) { color: var(--romarin); }
.multicolore span:nth-child(4n+3) { color: var(--figue-texte); } .multicolore span:nth-child(4n) { color: var(--abricot); }
/* Les couleurs des parfums sont trop claires seules sur le crème : un contour garrigue porte le contraste (AA grand texte). */
.multicolore span { -webkit-text-stroke: 6px var(--garrigue); paint-order: stroke fill; }

/* ───────── Bandeau + en-tête ───────── */
.bandeau { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; height: 38px; background: var(--garrigue); color: var(--creme); font-size: 13.5px; font-weight: 600; }
.bandeau b { color: var(--soleil); }
.bandeau .fermer { position: absolute; right: 10px; border: 0; background: none; color: var(--creme); width: 44px; height: 44px; display: grid; place-items: center; }
.entete { position: relative; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 14px 2.5vw; }
.entete.sur-couleur { position: absolute; left: 0; right: 0; top: 38px; }
.entete .logo { display: flex; align-items: center; min-height: 44px; }
.entete .logo img { height: 54px; display: block; }
.entete nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pastille { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 99px; background: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; border: 0; }
.pastille.rond { width: 44px; padding: 0; justify-content: center; position: relative; }
.pastille .compte { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--romarin); color: var(--garrigue); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--creme); }
.menu-mobile { display: none; }

/* ───────── Boutons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 30px; border-radius: 99px; border: 2px solid var(--garrigue); font-weight: 700; font-size: 17px; white-space: nowrap; box-shadow: var(--ombre-sticker); cursor: pointer; }
.btn-sombre { background: var(--garrigue); color: var(--creme); }
.btn-soleil { background: var(--soleil); color: var(--garrigue); }
.btn-blanc { background: #fff; color: var(--garrigue); }
.btn-plein { width: 100%; }
/* Survol : le sticker se soulève ; appui : il s'enfonce. Coupé par prefers-reduced-motion. */
.btn { transition: transform .12s ease, box-shadow .12s ease; }
.btn:not([disabled]):not(.inactif):hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--garrigue); }
.btn:not([disabled]):not(.inactif):active { transform: translateY(4px); box-shadow: 0 0 0 var(--garrigue); }
.btn[disabled], .btn.inactif { background: #E4DCCB; color: #6E7A6F; border-color: #B9AF9A; box-shadow: none; cursor: not-allowed; }
.fleche { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--garrigue); display: grid; place-items: center; box-shadow: var(--ombre-sticker); }

/* ───────── Bandeau qui défile ───────── */
.defile { overflow: hidden; border-block: 2px solid var(--garrigue); background: var(--soleil); }
.defile-piste { display: flex; gap: 34px; width: max-content; padding: 12px 0; font-family: var(--police-titre); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; }
.defile-piste i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--garrigue); align-self: center; }

/* ───────── Tuiles produit ───────── */
.tuile { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 20px 26px; text-align: center; }
.tuile .nom { font-family: var(--police-titre); font-weight: 800; font-size: 34px; line-height: .95; letter-spacing: -0.03em; text-transform: uppercase; color: var(--garrigue); min-height: 66px; }
.tuile .visuel { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 22px 0; }
.tuile .prix { font-weight: 700; font-size: 19px; margin-bottom: 14px; } /* 19 px gras = grand texte : le crème sur figue (3,7:1) passe */
.t-thym { background: var(--thym); } .t-romarin { background: var(--romarin); } .t-figue { background: var(--figue); } .t-abricot { background: var(--abricot); } .t-mix { background: var(--soleil); } .t-creme { background: #F4E8CF; }
.t-figue .nom, .t-figue .prix { color: var(--creme); }
.tuile .visuel { position: relative; align-self: stretch; }
/* Stickers posés en haut à droite du visuel, sous le nom : ils ne le recouvrent jamais. */
.epuise, .nouveau { position: absolute; top: 16px; right: 0; z-index: 1; padding: 6px 14px; border-radius: 99px; font-weight: 800; font-size: 13px; line-height: 1.2; transform: rotate(6deg); }
.epuise { background: var(--garrigue); color: var(--creme); }
.nouveau { background: var(--soleil); color: var(--garrigue); border: 2px solid var(--garrigue); transform: rotate(-6deg); }

/* ───────── Pied de page avec mini-jeu ───────── */
.pied { position: relative; overflow: hidden; background: var(--creme); padding: 30px 2.5vw 24px; border-top: 2px solid var(--garrigue); }
.reseaux { display: flex; gap: 10px; }
.reseaux a { width: 48px; height: 48px; border-radius: 50%; background: var(--soleil); border: 2px solid var(--garrigue); display: grid; place-items: center; }
.jeu { position: relative; height: 300px; margin-top: 10px; }
.jeu svg.paysage { position: absolute; inset: 0; width: 100%; height: 100%; }
.jeu .heros-jeu { position: absolute; left: 22%; bottom: 52px; }
.jeu .obstacle { position: absolute; bottom: 52px; }
.jeu .score { position: absolute; right: 0; top: 0; font-family: var(--police-titre); font-weight: 800; font-size: 22px; }
.bouton-jeu { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); }
.mentions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.mentions nav { display: flex; gap: 22px; }
.mentions nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ───────── Mobile ───────── */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .bandeau { font-size: 12px; height: 34px; padding: 0 40px; text-align: center; }
  .entete { padding: 10px 14px; }
  .entete.sur-couleur { top: 34px; }
  .entete .logo img { height: 40px; }
  .cache-mobile { display: none; }
  .menu-mobile { display: inline-flex; }
  .btn { height: 54px; padding: 0 22px; font-size: 16px; }
  .defile-piste { font-size: 20px; gap: 22px; }
  .tuile .nom { font-size: 20px; min-height: 40px; max-width: 100%; }
  .multicolore span { -webkit-text-stroke-width: 3px; }
  .jeu { height: 220px; }
  .mentions { flex-direction: column; }
}

/* Fiche produit */

.ariane { padding: 4px 2.5vw 18px; font-size: 14px; color: var(--gris); }
.ariane a { text-decoration: underline; text-underline-offset: 3px; }
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 0 2.5vw 90px; align-items: start; }
.galerie-grande { position: relative; aspect-ratio: 1; border-radius: 34px; border: 2px solid var(--garrigue); overflow: hidden; display: grid; place-items: center; }
.galerie-plantes { position: absolute; inset: 0; width: 100%; height: 100%; }
.galerie-canette { position: relative; filter: drop-shadow(0 26px 24px rgba(31,61,43,.35)); }
.macaron { position: absolute; right: 26px; bottom: 26px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--soleil); border: 2px solid var(--garrigue); font: 800 17px/1 var(--police-titre); text-transform: uppercase; transform: rotate(12deg); }
.g-g, .g-d { position: absolute; top: 50%; margin-top: -28px; } .g-g { left: 20px; } .g-d { right: 20px; }
.vignettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.vignettes span { aspect-ratio: 1; border-radius: 18px; border: 2px solid transparent; display: grid; place-items: center; overflow: hidden; grid-auto-flow: column; }
.vignettes span.actif { border-color: var(--garrigue); }
.vignettes svg { max-height: 80%; }
.nom-produit { font-size: 76px; line-height: .9; }
.note-avis { display: flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--gris); }
.note-avis svg { fill: var(--soleil); stroke: #8A6A00; stroke-width: 1.4; }
.note-avis b { color: var(--garrigue); margin-left: 6px; }
.accroche { margin-top: 14px; font-size: 18px; max-width: 560px; }
.libelle { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.libelle .hint { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--gris); font-size: 14px; }
.nuances { display: flex; gap: 10px; flex-wrap: wrap; }
.nuance { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 6px; border-radius: 99px; border: 2px solid #D9CDB2; background: #fff; font-weight: 700; font-size: 14px; }
.nuance i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid var(--garrigue); }
.nuance.actif { border-color: var(--garrigue); box-shadow: var(--ombre-sticker); }
.nuance.vide span { text-decoration: line-through; color: var(--gris); }
.nuance.vide i { opacity: .45; }
.choix-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix-1 { display: grid; gap: 10px; }
.carte-choix { display: grid; gap: 2px; padding: 14px 18px; border-radius: 20px; border: 2px solid #D9CDB2; background: #fff; cursor: pointer; }
.carte-choix b { font-size: 17px; }
.carte-choix small { color: var(--gris); font-size: 13.5px; }
.carte-choix.actif { border-color: var(--garrigue); box-shadow: var(--ombre-sticker); background: #FFFDF6; }
.carte-choix.large { grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.rond-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--garrigue); }
.carte-choix.actif .rond-radio { box-shadow: inset 0 0 0 5px #fff; background: var(--garrigue); }
.carte-choix .txt b { display: flex; align-items: center; gap: 8px; }
.remise { font-style: normal; padding: 2px 10px; border-radius: 99px; background: var(--soleil); font-size: 13px; border: 1.5px solid var(--garrigue); }
.carte-choix u { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; }
.px { text-align: right; }
.px s { display: block; color: var(--gris); font-size: 13px; }
.dates { display: flex; gap: 8px; flex-wrap: wrap; }
.date { display: grid; justify-items: center; gap: 0; width: 70px; padding: 8px 0; border-radius: 18px; border: 2px solid #D9CDB2; background: #fff; cursor: pointer; }
.date b { font-size: 22px; line-height: 1.1; }
.date small { font-size: 12px; color: var(--gris); }
.date.actif { border-color: var(--garrigue); background: var(--garrigue); color: var(--creme); }
.date.actif small { color: rgba(255,246,229,.8); }
.date.autre { width: auto; padding: 8px 14px; }
.achat-ligne { display: flex; gap: 12px; margin-top: 26px; }
.quantite { display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 6px; border-radius: 99px; border: 2px solid var(--garrigue); background: #fff; }
.quantite button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.quantite span { width: 26px; text-align: center; font-weight: 800; font-size: 18px; }
.bouton-ajout { background: var(--c); color: var(--garrigue); }
.pictos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0 0; padding: 0; }
.pictos li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; }
.rupture-bloc { margin-top: 26px; padding: 20px 22px; border-radius: 24px; background: #FFF0D6; border: 2px solid var(--garrigue); }
.rupture-titre { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 6px; }
.previens { display: flex; gap: 10px; margin: 16px 0 8px; }
.previens input { flex: 1; min-width: 0; height: 58px; padding: 0 20px; border-radius: 99px; border: 2px solid var(--garrigue); background: #fff; font-size: 16px; }
.rupture-bloc small { color: var(--gris); }
.btn.inactif { margin-top: 14px; }
.suggestion { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 18px; border-radius: 22px; background: #fff; border: 2px solid var(--garrigue); }
.suggestion > span:nth-child(2) { flex: 1; }
.suggestion b { display: block; }
.suggestion small { color: var(--gris); }
.sugg-can { width: 56px; height: 56px; border-radius: 16px; background: var(--figue); display: grid; place-items: center; }
@media (max-width: 600px) {
  .fiche { grid-template-columns: 1fr; gap: 24px; padding-bottom: 60px; }
  .galerie-canette svg { width: 150px; }
  .macaron { width: 72px; height: 72px; font-size: 13px; right: 14px; bottom: 14px; }
  .g-g, .g-d { display: none; }
  .nom-produit { font-size: 46px; }
  /* Les pastilles gardent leur nom en mobile (grille 2 × 2) : le parfum ne passe jamais par la couleur seule. */
  .nuances { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nuance { padding: 0 10px 0 6px; font-size: 13px; line-height: 1.1; }
  .carte-choix.large { grid-template-columns: auto 1fr; }
  .carte-choix.large .px { grid-column: 2; text-align: left; }
  .px s { display: inline; margin-right: 6px; }
  .achat-ligne { flex-direction: column; }
  .quantite { align-self: flex-start; }
  .pictos { grid-template-columns: 1fr 1fr; }
  .previens { flex-direction: column; }
  .previens input { flex: none; }
}

/* Tiroir panier */

.voile { position: fixed; inset: 0; z-index: 30; background: rgba(255, 122, 154, .55); }
.tiroir { position: fixed; z-index: 31; top: 10px; right: 10px; bottom: 10px; width: 480px; display: flex; flex-direction: column; border-radius: 30px; background: #fff; border: 2px solid var(--garrigue); box-shadow: -10px 10px 0 var(--garrigue); overflow: hidden; }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 10px; }
.tiroir-tete h2 { font: 800 30px var(--police-titre); text-transform: uppercase; letter-spacing: -0.02em; }
.tiroir-tete small { font-size: 18px; }
.fermer-tiroir { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--garrigue); color: var(--creme); display: grid; place-items: center; cursor: pointer; }
.tiroir-corps { flex: 1; overflow: auto; padding: 0 24px 16px; }
.progression { padding: 14px 16px; border-radius: 20px; background: #FFF6E5; border: 2px solid var(--garrigue); }
.progression p { font-size: 15px; margin-bottom: 12px; }
.progression p svg { vertical-align: -5px; margin-right: 6px; }
.jauge { position: relative; height: 14px; border-radius: 99px; background: #E9DDC3; }
.jauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, var(--thym) 0 10px, #B5DB62 10px 20px); border: 2px solid var(--garrigue); }
.jauge .bout { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--soleil); border: 2px solid var(--garrigue); }
.lignes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ligne { display: flex; gap: 12px; padding: 12px; border-radius: 20px; border: 2px solid #E9DDC3; }
.vig { width: 60px; height: 72px; flex: none; border-radius: 14px; display: grid; place-items: center; grid-auto-flow: column; }
.l-txt { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; }
.l-txt b { font-size: 16px; }
.l-txt small { color: var(--gris); font-size: 13px; }
.l-prix { display: grid; justify-items: end; align-content: space-between; }
.l-prix s { color: var(--gris); font-size: 13px; }
.suppr { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--gris); cursor: pointer; margin-right: -10px; }
.quantite.petite { height: 44px; align-self: start; width: max-content; }
.quantite.petite button { width: 34px; height: 34px; }
.en-erreur { border-color: #B8325A; background: #FFF1F4; opacity: .9; }
.en-erreur .l-prix b { text-decoration: line-through; color: var(--gris); }
.indispo { justify-self: start; padding: 4px 12px; border-radius: 99px; background: var(--garrigue); color: var(--creme); font-weight: 800; font-size: 12.5px; }
.alerte { display: flex; gap: 10px; margin-bottom: 12px; padding: 12px 14px; border-radius: 18px; background: #FFE3EA; border: 2px solid #B8325A; color: #7A1D3A; font-size: 14px; }
.alerte a { text-decoration: underline; font-weight: 800; }
.upsell { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 20px; background: #FFF6E5; border: 2px dashed var(--garrigue); }
.upsell .vig { width: 64px; height: 64px; }
.upsell > div { flex: 1; }
.upsell b { display: block; font-size: 15px; }
.upsell small { color: var(--gris); font-size: 13px; }
.btn.petit { height: 44px; padding: 0 16px; font-size: 14px; box-shadow: 0 3px 0 var(--garrigue); }
.code { margin-top: 16px; }
.code label { font-weight: 800; font-size: 14px; }
.code-ligne { display: flex; gap: 8px; margin-top: 6px; }
.code input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--garrigue); font-weight: 700; letter-spacing: .06em; }
.code.erreur input { border-color: #B8325A; background: #FFF1F4; }
.msg-err { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: #A12B4F; font-weight: 700; font-size: 13.5px; }
.recap { padding: 12px 24px 16px; border-top: 2px solid var(--garrigue); background: #FFFDF6; display: grid; gap: 6px; }
.recap > div { display: flex; justify-content: space-between; }
.recap .tot { font-size: 20px; margin: 4px 0 8px; }
.paiements { text-align: center; font-size: 12.5px; color: var(--gris); margin-top: 4px; }
.tiroir .vide { text-align: center; padding: 30px 10px 10px; display: grid; justify-items: center; gap: 12px; }
.tiroir .vide h3 { font-size: 52px; }
.tiroir .vide p { max-width: 300px; }
.pour-commencer { margin-top: 26px; }
.petit-titre { font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
@media (max-width: 600px) {
  .tiroir { top: 40px; left: 0; right: 0; bottom: 0; width: auto; border-radius: 28px 28px 0 0; box-shadow: none; }
  .tiroir-tete h2 { font-size: 24px; }
  .quantite.petite { height: 48px; } .quantite.petite button { width: 44px; height: 44px; }
  .tiroir .vide h3 { font-size: 42px; }
}
