/* ============================================================
   RESTOEAT — SHARED SITE CSS
   Premium Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Plus+Jakarta+Sans:wght@400;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:        #FF7A00;
  --orange-2:      #ff9a3c;
  --orange-light:  #FFF3E6;
  --orange-grad:   linear-gradient(135deg, #FF7A00 0%, #ff9a3c 100%);
  --blue:          #3b82f6;
  --purple:        #7c3aed;
  --green:         #10b981;
  --red:           #ef4444;
  --dark:          #080C14;
  --dark-2:        #0F1523;
  --dark-3:        #151C2C;
  --dark-card:     rgba(255,255,255,0.04);
  --dark-border:   rgba(255,255,255,0.08);
  --text:          #0F172A;
  --text-2:        #475569;
  --text-3:        #94A3B8;
  --border:        #E2E8F0;
  --card:          #FFFFFF;
  --bg:            #F8FAFC;
  --nav-h:         72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ── */
.font-title { font-family: 'Plus Jakarta Sans', sans-serif; }

h1,h2,h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }

.t-hero    { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.t-title   { font-size: clamp(2rem,   4vw, 3.25rem); }
.t-heading { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.t-body    { font-size: 1rem; line-height: 1.75; }
.t-sm      { font-size: 0.875rem; }
.t-xs      { font-size: 0.78rem; }
.t-label   { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

.grad-text {
  background: linear-gradient(135deg, #FF7A00 0%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-green { background: linear-gradient(135deg,#10b981,#059669); -webkit-background-clip:text;-webkit-text-fill-color:transparent; }

/* ── LAYOUT ── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 780px;  margin: 0 auto; padding: 0 2rem; }
.container-lg { max-width: 1360px; margin: 0 auto; padding: 0 2rem; }

.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.text-center { text-align: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border-radius: 12px;
  font-size: 0.9rem; font-weight: 700; border: none; cursor: pointer;
  transition: all .2s; text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; border-radius: 9px; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: 14px; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 1.1rem; border-radius: 16px; font-weight: 800; }

.btn-primary {
  background: var(--orange-grad); color: #fff;
  box-shadow: 0 4px 20px rgba(255,122,0,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,122,0,.45); }

.btn-dark {
  background: var(--dark); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-dark:hover { transform: translateY(-2px); background: var(--dark-3); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-glass {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.15); }
.badge-green { background: #DCFCE7; color: #166534; }
.badge-red   { background: #FEE2E2; color: #991B1B; }
.badge-blue  { background: #DBEAFE; color: #1E40AF; }
.badge-purple{ background: #F3E8FF; color: #6B21A8; }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 2rem;
  transition: all .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.08); }
.card-dark {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: 20px; padding: 2rem;
  transition: all .3s;
}
.card-dark:hover { background: rgba(255,255,255,.07); border-color: rgba(255,122,0,.3); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .badge { margin-bottom: 1.25rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { color: var(--text-2); font-size: 1.1rem; max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ── NAVBAR ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
/* Scrolled : fond sombre semi-transparent avec blur */
.site-nav.scrolled {
  background: rgba(8,12,20,.75);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: rgba(255,255,255,.07);
}
/* Pages claires (tarifs, contact, etc.) */
.site-nav.light {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
/* Espace compensateur pour les pages sans hero full-height */
.nav-spacer { height: var(--nav-h); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav-logo { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.nav-logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--orange-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(255,122,0,.4);
}
.nav-logo-name { font-family:'Plus Jakarta Sans',sans-serif; font-weight: 900; font-size: 1.1rem; color: #fff; }
.site-nav.light .nav-logo-name { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.4rem 0.875rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,.72);
  transition: all .2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav.light .nav-links a { color: var(--text-2); }
.site-nav.light .nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-links a.active { color: var(--orange); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-login { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,.65); padding: 0.4rem 0.875rem; border-radius: 8px; transition: all .2s; }
.nav-login:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav.light .nav-login { color: var(--text-2); }
.site-nav.light .nav-login:hover { color: var(--text); }

/* ── FOOTER ── */
.site-footer {
  background: #04070D;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: 0.875rem; margin-top: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,.55); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.25); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,.25); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.up    { transform: translateY(28px); }
.reveal.left  { transform: translateX(-28px); }
.reveal.right { transform: translateX(28px); }
.reveal.scale { transform: scale(.94); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── COUNTER ── */
.counter-val { font-variant-numeric: tabular-nums; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,122,0,.35); border-radius: 99px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 0; }
  .t-hero { font-size: 2.5rem; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE — grilles custom des pages vitrine (tarifs, pourquoi, comparatif,
      contact, agences…). Ces classes sont définies en <style> inline (chargé APRÈS
      ce fichier) → !important nécessaire pour les passer en 1 colonne sur mobile. ── */
@media (max-width: 768px) {
  .ag-plans-grid, .ag-steps, .benefits-grid, .calc-result, .calc-row,
  .check-cols, .contact-grid, .crm-grid, .cta-options, .faq-grid,
  .feat-grid, .finance-grid, .form-row, .indep-grid, .mktg-cards,
  .pain-grid, .plans-hero-grid, .problem-grid, .reasons-grid, .reviews-grid,
  .roi-grid, .roi-visual, .score-grid, .sim-grid, .sim-results, .steps,
  .testi-big, .who-grid {
    grid-template-columns: 1fr !important;
  }
  /* connecteurs horizontaux des étapes inutiles en colonne */
  .steps::before, .ag-steps::before { display: none !important; }
}

/* Navbar compacte sur mobile (les 2 CTA + logo débordaient à droite) */
@media (max-width: 600px) {
  .nav-inner   { padding-left: 1rem !important; padding-right: 1rem !important; gap: .6rem !important; }
  .nav-login   { display: none !important; }
  .nav-actions .btn { padding: .55rem .95rem !important; font-size: .82rem !important; }
}

/* Filet de sécurité anti-débordement horizontal (espace blanc à droite) */
html { overflow-x: hidden; }
img, svg, canvas, video, table, iframe { max-width: 100%; }
