/* =========================================
   STIRIXI CONSULTING — Design system
   Site statique OVH — HTML/CSS/JS pur
   ========================================= */

:root {
  --navy:   #1E293B;
  --navy2:  #334155;
  --gold:   #2563EB;
  --gold2:  #1D4ED8;
  --slate:  #475569;
  --light:  #F8FAFC;
  --light2: #EEF2F7;
  --white:  #FFFFFF;
  --muted:  #94A3B8;
  --border: #E2E8F0;
  --border2: rgba(37, 99, 235, 0.25);
  --blue-soft: #EFF4FE;

  --ff-display: 'Sora', sans-serif;
  --ff-body:    'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 3px rgba(15,23,42,0.06), 0 4px 16px rgba(15,23,42,0.05);
  --shadow-gold: 0 6px 24px rgba(37,99,235,0.16);

  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--slate); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

/* ---- LAYOUT ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--light); }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.navbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 800;
  flex-shrink: 0;
}
.logo-img { height: 36px; width: auto; display: block; }
.logo-fallback { display: inline-flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--gold); background: var(--blue-soft); }
.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.45rem 1.1rem !important;
}
.nav-cta:hover { background: var(--gold2) !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  background: var(--white);
  background-image:
    radial-gradient(ellipse 70% 60% at 75% 30%, var(--blue-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
  padding: 4.5rem 1.5rem 4rem;
  color: var(--navy);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 40px; right: 0;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  pointer-events: none;
}
.hero-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.hero-title { color: var(--navy); margin-bottom: 1.1rem; }
.hero-title span { color: var(--gold); }
.hero-subtitle { color: var(--slate); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--slate);
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- SIMULATEUR (carte flottante) ---- */
.sim-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--border);
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.sim-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 1.2rem; }
.sim-label { font-size: 0.78rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.3rem; }
.sim-input-row { position: relative; margin-bottom: 1rem; }
.sim-input-row input[type="number"] {
  width: 100%;
  padding: 0.7rem 3.5rem 0.7rem 0.9rem;
  border: 1.5px solid #D9E0EA;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-family: var(--ff-body);
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition);
}
.sim-input-row input:focus { border-color: var(--gold); }
.sim-unit {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; color: var(--muted); font-weight: 500;
}
.sim-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #D9E0EA;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--ff-body);
  color: var(--navy);
  background: var(--white);
  outline: none;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sim-select:focus { border-color: var(--gold); }
.sim-result {
  background: var(--blue-soft);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  margin-top: 1rem;
}
.sim-result-label { font-size: 0.72rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.3rem; }
.sim-result-amount { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 700; color: var(--gold); display: block; }
.sim-result-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; display: block; }
.sim-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-top: 0.8rem;
}
.sim-detail-item { font-size: 0.75rem; color: var(--slate); }
.sim-detail-item strong { color: var(--navy); display: block; font-size: 0.82rem; }

/* ---- BOUTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-outline {
  background: var(--white);
  color: var(--gold);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover { border-color: var(--gold); background: var(--blue-soft); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sim {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  background: var(--gold);
  color: var(--white);
}
.btn-sim:hover { background: var(--gold2); }

/* ---- STATS ---- */
.stats-bar {
  background: var(--gold);
  padding: 2.4rem 1.5rem;
}
.stats-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.85); margin-top: 0.2rem; }

/* ---- AVANTAGES ---- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.adv-card {
  background: var(--white);
  border: 1px solid #E8EDF4;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.adv-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.adv-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.adv-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.adv-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.adv-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ---- COMPARATIF ---- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare-table th {
  background: var(--gold);
  color: var(--white);
  padding: 0.9rem 1.1rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
}
.compare-table th.highlight { background: var(--navy); color: var(--white); }
.compare-table td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #EEF1F6;
  color: var(--slate);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 500; color: var(--navy); }
.compare-table td.highlight { color: var(--navy); font-weight: 600; }
.compare-table tbody tr:hover td { background: rgba(37,99,235,0.03); }
.check { color: #22C55E; font-size: 1.1rem; }
.cross { color: #EF4444; font-size: 1.1rem; }

/* ---- FONCTIONNEMENT ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 22px; left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.step-item { text-align: center; position: relative; }
.step-num {
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.step-item h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.step-item p { font-size: 0.82rem; color: var(--muted); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field label { font-size: 0.78rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid #D9E0EA;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 100px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.5rem; color: var(--muted); }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid #E8EDF4;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-item:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(37,99,235,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.contact-item-text span { font-size: 0.72rem; color: var(--muted); display: block; }
.contact-item-text strong { font-size: 0.9rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--light);
  color: var(--slate);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.82rem; margin-top: 0.8rem; max-width: 260px; color: var(--muted); }
.footer-col h4 { font-family: var(--ff-display); color: var(--navy); font-size: 0.85rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--slate); text-decoration: none; font-size: 0.82rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* Logo dans le footer clair : texte sombre */
footer .logo { color: var(--navy); }

/* ---- NOTIFICATIONS / TOAST ---- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(15,23,42,0.18);
  z-index: 9999;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sim-card { margin-top: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
