/*
 * GOOD SMOOTHIE — mise en page des pages de la boutique.
 */

/* ================= Sections ================= */
.section--tight { padding-top: 0; }
.section--alt { background: var(--cream-deep); }
.section-head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); max-width: 48rem; }
.section-head--center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .swoosh { margin-top: 0; }

/* ================= Haut de l'accueil (pleine largeur) ================= */
.hero-section { position: relative; overflow: hidden; }
.hero-section__blob-1 { width: 380px; height: 330px; top: -200px; right: -140px; }
.hero-section__blob-2 { width: 300px; height: 250px; bottom: -190px; left: -130px; }
@media (max-width: 959px) {
  .hero-section__blob-1 { width: 200px; height: 170px; top: -120px; right: -90px; }
  .hero-section__blob-2 { width: 200px; height: 170px; bottom: -130px; left: -100px; }
}
.hero { position: relative; z-index: 1; display: grid; gap: var(--sp-7); align-items: center; padding-block: var(--sp-7) var(--sp-8); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); padding-block: var(--sp-8) var(--sp-9); } }
.hero__text { display: grid; gap: var(--sp-5); justify-items: start; }
.hero__ctas { --gap: var(--sp-3); }
.hero__media { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.hero__photo { position: relative; z-index: 1; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--sh-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .rays { top: -26px; left: -26px; width: 56px; rotate: -12deg; z-index: 2; }
.hero__ticket {
  position: absolute; z-index: 2; right: 12px; bottom: 28px;
  display: grid; gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-2);
  font-size: var(--fs-small);
}
.hero__ticket b { color: var(--green); font-size: 1.125rem; }
@media (min-width: 960px) { .hero__ticket { right: -18px; } }

/* ================= Carte ================= */
.carte-erreur { margin-top: var(--sp-5); }
.carte-erreur__btn { margin-top: var(--sp-3); }
.mix-builder__intro .section-index { margin-bottom: var(--sp-1); }

/* ================= Formats ================= */
.formats-section .formats { max-width: 760px; margin-inline: auto; }
.formats__item--1 { --scale: 0.6; }
.formats__item--2 { --scale: 0.8; }
.formats__item--3 { --scale: 1; }

/* ================= Comment ça marche ================= */
.steps { display: grid; gap: var(--sp-5); counter-reset: none; padding: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1); }
.step p { color: var(--ink-muted); }
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.5rem; /* 24 px en gras : grand texte, blanc sur orange admis */
  font-weight: var(--fw-extrabold);
  font-style: italic;
}

/* ================= Livraison et retrait ================= */
.info-cards { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info-card { display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1); }
.info-card__icon { width: 2rem; height: 2rem; color: var(--orange-deep); }
.info-card ul { display: grid; gap: var(--sp-2); color: var(--ink-muted); }
.info-card li { display: flex; gap: var(--sp-2); }
.info-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.65em; border-radius: 50%; background: var(--green); }

/* ================= Pied de page ================= */
.site-footer__title { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--green); margin-bottom: var(--sp-3); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }

/* ================= Page intérieure : en-tête de page ================= */
.page-head { padding-block: var(--sp-7) var(--sp-5); }
.page-head .lead { margin-top: var(--sp-3); }
/* Au moins la hauteur de l'écran : le pied de page commence sous la ligne de flottaison et ne
   saute pas quand le contenu chargé par le script (panier, suivi) s'affiche. */
.page { min-height: 100svh; padding-bottom: var(--sp-9); }

/* ================= Commande ================= */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-7); } }
.checkout__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
.panel { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1); }
@media (min-width: 720px) { .panel { padding: var(--sp-6); } }
.panel__title { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--green); }
.panel__num {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-size: var(--fs-small); font-weight: var(--fw-bold);
}
.cart-edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.cart-edit__line { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.cart-edit__line:last-child { padding-bottom: 0; border-bottom: 0; }
.cart-edit__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-left: calc(56px + var(--sp-3)); }
.cart-edit__actions .stepper button { width: 40px; height: 40px; }
.cart-edit__remove { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 var(--sp-2); border-radius: var(--r-sm); color: var(--error); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.cart-edit__remove:hover { background: var(--error-soft); }
.cart-edit__remove .icon { width: 1rem; height: 1rem; }
.cart-edit__warning { padding-left: calc(56px + var(--sp-3)); color: var(--error); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.cart-edit__more { margin-top: var(--sp-4); }

.mode-choice { display: grid; gap: var(--sp-3); }
@media (min-width: 600px) { .mode-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode-option label {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px var(--sp-3); align-items: start;
  height: 100%;
  padding: var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.mode-option .icon { grid-row: span 2; width: 1.5rem; height: 1.5rem; color: var(--green); margin-top: 2px; }
.mode-option__name { font-weight: var(--fw-bold); color: var(--green); }
.mode-option__price { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mode-option__detail { grid-column: 2 / -1; font-size: var(--fs-small); color: var(--ink-muted); }
.mode-option input:checked + label { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.mode-option input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 3px; }
.mode-fields { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); }
.contact-fields { display: grid; gap: var(--sp-5); }
.checkout__aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 960px) { .checkout__aside { position: sticky; top: calc(var(--header-h) + var(--sp-5)); } }
.checkout__legal { font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; }
.submit-zone { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.form-error { margin-top: var(--sp-3); }

/* ================= Confirmation ================= */
.confirm { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); max-width: 640px; margin-inline: auto; }
.confirm__head { display: grid; justify-items: center; gap: var(--sp-3); text-align: center; padding-top: var(--sp-7); }
.confirm__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white); }
.confirm__check .icon { width: 32px; height: 32px; }
.confirm__number {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--sh-1);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--green);
}
.confirm__whatsapp { display: grid; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 2px var(--orange), var(--sh-1); }
.confirm__whatsapp p { color: var(--ink-muted); }
.next-steps { display: grid; gap: var(--sp-4); padding: 0; }
.next-step { display: grid; grid-template-columns: 32px 1fr; gap: var(--sp-3); }
.next-step__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: var(--fw-bold); font-size: var(--fs-small); }
.next-step--done .next-step__dot { background: var(--green); color: var(--white); }
.next-step p { color: var(--ink-muted); font-size: var(--fs-small); }

/* ================= Suivi ================= */
.track { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); max-width: 640px; }
.timeline { display: grid; gap: 0; padding: 0; }
.timeline__item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-3); padding-bottom: var(--sp-5); }
.timeline__item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); }
.timeline__item--done .timeline__dot { border-color: var(--green); background: var(--green); }
.timeline__item--done::before { background: var(--green); }
.timeline__item--current .timeline__dot { border-color: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.timeline__label { font-weight: var(--fw-semibold); }
.timeline__item:not(.timeline__item--done):not(.timeline__item--current) .timeline__label { color: var(--ink-muted); font-weight: var(--fw-regular); }

/* ================= Page introuvable ================= */
.not-found { display: grid; justify-items: center; gap: var(--sp-4); padding-block: var(--sp-9); text-align: center; }
.not-found img { width: 140px; }

/* ================= Administration (squelette) ================= */
.admin-login { display: grid; place-items: center; min-height: 100dvh; padding: var(--sp-5); }
.admin-login__card { display: grid; gap: var(--sp-5); width: min(100%, 400px); padding: var(--sp-7) var(--sp-6); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--sh-2); }
.admin-login__card img { width: 72px; }
.mix-builder__intro { --stack: var(--sp-3); }
.sheet__titles { --stack: var(--sp-1); }

.antirobot:empty { display: none; }
.donnees-perso { margin-top: calc(-1 * var(--sp-2)); }
.confirm__secours { display: grid; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
