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

:root {
  --navy: #1B2A47;
  --navy-light: #243556;
  --blue: #29ABE2;
  --blue-light: #E8F5FC;
  --white: #ffffff;
  --off: #F5F7FA;
  --border: #E2E8F0;
  --text: #1B2A47;
  --text-mid: #4A5568;
  --text-light: #718096;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.6; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.nav-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2.5rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand img { height: 50px; display: block; border-radius: 6px; }
nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
nav ul a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .875rem; font-weight: 500; transition: color .2s; }
nav ul a:hover { color: #fff; }
.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  padding: .5rem 1.25rem; border-radius: 4px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: #1e96cc !important; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding-top: 70px;
}
.hero-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 6rem 2.5rem 5rem;
}
.hero-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; max-width: 760px;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.65);
  max-width: 560px; line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-dark {
  background: var(--blue); color: #fff;
  padding: .8rem 1.75rem; border-radius: 4px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; display: inline-block;
  transition: background .2s;
}
.btn-dark:hover { background: #1e96cc; }
.btn-line {
  border: 1.5px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85);
  padding: .78rem 1.75rem; border-radius: 4px;
  font-weight: 500; font-size: .9rem;
  text-decoration: none; display: inline-block;
  transition: border-color .2s, color .2s;
}
.btn-line:hover { border-color: #fff; color: #fff; }

.hero-stats {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2.5rem;
  display: flex; align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat {
  flex: 1; padding: 2rem 2.5rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.stat strong {
  font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1;
}
.stat span { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.4; }
.stat-sep { width: 1px; background: rgba(255,255,255,.1); flex-shrink: 0; }

/* ── COMMON SECTION ── */
.section { background: var(--white); }
.section-alt { background: var(--off); }
.section-navy { background: var(--navy); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 5.5rem 2.5rem; }

.section-intro { margin-bottom: 3rem; }
.section-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--text);
  margin-bottom: .5rem;
}
.section-intro.light h2 { color: #fff; }
.section-intro p { font-size: .95rem; color: var(--text-light); }
.section-intro.light p { color: rgba(255,255,255,.55); }

/* ── SERVICES ── */
.tiles {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.tile {
  background: var(--white); padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow .2s;
}
.tile:hover { box-shadow: inset 0 3px 0 var(--blue); }
.tile-dark { background: var(--navy-light); }
.tile-dark h3, .tile-dark p, .tile-dark li { color: rgba(255,255,255,.85) !important; }
.tile-dark .tile-num { color: var(--blue); }
.tile-dark:hover { box-shadow: inset 0 3px 0 var(--blue); }
.tile-ai { background: linear-gradient(135deg, #0a1628 0%, #0d2040 100%); border-top: 3px solid var(--blue); }
.tile-ai h3, .tile-ai p, .tile-ai li { color: rgba(255,255,255,.85) !important; }
.tile-ai .tile-num { color: var(--blue); }
.tile-ai ul { border-color: rgba(255,255,255,.1); }
.tile-ai:hover { box-shadow: 0 8px 32px rgba(41,171,226,.25); }
.tile-num { font-size: .75rem; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.tile h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.tile > p { font-size: .88rem; color: var(--text-mid); line-height: 1.7; }
.tile ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--border); }
.tile-dark ul { border-color: rgba(255,255,255,.1); }
.tile ul li { font-size: .82rem; color: var(--text-light); padding-left: 1rem; position: relative; }
.tile ul li::before { content: '›'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── RÉFÉRENCES ── */
.refs-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.ref-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .2s, box-shadow .2s;
}
.ref-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(41,171,226,.12); }
.ref-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.ref-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.ref-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-light); padding: .2rem .6rem; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.ref-card > p { font-size: .85rem; color: var(--text-mid); line-height: 1.65; }
.ref-kpi {
  font-size: .82rem; font-weight: 700; color: var(--navy);
  padding-top: .75rem; border-top: 1px solid var(--border);
}

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
blockquote {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 2rem;
}
blockquote p { font-size: .92rem; font-style: italic; color: var(--text-mid); line-height: 1.75; margin-bottom: .75rem; }
blockquote cite { font-size: .75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; font-style: normal; }

/* ── À PROPOS ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.about-left h3 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.about-left h4 { font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: .06em; }
.about-left p { font-size: .92rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; }
.about-langs { display: flex; gap: 1.5rem; margin-top: 1.5rem; }
.about-langs span { font-size: .82rem; color: var(--text-light); font-weight: 500; }

.about-right { display: flex; flex-direction: column; gap: 2.5rem; }
.xp-block h5 {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.xp-list { display: flex; flex-direction: column; }
.xp-row {
  display: grid; grid-template-columns: 75px 1fr; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.xp-row:last-child { border-bottom: none; }
.xp-row span { font-size: .72rem; font-weight: 700; color: var(--blue); padding-top: 3px; }
.xp-row p { font-size: .85rem; color: var(--text-mid); line-height: 1.5; }
.xp-row p strong { color: var(--text); font-weight: 600; display: block; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info a, .contact-info span {
  display: flex; align-items: center; gap: .85rem;
  font-size: .88rem; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color .2s;
}
.contact-info a:hover { color: var(--blue); }
.contact-info svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--blue); }

form { display: flex; flex-direction: column; gap: 1.25rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: .35rem; }
label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
input, select, textarea {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px; color: #fff;
  padding: .7rem 1rem; font-size: .9rem; font-family: var(--font);
  outline: none; transition: border-color .2s;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.25); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
select option { background: var(--navy); }
textarea { resize: vertical; min-height: 110px; }
button[type="submit"] {
  background: var(--blue); color: #fff; border: none;
  padding: .85rem 2rem; border-radius: 4px;
  font-family: var(--font); font-size: .9rem; font-weight: 700;
  cursor: pointer; align-self: flex-start;
  transition: background .2s;
}
button[type="submit"]:hover { background: #1e96cc; }

/* ── FOOTER ── */
footer { background: #111C30; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner {
  padding-top: 1.5rem !important; padding-bottom: 1.5rem !important;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-inner img { height: 30px; filter: brightness(0) invert(1); opacity: .5; }
.footer-inner p { font-size: .78rem; color: rgba(255,255,255,.3); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .refs-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .quotes { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .stat { min-width: 50%; }
  .stat-sep { display: none; }
  .wrap { padding: 4rem 2rem; }
}
@media (max-width: 640px) {
  .nav-wrap { padding: 0 1rem; height: 60px; }
  .nav-brand img { height: 44px; }
  nav ul {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    background: var(--navy);
    padding: .6rem .75rem; gap: .25rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  nav ul li a {
    display: block; padding: .5rem .75rem;
    font-size: .85rem;
  }
  nav.open ul { display: flex; }
  .burger { display: flex; }
  .hero { padding-top: 60px; }
  .hero-wrap { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-desc { font-size: .92rem; }
  .hero-actions { flex-direction: column; }
  .btn-dark, .btn-line { text-align: center; }
  .hero-stats { padding: 0 1rem; }
  .stat { min-width: 100%; padding: 1.25rem 1rem; }
  .wrap { padding: 3rem 1rem; }
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 1.75rem 1.25rem; }
  .refs-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 1.25rem; }
  blockquote { padding: 1.25rem; }
  .frow { grid-template-columns: 1fr; }
  .contact-grid { gap: 2rem; }
  button[type="submit"] { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .section-intro { margin-bottom: 2rem; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.5rem; }
  .tile { padding: 1.25rem 1rem; }
}
