:root {
  --navy: #141e31;
  --navy-2: #1d2940;
  --slate: #3b414d;
  --ink: #1b1d22;
  --muted: #5d6270;
  --paper: #f4f1ec;
  --sand: #d6be95;
  --white: #ffffff;
  --orange: #fdaa00;
  --orange-2: #ff8a00;
  --radius: 14px;
  --max: 1180px;
  --shadow: 0 10px 30px rgba(20, 30, 49, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-2); margin-bottom: .8em;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 236, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 30, 49, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav a:hover { color: var(--orange-2); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: var(--navy); box-shadow: 0 8px 20px rgba(255, 138, 0, .3); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 10px 18px; font-size: .9rem; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--orange-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; color: var(--muted); font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--orange-2); flex: none; }
.hero-strip { margin-top: clamp(48px, 7vw, 90px); background: var(--navy); color: var(--white); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 34px 0; }
.hero-strip strong { display: block; font-size: 1.05rem; }
.hero-strip small { color: rgba(255, 255, 255, .7); font-size: .92rem; }

/* Services */
.services { background: var(--navy); color: var(--white); padding-top: 0; }
.services .lead { color: rgba(255, 255, 255, .72); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.service {
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.service:hover { border-color: rgba(253, 170, 0, .5); transform: translateY(-3px); }
.service .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(253, 170, 0, .12); color: var(--orange); margin-bottom: 18px;
}
.service .icon svg { width: 28px; height: 28px; }
.service p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .97rem; }

/* Projects */
.projects { background: var(--sand); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.project { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.project .body { padding: 20px 22px 24px; }
.project .tag { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.project h3 { font-size: 1.5rem; margin: .2em 0 .3em; }
.project p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Team */
.team { background: var(--slate); color: var(--white); }
.team .lead { color: rgba(255, 255, 255, .72); }
.team-lead { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.team-rest { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; margin-top: 34px; }
.person img, .person .avatar {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  background: #4a515f;
}
.person .avatar { display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: rgba(255, 255, 255, .55); }
.person h3 { margin: 14px 0 2px; font-size: 1.08rem; }
.person p { margin: 0; color: var(--orange); font-size: .92rem; font-weight: 600; }
.team-rest .person h3 { font-size: .95rem; margin-top: 10px; }

/* Contact */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--orange);
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a, .contact-list span.v { font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { color: var(--orange-2); }
.form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.form h3 { font-size: 1.4rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #d5d3cf; background: #fbfaf8; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--orange); border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin: 4px 0 20px; }
.consent input { margin-top: 4px; }
.hidden { display: none; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 0; width: 100%; height: 260px; filter: grayscale(.4); }

/* Academy */
.academy { background: linear-gradient(135deg, #0c0e11, var(--navy)); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; border-top: 3px solid var(--orange); }
.academy-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.academy h2 { margin-bottom: .35em; }
.academy p { color: rgba(255, 255, 255, .75); max-width: 62ch; margin: 0; }
.academy .btn { flex: none; }
@media (max-width: 760px) { .academy-inner { flex-direction: column; align-items: flex-start; } }

/* Spike, la mascotte */
.spike { margin: 36px 0 0; display: grid; grid-template-columns: 170px 1fr; grid-template-areas: "img bubble" "img cap"; align-items: center; column-gap: 18px; }
.spike img {
  grid-area: img; width: 170px; height: 170px;
  background: radial-gradient(circle at 50% 58%, rgba(253, 170, 0, .22), rgba(253, 170, 0, 0) 68%);
  border-radius: 50%;
  transform-origin: 50% 90%;
  animation: spike-hop 5s ease-in-out infinite;
}
.spike-bubble {
  grid-area: bubble; position: relative; background: var(--white); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); font-size: .95rem; color: #3a3e47; line-height: 1.5;
}
.spike-bubble strong { display: block; color: var(--navy); margin-bottom: 2px; }
.spike-bubble::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px;
  background: var(--white); transform: translateY(-50%) rotate(45deg); border-radius: 3px;
}
.spike figcaption { grid-area: cap; font-size: .8rem; color: var(--muted); margin-top: 8px; padding-left: 4px; }
@keyframes spike-hop { 0%, 86%, 100% { transform: translateY(0); } 90% { transform: translateY(-8px) rotate(-2deg); } 94% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .spike img { animation: none; } }
@media (max-width: 760px) {
  .spike { grid-template-columns: 110px 1fr; column-gap: 12px; }
  .spike img { width: 110px; height: 110px; }
  .spike-bubble { font-size: .9rem; padding: 12px 14px; }
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 48px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Legal pages */
.legal { padding: 60px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: #3a3e47; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .team-lead { grid-template-columns: repeat(2, 1fr); }
  .team-rest { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid rgba(20, 30, 49, .1); display: none; padding: 8px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(20, 30, 49, .06); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .hero-strip .wrap { grid-template-columns: 1fr; gap: 16px; }
  .service-grid, .project-grid { grid-template-columns: 1fr; }
  .team-rest { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--navy); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; color: var(--white); text-decoration: none; font-weight: 700; }
  .callbar a:first-child { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: var(--navy); }
  .callbar svg { width: 20px; height: 20px; }
}
