/* Extras spécifiques à la page d'accueil.
   S'appuie sur les tokens et composants déjà définis dans site.css
   (mêmes rayons ~8px, mêmes ombres légères) pour rester cohérent
   avec le reste du site. */

:root {
  --accent-orange: #e78b38;
  --accent-violet: #6557d8;
}

/* --- Hero : dégradé et arcs de cloche --- */
.hero-home { position: relative; overflow: hidden; isolation: isolate; }
.hero-home::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 22%, rgba(217,140,59,.3), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(79,124,92,.5), transparent 34%),
    radial-gradient(circle at 66% 82%, rgba(176,137,104,.18), transparent 30%);
  filter: blur(6px);
}
.hero-home::after {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 58% at 88% 18%, transparent 61%, rgba(248,244,236,.13) 61.4%, rgba(248,244,236,.13) 64.2%, transparent 64.6%),
    radial-gradient(ellipse 26% 46% at 10% 74%, transparent 58%, rgba(217,140,59,.13) 58.5%, rgba(217,140,59,.13) 61.2%, transparent 61.8%),
    radial-gradient(ellipse 42% 68% at 58% 38%, transparent 66%, rgba(255,255,255,.07) 66.4%, rgba(255,255,255,.07) 68%, transparent 68.4%);
  background-size: 100% 100%;
  opacity: .82;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.92) 64%, transparent 96%);
}
.hero-home .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; }
.mark { color: var(--green); }
#word { display: inline-block; color: var(--gold); transition: opacity .25s ease, transform .25s ease; }
.hero-promise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 900;
}
.hero-promise::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(217,140,59,.18);
}

/* --- Widget "fiche technique" animé --- */
.hero-visual { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: flex-end; }
.widget {
  position: relative;
  width: min(360px, 100%);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.widget-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.widget-title { font-weight: 850; color: var(--green-dark); }
.widget-tag { font-size: .66rem; font-weight: 900; color: #7a5b1c; background: var(--gold-soft); padding: 4px 8px; border-radius: 999px; }
.widget-cols, .widget-row { display: grid; grid-template-columns: 1fr 55px 70px; gap: 8px; padding: 8px 18px; }
.widget-cols { font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fbf7ef; }
.widget-row { font-size: .83rem; color: #4d4a42; opacity: 0; transform: translateY(5px); transition: .32s; }
.widget-row.v { opacity: 1; transform: translateY(0); }
.widget-row span:last-child, .widget-cols span:last-child { text-align: right; }
.widget-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); background: linear-gradient(180deg, #fff, #f7fbf8); }
.widget-summary { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .86rem; opacity: 0; transition: .3s; }
.widget-summary + .widget-summary { margin-top: 5px; }
.widget-summary.v { opacity: 1; }
.widget-summary.hi { color: var(--green-dark); font-size: 1rem; font-weight: 900; }
.widget-summary.hi .widget-value { font-size: 1.35rem; color: var(--green); }
.widget-dots { display: flex; gap: 6px; padding: 0 18px 16px; }
.widget-dot { width: 7px; height: 7px; border-radius: 50%; background: #d9d1c3; }
.widget-dot.a { background: var(--green); }

/* --- Bandeau de confiance sous le hero --- */
.trust-grid { margin-top: -30px; }

/* --- Aperçu produit : bannière avec onglets, un écran affiché en entier à la fois --- */
.showcase-viewer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 12px 34px rgba(28, 48, 32, .07);
}
.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.showcase-tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: .18s ease;
}
.showcase-tab:hover { background: var(--green-soft); }
.showcase-tab.active { background: var(--green-soft); border-color: rgba(79, 124, 92, .3); }
.showcase-tab-num { font-weight: 900; font-size: .82rem; color: var(--muted); flex: 0 0 auto; }
.showcase-tab.active .showcase-tab-num { color: var(--green); }
.showcase-tab strong { display: block; font-size: .95rem; margin-bottom: 3px; }
.showcase-tab small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.showcase-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f8f4ec, #f1ece0);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.showcase-image {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 99.5%;
  max-height: 99.5%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(28, 48, 32, .16);
  opacity: 0;
  transition: opacity .45s ease;
}
.showcase-image.active { opacity: 1; }

/* --- Aperçu en vidéo (30/09) : clips muets de l'app dans un cadre de téléphone --- */
.showcase-stage { aspect-ratio: auto; height: 620px; }
/* Ordinateur : questions à gauche, le téléphone qui répond à droite. */
@media (min-width: 901px) {
  .showcase-viewer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 22px; padding: 18px; }
  .showcase-tabs { grid-template-columns: 1fr; gap: 6px; }
  .showcase-tab { padding: 14px 16px; }
  .showcase-stage { height: 640px; background: radial-gradient(circle at 50% 40%, #f3efe4, #ece5d6); }
}
.showcase-video {
  height: 94%;
  max-height: 94%;
  width: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border: 7px solid #1f2a22;
  border-radius: 26px;
  background: #1f2a22;
  box-shadow: 0 22px 50px rgba(28, 48, 32, .22);
}
.apercu-note { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) {
  .showcase-stage { height: min(540px, 72vh); }
}

/* --- Bloc « Au quotidien » en vidéo (30/09) : l'accueil réel dans un cadre de téléphone --- */
.daily-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 18px 14px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 35%, #f6f2e8, #ece5d6);
}
.daily-video video {
  height: 580px;
  width: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border: 7px solid #1f2a22;
  border-radius: 26px;
  background: #1f2a22;
  box-shadow: 0 22px 50px rgba(28, 48, 32, .22);
}
.daily-video-note { margin: 0; font-size: .78rem; color: var(--muted); }
.daily-actions-titre { margin: 22px 0 10px; font-weight: 800; color: var(--ink); }
@media (max-width: 900px) {
  .daily-video video { height: min(520px, 70vh); }
}

/* --- Fonctionnalités (30/09) : un mur de questions qui défile ---
   But : que le visiteur se dise « c'est complet » en 3 secondes, sans rien lire en entier.
   Trois rangées de questions (une couleur par domaine, reprise des boutons de l'app)
   défilent doucement en sens alterné ; arrêt au survol et bouton pause. */
.questions-tete { text-align: center; max-width: 760px; margin: 0 auto 26px; }
.questions-tete h2 { margin-bottom: 12px; }
.questions-tete .lead { margin: 0 auto; }
.q-couts { --q: #D98C3B; } .q-achats { --q: #4F7C5C; } .q-stock { --q: #B08968; }
.q-pilotage { --q: #7A5068; } .q-conformite { --q: #6B9BC4; }
.q-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 16px 0 0; font-size: .82rem; font-weight: 800; color: var(--muted); }
.q-legende span { display: inline-flex; align-items: center; gap: 7px; }
.q-legende span::before, .q::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--q); flex: 0 0 auto; }
.q-mur {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 6px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.q-rangee { overflow: hidden; }
.q-piste { display: flex; gap: 12px; width: max-content; animation: q-defile 70s linear infinite; }
.q-inverse .q-piste { animation-direction: reverse; animation-duration: 80s; }
.q-mur:hover .q-piste, .q-mur:focus-within .q-piste, .q-mur.en-pause .q-piste { animation-play-state: paused; }
@keyframes q-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.q {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 18px; font-weight: 700; font-size: .95rem; color: var(--ink);
  box-shadow: 0 6px 18px rgba(28, 48, 32, .06);
}
.video-pause.q-pause { position: static; margin: 14px auto 0; width: 34px; height: 34px; box-shadow: none; }
.q-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.q-note { text-align: center; margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) {
  .q { font-size: .88rem; padding: 9px 14px; }
  .q-piste { animation-duration: 55s; }
  .q-inverse .q-piste { animation-duration: 62s; }
}
/* Animations réduites : les questions s'affichent toutes, à plat, sans défilement. */
@media (prefers-reduced-motion: reduce) {
  .q-mur { -webkit-mask-image: none; mask-image: none; }
  .q-piste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .q-piste [aria-hidden="true"] { display: none; }
  .q-actions { margin-top: 26px; }
}

/* --- Bouton pause des vidéos qui jouent seules (accessibilité : plus de 5 s) --- */
.showcase-stage, .daily-video { position: relative; }
.video-pause {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(28, 48, 32, .15);
  background: rgba(255, 255, 255, .92); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(28, 48, 32, .12);
}
.video-pause span { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.video-pause.en-pause span { width: 0; height: 0; border: 0; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.daily-video .video-pause { bottom: 44px; }
@media (prefers-reduced-motion: reduce) {
  .fx-card, .fx-visuel img, .fx-lien span { transition: none; }
  .fx-card:hover, .fx-card:hover .fx-visuel img { transform: none; }
  .video-pause { display: none; }
}

/* --- Tarifs : badge et mise en avant de l'offre populaire --- */
.badge-img { width: 60px; height: 60px; margin-bottom: 10px; }
.best { display: inline-flex; background: var(--green); color: #fff; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 900; margin-bottom: 10px; }

/* --- FAQ : icône +/- gérée en CSS pour rester léger --- */
.faq-icon { color: var(--green); font-size: 1.2rem; line-height: 1; }
.faq-icon::before { content: "+"; }
.faq-item.open .faq-icon::before { content: "\2212"; }

/* --- CTA final : capture secondaire vers le guide --- */
.email-capture { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.email-capture-label { color: rgba(255, 255, 255, .55); font-size: .85rem; }
.btn-ghost { background: transparent; color: rgba(255, 255, 255, .85); padding: 12px 19px; border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-1px); }

/* --- Mention légale au-dessus du footer --- */
.legal-note { background: #111c15; padding: 18px 0; }
.legal-note p { color: rgba(255, 255, 255, .42); font-size: .78rem; line-height: 1.65; margin: 0; }
.legal-note strong { color: rgba(255, 255, 255, .58); }

/* --- Animation d'apparition au scroll (page d'accueil uniquement) --- */
.reveal { opacity: 0; transform: translateY(20px); transition: .6s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-visual { min-height: auto; margin-top: 28px; justify-content: flex-start; }
  .widget { width: 100%; }
  .showcase-tabs { display: flex; overflow-x: auto; gap: 8px; }
  .showcase-tab { flex: 0 0 auto; width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #word, .widget-row, .widget-summary { transition: none; }
}

/* --- Refonte locale 2026 : identité de marque + mascotte cloche --- */
.hero-home::before {
  inset: -20%;
  background:
    radial-gradient(circle at 14% 22%, rgba(217,140,59,.3), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(79,124,92,.5), transparent 34%),
    radial-gradient(circle at 66% 82%, rgba(176,137,104,.18), transparent 30%);
  filter: blur(6px);
}
.hero-home::after {
  inset: -8%;
  background:
    radial-gradient(ellipse 34% 58% at 88% 18%, transparent 61%, rgba(248,244,236,.13) 61.4%, rgba(248,244,236,.13) 64.2%, transparent 64.6%),
    radial-gradient(ellipse 26% 46% at 10% 74%, transparent 58%, rgba(217,140,59,.13) 58.5%, rgba(217,140,59,.13) 61.2%, transparent 61.8%),
    radial-gradient(ellipse 42% 68% at 58% 38%, transparent 66%, rgba(255,255,255,.07) 66.4%, rgba(255,255,255,.07) 68%, transparent 68.4%);
  background-size: 100% 100%;
  opacity: .82;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.92) 64%, transparent 96%);
}
.hero-product {
  position: relative;
  width: min(620px, 100%);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 28px 70px rgba(58, 92, 68, .16);
}
.hero-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 14px;
}
.hero-product-head span { font-weight: 800; color: var(--muted); }
.hero-product-head strong { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; color: var(--green-dark); }
.hero-shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(44, 44, 44, .12);
}
.hero-mascot {
  position: absolute;
  width: clamp(118px, 18vw, 168px);
  right: -22px;
  bottom: -28px;
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(58, 92, 68, .18);
}
.hero-note {
  position: absolute;
  left: -22px;
  bottom: 38px;
  width: min(260px, 58%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 42px rgba(58, 92, 68, .14);
}
.hero-note strong { display: block; color: var(--green-dark); line-height: 1.15; }
.hero-note span { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.daily-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 40px;
  align-items: center;
}
.daily-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 46px rgba(58, 92, 68, .1);
}
.daily-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.daily-top img { width: 70px; height: 70px; border-radius: 20px; }
.daily-top strong { display: block; color: var(--ink); font-size: 1.05rem; }
.daily-top span { display: block; color: var(--muted); font-size: .92rem; }
.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 10px;
  margin-top: 16px;
}
.quick-actions span {
  min-height: 92px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 0 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  line-height: 1.15;
  font-size: .78rem;
}
.quick-actions svg {
  width: 58px;
  height: 58px;
  padding: 16px;
  border-radius: 50%;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: 0 10px 22px rgba(58, 92, 68, .12);
}
.quick-actions span:nth-child(1) svg { background: #D98C3B; }
.quick-actions span:nth-child(2) svg { background: #4F7C5C; }
.quick-actions span:nth-child(3) svg { background: #B08968; }
.quick-actions span:nth-child(4) svg { background: #7A5068; }
.quick-actions span:nth-child(5) svg { background: #6B9BC4; }

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-icon-amber { background: #FBF1E4; color: #9E6223; }
.feature-icon-orange { background: #FBF1E4; color: #D98C3B; }
.feature-icon-stone { background: #F1EEE7; color: #2C2C2C; }
.feature-icon-green { background: #EEF4EF; color: #3A5C44; }
.cta-mascot { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 26px; }

@media (max-width: 900px) {
  .hero-note { left: 14px; bottom: 18px; }
  .hero-mascot { right: 10px; bottom: -36px; }
  .daily-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-product { padding: 12px; border-radius: 18px; }
  .hero-product-head { display: block; }
  .hero-note {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 12px;
  }
  .hero-mascot {
    width: 104px;
    right: 12px;
    bottom: 88px;
  }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* --- Essai gratuit 14 jours ------------------------------------------- */
.trial-flag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 10px 16px 10px 10px;
  background: var(--green-soft);
  border: 1px solid rgba(79, 124, 92, .28);
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 750;
  line-height: 1.35;
  max-width: max-content;
}
.trial-flag img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff;
}
.trial-flag strong { font-weight: 900; }
.price.trial {
  border-color: rgba(198, 148, 62, .55);
  background: linear-gradient(180deg, var(--gold-soft), #fff);
}
.trial-badge { background: var(--gold); color: var(--green-dark); }
@media (max-width: 720px) {
  .trial-flag {
    max-width: none;
    border-radius: 18px;
    padding: 12px 14px;
  }
  .trial-flag img { width: 40px; height: 40px; }
}

/* Section « Mise en place » : vidéo Premiers pas + les 5 étapes */
.mise-en-place { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.mise-en-place video { width: 100%; height: auto; border-radius: 18px; background: #1C3020; box-shadow: var(--shadow); }
.etapes-mise-en-place { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--ink); }
.etapes-mise-en-place li::marker { color: var(--green); font-weight: 900; }
.mise-en-place-note { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .mise-en-place { grid-template-columns: 1fr; } }
/* Offre unique (octobre 2026) : contenu de l'offre + deux formules */
.offre-unique { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.offre-contenu .check-list { gap: 10px; }
.offre-contenu .micro { margin: 0; }
.formules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formule h3 { margin-bottom: 4px; }
.formule p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.formules-cta { grid-column: 1 / -1; }
.formules-cta .micro { margin: 10px 0 0; text-align: center; }
@media (max-width: 900px) { .offre-unique { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .formules { grid-template-columns: 1fr; } }

/* ============================================================
   Hero de l'accueil, version claire (17/10/2026)
   ------------------------------------------------------------
   Avant : un aplat vert sombre sous un en-tete deja creme, donc une
   rupture franche des la premiere ligne de la page ; trois blocs de
   reassurance empiles qui disaient tous l'essai gratuit ; la mascotte
   enfermee dans la plus faible de ces pastilles ; et aucun prix visible
   tant qu'on n'avait pas defile jusqu'aux tarifs.

   Apres : le hero prolonge le creme de l'en-tete, une seule ligne de
   reassurance qui porte le prix, et Marge posee contre la fiche technique
   a hauteur de la marge brute.

   Seul l'accueil est concerne : les pages interieures gardent leur
   .page-hero vert sombre (regle de site.css, non touchee).
   ============================================================ */

/* Ton chaud pour le texte d'accent sur fond clair. --gold (#d98c3b) tombe a
   2,4:1 sur le creme : insuffisant meme pour du grand texte (seuil 3:1). */
:root { --gold-ink: #a0601a; }

.hero-home {
  background: linear-gradient(180deg, var(--bg) 0%, #f4eee2 55%, var(--bg) 100%);
  color: var(--ink);
}

/* Les halos et les arcs de cloche existaient deja, mais regles pour du blanc
   sur fond sombre. Memes motifs, retournes pour du sombre sur fond clair. */
.hero-home::before {
  inset: -20%;
  background:
    radial-gradient(circle at 16% 20%, rgba(217, 140, 59, .18), transparent 34%),
    radial-gradient(circle at 84% 22%, rgba(79, 124, 92, .15), transparent 38%),
    radial-gradient(circle at 62% 86%, rgba(176, 137, 104, .12), transparent 34%);
  filter: blur(10px);
}

.hero-home::after {
  inset: -8%;
  background:
    radial-gradient(ellipse 34% 58% at 86% 20%, transparent 61%, rgba(79, 124, 92, .11) 61.4%, rgba(79, 124, 92, .11) 64.2%, transparent 64.6%),
    radial-gradient(ellipse 26% 46% at 10% 74%, transparent 58%, rgba(217, 140, 59, .13) 58.5%, rgba(217, 140, 59, .13) 61.2%, transparent 61.8%);
}

.hero-home h1 { color: var(--ink); }
.hero-home #word { color: var(--gold-ink); }
.hero-home .lead { color: var(--muted); max-width: 33em; }
.hero-home .eyebrow { color: var(--gold-ink); }

.hero-home .hero-actions { margin-top: 30px; }

/* La ligne qui remplace les trois blocs precedents : le prix d'abord, la
   reassurance ensuite et plus discrete. */
.hero-prix {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-prix strong {
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--green-dark);
}

.hero-prix span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .88rem;
}

/* --- La fiche technique et Marge --------------------------------------- */
/* Regroupees pour que la mascotte se cale sur le bas du widget, et non sur
   la hauteur de la colonne : elle arrive ainsi a hauteur de la marge brute. */
.hero-fiche {
  position: relative;
  width: min(420px, 100%);
}

.hero-home .widget {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(58, 92, 68, .16);
}

/* Marge dépasse DERRIÈRE la fiche, elle ne passe pas devant : posée au-dessus,
   elle recouvrait le coin bas-gauche de la carte, là où s'affichent justement
   les libellés « Coût matière » et « Marge brute ». */
.hero-marge {
  position: absolute;
  left: -100px;
  bottom: -26px;
  z-index: 0;
  width: clamp(104px, 13vw, 152px);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(58, 92, 68, .22));
  animation: marge-flotte 6s ease-in-out infinite;
}

@keyframes marge-flotte {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50%      { transform: translateY(-10px) rotate(2.5deg); }
}

@media (min-width: 981px) {
  .hero-home .hero-visual { justify-content: flex-end; }
}

/* La fiche deborde legerement du cadre de lecture : la page parait plus large
   que l'ecran, ce qui donne de la profondeur sans animation.
   Le seuil n'est pas arbitraire : .wrap vaut min(1160px, 100% - 32px), il n'y a
   donc de marge laterale a mordre qu'au-dela de 1192 px. En declenchant le
   debord plus tot, la colonne COUT de la fiche se faisait rogner. */
@media (min-width: 1280px) {
  .hero-fiche { margin-right: -40px; }
}

/* Sous 980 px la colonne passe sous le texte : Marge repasse a droite, sinon
   elle sort de l'ecran a gauche. */
@media (max-width: 980px) {
  .hero-home .hero-visual { justify-content: center; }
  .hero-marge { left: auto; right: -28px; bottom: -22px; }
}

@media (max-width: 560px) {
  .hero-marge { width: 92px; right: -10px; bottom: -16px; }
  /* Pas de display:block sur le montant : il passait seul sur sa ligne et
     laissait la virgule suivante orpheline en debut de ligne. Le texte se
     replie tout seul. */
}

@media (prefers-reduced-motion: reduce) {
  .hero-marge { animation: none; }
}
