/* Forgefont — base commune (site, espace client, pages légales).
   Blanc dominant, noir en second, bleu pour tout ce qui se clique ou s'active ; une seule famille (Plus Jakarta Sans, auto-hébergée).
   Pas d'ombre au repos, pas de dégradé : les surfaces se séparent par une teinte. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url(/assets/jakarta.woff2) format("woff2"); }

:root {
  --fond: #fafafa;
  --surface: #f0f0f0;
  --surface-2: #e3e3e3;
  --encre: #000000;
  --encre-douce: #444444;
  --accent: #0077ff;
  --accent-survol: #0066dd;
  --sombre-2: #222222;
  --gris: #8c8c8c;
  --inverse: #ffffff;
  --ok: #146c34;
  --alerte: #c0182f;
  --police: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(20px, 3vw, 40px);
  --rayon: 8px;
  --texte: 17px;
  --petit: 14px;
  --moyen: clamp(20px, 1.6vw, 24px);
  --titre: clamp(34px, 4.3vw, 64px);
  --geant: clamp(56px, 8.4vw, 128px);
  --entree: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 var(--texte)/1.55 var(--police); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: var(--titre); }
h3 { font-size: var(--moyen); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
::selection { background: var(--encre); color: var(--inverse); }
.visuel-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.discret { color: var(--encre-douce); }
.petit { font-size: var(--petit); }
.cache { display: none !important; }

/* Barre du haut : nom, quelques liens, une action. */
.barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--marge); background: var(--fond); }
.marque { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; text-decoration: none; }
.liens { display: flex; align-items: center; gap: 28px; font-size: var(--petit); }
.liens a { text-decoration: none; }
.liens a:not(.bouton):hover { text-decoration: underline; }
@media (max-width: 860px) { .liens a:not(.bouton):not(.connexion) { display: none; } .liens { gap: 16px; } }
@media (max-width: 560px) { .accueil .liens .connexion { display: none; } .liens .bouton { white-space: nowrap; } .marque { font-size: 23px; } }

/* Enclume du logo : le corps (sans les étincelles) mesure la hauteur des capitales
   de Jakarta (0,745 em) ; son pied est posé sur la ligne de base du texte. */
.logo-entete { height: 1.055em; width: auto; }

/* Ancres : la section commence juste sous la barre collante. */
section[id] { scroll-margin-top: var(--hauteur-barre, 72px); }

/* Boutons : pleins, en pilule. */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 600 15px var(--police); text-decoration: none; cursor: pointer; transition: transform .2s var(--entree), background-color .2s; }
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(.98); }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bouton.secondaire { background: var(--surface-2); color: var(--encre); }
.bouton.secondaire:hover { background: #d6d6d6; }
.bouton.petit { min-height: 36px; padding: 0 16px; font-size: 14px; }
.bouton.danger { background: #fbe6e8; color: var(--alerte); }
.bouton.grand { min-height: 56px; padding: 0 30px; font-size: 17px; }
/* Curseur de quantité (accueil et espace client). */
.curseur { display: flex; align-items: center; gap: 16px; }
.curseur input { flex: 1; accent-color: var(--accent); height: 36px; }
.curseur input, .curseur input:hover, .curseur input:focus, .curseur input:focus-visible { outline: none; box-shadow: none; background: transparent; } /* taste-skill-ignore: retire le cadre des champs de formulaire */
.curseur input:disabled { opacity: 1; cursor: default; accent-color: var(--gris); filter: grayscale(1); }
.curseur output { min-width: 2.5ch; font-size: var(--moyen); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
#detail-fiches { margin: 8px 0 0; }
.bouton-google { width: 100%; min-height: 48px; gap: 12px; margin-top: 8px; }
.separateur { margin: 20px 0 0; text-align: center; font-size: var(--petit); color: var(--encre-douce); }
.lien-bouton { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Pied de page simple (espace client, pages légales). */
.pied { padding: 40px var(--marge); background: var(--surface); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ======================================================= Espace client et pages légales */
.espace { background: var(--surface); min-height: 70vh; padding: 48px var(--marge) 79px; } /* 79 + 16 de marge de carte : 15 % de moins sous la dernière carte */
.espace > .conteneur { max-width: 1040px; margin: 0 auto; }
.espace h1 { font-size: clamp(36px, 5vw, 64px); }
.carte { background: var(--fond); border-radius: var(--rayon); padding: 28px; margin-bottom: 16px; }
.carte h2 { font-size: 26px; letter-spacing: -0.03em; }
.etroit { max-width: 480px; margin: 32px auto; }
label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
label .discret { font-weight: 400; }
input[type=text], input[type=email], input[type=number], input[type=password], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 6px; background: var(--surface); color: var(--encre); font: 400 16px var(--police);
  box-shadow: inset 0 0 0 1px rgba(10,10,10,.14); /* taste-skill-ignore: champ de formulaire */
}
input:hover, textarea:hover, select:hover { box-shadow: inset 0 0 0 1px rgba(10,10,10,.3); } /* taste-skill-ignore: champ de formulaire */
input:focus, textarea:focus, select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--encre); background: var(--fond); } /* taste-skill-ignore: champ de formulaire */
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input[type=color] { width: 52px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
.ligne-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.actions-carte { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; align-items: center; }

.message { padding: 14px 18px; border-radius: 6px; margin: 12px 0; font-size: 15px; background: var(--surface); }
.message.ok { background: #e3f1e8; color: var(--ok); }
.message.erreur { background: #fbe6e8; color: var(--alerte); }
.message ul { margin: 6px 0 0; padding-left: 18px; }

.liste-commandes { display: grid; gap: 8px; }
.ligne-commande { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-radius: var(--rayon); background: var(--fond); text-decoration: none; transition: transform .2s var(--entree), background-color .2s; }
.ligne-commande:hover { transform: translateX(4px); background: #fafaf8; }
.pastille { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.pastille.alerte { background: #fbe6e8; color: var(--alerte); }

.sur-titre { font-size: 15px; font-weight: 600; color: var(--encre-douce); margin-bottom: 6px; }
.retour, .retour:hover, .retour:focus, .retour:active { display: inline-block; margin-bottom: 14px; font-size: var(--petit); font-weight: 600; color: var(--encre-douce); text-decoration: none; }
.retour:hover { color: var(--encre); }
.import-nova { display: grid; justify-items: center; gap: 8px; max-width: 460px; margin: 20px auto 0; text-align: center; }
.import-nova p { margin: 0; }
.bouton-nova { width: 100%; min-height: 48px; gap: 12px; }
.bouton-nova img { border-radius: 4px; }
.couleurs-texte { display: flex; flex-wrap: wrap; gap: 10px; }
.couleur { display: flex; align-items: center; gap: 8px; }
.couleur input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.aide-champ { margin: 6px 0 0; }
.parcours li.verrouille { opacity: .45; }
.parcours li.verrouille button { cursor: not-allowed; }
.panneau-nova { width: 100%; text-align: left; }
.choix-nova { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 8px; }
.carte-nova { all: unset; box-sizing: border-box; display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 8px; background: var(--fond); cursor: pointer; font-size: 14px; margin: 0; font-weight: 400; transition: background-color .2s; }
.carte-nova:hover { background: var(--surface-2); }
.carte-nova:focus-visible, .carte-nova:has(input:focus-visible) { outline: 3px solid var(--encre); outline-offset: 2px; }
.carte-nova:has(input:checked) { background: var(--accent); color: #fff; }
.carte-nova:has(input:checked) .discret { color: rgba(255,255,255,.85); }
.carte-nova input { position: absolute; opacity: 0; pointer-events: none; }
.vignette-nova { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--surface); }
.vignette-nova img { width: 100%; height: 100%; object-fit: contain; }
.menu-nova { margin-top: 10px; border-radius: 8px; background: var(--fond); text-align: left; }
.menu-nova summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.menu-nova[open] summary { padding-bottom: 8px; }
.menu-nova > :not(summary) { margin: 0 12px 12px; }
.liste-nova { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.ligne-nova { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 6px; background: var(--surface); cursor: pointer; font-size: 15px; transition: background-color .2s; }
.ligne-nova:hover { background: var(--surface-2); }
.ligne-nova:disabled { opacity: .5; cursor: not-allowed; }
.ligne-nova:focus-visible, .ligne-nova:has(input:focus-visible) { outline: 3px solid var(--encre); outline-offset: 2px; }
.ligne-nova:has(input:checked) { background: var(--accent); color: #fff; }
.ligne-nova input { position: absolute; opacity: 0; pointer-events: none; }
.ligne-nova strong { flex: 1; font-weight: 600; }
.ligne-nova .vignette-nova { width: 40px; height: 40px; flex: none; }
.ligne-nova .discret { flex: none; }
.actions-carte.centre { justify-content: center; }
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.carte-produit-espace { all: unset; box-sizing: border-box; display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 8px; background: var(--surface); cursor: pointer; transition: background-color .2s, transform .2s var(--entree); }
.carte-produit-espace:hover { background: var(--surface-2); transform: translateY(-2px); }
.carte-produit-espace:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.carte-produit-espace .vignette { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--fond); }
.carte-produit-espace .vignette img { width: 100%; height: 100%; object-fit: cover; }
.a-faire { color: var(--accent); font-weight: 600; }
.titre-images { font-size: 17px; margin: 22px 0 10px; }
.grille-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.tuile-image { all: unset; box-sizing: border-box; position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--surface); cursor: pointer; }
.tuile-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.tuile-image:hover img { opacity: .8; }
.tuile-image:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.tuile-image.choisie { box-shadow: inset 0 0 0 3px var(--accent); } /* taste-skill-ignore: sélection d'image dans un formulaire */
/* Icônes rondes (+, −, ×) dessinées en CSS : toujours exactement centrées. */
.icone-ronde { position: relative; display: inline-block; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #000; cursor: pointer; }
.icone-ronde::before, .icone-ronde::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 1px; background: currentColor; }
.icone-ronde.ajouter::after { transform: rotate(90deg); }
.icone-ronde.retirer::after { display: none; }
.icone-ronde.supprimer { background: var(--surface-2); }
.icone-ronde.supprimer::before { transform: rotate(45deg); }
.icone-ronde.supprimer::after { transform: rotate(-45deg); }
.icone-ronde.supprimer:hover { background: #fbe6e8; color: var(--alerte); }
.icone-ronde:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.tuile-image .icone-ronde { position: absolute; top: 6px; right: 6px; }
.tuile-image.choisie .icone-ronde { background: var(--accent); color: #fff; }
.grille-importes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (min-width: 1000px) { .grille-importes { grid-template-columns: repeat(5, 1fr); } }
.carte-importe { display: grid; gap: 8px; padding: 10px; border-radius: 8px; background: var(--surface); }
.carte-importe .vignette { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--fond); }
.carte-importe .vignette img { width: 100%; height: 100%; object-fit: contain; }
.pied-importe { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.pied-importe strong { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
button.lien-retour { all: unset; cursor: pointer; display: inline-block; margin-bottom: 14px; font-size: var(--petit); font-weight: 600; color: var(--encre-douce); }
button.lien-retour:hover { color: var(--encre); }
.pastille-couleur { width: 28px; height: 28px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); } /* taste-skill-ignore: aperçu de couleur dans un formulaire */
.plus-produit { margin-top: 16px; }
.plus-produit summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.titre-boutique { margin-bottom: 6px; }
.titre-boutique + .sur-titre { margin-bottom: 20px; }
.bloc-nom { margin-bottom: 8px; }
.bloc-nom label { margin-top: 0; }
.apercu-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.apercu-logo img { max-width: 160px; max-height: 80px; object-fit: contain; background: var(--surface); border-radius: 6px; padding: 8px; }
.parcours { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 28px; padding: 0; list-style: none; }
.parcours li { border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.parcours li.fait { background: #e3f1e8; color: var(--ok); }
.parcours li.actif { background: var(--encre); color: var(--inverse); }
.parcours button { all: unset; cursor: pointer; display: block; padding: 8px 16px; border-radius: 999px; }
.parcours button:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }

ol.guide { padding-left: 22px; }
ol.guide li { margin-bottom: 12px; padding-left: 4px; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--surface); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.code { display: block; padding: 10px 12px; margin-top: 8px; line-height: 1.6; }

.grille-medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.media { border-radius: 6px; overflow: hidden; background: var(--surface); font-size: 14px; }
.media .vignette { aspect-ratio: 1; background: var(--surface-2); }
.media .vignette img { width: 100%; height: 100%; object-fit: cover; }
.media .infos { padding: 10px; display: grid; gap: 6px; }
.media select, .media input { min-height: 36px; padding: 6px 8px; font-size: 14px; background: var(--fond); }
.depot { border-radius: var(--rayon); padding: 36px; text-align: center; background: var(--surface); color: var(--encre-douce); cursor: pointer; transition: background-color .2s, color .2s; }
.depot:hover, .depot.survol { background: var(--surface-2); color: var(--encre); }

.produit { border-radius: var(--rayon); padding: 20px; margin-top: 12px; background: var(--surface); }
.produit input, .produit textarea, .produit select { background: var(--fond); }
.entete-produit { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.variantes { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.variantes th, .variantes td { text-align: left; padding: 6px; border-bottom: 1px solid var(--surface-2); } /* taste-skill-ignore: vrai tableau */
.variantes input { min-height: 38px; padding: 6px 8px; }
.choix-medias { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choix-medias label { margin: 0; font-weight: 400; display: flex; align-items: center; gap: 8px; background: var(--fond); border-radius: 6px; padding: 4px 10px 4px 4px; font-size: 14px; }
.choix-medias img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

.etapes-suivi { list-style: none; padding: 0; margin: 0; }
.etapes-suivi li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; }
.etapes-suivi li + li { margin-top: 2px; }
.etapes-suivi .etat { width: 22px; text-align: center; flex: none; font-weight: 800; }
.etapes-suivi .reussie .etat { color: var(--ok); }
.etapes-suivi .echouee .etat { color: var(--alerte); }
.etapes-suivi .en_attente { color: var(--encre-douce); }
.journal { max-height: 240px; overflow: auto; font-size: 14px; color: var(--encre-douce); }

/* Choix du forfait dans l'espace client. */
.forfaits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 16px; }
.forfait { background: var(--fond); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; gap: 4px; transition: background-color .2s; }
.forfait.mis-en-avant { background: var(--encre); color: var(--inverse); }
.forfait.mis-en-avant .discret { color: rgba(255,255,255,.7); }
.forfait.mis-en-avant .bouton { background: var(--inverse); color: var(--encre); }
.forfait .prix { font-weight: 800; font-size: 40px; letter-spacing: -0.04em; }
.forfait h3 { margin: 0; }
.forfait .bouton { margin-top: 12px; align-self: flex-start; }
p.prix { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
@media (max-width: 760px) { .forfaits { grid-template-columns: 1fr; } }
