/* =========================================================
   Les Minoucheries — feuille de style
   ========================================================= */

:root {
  /* Couleurs reprises du logo « Made by Minouche » */
  --cream: #fdfaf3;
  --cream-2: #f5eddc;
  --gold: #d4be8f;        /* feuilles beige doré */
  --gold-light: #efe4c8;
  --berry: #d63f58;       /* baies rouges */
  --berry-dark: #b02c44;
  --pink: #f27aa0;        /* écriture rose */
  --pink-light: #fde6ee;
  --forest: #1d453d;      /* feuilles vert sapin */
  --forest-dark: #143029;
  --forest-soft: #4d675f;
  --leaf: #5f8a74;
  --white: #fffefb;
  --line: #ebe1cb;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(29, 69, 61, 0.25);
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-script: "Sacramento", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--forest);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--berry); margin-bottom: .8em;
}
.muted { color: var(--forest-soft); }
.small { font-size: .85rem; }
.center { text-align: center; }
.section-head { text-align: center; margin-bottom: 2.5rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--forest); color: var(--white); box-shadow: 0 6px 18px -6px rgba(29, 69, 61, .55); }
.btn--primary:hover { background: var(--berry); box-shadow: 0 6px 18px -6px rgba(214, 63, 88, .55); }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.btn--full { width: 100%; }
.icon-btn {
  background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--forest);
  width: 40px; height: 40px; border-radius: 50%;
}
.icon-btn:hover { background: var(--cream-2); }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 243, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__mark { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; flex-shrink: 0; box-shadow: 0 2px 8px rgba(29, 69, 61, .15); }
.logo__mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.logo__text { font-family: var(--font-script); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--pink); margin: 0; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--berry); transition: width .25s;
}
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn {
  position: relative; background: var(--forest); color: var(--cream); border: 0;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: transform .15s;
}
.cart-btn:hover { transform: scale(1.06); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; background: var(--berry); color: var(--white);
  font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--cream);
}
.cart-btn__count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.4); } }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--forest); margin: 5px 0; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 4vw, 3rem) 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero h1 em { font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--pink); font-size: 1.12em; line-height: .85; }
.hero__lead { font-size: 1.12rem; color: var(--forest-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }

.hero__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; width: 100%; max-width: 400px; justify-self: center; }
.hero__visual::before {
  content: ""; position: absolute; inset: 5%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cream-2), var(--gold-light));
}
.hero__logo {
  position: relative; width: 82%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 30px 50px -25px rgba(29, 69, 61, .5);
  animation: float 6s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Produits ---------- */
#productGrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
#productGrid .card__body { padding: 1.1rem 1.1rem 1.2rem; }
#productGrid .card__body h3 { font-size: 1.15rem; }
.products { padding: 5rem 0; background: var(--white); border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.filter {
  font: 500 .95rem var(--font-body); padding: .6em 1.3em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--forest); cursor: pointer;
  transition: .2s;
}
.filter:hover { border-color: var(--berry); }
.filter.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  animation: fadeUp .4s both;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card.is-hidden { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

.card__img {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 4.5rem;
  position: relative;
}
button.card__img { border: 0; width: 100%; cursor: zoom-in; font-family: inherit; color: inherit; overflow: hidden; }
.card__img > span[aria-hidden] { font-size: 6rem; line-height: 1; filter: drop-shadow(0 10px 12px rgba(29, 69, 61, .25)); }
.card__img > span[aria-hidden] { transition: transform .3s; }
.card__img:hover > span[aria-hidden] { transform: scale(1.12) rotate(-4deg); }
.card__img .pot {
  width: 56%; height: auto; margin-top: 8%; object-fit: contain; transition: transform .35s;
  filter: drop-shadow(0 14px 14px rgba(29, 69, 61, .28));
}
.card__img:hover .pot { transform: scale(1.07) rotate(-3deg); }
.info__img .pot { width: 74%; max-width: 240px; height: auto; filter: drop-shadow(0 18px 18px rgba(29, 69, 61, .3)); }
.cart-item__emoji .pot { width: 84%; height: auto; }
.card__hint {
  position: absolute; bottom: 12px; left: 50%; transform: translate(-50%, 8px);
  background: rgba(29, 69, 61, .85); color: var(--cream); font-size: .8rem; font-weight: 700;
  padding: .4em 1em; border-radius: 999px; white-space: nowrap; opacity: 0; transition: .25s;
}
.card__img:hover .card__hint, .card__img:focus-visible .card__hint { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .card__hint { opacity: 1; transform: translate(-50%, 0); } }
.card__tag {
  position: absolute; top: 12px; left: 12px; background: var(--white);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .35em .8em; border-radius: 999px; color: var(--berry);
}
.card__body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .3em; }
.card__desc { color: var(--forest-soft); font-size: .93rem; flex: 1; }
.card__meta { font-size: .82rem; color: var(--leaf); font-weight: 700; margin-bottom: 1rem; }
.sizes { display: flex; gap: .5rem; margin-bottom: 1rem; }
.size {
  flex: 1; font: 700 .85rem var(--font-body); padding: .5em .8em; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--forest-soft); cursor: pointer;
  transition: .2s;
}
.size:hover { border-color: var(--berry); color: var(--forest); }
.size.is-active { border-color: var(--pink); background: var(--pink-light); color: var(--berry-dark); }
.cart-item__size {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .1em .55em; margin-left: .2em;
  border-radius: 6px; background: var(--cream-2); color: var(--berry-dark); vertical-align: middle;
}
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.card__price { font-family: var(--font-title); font-size: 1.45rem; font-weight: 700; }
.add-btn {
  background: var(--forest); color: var(--white); border: 0; border-radius: 999px;
  padding: .65em 1.1em; font: 700 .9rem var(--font-body); cursor: pointer;
  transition: background .2s, transform .15s;
}
.add-btn:hover { background: var(--berry); }
.add-btn.added { background: var(--leaf); }

/* ---------- Levain ---------- */
.story { padding: 6rem 0; }
.story__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.story__text p { color: var(--forest-soft); }

.story__visual { position: relative; margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.story__photo {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 24px; box-shadow: 0 30px 50px -25px rgba(29, 69, 61, .5);
}
.story__badge {
  position: absolute; left: -18px; bottom: 32px; background: var(--white); color: var(--forest);
  font-weight: 700; font-size: .9rem; padding: .7em 1.2em; border-radius: 999px; box-shadow: var(--shadow);
}

/* ---------- Pots recyclés ---------- */
.eco { padding: 0 0 5rem; }
.eco__card {
  display: grid; grid-template-columns: 220px 1.4fr 1fr; gap: 2rem; align-items: center;
  background: #e7efe2; border: 1px solid #cfdccb; border-radius: 24px; padding: 2.4rem;
}
.eco__photo { position: relative; margin: 0; }
.eco__photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; display: block; }
.eco__icon {
  position: absolute; right: -14px; top: -14px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); display: grid; place-items: center; font-size: 1.9rem; box-shadow: var(--shadow);
}
.eco__text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.eco__text p:last-child { color: var(--forest-soft); margin: 0; }
.eco__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.eco__points li {
  display: flex; align-items: center; gap: .7rem; background: var(--white);
  border-radius: 12px; padding: .75rem 1rem; font-weight: 500; font-size: .95rem;
}
.eco__points span { font-size: 1.3rem; }

/* ---------- Commander ---------- */
.order { padding: 5rem 0; background: var(--forest); color: var(--cream); }
.order .eyebrow { color: var(--gold); }
.order__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.order__card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 2rem 1.6rem;
}
.order__card p { color: #d3ded9; margin: 0; }
.order__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--berry); font-family: var(--font-title); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.order__info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.order__info > div { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.2rem; }
.order__info p { color: #d3ded9; }
.order .muted { color: #9db3aa; }
.order__info a { color: var(--gold); }
.tarifs { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .3rem; max-width: 320px; }
.tarifs li { display: flex; justify-content: space-between; color: #d3ded9; border-bottom: 1px dashed rgba(255, 255, 255, .15); padding-bottom: .3rem; }
.tarifs strong { color: var(--white); }

/* ---------- Galerie ---------- */
.gallery { padding: 6rem 0 2rem; }
.section-head p.muted { max-width: 34em; margin: 0 auto; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px;
  grid-auto-flow: dense; gap: 14px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: 16px; border: 0; padding: 0;
  background: var(--ph); cursor: zoom-in; font: inherit; color: inherit;
}
.gallery__item.tall { grid-row: span 2; }
.gallery__item.wide { grid-column: span 2; }
.gallery__item.big { grid-column: span 2; grid-row: span 2; }
.gallery__item img, .gallery__item video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .4s, transform .5s;
}
.gallery__item.is-loaded img, .gallery__item.is-loaded video { opacity: 1; }
.gallery__item.is-loaded .gallery__placeholder { display: none; }
.gallery__item:hover img, .gallery__item:hover video { transform: scale(1.06); }
.gallery__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .4rem;
  transition: transform .4s;
}
.gallery__placeholder span { font-size: 3.4rem; line-height: 1; }
.gallery__placeholder small { font-size: .78rem; font-weight: 700; color: var(--forest-soft); text-transform: uppercase; letter-spacing: .1em; }
.gallery__item:hover .gallery__placeholder { transform: scale(1.06); }
.gallery__play {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--berry); display: grid; place-items: center;
  font-size: .8rem; padding-left: 2px; box-shadow: 0 2px 8px rgba(29, 69, 61, .2);
}
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; text-align: left;
  background: linear-gradient(transparent, rgba(20, 48, 41, .8)); color: var(--white);
  font-size: .88rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery__item:hover .gallery__caption, .gallery__item:focus-visible .gallery__caption { opacity: 1; transform: none; }
.gallery__cta { text-align: center; margin-top: 2.5rem; }
.btn--insta {
  color: var(--white);
  background: linear-gradient(45deg, #f2a65a, var(--berry), var(--pink), #9b5de5);
  background-size: 200% 200%; background-position: 0% 50%;
  transition: background-position .5s, transform .15s;
}
.btn--insta:hover { background-position: 100% 50%; }

/* Visionneuse */
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(20, 48, 41, .94);
  display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure { margin: 0; max-width: min(900px, 100%); display: grid; gap: .8rem; justify-items: center; }
.lightbox__media img, .lightbox__media video {
  display: block; max-width: 100%; max-height: 78vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.lightbox__placeholder {
  width: min(520px, 80vw); aspect-ratio: 4 / 5; border-radius: 14px;
  display: grid; place-content: center; text-align: center; gap: .6rem;
}
.lightbox__placeholder span { font-size: 6rem; line-height: 1; }
.lightbox__placeholder small { font-weight: 700; color: var(--forest-soft); text-transform: uppercase; letter-spacing: .1em; }
.lightbox__caption { color: var(--cream); font-size: .95rem; text-align: center; }
.lightbox__btn {
  background: rgba(255, 255, 255, .12); color: var(--white); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; flex-shrink: 0; transition: background .2s;
}
.lightbox__btn:hover { background: var(--berry); }
.lightbox__close { position: absolute; top: 18px; right: 18px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact { padding: 6rem 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact__text > p { color: var(--forest-soft); }
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; font-weight: 500; }
.contact__list a { text-decoration: none; border-bottom: 1.5px solid var(--berry); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: grid; gap: 1.1rem; box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--forest);
  padding: .8em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px rgba(214, 63, 88, .15);
}
.form__hp { position: absolute; left: -9999px; }
.form .invalid { border-color: #c0392b; }
.form textarea { resize: vertical; }
.form__feedback { margin: 0; min-height: 1.4em; font-weight: 500; text-align: center; }
.form__feedback.ok { color: var(--leaf); }
.form__feedback.err { color: #c0392b; }

/* ---------- Pied de page ---------- */
.footer { background: var(--gold-light); padding: 3rem 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer__inner p { margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { text-decoration: none; font-weight: 500; }
.footer__nav a:hover { color: var(--berry); }

/* ---------- Panier ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(29, 69, 61, .45); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: min(400px, 100%);
  background: var(--cream); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -10px 0 40px rgba(29, 69, 61, .2);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart__head h3 { margin: 0; }
.cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.cart__items { padding: 1rem 1.5rem; }

/* Livraison */
.delivery { border: 0; margin: 0; padding: 0 1.5rem 1.5rem; display: grid; gap: .6rem; }
.delivery[hidden] { display: none; }
.delivery legend { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; margin-bottom: .6rem; padding: 0; }
.delivery__opt {
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem .9rem;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.delivery__opt:has(input:checked) { border-color: var(--forest); background: #f1f5f2; }
.delivery__opt.is-disabled { opacity: .5; cursor: not-allowed; }
.delivery__opt input { accent-color: var(--forest); width: 18px; height: 18px; margin: 0; }
.delivery__txt { display: grid; line-height: 1.3; }
.delivery__txt strong { font-size: .95rem; }
.delivery__txt small { color: var(--forest-soft); font-size: .8rem; }
.delivery__fee { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.delivery__warn a { color: inherit; font-weight: 700; }
.delivery__warn { margin: 0; font-size: .82rem; color: var(--berry-dark); background: var(--pink-light); border-radius: 10px; padding: .6rem .8rem; }
.relay { display: grid; gap: .5rem; }
.relay[hidden] { display: none; }
.relay__chosen { background: var(--white); border: 1px dashed var(--leaf); border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; line-height: 1.45; }
.relay__btn {
  font: 700 .9rem var(--font-body); color: var(--forest); background: var(--gold-light);
  border: 1.5px solid var(--gold); border-radius: 999px; padding: .7em 1em; cursor: pointer; transition: background .2s;
}
.relay__btn:hover { background: var(--gold); }

/* Fenêtre point relais */
#relayOverlay { z-index: 120; }
.relay-modal {
  position: fixed; left: 50%; top: 50%; z-index: 125; width: min(900px, calc(100% - 24px));
  height: min(680px, calc(100% - 24px)); background: var(--cream); border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(29, 69, 61, .5);
  opacity: 0; pointer-events: none; transform: translate(-50%, -48%); transition: opacity .25s, transform .3s;
}
.relay-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.relay-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.relay-modal__head h3 { margin: 0; }
.relay-modal__body { flex: 1; overflow: auto; padding: 1rem; background: var(--white); }
.relay-modal__status { text-align: center; color: var(--forest-soft); padding: 2rem 1rem; margin: 0; }
.cart__empty { text-align: center; color: var(--forest-soft); padding: 3rem 0; }
.cart__empty div { font-size: 3rem; margin-bottom: .5rem; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.cart-item__emoji { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 2rem; }
.cart-item__name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.cart-item__price { font-size: .85rem; color: var(--forest-soft); }
.qty { display: flex; align-items: center; gap: .3rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.qty button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 1rem; color: var(--forest); }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart__foot {
  padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--white);
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.2rem; row-gap: .55rem;
}
.cart__foot .btn { width: 100%; }
.cart__recap { margin: 0 1.5rem 1.5rem; padding: .8rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: .35rem; }
.cart__recap[hidden] { display: none; }
.cart__foot p { margin: 0; }
.cart__line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--forest-soft); }
.cart__secure { grid-column: 1 / -1; margin: 0; text-align: center; font-size: .74rem; color: var(--forest-soft); }
.cart__total { display: grid; line-height: 1.1; }
.cart__total span { font-size: .78rem; color: var(--forest-soft); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.cart__total strong { font-family: var(--font-title); font-size: 1.5rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Fiche composition ---------- */
.info {
  position: fixed; left: 50%; top: 50%; z-index: 110;
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px);
  background: var(--cream); border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px -20px rgba(29, 69, 61, .5);
  opacity: 0; pointer-events: none; transform: translate(-50%, -46%) scale(.97);
  transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.info.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
#infoOverlay { z-index: 105; }
.info__close { position: absolute; top: 12px; right: 12px; background: var(--white); z-index: 1; }
.info__body { display: grid; grid-template-columns: 240px 1fr; overflow-y: auto; }
.info__img { display: grid; place-items: center; font-size: 8rem; min-height: 220px; }
.info__content { padding: 2rem 2rem 1rem; }
.info__content h3 { font-size: 1.6rem; padding-right: 2rem; }
.info__content h4 {
  font-family: var(--font-body); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--berry); margin: 1.3rem 0 .4rem;
}
.info__content p { margin: 0; }
.info__ingredients { line-height: 1.7; }
.info__story { color: var(--forest-soft); line-height: 1.65; }
.nutrition { width: 100%; border-collapse: collapse; font-size: .9rem; }
.nutrition th, .nutrition td { padding: .35rem 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 500; }
.nutrition td { text-align: right; font-weight: 700; white-space: nowrap; }
.nutrition tr.sub th { padding-left: 1rem; font-weight: 400; color: var(--forest-soft); }
.info__ingredients strong { color: var(--berry-dark); }
.info__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-size: .8rem; font-weight: 700; padding: .3em .8em; border-radius: 999px;
  background: var(--pink-light); color: var(--berry-dark); border: 1px solid #f6c4d4;
}
.info__note {
  margin-top: 1.3rem !important; background: var(--white); border: 1px dashed var(--line);
  border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; color: var(--leaf); font-weight: 500;
}
.info__foot { padding: 1rem 2rem 1.4rem; border-top: 1px solid var(--line); background: var(--white); }
@media (max-width: 640px) {
  .info__body { grid-template-columns: 1fr; }
  .info__img { min-height: 170px; font-size: 6rem; }
  .info__content { padding: 1.4rem 1.3rem .8rem; }
  .info__foot { padding: 1rem 1.3rem 1.2rem; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px);
  background: var(--forest); color: var(--cream); padding: .9em 1.5em; border-radius: 999px;
  font-weight: 500; z-index: 200; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner, .story__inner, .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { max-width: 260px; margin-inline: auto; width: 100%; }
  .story__visual { order: -1; }
  .order__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .eco__card { grid-template-columns: 1fr; gap: 1.3rem; padding: 1.8rem 1.4rem; }
  .eco__photo { max-width: 260px; }
  .story__badge { left: 12px; }
  .gallery__grid { grid-auto-rows: 190px; }
}
@media (max-width: 760px) {
  .logo__text { font-size: 1.6rem; white-space: nowrap; }
  .logo__mark { width: 42px; height: 42px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .gallery__caption { opacity: 1; transform: none; font-size: .78rem; padding: 1.6rem .7rem .6rem; }
  .lightbox { padding: 16px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .burger { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav.is-open { max-height: 440px; }
  .nav a { padding: 1rem 16px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .form__row, .order__info,   .form { padding: 1.4rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Page de remerciement ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px; }
.thanks__card {
  max-width: 560px; text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: 24px; padding: 2.5rem 2rem; box-shadow: var(--shadow);
}
.thanks__logo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.2rem; box-shadow: var(--shadow); }
.thanks h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.thanks h1 em { display: block; font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--pink); font-size: 1.2em; }
.thanks__steps { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; text-align: left; }
.thanks__steps li { background: var(--cream); border-radius: 12px; padding: .8rem 1rem; font-size: .95rem; }

/* ---------- Pages légales ---------- */
.legal { padding: 4rem 0 5rem; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 2rem; }
.legal section {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; margin-bottom: 1.2rem;
}
.legal h2 { font-size: 1.3rem; }
.legal p:last-child, .legal ul:last-child { margin-bottom: 0; }
.legal a { color: var(--berry); }
.legal ul { padding-left: 1.2rem; }
.legal__back { padding: .55em 1.1em; font-size: .9rem; }
.todo { background: var(--pink-light); color: var(--berry-dark); font-weight: 700; padding: 0 .3em; border-radius: 4px; }

.footer__legal { display: grid; gap: .2rem; }
.footer__credit a { color: var(--berry); text-decoration: none; border-bottom: 1px solid currentColor; }
.legal__intro { margin-bottom: 1.5rem; color: var(--forest-soft); }
.legal__annex { background: var(--cream-2) !important; }
.cart__secure a { color: inherit; text-decoration: underline; }
.form__privacy { margin: 0; text-align: center; }
.form__privacy a { color: inherit; text-decoration: underline; }

/* Page bloquée derrière un panneau ouvert (panier, fiche, galerie…) */
html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- Panier sur téléphone ---------- */
@media (max-width: 760px) {
  /* tout le panier défile d'un bloc ; en-tête et barre de paiement restent visibles */
  .cart { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .cart__head { position: sticky; top: 0; z-index: 2; background: var(--cream); padding: .9rem 1.2rem; }
  .cart__body { flex: 1 0 auto; overflow: visible; }
  .cart__items { padding: .6rem 1.2rem; }
  .delivery { padding: 0 1.2rem 1rem; }
  .cart__recap { margin: 0 1.2rem 1.2rem; }
  .cart__foot {
    position: sticky; bottom: 0; z-index: 2; column-gap: 1rem; row-gap: .4rem;
    padding: .7rem 1.2rem calc(.6rem + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 24px -14px rgba(29, 69, 61, .35);
  }
  .cart__total strong { font-size: 1.35rem; }
  .cart__foot .btn { padding: .75em 1em; }
  .cart__secure { font-size: .68rem; }
  .cart-item { padding: .7rem 0; gap: .7rem; grid-template-columns: 46px 1fr auto; }
  .cart-item__emoji { width: 46px; height: 46px; }
  /* notification en haut de l'écran pour ne pas masquer le bouton Payer */
  .toast { top: 12px; bottom: auto; transform: translate(-50%, -140%); }
  .toast.is-show { transform: translate(-50%, 0); }
}
