/* =========================================================
   Page d'accueil V2 (esquisse du 24/10)
   Les couleurs et polices viennent de style.css et de l'onglet Apparence (/theme.css).
   Les bandes en vague prennent la couleur « Fond des blocs clairs » (--bg-alt).
   ========================================================= */
.btn--pill { border-radius: 999px; }
.btn--pill svg { width: 15px; height: 15px; }

/* ---------- Espacements des sections ---------- */
.hsec { padding-top: 72px; }
.hsec[data-home="circles"] { padding-top: 0; }
.home > .hsec:last-child { padding-bottom: 90px; }
.home > .hsec[data-home="newsletter"]:last-child { padding-bottom: 0; }
.hsec__head { margin-bottom: 32px; }
.hsec__head h2 { font-size: clamp(34px, 4vw, 48px); margin: 0; }
.hsec__head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hsec__head--center .eyebrow { margin-bottom: 8px; }
.hsec__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hsec__head--row h2 { font-size: clamp(30px, 3.2vw, 40px); }

/* ---------- Bandes colorées aux bords en vague ---------- */
.hband { background: var(--bg-alt); }
.hwave { display: block; width: 100%; height: clamp(28px, 4.8vw, 70px); color: var(--bg-alt); }
.hwave path { fill: currentColor; }
.hwave--footer { background: var(--footer-bg, var(--navbar-bg)); }
.hband .eyebrow, .hband .link-arrow { color: var(--text); }

/* ---------- 3. Grande photo : texte à droite (ou à gauche / centré) ---------- */
.home .slideshow { height: min(78vh, 660px); }
.home .slide { align-items: center; }
.home .slide__content { width: 100%; display: flex; flex-direction: row; padding-top: 60px; padding-bottom: 70px; align-items: center; }
.home .slide__text { max-width: 500px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.home .slide--right .slide__content { justify-content: flex-end; }
.home .slide--left .slide__content { justify-content: flex-start; }
.home .slide--center .slide__content { justify-content: center; }
.home .slide--center .slide__text { align-items: center; text-align: center; }
.home .slide--right { background-image: linear-gradient(270deg, rgba(20,18,16,.5), rgba(20,18,16,0) 65%), var(--img, none),
  radial-gradient(circle at 25% 30%, rgba(255,255,255,.45), transparent 55%), linear-gradient(140deg, var(--c1), var(--c2)); }
.home .slide--left { background-image: linear-gradient(90deg, rgba(20,18,16,.5), rgba(20,18,16,0) 65%), var(--img, none),
  radial-gradient(circle at 75% 30%, rgba(255,255,255,.45), transparent 55%), linear-gradient(140deg, var(--c1), var(--c2)); }
.home .slide__title { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; margin: 0 0 14px; }
.home .slide__sub { margin: 0 0 26px; max-width: 420px; color: rgba(250,247,243,.9); font-size: 16px; }
.home .slide { align-items: stretch; }
.home .slide[data-v="top"] .slide__content { align-items: flex-start; padding-top: 70px; }
.home .slide[data-v="bottom"] .slide__content { align-items: flex-end; padding-bottom: 100px; }
.home .slide--center[data-v="top"] { background-image: linear-gradient(180deg, rgba(20,18,16,.5), rgba(20,18,16,0) 65%), var(--img, none),
  radial-gradient(circle at 75% 30%, rgba(255,255,255,.45), transparent 55%), linear-gradient(140deg, var(--c1), var(--c2)); }
.home .slide--center[data-v="middle"] { background-image: linear-gradient(rgba(20,18,16,.3), rgba(20,18,16,.3)), var(--img, none),
  radial-gradient(circle at 75% 30%, rgba(255,255,255,.45), transparent 55%), linear-gradient(140deg, var(--c1), var(--c2)); }
.home .slide[data-btn="left"] .slide__text .btn { align-self: flex-start; }
.home .slide[data-btn="center"] .slide__text .btn { align-self: center; }
.home .slide[data-btn="right"] .slide__text .btn { align-self: flex-end; }
.home .slide__content { position: relative; }
/* Bouton placé librement sur la photo (indépendant du texte) */
.home .slide__cta { position: absolute; inset: 0; padding: inherit; padding-bottom: 100px; display: none; pointer-events: none; justify-content: flex-end; align-items: flex-end; }
.home .slide__cta .btn { pointer-events: auto; }
.home .slide[data-btn="free"] .slide__cta { display: flex; }
.home .slide[data-btn="free"] .slide__text .btn { display: none; }
.home .slide[data-bh="left"] .slide__cta { justify-content: flex-start; }
.home .slide[data-bh="center"] .slide__cta { justify-content: center; }
.home .slide[data-bv="top"] .slide__cta { align-items: flex-start; }
.home .slide[data-bv="middle"] .slide__cta { align-items: center; }
.slide.is-active .slide__content > .slide__cta { transition-delay: .45s; }

/* ---------- 4. Titre en bande + images rondes ---------- */
.hband--title { padding-top: 46px; }
.hband--title .hsec__head { margin: 0; }
.hcircles { display: flex; justify-content: center; gap: clamp(20px, 3.5vw, 48px); padding: 10px 0 4px; }
.hcircle { flex: none; width: 170px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-weight: 500; }
.hcircle__pic { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 6px solid var(--bg); box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .3s; }
.hcircle:hover .hcircle__pic { transform: scale(1.04); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- 5. Pastilles + carrousel de produits ---------- */
.hpills { display: inline-flex; gap: 4px; padding: 4px; margin-top: 18px; border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: 999px; background: var(--bg); max-width: 100%; }
.hpill { border-radius: 999px; padding: 10px 22px; font-size: 13px; letter-spacing: .04em; white-space: nowrap; color: var(--text); transition: background .2s, color .2s; }
.hpill:hover { background: color-mix(in srgb, var(--bg-alt) 60%, transparent); }
.hpill.is-active { background: var(--bg-alt); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
.hpills--fill { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 0; }
.hpills--fill .hpill { padding: 10px 6px; }
.hpills--fill .hpill.is-active { background: var(--bg-alt); color: var(--text); }
.htabs__head { position: relative; }
.harrows { position: absolute; right: 0; bottom: 4px; display: flex; gap: 8px; }
.harrows[hidden] { display: none; }
.harrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--text) 35%, transparent); background: var(--bg-alt); color: var(--text); transition: opacity .2s, background .2s; }
.harrow svg { width: 18px; height: 18px; }
.harrow:not(:disabled):hover { background: var(--accent); color: var(--accent-text); }
.harrow:disabled { opacity: .35; cursor: default; }
.hcar { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); column-gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.hcar::-webkit-scrollbar { display: none; }
.hcar > * { scroll-snap-align: start; }

/* ---------- 6. Grand bloc texte + 3 images (bande en vague) ---------- */
.hband .hedito { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 64px; align-items: center; padding: 26px 0 34px; }
.hedito__text h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; margin: 0 0 14px; }
.hedito__text p { color: var(--muted); margin: 0 0 22px; }
.hedito__pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hedito__pic { overflow: hidden; }
.hedito__img { display: block; width: 100%; aspect-ratio: 3 / 4.6; object-fit: cover; border-radius: 12px; transition: transform .8s var(--ease); }
.hedito__pic:hover .hedito__img { transform: scale(1.03); }
.hedito__pic span { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; }

/* ---------- 7. Deux blocs côte à côte ---------- */
.hduo { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 22px; }
.hduo--one { grid-template-columns: 1fr; }
.hduo__card { position: relative; min-height: 470px; border-radius: 18px; overflow: hidden; padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; align-items: flex-start; color: #fff;
  background-image: linear-gradient(180deg, rgba(20,18,16,.4), rgba(20,18,16,0) 55%), var(--img, none), radial-gradient(circle at 70% 70%, rgba(255,255,255,.35), transparent 55%), linear-gradient(145deg, var(--c1), var(--c2));
  background-size: cover; background-position: var(--pos, center); transition: transform .4s var(--ease); }
.hduo__card:hover { transform: translateY(-3px); }
.hduo__card .eyebrow { color: rgba(255,255,255,.9); margin-bottom: 10px; }
.hduo__card h2 { color: #fff; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; margin: 0 0 12px; max-width: 460px; }
.hduo__card:nth-child(2) h2 { font-size: clamp(28px, 2.8vw, 40px); }
.hduo__card p { color: rgba(255,255,255,.92); margin: 0; max-width: 420px; }
.hduo__card .btn { margin-top: auto; align-self: flex-end; }

/* ---------- 8. Routine : une photo par étape, en fondu ---------- */
.hroutine { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; }
.hroutine__media { position: relative; min-height: 560px; border-radius: 18px; overflow: hidden; background: var(--bg-alt); }
.hroutine__photo { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease);
  background-image: var(--img, none), radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 55%), linear-gradient(150deg, var(--c1), var(--c2));
  background-size: cover; background-position: var(--pos, center); }
.hroutine__photo.is-active { opacity: 1; transform: none; }
.hroutine__progress { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 22px; display: flex; align-items: center; gap: 16px; color: #fff;
  background: linear-gradient(0deg, rgba(20,18,16,.45), rgba(20,18,16,0)); }
.hroutine__now { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.hroutine__bars { flex: 1; display: flex; gap: 6px; }
.hroutine__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); transition: background .3s; }
.hroutine__bars i.is-on { background: #fff; }
.hroutine__panel { border-radius: 18px; background: var(--bg-alt); padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 22px; min-width: 0; }
.hroutine__panel .hsec__head { margin: 0; }
.hroutine__panel .eyebrow { color: var(--text); }
.hroutine__card { display: none; }
.hroutine__card.is-active { display: block; animation: hfade .35s var(--ease); }
.hroutine .mini__pic { width: 112px; }
@keyframes hfade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Petite fiche produit (routine + indispensables) ---------- */
.mini { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: border-color .2s; }
.mini:hover { border-color: var(--text); }
.mini__pic { width: 96px; flex: none; border-radius: 10px; overflow: hidden; }
.mini__pic .ph, .mini__pic img { aspect-ratio: 1 / 1; }
.mini__pic .ph span { display: none; }
.mini__info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini__title { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.mini__step { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mini .rating b { letter-spacing: .06em; }
.mini__add { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background .2s, color .2s; }
.mini__add:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ---------- 9. Les indispensables ---------- */
.hminis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hminis > :nth-child(n+4) { display: none; }

/* ---------- 10. Newsletter en bande en vague, qui descend dans le bas de page ---------- */
.hband--news .hnews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 22px 0 30px; }
.hnews__text { display: flex; flex-direction: column; gap: 14px; }
.hnews__text .eyebrow { margin: 0; }
.hnews__text h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.04; margin: 0; }
.hnews__text p { color: var(--muted); margin: 0; max-width: 440px; }
.hnews__text small { color: var(--muted); font-size: 12px; }
.hnews__text small a { text-decoration: underline; }
.hnews__form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; max-width: 500px; }
.hnews__form input { flex: 1; min-width: 200px; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); background: #fff; color: var(--text); font: inherit; outline: none; }
.hnews__form input:focus { border-color: var(--text); }
.hnews__form .btn { height: 52px; padding: 0 26px; }
.hnews__media { height: 380px; border-radius: 18px; background-image: var(--img, none), radial-gradient(circle at 70% 30%, rgba(255,255,255,.35), transparent 55%), linear-gradient(150deg, var(--c1), var(--c2)); background-size: cover; background-position: var(--pos, center); }
/* La vague de la newsletter touche directement le bas de page */
body[data-page="home"] .footer { margin-top: -1px; }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1100px) {
  .hband .hedito { grid-template-columns: 1fr; gap: 32px; }
  .hminis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hminis > :nth-child(3) { display: none; }
  .hcar { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .hsec { padding-top: 44px; }
  .home > .hsec:last-child { padding-bottom: 48px; }
  .hsec__head { margin-bottom: 18px; }
  .hsec__head h2 { font-size: 32px; }
  .hsec__head--row h2 { font-size: 28px; }

  /* Photo du haut : format téléphone, position du texte réglable (en bas par défaut) */
  .home .slideshow { height: auto; }
  .home .slide.slide--right, .home .slide.slide--left, .home .slide.slide--center {
    --shade: linear-gradient(0deg, rgba(20,18,16,.65), rgba(20,18,16,0) 60%);
    background-image: var(--shade), var(--img-m, var(--img, none)),
      radial-gradient(circle at 75% 30%, rgba(255,255,255,.45), transparent 55%), linear-gradient(140deg, var(--c1), var(--c2));
    background-position: var(--pos-m, var(--pos, center)); }
  .home .slide.slide[data-mv="top"] { --shade: linear-gradient(180deg, rgba(20,18,16,.65), rgba(20,18,16,0) 60%); }
  .home .slide.slide[data-mv="middle"] { --shade: linear-gradient(rgba(20,18,16,.38), rgba(20,18,16,.38)); }
  .home .slide[data-v] .slide__content { flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 28px 20px 56px; }
  .home .slide[data-v][data-mv="top"] .slide__content { justify-content: flex-start; padding-top: 32px; }
  .home .slide[data-v][data-mv="middle"] .slide__content { justify-content: center; }
  .home .slide .slide__text { max-width: none; width: 100%; align-items: flex-start; text-align: left; }
  .home .slide[data-mh="center"] .slide__text { align-items: center; text-align: center; }
  .home .slide[data-mh="right"] .slide__text { align-items: flex-end; text-align: right; }
  .home .slide__title { font-size: 38px; margin-bottom: 10px; }
  .home .slide__sub { font-size: 14px; margin-bottom: 18px; }
  .home .slide[data-btn] .slide__text .btn { align-self: auto; width: auto; }
  .home .slide[data-btn][data-btnm="full"] .slide__text .btn { align-self: stretch; width: 100%; justify-content: center; }
  .home .slide[data-btn][data-btnm="left"] .slide__text .btn { align-self: flex-start; }
  .home .slide[data-btn][data-btnm="center"] .slide__text .btn { align-self: center; }
  .home .slide[data-btn][data-btnm="right"] .slide__text .btn { align-self: flex-end; }
  .home .slide[data-btn] .slide__cta { display: none; padding-bottom: 56px; justify-content: center; align-items: flex-end; }
  .home .slide[data-btn] .slide__text .btn { display: inline-flex; }
  .home .slide[data-btn][data-btnm="free"] .slide__cta { display: flex; }
  .home .slide[data-btn][data-btnm="free"] .slide__text .btn { display: none; }
  .home .slide[data-btn][data-bmh="left"] .slide__cta { justify-content: flex-start; }
  .home .slide[data-btn][data-bmh="right"] .slide__cta { justify-content: flex-end; }
  .home .slide[data-btn][data-bmv="top"] .slide__cta { align-items: flex-start; }
  .home .slide[data-btn][data-bmv="middle"] .slide__cta { align-items: center; }

  .hband--title { padding-top: 32px; }
  .hcircles { justify-content: flex-start; gap: 14px; overflow-x: auto; margin: 0 -24px; padding: 6px 24px 4px; scrollbar-width: none; }
  .hcircles::-webkit-scrollbar { display: none; }
  .hcircle { width: 84px; gap: 8px; font-size: 12px; font-weight: 400; line-height: 1.2; }
  .hcircle__pic { width: 80px; height: 80px; border-width: 4px; }

  .hpills { overflow-x: auto; scrollbar-width: none; }
  .hpills::-webkit-scrollbar { display: none; }
  .hpill { padding: 0 14px; height: 38px; font-size: 12px; }
  .hpills--fill .hpill { padding: 0 4px; }
  /* Flèches sous les pastilles, à droite ; deux produits et demi visibles */
  .harrows { position: static; align-self: flex-end; margin-top: 12px; }
  .harrow { width: 40px; height: 40px; }
  .hcar { grid-auto-columns: 44%; column-gap: 12px; margin: 0 -24px; padding: 0 24px 4px; scroll-padding: 0 24px; }

  .hband .hedito { padding: 10px 0 18px; }
  .hedito__text h2 { font-size: 36px; }
  .hedito__pics { display: flex; gap: 12px; overflow-x: auto; margin: 0 -24px; padding: 0 24px; scrollbar-width: none; }
  .hedito__pics::-webkit-scrollbar { display: none; }
  .hedito__pic { flex: none; width: 58vw; max-width: 240px; }

  .hduo { grid-template-columns: 1fr; gap: 14px; }
  .hduo__card { min-height: 320px; border-radius: 16px; }
  .hduo__card:nth-child(2) { min-height: 240px; }
  .hduo__card h2 { font-size: 32px; }
  .hduo__card:nth-child(2) h2 { font-size: 30px; }
  .hduo__card .btn { align-self: flex-start; padding: 12px 22px; }

  .hroutine { grid-template-columns: 1fr; gap: 0; }
  .hroutine__media { min-height: 380px; border-radius: 16px 16px 0 0; }
  .hroutine__progress { flex-direction: column; align-items: stretch; gap: 8px; padding: 30px 16px 16px; }
  .hroutine__panel { border-radius: 0 0 16px 16px; padding: 22px 16px 18px; gap: 16px; }
  .hroutine .mini__pic { width: 84px; }

  .hminis { display: flex; gap: 12px; overflow-x: auto; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .hminis::-webkit-scrollbar { display: none; }
  .hminis > * { flex: none; width: 290px; }
  .hminis > :nth-child(n) { display: flex; }
  .mini { padding: 10px; gap: 12px; }
  .mini__pic { width: 78px; }
  .mini__title { font-size: 18px; }

  .hband--news .hnews { grid-template-columns: 1fr; gap: 18px; padding: 10px 0 20px; }
  .hnews__media { order: -1; height: 200px; border-radius: 14px; }
  .hnews__text h2 { font-size: 34px; }
  .hnews__form { flex-direction: column; }
  .hnews__form input { flex: none; height: 50px; min-width: 0; width: 100%; box-sizing: border-box; }
  .hnews__form .btn { height: 50px; }
}
@media (max-width: 520px) {
  .hcircles, .hedito__pics, .hminis, .hcar { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .hcar { scroll-padding: 0 16px; }
}
