/* Page d'accueil publique et pages légales de Mini Gourmand. */
:root {
  --bg: #FFF7F0; --bg-2: #FFEEDF; --panel: #FFFFFF; --text: #2B1B17; --muted: #7A675C; --border: #F1DCCB;
  --accent: #FF7A45; --accent-d: #E8592A; --accent-2: #7C5CFF; --shadow: 0 18px 50px rgba(150, 70, 30, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D1513; --bg-2: #261C19; --panel: #2A1F1C; --text: #FBEFE7; --muted: #C2AFA4; --border: #3F302B;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #1D1513; --bg-2: #261C19; --panel: #2A1F1C; --text: #FBEFE7; --muted: #C2AFA4; --border: #3F302B; --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: #fff; box-shadow: 0 4px 0 var(--accent-d); }
.btn.primary:hover { box-shadow: 0 5px 0 var(--accent-d), 0 10px 24px rgba(255, 122, 69, .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; }

.ref-banner { 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(120, 50, 20, .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: #fff; 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); 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; }

/* Tarifs */
.period { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--panel); border: 1px solid var(--border); margin-bottom: 28px; }
.period button { border: 0; background: transparent; padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.period button.on { background: var(--accent); color: #fff; }
.period .save { font-size: 12px; opacity: .85; }
.plans { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 18px; align-items: stretch; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1.5px solid var(--border); border-radius: 20px; padding: 26px; }
.plan.best { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-8px); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent-2); color: #fff; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.price { font-size: 40px; font-weight: 900; }
.price small { font-size: 16px; color: var(--muted); font-weight: 700; margin-left: 4px; }
.per { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; display: grid; gap: 9px; align-content: start; }
.plan li { padding-left: 26px; position: relative; font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* Thèmes de l'appli (offre Étudiant) : Mini Gourmand déguisé, sous les tarifs */
.skins-show { display: flex; align-items: center; gap: 24px; margin: 30px auto 0; max-width: 860px; padding: 20px 24px; text-align: left;
  background: var(--panel); border: 1.5px solid var(--border); border-radius: 20px; }
.skins-txt { flex: 1; min-width: 0; }
.skins-txt h3 { margin: 6px 0 4px; font-size: 20px; }
.skins-txt p { margin: 0; color: var(--muted); font-size: 15px; }
.skins-tag { display: inline-block; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-d); font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.skins-list { display: flex; gap: 10px; flex-shrink: 0; }
.skins-list figure { margin: 0; display: grid; justify-items: center; gap: 4px; width: 96px; padding: 8px 4px 6px; border-radius: 14px; }
.skins-list figcaption { font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.skins-list .mg-slot { display: block; height: 76px; }
.skin-halloween { background: linear-gradient(135deg, #2a1840, #ff8a1f); }
.skin-plage { background: linear-gradient(135deg, #3cc6d6, #ffd98a); }
.skin-noel { background: linear-gradient(135deg, #1b7a43, #d62828); }
.skin-soon { border: 2px dashed var(--border); align-content: center; }
.skin-soon figcaption { color: var(--muted); text-shadow: none; }
.skin-soon .soon-ic { display: grid; place-items: center; width: 44px; height: 44px; margin: 8px 0 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-d); font-size: 26px; font-weight: 900; }
@media (max-width: 760px) {
  .skins-show { flex-direction: column; text-align: center; padding: 18px 14px; }
  .skins-list { width: 100%; justify-content: center; }
  .skins-list { gap: 6px; }
  .skins-list figure { width: auto; flex: 1; min-width: 0; max-width: 110px; }
  .skins-list .mg-slot { height: auto; }
  .skins-list .mg-slot svg { width: 100%; max-width: 76px; height: auto; }
  .skin-soon .soon-ic { width: 36px; height: 36px; font-size: 22px; }
}

.ref-sec { padding: 40px 0; }
.ref-in { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), color-mix(in srgb, var(--accent-2) 14%, var(--panel))); }
.ref-in h2 { font-size: 27px; margin-bottom: 4px; }
.ref-in p { margin: 0; color: var(--muted); }

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

/* Pages légales */
.legal { padding: 50px 0 80px; }
.legal h1 { font-size: 38px; }
.legal h2 { font-size: 23px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); }
.legal b, .legal strong { color: var(--text); }
.todo { background: #FFE58F; color: #5A4300; padding: 0 5px; border-radius: 5px; font-weight: 700; }

/* 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: #fff; box-shadow: 0 4px 0 var(--accent-d), 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 var(--accent-d), 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: #fff; }
  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; }
