/* 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; }

/* --- 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); }
}
