/* =========================================================
   Rodexus — site vitrine
   Charte reprise de l'app Flutter (lib/core/glass_theme.dart) :
   glassmorphism navy, bleu marque #1458A6, accent #5BA7FF, typo Inter.
   ========================================================= */

:root {
  /* Couleurs marque (source : GlassTheme) */
  --brand:      #1458A6;
  --brand-hi:   #1E5DA8;
  --accent:     #5BA7FF;
  --accent-2:   #7DB6FF;
  --teal:       #34D3B5;
  --violet:     #9B8CFF;

  --ink:        #07182E;   /* fond le plus profond */
  --success:    #5EE08A;
  --warning:    #FFB454;
  --danger:     #FF8585;

  --text:       #ffffff;
  --text-70:    rgba(255,255,255,.72);
  --text-54:    rgba(255,255,255,.55);
  --text-38:    rgba(255,255,255,.40);

  --glass:        rgba(255,255,255,.07);
  --glass-strong: rgba(255,255,255,.11);
  --border:       rgba(255,255,255,.14);
  --border-soft:  rgba(255,255,255,.08);

  --radius:    14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --pad:       clamp(20px, 5vw, 28px);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(91,167,255,.16), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(20,88,166,.30), transparent 55%),
    linear-gradient(165deg, #1E5DA8 0%, #134577 26%, #0C2A4E 58%, #07182E 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section-tight { padding: clamp(36px, 6vw, 64px) 0; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(91,167,255,.10);
  border: 1px solid rgba(91,167,255,.24);
  padding: 6px 14px; border-radius: 30px;
}
.gradient { background: linear-gradient(100deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-70); font-size: clamp(16px, 1.6vw, 19px); }
.muted { color: var(--text-70); }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(33px, 5.2vw, 56px); }
h2 { font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-size: 19px; }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 54px); text-align: center; }
.section-head h2 { margin: 14px 0 12px; }
.section-head p { color: var(--text-70); font-size: 16px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; transition: .18s ease; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -10px rgba(20,88,166,.9); }
.btn-primary:hover { background: #1a66bd; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.10); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 9px;
  background: #0a1830; border: 1px solid var(--border); color: #fff;
  padding: 9px 15px; border-radius: 12px; transition: .18s ease;
}
.store:hover { border-color: var(--accent); transform: translateY(-1px); }
.store i { font-size: 22px; line-height: 1; }
.store small { display: block; font-size: 10px; color: var(--text-54); line-height: 1; }
.store b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: .25s ease; }
.site-header.scrolled { background: rgba(7,18,30,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 36px; height: 36px; }
.brand-text strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.brand-text span { display: block; font-size: 10.5px; color: var(--text-54); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--text-70); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 78px) 0 clamp(48px, 7vw, 88px); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { margin: 18px 0 0; }
.hero .lead { margin: 20px 0 28px; max-width: 560px; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-proof { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-70); }
.hero-proof .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(94,224,138,.18); }

.hero-visual { display: flex; justify-content: center; position: relative; }
.phone { background: #06121f; border: 7px solid #16263f; border-radius: 38px; padding: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); position: relative; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 60px; height: 7px; background: #16263f; border-radius: 5px; z-index: 2; }
.phone img { border-radius: 30px; width: 270px; display: block; }
.hero-visual .phone { transform: rotate(-2deg); }

/* ---------- Architecture / 3 blocs ---------- */
.blocs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bloc { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.bloc .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(91,167,255,.15); color: var(--accent-2); display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 14px; }
.bloc h3 { margin-bottom: 7px; }
.bloc p { color: var(--text-70); font-size: 14.5px; }

/* ---------- Avantages ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: .2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(91,167,255,.4); background: var(--glass-strong); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(91,167,255,.15); color: var(--accent-2); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 13px; }
.card h3 { font-size: 16.5px; margin-bottom: 6px; }
.card p { color: var(--text-70); font-size: 13.8px; line-height: 1.55; }
.card.feature-proof { background: linear-gradient(150deg, rgba(20,88,166,.34), var(--glass)); border-color: rgba(91,167,255,.4); }

/* ---------- Galerie app ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 30px); }
.shot { text-align: center; }
.shot .phone { display: inline-block; }
.shot .phone img { width: 100%; max-width: 230px; }
.shot h4 { font-size: 15px; font-weight: 600; margin-top: 16px; }
.shot p { font-size: 13px; color: var(--text-54); margin-top: 3px; }

/* ---------- Sécurité ---------- */
.secu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.secu-item { display: flex; gap: 13px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.secu-item i { font-size: 22px; color: var(--accent-2); flex-shrink: 0; margin-top: 1px; }
.secu-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.secu-item p { font-size: 13.5px; color: var(--text-70); }
.secu-flag { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; color: var(--text-70); font-size: 14px; }
.secu-flag span { display: inline-flex; align-items: center; gap: 8px; }
.secu-flag i { color: var(--teal); font-size: 19px; }

/* ---------- Robots ---------- */
.robots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.robot { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.robot:hover { transform: translateY(-3px); border-color: rgba(91,167,255,.4); }
.robot-img { background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 14px; }
.robot-img img { max-height: 100%; width: auto; object-fit: contain; }
.robot-body { padding: 16px 18px 20px; }
.robot-body h3 { font-size: 17px; }
.robot-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent-2); background: rgba(91,167,255,.12); border: 1px solid rgba(91,167,255,.22); padding: 3px 10px; border-radius: 20px; margin-top: 8px; }
.robots-note { text-align: center; color: var(--text-54); font-size: 13.5px; margin-top: 20px; }

/* ---------- Secteurs ---------- */
.sectors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sector { text-align: center; background: var(--glass); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px 10px; }
.sector .ic { width: 40px; height: 40px; margin: 0 auto 11px; border-radius: 11px; background: rgba(91,167,255,.14); color: var(--accent-2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sector span { font-size: 13.5px; font-weight: 500; }

/* ---------- Tarifs (à venir) ---------- */
.pricing { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--glass); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 26px 30px; }
.pricing h3 { display: flex; align-items: center; gap: 10px; }
.pricing h3 i { color: var(--accent-2); }
.pricing p { color: var(--text-70); font-size: 14.5px; margin-top: 5px; }
.badge-soon { background: rgba(91,167,255,.14); color: var(--accent-2); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 10px; }

/* ---------- Démo / contact ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text-70); font-size: 15px; }
.contact-list i { color: var(--accent-2); font-size: 19px; }
.form { background: var(--glass-strong); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-70); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; transition: .15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); }
.field select option { background: #0c2a4e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--success); text-align: center; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: linear-gradient(120deg, rgba(20,88,166,.5), rgba(91,167,255,.16)); border: 1px solid rgba(91,167,255,.3);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); }
.cta-band p { color: var(--text-70); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #050f1d; border-top: 1px solid var(--border-soft); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding: clamp(40px, 6vw, 60px) 0 34px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--text-54); font-size: 13.5px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-54); margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-70); margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 20px 0 30px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-54); }
.footer-bottom .mark { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .mark img { width: 20px; height: 20px; }

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .blocs { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .secu { grid-template-columns: 1fr; }
  .robots { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7,18,30,.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
    padding: 14px var(--pad) 22px; transform: translateY(-130%); transition: transform .28s ease; align-items: stretch; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--border-soft); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .robots { grid-template-columns: 1fr 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
