@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   OmniFlow AI — mise en page Green Farm (structure identique),
   identite tech : accent bleu Apple, degrade de marque.
   ============================================================ */

:root {
  --accent: #0071e3;        /* bleu Apple */
  --accent-deep: #0058b0;
  --accent-soft: #eaf2fe;
  --ink: #1d1d1f;           /* gris quasi-noir Apple */
  --ink-2: #6e6e73;         /* gris secondaire */
  --line: #e5e5ea;
  --bg: #ffffff;
  --bg-2: #f5f5f7;          /* gris clair Apple */
  --violet: #5b5bf6;
  --violet-deep: #4646d8;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .12);
  --maxw: 1100px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --grad: linear-gradient(135deg, #2997ff, #5b5bf6);
  /* Néon (style RestoPilot) */
  --neon1: #2997ff;
  --neon2: #5b5bf6;
  --neon3: #b16cea;
  --neon4: #ff5e8f;
}

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 6.5vw, 80px); }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- Navigation translucide type Apple ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap;
}
.brand-mark { width: 28px; height: 28px; display: block; }
.nav-links { margin: 0 auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-inner .auth-status { margin-left: auto; }
.nav-links a {
  color: var(--ink); font-size: 13.5px; font-weight: 500; padding: 7px 11px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-2); }
.nav-links a.active { color: var(--accent); }
.auth-status {
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; padding: 6px 10px;
  background: var(--bg-2); border-radius: 999px; white-space: nowrap;
}

/* ---------- Boutons ---------- */
.btn {
  min-height: 44px; border: 0; border-radius: 999px; padding: 11px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .15s ease, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.gold { background: var(--ink); color: #fff; }
.btn.gold:hover { background: #000; }
.btn.light { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.btn.light:hover { background: #fff; }
.btn.soil { background: var(--violet); }
.btn.soil:hover { background: var(--violet-deep); }
.btn-block { width: 100%; margin-top: 12px; }

/* ---------- Hero plein ecran avec video ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 86vh;
  display: grid; align-items: center; justify-items: center;
  text-align: center;
  color: #fff; overflow: hidden;
}
.hero.compact { min-height: 64vh; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,28,.42), rgba(8,12,28,.26) 40%, rgba(8,12,28,.62));
}
.hero-inner {
  position: relative; max-width: 880px; width: 100%;
  padding: 120px 22px 90px; margin: 0 auto;
}
.hero.compact .hero-inner { padding: 90px 22px 70px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0;
  opacity: .92; margin-bottom: 18px;
}
.hero h1 { margin: 0 auto 20px; max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero p {
  max-width: 600px; margin: 0 auto; color: rgba(255,255,255,.92);
  font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; font-weight: 400;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* metriques sous le hero */
.hero-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 880px; margin: 44px auto 0;
}
.metric { padding: 0; text-align: center; color: #fff; }
.metric strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.metric span { display: block; color: rgba(255,255,255,.82); font-size: 13.5px; line-height: 1.45; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 22px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { margin: 0 auto 14px; }
.section-head p { color: var(--ink-2); font-size: clamp(17px, 2vw, 21px); line-height: 1.5; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* ---------- Cartes ---------- */
.card {
  overflow: hidden; border-radius: var(--radius); background: var(--bg-2);
  border: 0; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: 230px; object-fit: cover; }
.card-body { padding: 26px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--ink-2); line-height: 1.5; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.card ul li { padding: 6px 0 6px 24px; position: relative; line-height: 1.4; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.icon-box {
  width: 46px; height: 46px; margin-bottom: 18px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border-radius: 12px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600;
}

/* ---------- Tuiles categories (bento) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  min-height: 300px; color: #fff; isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.66)); }
.tile:hover img { transform: scale(1.045); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.tile-body h3 { font-size: 26px; margin-bottom: 6px; color: #fff; }
.tile-body p { color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.45; max-width: 42ch; }
.tile-body .tile-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 14.5px; color: #fff; }

/* ---------- Sections alternees (fond gris clair Apple) ---------- */
.section-band { background: var(--bg-2); }

/* ---------- Bandeau plein ecran (video aussi) ---------- */
.photo-band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
}
.photo-band .hero-media { z-index: -2; }
.photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,40,120,.55), rgba(10,16,55,.72));
}
.photo-band .section-head p { color: rgba(255,255,255,.9); }
.photo-band .section-head h2 { color: #fff; }

/* ---------- Panneaux / formulaires ---------- */
.tool-panel, .form-card, .plan, .product, .listing, .payment-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.tool-panel { background: var(--bg-2); border: 0; }
.section-band .tool-panel { background: var(--white); }
label { display: block; margin: 0 0 7px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 12px 14px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.result {
  margin-top: 16px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-deep); line-height: 1.55; font-size: 15px;
}

/* ---------- Plans ---------- */
.plan { display: flex; flex-direction: column; min-height: 100%; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.plan-price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 12px 0; }
.plan ul { margin: 14px 0 22px; padding-left: 0; list-style: none; color: var(--ink-2); }
.plan ul li { padding: 7px 0 7px 26px; position: relative; line-height: 1.4; border-bottom: 1px solid var(--line); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* ---------- Etapes (workflow) ---------- */
.credit-steps { counter-reset: step; display: grid; gap: 14px; }
.credit-step { position: relative; padding: 18px 18px 18px 58px; background: var(--bg-2); border-radius: var(--radius-sm); line-height: 1.5; }
.credit-step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 26px; height: 26px; display: grid; place-items: center; background: var(--accent); color: #fff;
  border-radius: 50%; font-weight: 700; font-size: 14px;
}

/* ---------- FAQ ---------- */
details {
  background: var(--bg-2); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px;
}
.section-band details { background: var(--white); }
details summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 600; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; line-height: 1.55; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); color: var(--ink-2); padding: 40px 22px; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Animation reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Bouton menu mobile (cache sur desktop) ---------- */
.nav-toggle { display: none; }

/* ---------- Responsive : tablette & mobile ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }

  .nav-inner { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 16px; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; margin: 2.5px 0; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; margin: 0; padding: 6px 0 14px; gap: 2px;
  }
  .site-nav.open .nav-links a { padding: 13px 12px; font-size: 16.5px; border-radius: 10px; }
  .site-nav.open .nav-links a:active { background: var(--bg-2); }
  .site-nav.open .auth-status { margin: 8px 0 0; text-align: center; }

  .hero { min-height: 72vh; }
  .hero.compact { min-height: 52vh; }
  .hero-inner { padding: 84px 18px 56px; }
  .hero p { font-size: 17px; }
  .actions .btn { flex: 1 1 auto; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .card img { height: 170px; }
  .card-body { padding: 16px; }
  .card h3 { font-size: 19px; }
  .section { padding: 56px 18px; }
  .section-head { margin-bottom: 36px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 220px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Responsive : petits telephones ---------- */
@media (max-width: 600px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 44px); }
  .neon-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .section { padding: 44px 16px; }
  .tool-panel, .form-card, .plan, .payment-box { padding: 18px; }
  .footer-inner { flex-direction: column; gap: 6px; }
  .brand { font-size: 17px; }
  .glow { filter: blur(70px) !important; }
}

/* ============================================================
   NÉON — hero & bandeaux sombres animés (style RestoPilot)
   ============================================================ */
.neon-hero, .neon-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: #06070d; color: #f5f5f7;
}
.neon-hero {
  text-align: center;
  padding: 150px 22px 110px;
}
.neon-hero.compact { padding: 120px 22px 90px; }
.neon-band { padding: 0; }
.neon-band .section { position: relative; z-index: 2; }
.neon-band .section-head h2 { color: #fff; }
.neon-band .section-head p { color: rgba(255,255,255,.66); }

/* halos flous animés */
.glow {
  position: absolute; border-radius: 50%; filter: blur(95px);
  opacity: .55; pointer-events: none; mix-blend-mode: screen; z-index: 0;
}
.glow.g1 { width: 640px; height: 640px; background: radial-gradient(circle, var(--neon1), transparent 65%); top: -240px; left: -160px; animation: float1 12s ease-in-out infinite; }
.glow.g2 { width: 560px; height: 560px; background: radial-gradient(circle, var(--neon3), transparent 65%); bottom: -260px; right: -140px; animation: float2 14s ease-in-out infinite; }
.glow.g3 { width: 460px; height: 460px; background: radial-gradient(circle, var(--neon4), transparent 65%); top: 28%; left: 56%; animation: float3 10s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(150px,90px) scale(1.15); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-160px,-80px) scale(1.1); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); opacity:.35; } 50% { transform: translate(-90px,70px) scale(1.25); opacity:.65; } }

/* contenu au-dessus des halos */
.neon-hero > .hero-inner, .neon-hero > .eyebrow { position: relative; z-index: 2; }
.neon-hero .hero-inner { padding: 0; max-width: 880px; }
.neon-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.neon-hero h1 { margin: 0 auto 20px; max-width: 16ch; font-size: clamp(40px, 6.5vw, 78px); }
.neon-hero p { max-width: 600px; margin: 0 auto; color: rgba(255,255,255,.74); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; }
.neon-hero .actions { margin-top: 30px; }
.neon-hero .hero-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.5); }

/* métriques sur fond néon */
.neon-hero .hero-metrics { margin-top: 54px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
.neon-hero .metric strong { color: #fff; }
.neon-hero .metric span { color: rgba(255,255,255,.55); }

/* texte dégradé néon animé */
.neon-text {
  background: linear-gradient(100deg, var(--neon1) 0%, var(--neon2) 30%, var(--neon3) 55%, var(--neon4) 80%, var(--neon1) 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { background-position: 220% center; } }

/* boutons sur fond néon */
.neon-hero .btn.light, .neon-band .btn.light {
  background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.neon-hero .btn.light:hover, .neon-band .btn.light:hover { background: rgba(255,255,255,.16); }

/* cadre à bordure néon tournante (panneaux mis en avant) */
.neon-frame { position: relative; border-radius: 22px; z-index: 1; }
.neon-frame::before, .neon-frame::after {
  content: ""; position: absolute; inset: -2px; border-radius: 24px; z-index: -1;
  background: conic-gradient(from var(--angle), var(--neon1), var(--neon2), var(--neon3), var(--neon4), var(--neon1));
  animation: spin 7s linear infinite;
}
.neon-frame::before { filter: blur(26px); opacity: .75; }
@keyframes spin { to { --angle: 360deg; } }
@supports not (background: conic-gradient(from var(--angle), red, blue)) {
  .neon-frame::before, .neon-frame::after { animation: none; }
}

/* cartes/panneaux sur bandeau néon : verre fumé */
.neon-band .card, .neon-band .plan, .neon-band .tool-panel {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.neon-band .card h3, .neon-band .plan h3, .neon-band .tool-panel h3 { color: #fff; }
.neon-band .card p, .neon-band .plan ul, .neon-band .card ul, .neon-band .tool-panel p { color: rgba(255,255,255,.66); }
.neon-band .plan ul li, .neon-band .credit-step { border-color: rgba(255,255,255,.12); }
.neon-band .credit-step { background: rgba(255,255,255,.05); color: rgba(255,255,255,.82); }
.neon-band .icon-box { background: rgba(255,255,255,.1); color: #fff; }
.neon-band .tag { background: rgba(255,255,255,.1); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .glow, .neon-text, .neon-frame::before, .neon-frame::after { animation: none; }
}
