/* Page d'accueil publique de Mon Rucher (même structure que celle de Mini Gourmand). */
:root {
  --bg: #FBF6EA; --bg-2: #F6ECD3; --panel: #FFFFFF; --text: #2D2416; --muted: #7B6D58; --border: #EADFC8;
  --accent: #F2A516; --accent-d: #B8770A; --accent-2: #2F8F5B; --on-accent: #2D2416; --shadow: 0 18px 50px rgba(110, 75, 10, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130C; --bg-2: #1F190F; --panel: #241D12; --text: #F4EAD6; --muted: #B3A385; --border: #3A3020; --accent-d: #F2B640; --accent-2: #5CC48A;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #17130C; --bg-2: #1F190F; --panel: #241D12; --text: #F4EAD6; --muted: #B3A385; --border: #3A3020; --accent-d: #F2B640; --accent-2: #5CC48A; --shadow: 0 18px 50px rgba(0, 0, 0, .35); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Nunito, system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-d); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 900; }
h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 900; }
h3 { font-size: 21px; font-weight: 800; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.sub { color: var(--muted); font-size: 18px; margin: 0 auto 28px; max-width: 640px; }
.small { color: var(--muted); font-size: 14px; margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 13px; font-weight: 800; font-size: 16px; text-decoration: none;
  color: var(--text); background: var(--panel); border: 1.5px solid var(--border); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 #B8770A; }
.btn.primary:hover { box-shadow: 0 5px 0 #B8770A, 0 10px 24px rgba(242, 165, 22, .35); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.lg { padding: 15px 24px; font-size: 18px; border-radius: 15px; }
.btn.full { width: 100%; }

/* Barre de navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 900; }
.brand .mg-slot { display: flex; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
/* Les sections ne passent pas sous la barre collée en haut quand on clique sur un lien. */
section[id] { scroll-margin-top: 80px; }
.nav-cta { margin-left: auto; display: flex; gap: 6px; }

.x-unused { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: 15.5px; }

/* Haut de page */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; padding: 64px 0 80px; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.hl { color: var(--accent); }
.lead { font-size: 19.5px; color: var(--muted); margin: 0 0 26px; }
.lead b { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { color: var(--muted); font-size: 14.5px; margin-top: 16px; }
.hero-visual { position: relative; }
.frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--panel); }
.hero-visual .frame { transform: rotate(1.2deg); }
.hero-mg { position: absolute; left: -46px; bottom: -40px; filter: drop-shadow(0 12px 20px rgba(110, 75, 10, .25)); }
.float-card { position: absolute; padding: 9px 14px; border-radius: 13px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 800; font-size: 14.5px; animation: float 4s ease-in-out infinite; }
.fc1 { right: -14px; top: -18px; }
.fc2 { right: 24px; bottom: -22px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-7px); } }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.video-sec { padding-top: 20px; }
.video-box { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9; }
.video-box video { width: 100%; height: 100%; }
.video-box.vertical { aspect-ratio: 9 / 16; max-width: 380px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; text-align: left; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.step p { color: var(--muted); margin: 0; }
.install-grid ol { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.install-grid + p { margin-top: 30px; }
.lead-sm { color: var(--muted); max-width: 640px; margin: 10px auto 0; font-size: 17px; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 900; margin-bottom: 12px; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 54px; align-items: center; margin-top: 70px; }
.feature.rev .f-text { order: 2; }
.f-text p { color: var(--muted); font-size: 18px; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 13.5px; font-weight: 800; color: var(--accent-d); background: color-mix(in srgb, var(--accent) 15%, transparent); margin-bottom: 10px; }
.pill-new { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--accent-2); color: #fff; font-size: 11px; vertical-align: 1px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 76px; }
.mini { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.mini span { font-size: 26px; }
.mini b { display: block; margin: 6px 0 2px; font-size: 17.5px; }
.mini p { margin: 0; color: var(--muted); font-size: 15.5px; }

details { background: var(--panel); border: 1px solid var(--border); border-radius: 15px; padding: 16px 20px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 800; font-size: 17.5px; }
details p { color: var(--muted); margin: 10px 0 0; }
.final { padding-top: 40px; }
.final .mg-slot { display: flex; justify-content: center; margin-bottom: 8px; }

.foot { border-top: 1px solid var(--border); padding: 26px 0 34px; color: var(--muted); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Bouton « revenir en haut » : apparaît après un écran de défilement. */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; place-items: center; width: 48px; height: 48px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 #B8770A, 0 10px 24px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: translateY(3px); box-shadow: 0 1px 0 #B8770A, 0 6px 14px rgba(0, 0, 0, .15); }
.to-top .ic { width: 22px; height: 22px; }
@media print { .to-top { display: none; } }

@media (max-width: 920px) {
  /* Téléphone : les liens passent sur une 2e ligne de pastilles qui défile au doigt. */
  .nav-in { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 8px; }
  .nav-cta .btn { padding-left: 12px; padding-right: 12px; }
  .nav-links { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 10px; gap: 8px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; padding: 7px 13px; border-radius: 99px; font-size: 14px; background: var(--panel); border: 1.5px solid var(--border); scroll-snap-align: start; }
  .nav-links a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  section[id] { scroll-margin-top: 120px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-mg { left: -10px; bottom: -50px; }
  .hero-mg svg { width: 110px; height: 110px; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 22px; margin-top: 50px; }
  .feature.rev .f-text { order: 0; }
  .steps, .plans, .mini-grid { grid-template-columns: 1fr; }
  .plan.best { transform: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .fc1 { right: 4px; } .fc2 { right: 8px; }
  .ref-in { flex-direction: column; text-align: center; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } .to-top { transition: none; } }

/* Icônes dessinées (pas d'emojis) */
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.btn .ic { width: 18px; height: 18px; }
.ref-banner { display: flex; align-items: center; gap: 10px; }
.ref-banner[hidden] { display: none; }
.ref-banner .ic { color: var(--accent-d); width: 22px; height: 22px; }
.float-card { display: flex; align-items: center; gap: 8px; }
.fc-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-d); }
.fc-ic .ic { width: 16px; height: 16px; }
.mini .mi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--accent-d); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mini:nth-child(even) .mi { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, transparent); }
.mini .mi .ic { width: 23px; height: 23px; }
.mini b { margin-top: 12px; }
.mini .pill-new { font-size: 11px; vertical-align: 2px; }

/* ----- Propre à Mon Rucher : captures de téléphone, logo, bandeau gratuit ----- */
.brand .logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--on-accent); }
.brand .logo .ic { width: 24px; height: 24px; }
.phone { position: relative; width: min(300px, 100%); margin: 0 auto; padding: 9px; border-radius: 38px; background: #2D2416; box-shadow: var(--shadow); }
.phone img { width: 100%; border-radius: 30px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 10px 0 20px; }
.phones .phone { width: min(270px, 62%); margin: 0; }
.phones .phone.back { transform: rotate(-5deg) translateX(18%); opacity: .97; z-index: 0; }
.phones .phone.front { transform: rotate(3deg) translate(-12%, 22px); z-index: 1; }
.hero-visual .fc1 { right: 0; top: 4px; z-index: 2; }
.hero-visual .fc2 { left: 0; right: auto; bottom: 30px; z-index: 2; }
.fc-ic.green { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.f-img.phone { width: min(300px, 80%); }
.free { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 28px 32px; border-radius: 22px; text-align: left;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), color-mix(in srgb, var(--accent-2) 14%, var(--panel))); }
.free .big { font-size: 46px; font-weight: 900; line-height: 1; }
.free h2 { font-size: 27px; margin-bottom: 4px; }
.free p { margin: 0; color: var(--muted); }
.free ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: 15px; }
.free li::before { content: "✓ "; color: var(--accent-2); font-weight: 900; }
@media (max-width: 920px) {
  .free { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
  .free ul { justify-content: center; }
}
@media (max-width: 560px) {
  .hero-visual .fc1 { right: -4px; } .hero-visual .fc2 { left: -4px; }
}
.final-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.final-logo .logo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 #B8770A; }
.final-logo .ic { width: 52px; height: 52px; }
.brand b, .nav-cta .btn { white-space: nowrap; }
