:root {
  --blue: #1F6FEB;
  --blue-dark: #174EA6;
  --blue-light: #E8F0FE;
  --teal: #0E7490;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --border: #E2E8F0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .07);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; justify-content: center; }

/* Boutons */
.btn {
  display: inline-block;
  padding: .8em 1.4em;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-light); }
.btn-light { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-light:hover { background: var(--blue-light); border-color: var(--blue-light); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: .95rem;
}
.nav { display: flex; align-items: center; gap: 1.6em; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s; }

/* Hero */
.hero { padding: 80px 0 70px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 1em; }
.eyebrow-light { color: #67E8F9; }
.accent { color: var(--blue); }
.lead { font-size: 1.2rem; color: var(--text); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero-badges li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: .4em; }
.hero-badges strong { color: var(--ink); }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(15,23,42,.10)); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 46em; margin-bottom: 2.2em; font-size: 1.05rem; }
.section-dark { background: linear-gradient(120deg, #312E81, #0E7490); color: #E0E7FF; }
.section-dark h2 { color: #fff; }
.section-cta { background: linear-gradient(120deg, var(--blue), var(--teal)); color: #fff; }
.section-cta h2 { color: #fff; }
.section-cta .lead { color: #E0F2FE; margin-inline: auto; }

/* Grilles & cartes */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.problem .icon { font-size: 1.8rem; display: block; margin-bottom: .4em; }
.problem p { font-size: .97rem; }

.offer { display: flex; flex-direction: column; }
.offer p { font-size: .97rem; }
.offer .price { margin-top: auto; padding-top: 1em; font-weight: 700; color: var(--blue-dark); }
.offer-highlight { border: 2px solid var(--blue); }
.tag {
  align-self: flex-start;
  background: var(--blue-light); color: var(--blue-dark);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .25em .8em; border-radius: 999px;
}

.case-client { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .5em; }
.case p { font-size: .97rem; }
.tech { color: var(--muted); font-size: .88rem !important; font-family: Consolas, "Courier New", monospace; }

/* IA */
.ia-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.ia-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ia-list li {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.ia-list strong { color: #fff; }

/* Méthode */
.steps { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.steps li { position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps p { font-size: .97rem; }

/* À propos */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 50px; align-items: start; }
.about-photo {
  width: 220px; height: 220px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-size: 4rem; font-weight: 700;
}
.stack { list-style: none; padding: 0; margin: 1.5em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  background: var(--blue-light); color: var(--blue-dark);
  padding: .3em .9em; border-radius: 999px; font-size: .88rem; font-weight: 600;
}

/* FAQ */
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Contact */
.contact-meta { margin-top: 1.5em; color: #E0F2FE; font-size: .95rem; }

/* Pied de page */
.site-footer { background: var(--ink); color: #94A3B8; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Page légale */
.legal { padding: 60px 0 80px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .ia-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { width: 140px; height: 140px; font-size: 2.6rem; }
  .section { padding: 60px 0; }
  .hero { padding: 50px 0; }
}
