/* ==========================================================================
   AYZAG SOLUTION — Design tokens
   Palette : navy #1f2a44 (base) / electric blue #2563eb (accent) /
             sky #38bdf8 (glow/secondary accent) / off-white #f4f6fa (light bg) /
             slate #64748b (muted text)
   Type    : Space Grotesk (display) / Inter (body) / JetBrains Mono (data, status)
   ========================================================================== */

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

:root{
  --navy: #1f2a44;
  --navy-deep: #141d33;
  --blue: #2563eb;
  --sky: #38bdf8;
  --off-white: #f4f6fa;
  --white: #ffffff;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --line: #e2e7f0;
  --ok: #22c55e;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.1; letter-spacing:-0.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.mono{ font-family: var(--font-mono); }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Status strip — signature element carried across every page.
   Reads like a live system status readout for AYZAG's operations.
   ========================================================================== */
.status-strip{
  background: var(--navy-deep);
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.status-strip__track{
  display: inline-flex;
  gap: 48px;
  padding: 7px 0;
  animation: scrollStrip 34s linear infinite;
}
.status-strip__track span{ display:inline-flex; align-items:center; gap:8px; }
.status-strip__dot{
  width:6px; height:6px; border-radius:50%; background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}
@keyframes scrollStrip{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display); font-weight:700; font-size: 19px;
  color: var(--navy);
}
.logo__mark{
  width: 34px; height:34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display:flex; align-items:center; justify-content:center;
  color:white; font-family: var(--font-mono); font-weight:600; font-size:13px;
  flex-shrink:0;
}
.logo__sub{ font-size:11px; font-weight:500; color: var(--slate); letter-spacing:0.04em; display:block; font-family: var(--font-body); }

.nav__links{ display:flex; align-items:center; gap: 6px; }
.nav__links a{
  padding: 9px 14px; border-radius: 100px; font-size: 14.5px; font-weight:500;
  color: var(--navy); transition: background .15s ease, color .15s ease;
}
.nav__links a:hover{ background: var(--off-white); }
.nav__links a.active{ background: var(--navy); color: var(--white); }

.nav__cta{
  background: var(--blue); color:white; padding: 10px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 600; border:none; white-space:nowrap;
  transition: background .15s ease, transform .15s ease;
}
.nav__cta:hover{ background:#1d4fc4; transform: translateY(-1px); }

.nav__burger{ display:none; }

@media (max-width: 880px){
  .nav__links{ display:none; }
  .nav__burger{
    display:flex; width:40px; height:40px; border-radius:10px; border:1px solid var(--line);
    align-items:center; justify-content:center; background:none; flex-shrink:0;
  }
}

@media (max-width: 560px){
  .logo__sub{ display:none; }
  .logo{ font-size: 16px; gap:8px; }
  .logo__mark{ width:30px; height:30px; font-size:12px; border-radius:8px; }
  .nav{ padding: 12px 0; gap:10px; }
  .nav__cta{ font-size: 13px; padding: 9px 14px; }
}

@media (max-width: 400px){
  .nav__cta{ display:none; }
}

/* mobile drawer */
.mobile-drawer{
  display:none; flex-direction:column; gap:2px; padding: 8px 28px 18px;
  border-top:1px solid var(--line);
}
.mobile-drawer.open{ display:flex; }
.mobile-drawer a{ padding: 12px 6px; border-radius:8px; font-weight:500; font-size:15px; }
.mobile-drawer a.active{ color: var(--blue); }

/* ==========================================================================
   Hero shell shared across pages
   ========================================================================== */
.hero{
  position: relative;
  background: var(--navy);
  color: white;
  overflow:hidden;
  padding: 88px 0 96px;
}
.hero .wrap{ position:relative; z-index:2; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing:0.06em;
  color: var(--sky); background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.25);
  padding: 6px 13px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1{
  font-size: clamp(34px, 5vw, 54px);
  max-width: 820px;
  color: white;
}
.hero h1 em{ font-style:normal; color: var(--sky); }
.hero p.lead{
  margin-top: 20px; max-width: 560px; font-size: 17px; line-height:1.65;
  color: #c7d0e0;
}
.hero__ctas{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 24px; border-radius: 100px; font-weight:600; font-size:15px;
  border: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary{ background: var(--blue); color:white; box-shadow: 0 8px 24px -8px rgba(37,99,235,0.6); }
.btn-primary:hover{ background:#3b74f2; transform: translateY(-2px); }
.btn-ghost{ background: rgba(255,255,255,0.06); color:white; border:1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover{ background: rgba(255,255,255,0.12); }
.btn-dark{ background: var(--navy); color:white; }
.btn-dark:hover{ background: var(--navy-deep); }

/* faint grid backdrop for hero */
.hero__grid{
  position:absolute; inset:0; z-index:1; opacity:0.5;
  background-image:
    linear-gradient(rgba(56,189,248,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 30%, black 10%, transparent 75%);
}
.hero__glow{
  position:absolute; z-index:1; width:520px; height:520px; border-radius:50%;
  background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 70%);
  top:-160px; right:-120px; filter: blur(10px);
}

/* ==========================================================================
   Sections
   ========================================================================== */
section{ padding: 84px 0; }
.section-tight{ padding: 64px 0; }
.section-label{
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:0.08em; color: var(--blue);
  text-transform: uppercase; margin-bottom:12px; display:block;
}
.section-title{ font-size: clamp(26px,3.4vw,38px); max-width: 640px; }
.section-sub{ margin-top:14px; max-width:560px; color: var(--slate); font-size:16px; line-height:1.65; }
.section-head{ margin-bottom: 48px; }
.section-head.center{ text-align:center; margin-left:auto; margin-right:auto; }
.section-head.center .section-title, .section-head.center .section-sub{ margin-left:auto; margin-right:auto; }

.bg-off{ background: var(--off-white); }
.bg-navy{ background: var(--navy); color:white; }
.bg-navy .section-sub{ color:#b9c3d8; }

/* Card grid generic */
.grid{ display:grid; gap: 20px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width:940px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width:620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: white; border:1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(31,42,68,0.28); border-color: transparent; }
.card__icon{
  width:44px; height:44px; border-radius:11px; background: var(--off-white);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; color: var(--blue);
}
.card__icon svg{ width:22px; height:22px; }
.card h3{ font-size:17.5px; margin-bottom:8px; }
.card p{ font-size:14.5px; color: var(--slate); line-height:1.6; }

.card--dark{ background: var(--navy-deep); border-color: rgba(255,255,255,0.08); }
.card--dark h3{ color:white; }
.card--dark p{ color:#a9b4c9; }
.card--dark .card__icon{ background: rgba(56,189,248,0.12); color: var(--sky); }

/* Tag pill */
.pill{
  display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600;
  padding:6px 12px; border-radius:100px; background: rgba(37,99,235,0.08); color: var(--blue);
}

/* Numbered process step */
.step{ display:flex; gap:18px; }
.step__num{
  font-family: var(--font-mono); font-weight:600; font-size:14px; color: var(--blue);
  width:38px; height:38px; border-radius:50%; border:1.5px solid var(--blue);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.step h4{ font-size:16px; margin-bottom:6px; }
.step p{ font-size:14px; color: var(--slate); line-height:1.6; }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--navy) 0%, #223458 60%, var(--navy) 100%);
  color:white; border-radius: 22px; padding: 56px 44px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position: relative; overflow:hidden;
}
.cta-band::after{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(56,189,248,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 60% 100% at 90% 50%, black, transparent 80%);
}
.cta-band__text{ position:relative; z-index:2; max-width:480px; }
.cta-band__text h3{ font-size: 26px; color:white; margin-bottom:10px; }
.cta-band__text p{ color:#c7d0e0; font-size:15px; }
.cta-band__actions{ position:relative; z-index:2; display:flex; gap:12px; flex-wrap:wrap; }

/* Stat row */
.stats{ display:flex; gap:0; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.stats .stat{ flex:1; padding: 26px 22px; text-align:center; border-right:1px solid var(--line); }
.stats .stat:last-child{ border-right:none; }
.stat__num{ font-family: var(--font-mono); font-size: 30px; font-weight:600; color: var(--blue); }
.stat__label{ font-size:12.5px; color: var(--slate); margin-top:6px; letter-spacing:0.02em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--navy-deep); color: #a9b4c9; padding: 64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ color:white; font-size:14px; margin-bottom:16px; font-family: var(--font-body); font-weight:600; }
.site-footer ul li{ margin-bottom:10px; font-size:14px; }
.site-footer ul li a:hover{ color: var(--sky); }
.footer-brand p{ font-size:13.5px; line-height:1.7; margin-top:14px; color:#8a97b0; max-width:280px; }
.footer-bottom{
  margin-top: 50px; padding-top: 22px; border-top:1px solid rgba(255,255,255,0.08);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:12.5px; font-family: var(--font-mono); color:#6b7690;
}

/* ==========================================================================
   Page-specific hero visuals (mockups) live in each page's <style> or here
   ========================================================================== */

/* --- Page 1 : product grid mockup --- */
.mock-products{
  display:grid; grid-template-columns: repeat(2,1fr); gap:14px;
}
.mock-products .p-card{
  background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding:16px;
}
.mock-products .p-card .p-icon{ color: var(--sky); margin-bottom: 14px; }
.mock-products .p-card .p-icon svg{ width:26px; height:26px; }
.mock-products .p-card .p-name{ font-size:13.5px; font-weight:600; color:white; }
.mock-products .p-card .p-price{ font-family: var(--font-mono); font-size:12px; color:#8a97b0; margin-top:4px; }

/* --- Page 2 : diagnostic terminal mockup --- */
.mock-terminal{
  background: var(--navy-deep); border:1px solid rgba(255,255,255,0.1); border-radius:14px;
  overflow:hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.mock-terminal__bar{ display:flex; align-items:center; gap:7px; padding:12px 16px; border-bottom:1px solid rgba(255,255,255,0.08); }
.mock-terminal__bar span{ width:9px; height:9px; border-radius:50%; background:#3a4560; }
.mock-terminal__body{ padding: 20px; font-family: var(--font-mono); font-size:13px; line-height:2; color:#b9c3d8; }
.mock-terminal__body .ok{ color: var(--ok); }
.mock-terminal__body .cursor{ display:inline-block; width:7px; height:14px; background: var(--sky); vertical-align:-2px; animation: blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

/* --- Page 3 : camera monitor grid mockup --- */
.mock-monitor{
  display:grid; grid-template-columns: repeat(2,1fr); gap:2px; background: rgba(255,255,255,0.1);
  border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,0.1);
}
.mock-monitor .cam{
  background: #0e1626; aspect-ratio: 4/3; position:relative; padding:10px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.mock-monitor .cam__tag{ font-family: var(--font-mono); font-size:10.5px; color: var(--sky); display:flex; align-items:center; gap:5px; }
.mock-monitor .cam__tag::before{ content:""; width:5px; height:5px; border-radius:50%; background:#ef4444; box-shadow:0 0 5px #ef4444; }
.mock-monitor .cam__time{ font-family: var(--font-mono); font-size:10px; color:#5c6884; align-self:flex-end; }

/* --- Page 4 : POS / dashboard mockup --- */
.mock-dash{
  background: var(--navy-deep); border:1px solid rgba(255,255,255,0.1); border-radius:14px; padding:20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.mock-dash__row{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.mock-dash__title{ color:white; font-weight:600; font-size:14px; }
.mock-dash__badge{ font-family: var(--font-mono); font-size:10.5px; color: var(--ok); background: rgba(34,197,94,0.1); padding:4px 9px; border-radius:100px; }
.mock-dash__bars{ display:flex; align-items:flex-end; gap:8px; height:80px; margin-bottom:18px; }
.mock-dash__bars div{ flex:1; background: linear-gradient(180deg, var(--sky), var(--blue)); border-radius:4px 4px 0 0; opacity:0.85; }
.mock-dash__list{ display:flex; flex-direction:column; gap:10px; }
.mock-dash__list li{ display:flex; justify-content:space-between; font-family: var(--font-mono); font-size:12px; color:#b9c3d8; }
.mock-dash__list li b{ color:white; font-weight:500; }

/* Utility */
.flex{ display:flex; }
.gap-3{ gap:12px; }
.mt-6{ margin-top:24px; }
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
@media (max-width: 880px){ .split{ grid-template-columns:1fr; } .hero .split{ gap:48px; } }

.list-check{ display:flex; flex-direction:column; gap:14px; }
.list-check li{ display:flex; gap:12px; align-items:flex-start; font-size:15px; color: var(--navy); line-height:1.5; }
.list-check li svg{ flex-shrink:0; width:19px; height:19px; color: var(--ok); margin-top:2px; }
.bg-navy .list-check li{ color:#dbe2f0; }

/* ---------- Consultation gratuite pill (hero) ---------- */
.hero-pill{
  margin-top: 22px;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.3);
  color: var(--sky);
  transition: background .15s ease, transform .15s ease;
}
.hero-pill:hover{ background: rgba(56,189,248,0.2); transform: translateY(-1px); }
.pill[href]{ cursor: pointer; }

/* ---------- Google Maps embed in footer ---------- */
.map-block{ margin-top: 50px; }
.map-block h4{ color:white; font-size:14px; margin-bottom:16px; font-weight:600; }
.map-embed-wrap{
  border-radius: var(--radius); overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
}
.map-embed{ width:100%; height:280px; border:0; display:block; }

/* ==========================================================================
   Extra responsive tuning — phones / tablets
   ========================================================================== */
@media (max-width: 1024px){
  .split{ gap: 40px; }
}

@media (max-width: 620px){
  .hero{ padding: 60px 0 68px; }
  section{ padding: 56px 0; }
  .section-tight{ padding: 48px 0; }
  .cta-band{ padding: 36px 22px; flex-direction:column; align-items:flex-start; }
  .stats{ flex-direction: column; }
  .stats .stat{ border-right:none; border-bottom:1px solid var(--line); }
  .stats .stat:last-child{ border-bottom:none; }
  .hero__ctas{ flex-direction:column; align-items:stretch; }
  .hero__ctas .btn{ justify-content:center; }
  .map-embed{ height:220px; }
}
