/* Kawaii DZ — couleurs prises sur les figurines : rose flamant, jaune poussin, bleu dauphin.
   Mise en page : une colonne, grandes bandes pastel, tout passe à une colonne sur téléphone. */
:root {
  --creme: #FFF7EE;
  --blanc: #FFFFFF;
  --encre: #3A2B33;
  --encre-doux: #7C6872;
  --trait: #F0DFD2;

  --rose: #FF5E97;
  --rose-fonce: #D93C73;
  --rose-pale: #FFE3EC;

  --jaune: #FFC234;
  --jaune-fonce: #D99A12;
  --jaune-pale: #FFF2CF;

  --bleu: #35BEE4;
  --bleu-fonce: #1E97BA;
  --bleu-pale: #DCF4FC;

  --vert: #46BE86;
  --violet: #A78BFA;

  --rayon: 22px;
  --ombre: 0 2px 0 rgba(58, 43, 51, .06), 0 16px 32px -24px rgba(58, 43, 51, .5);

  --titre: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --texte: "Nunito", "Segoe UI", system-ui, sans-serif;
  --arabe: "Cairo", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: 76px; /* barre de commande fixe sur téléphone */
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--arabe); font-size: 17.5px; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .brand-name, html[lang="ar"] .total-amount { font-family: var(--arabe); font-weight: 900; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.center { text-align: center; }
.section-head.center { align-items: center; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 247, 238, .94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--trait);
}
.header-inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { color: var(--rose); display: flex; }
.brand-name { font-family: var(--titre); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
@media (max-width: 470px) {
  .header-inner > .btn { display: none; } /* la barre rose en bas sert de bouton */
  .brand-name { font-size: 1.15rem; }
}

.lang-switch {
  display: flex;
  gap: 3px;
  margin-inline-start: auto;
  background: var(--blanc);
  border: 2px solid var(--trait);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  font: inherit;
  font-weight: 800;
  font-size: .85rem;
  border: 0;
  background: transparent;
  color: var(--encre-doux);
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.is-on { background: var(--encre); color: var(--creme); }

/* ---------- boutons autocollants ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
html[lang="ar"] .btn { font-family: var(--arabe); font-weight: 700; }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 5px 0 var(--rose-fonce); }
.btn-bleu { background: var(--bleu); color: #fff; box-shadow: 0 5px 0 var(--bleu-fonce); }
.btn-jaune { background: var(--jaune); color: var(--encre); box-shadow: 0 5px 0 var(--jaune-fonce); }
.btn-clair { background: var(--blanc); color: var(--encre); box-shadow: 0 5px 0 var(--trait); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; box-shadow: 0 4px 0 var(--rose-fonce); }
.btn-lg { padding: 17px 34px; font-size: 1.15rem; }
.btn-block { width: 100%; padding-block: 19px; font-size: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(22px, 4vw, 48px) clamp(30px, 5vw, 60px);
  background:
    radial-gradient(circle at 12% 18%, var(--rose-pale) 0 22%, transparent 22.5%),
    radial-gradient(circle at 88% 8%, var(--jaune-pale) 0 18%, transparent 18.5%),
    radial-gradient(circle at 92% 72%, var(--bleu-pale) 0 16%, transparent 16.5%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.eyebrow {
  align-self: flex-start;
  background: var(--jaune);
  color: var(--encre);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(-1.5deg);
}
.lead { font-size: 1.12rem; color: var(--encre-doux); max-width: 46ch; }

.price-row { display: flex; flex-wrap: wrap; gap: 10px; }
.price-sticker {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: 16px;
  color: #fff;
}
.price-sticker b { font-family: var(--titre); font-size: 1.3rem; font-weight: 800; }
html[lang="ar"] .price-sticker b { font-family: var(--arabe); }
.price-sticker i { font-style: normal; font-size: .82rem; opacity: .95; }
.st-rose { background: var(--rose); transform: rotate(-2deg); }
.st-jaune { background: var(--jaune); color: var(--encre); transform: rotate(1.5deg); }
.st-bleu { background: var(--bleu); transform: rotate(-1deg); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.trust { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; font-weight: 600; color: var(--encre-doux); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before { content: "✓"; color: var(--vert); font-weight: 900; }

.hero-img { margin: 0; }
.hero-img img { border-radius: 26px; border: 4px solid var(--blanc); box-shadow: var(--ombre); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
}

/* ---------- bandes ---------- */
.section { padding-block: clamp(38px, 6vw, 70px); }
.section-tight { padding-block: clamp(22px, 3vw, 34px); }
.band { border-radius: 36px; margin-inline: 10px; }
.band-rose { background: var(--rose-pale); }
.band-bleu { background: var(--bleu-pale); }
.band-jaune { background: var(--jaune-pale); }
@media (max-width: 600px) { .band { border-radius: 26px; margin-inline: 6px; } }

.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; max-width: 60ch; }
.section-sub { color: var(--encre-doux); }
.save {
  align-self: flex-start;
  background: var(--vert);
  color: #fff;
  font-family: var(--titre);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  transform: rotate(-1deg);
}
html[lang="ar"] .save { font-family: var(--arabe); }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 26px; }
.pack-grid figure { margin: 0; }
.pack-grid img { border-radius: 18px; border: 4px solid var(--blanc); box-shadow: var(--ombre); }

/* ---------- grille animaux ---------- */
.animal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.animal-grid li {
  background: var(--blanc);
  border: 3px solid var(--blanc);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ombre);
  min-width: 0;
}
.animal-grid li:nth-child(3n+1) { border-color: var(--rose-pale); }
.animal-grid li:nth-child(3n+2) { border-color: var(--jaune-pale); }
.animal-grid li:nth-child(3n) { border-color: var(--bleu-pale); }
.animal-grid img { width: 100%; }
.animal-name { padding: 10px 10px 12px; font-family: var(--titre); font-weight: 700; text-align: center; }
html[lang="ar"] .animal-name { font-family: var(--arabe); font-weight: 700; }

/* ---------- plateau ---------- */
.plateau-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.plateau-grid > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.plateau-img { margin: 0; }
.plateau-img img { border-radius: 22px; border: 4px solid var(--blanc); box-shadow: var(--ombre); }
.bullets { margin: 0; padding-inline-start: 22px; color: var(--encre-doux); display: flex; flex-direction: column; gap: 7px; }
@media (max-width: 880px) { .plateau-grid { grid-template-columns: 1fr; } }

/* ---------- rassurance ---------- */
.reassure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.reassure li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blanc);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--ombre);
  min-width: 0;
}
.r-ico { font-size: 1.7rem; flex: none; }
.reassure p { font-weight: 700; font-size: .98rem; }

/* ---------- bon de commande ---------- */
.order-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin-inline: auto;
}
.field-group { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 1.2rem; }
html[lang="ar"] .step { font-family: var(--arabe); font-weight: 900; }
.step-n {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 1rem;
  flex: none;
}

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.choice { position: relative; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 3px solid var(--trait);
  border-radius: 16px;
  background: var(--creme);
  text-align: center;
  transition: border-color .12s ease, background-color .12s ease;
}
.choice input:checked + .choice-body { border-color: var(--rose); background: var(--rose-pale); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--rose); outline-offset: 2px; }
.choice-title { font-weight: 800; }
.choice-price { font-family: var(--titre); font-weight: 800; font-size: 1.3rem; color: var(--rose-fonce); }
html[lang="ar"] .choice-price { font-family: var(--arabe); }

.qty-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty-title { font-weight: 800; margin-inline-end: 4px; }
@media (max-width: 470px) { .qty-title { flex-basis: 100%; } }
.qty-btn {
  width: 52px; height: 52px;
  border-radius: 16px;
  border: 3px solid var(--trait);
  background: var(--creme);
  color: var(--encre);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.qty-btn:hover { border-color: var(--rose); }
.qty-label { color: var(--encre-doux); font-weight: 700; }

.picker-counter {
  align-self: flex-start;
  background: var(--jaune-pale);
  color: var(--jaune-fonce);
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 999px;
}
.picker-counter.done { background: #DFF5E9; color: #227D54; }
.picker-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.pick {
  border: 3px solid var(--trait);
  border-radius: 16px;
  background: var(--creme);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pick.selected { border-color: var(--rose); background: var(--rose-pale); }
.pick img { width: 100%; }
.pick-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; }
.pick-name { font-size: .88rem; font-weight: 800; text-align: center; }
.pick-controls { display: flex; align-items: center; gap: 6px; }
.pick-btn {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 2px solid var(--trait);
  background: var(--blanc);
  color: var(--encre);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.pick-btn:hover { border-color: var(--rose); }
.pick-count { min-width: 18px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: .92rem; font-weight: 800; color: var(--encre); }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  font: inherit;
  color: var(--encre);
  background: var(--creme);
  border: 3px solid var(--trait);
  border-radius: 14px;
  padding: 14px;
  width: 100%;
  min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--rose); outline: none; }
.hint { font-size: .88rem; color: var(--encre-doux); }
#quantite { width: 90px; text-align: center; font-weight: 800; font-size: 1.15rem; }

.total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--encre);
  color: var(--creme);
  border-radius: 18px;
  padding: 16px 22px;
}
.total-label { display: block; font-weight: 800; }
.total-note { display: block; font-size: .85rem; opacity: .8; }
.total-amount { font-family: var(--titre); font-weight: 800; font-size: 1.9rem; color: var(--jaune); }
html[lang="ar"] .total-amount { font-family: var(--arabe); }

.form-error {
  background: #FFE6E6;
  border: 2px solid #FFADAD;
  color: #B3261E;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 700;
}

.order-done {
  background: var(--blanc);
  border: 4px solid var(--vert);
  border-radius: var(--rayon);
  padding: clamp(22px, 3vw, 36px);
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.done-ico { font-size: 2.6rem; }

/* ---------- pied ---------- */
.site-footer { padding-block: 32px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; color: var(--encre-doux); font-size: .92rem; text-align: center; align-items: center; }
.footer-brand { font-family: var(--titre); font-weight: 800; font-size: 1.2rem; color: var(--encre); }
html[lang="ar"] .footer-brand { font-family: var(--titre); }

/* ---------- barre fixe téléphone ---------- */
.sticky-cta {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--rose-fonce), var(--ombre);
}
html[lang="ar"] .sticky-cta { font-family: var(--arabe); }
@media (max-width: 880px) { .sticky-cta { display: flex; } }
@media (min-width: 881px) { body { padding-bottom: 0; } }

/* ---------- espace gestion ---------- */
.admin-main { padding-block: 26px 60px; }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.gate { max-width: 420px; background: var(--blanc); border-radius: var(--rayon); padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--ombre); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--blanc); border-radius: 16px; padding: 14px 16px; box-shadow: var(--ombre); min-width: 0; }
.stat-label { font-size: .8rem; font-weight: 800; color: var(--encre-doux); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: var(--titre); font-weight: 800; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.admin-tools select, .admin-tools input { width: auto; min-width: 190px; }
.orders { display: flex; flex-direction: column; gap: 14px; }
.order-row {
  background: var(--blanc);
  border-inline-start: 8px solid var(--trait);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: start;
  box-shadow: var(--ombre);
  min-width: 0;
}
@media (max-width: 780px) { .order-row { grid-template-columns: 1fr; } }
.order-row.st-nouvelle { border-inline-start-color: var(--jaune); }
.order-row.st-confirmee { border-inline-start-color: var(--bleu); }
.order-row.st-livree { border-inline-start-color: var(--vert); }
.order-row.st-annulee { border-inline-start-color: #E0574F; }
.order-ref { font-family: var(--titre); font-weight: 800; font-size: 1.1rem; }
.order-meta { font-size: .86rem; color: var(--encre-doux); }
.order-line { font-size: .96rem; }
.order-tel { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.05rem; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge.st-nouvelle { background: var(--jaune-pale); color: var(--jaune-fonce); }
.badge.st-confirmee { background: var(--bleu-pale); color: var(--bleu-fonce); }
.badge.st-livree { background: #DFF5E9; color: #227D54; }
.badge.st-annulee { background: #FFE6E6; color: #B3261E; }
.order-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.order-actions select { min-width: 150px; }
.empty { background: var(--blanc); border: 3px dashed var(--trait); border-radius: var(--rayon); padding: 34px; text-align: center; color: var(--encre-doux); }
