:root {
  --ink: #101b3b;
  --muted: #56617a;
  --bg: #fcfcfe;
  --white: #ffffff;
  --border: #e6e9f2;
  --turquoise: #05c5d0;
  --blue: #168ccb;
  --violet: #7136b5;
  --magenta: #d51a91;
  --pink: #f34b91;
  --coral: #ff806f;
  --orange: #ffb36c;
  --brand: linear-gradient(90deg, var(--turquoise), var(--violet) 40%, var(--magenta) 70%, var(--orange));
  --brand-btn: linear-gradient(90deg, var(--turquoise), var(--blue) 45%, var(--coral) 100%);
  --radius: 18px;
  --shadow: 0 6px 24px rgba(16, 27, 59, .07);
  --shadow-hover: 0 14px 34px rgba(16, 27, 59, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.grad-text { display: inline-block; padding-right: .08em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 254, .9);
  backdrop-filter: blur(12px);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-symbol { width: 66px; height: 29px; overflow: hidden; flex: none; }
.brand-symbol img { width: 66px; height: auto; max-width: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .01em; background: linear-gradient(90deg, var(--violet), var(--magenta) 60%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: uppercase; }
.brand-text small { font-size: .55rem; letter-spacing: .38em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { text-decoration: none; font-size: .92rem; position: relative; padding: 6px 0; }
.nav a.link:hover { color: var(--violet); }
.nav a.link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--brand); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand-btn); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: 0 8px 20px rgba(22, 140, 203, .25);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(213, 26, 145, .25); }
.btn.sm { padding: 11px 20px; font-size: .85rem; }
.btn.ghost { background: var(--white); color: var(--ink); border-color: #c9d0e2; box-shadow: none; }
.btn.ghost:hover { border-color: var(--violet); box-shadow: var(--shadow); }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(16, 27, 59, .2); }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8%; top: -12%; width: 48%; height: 110%; background: radial-gradient(closest-side, rgba(5, 197, 208, .16), transparent); z-index: -1; }
.hero::after { content: ""; position: absolute; right: -14%; top: 4%; width: 34%; height: 70%; background: radial-gradient(closest-side, rgba(243, 75, 145, .16), transparent); z-index: -1; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .85rem; margin-bottom: 22px; }
.badge svg { width: 16px; height: 16px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 22px; font-weight: 800; }
.hero p { color: var(--ink); font-size: 1.1rem; max-width: 46ch; margin: 0 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img img { width: 100%; }

/* Sections */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { display: inline-flex; align-items: center; gap: 16px; margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.02em; }
.sec-head h2::before { content: ""; width: 56px; height: 3px; border-radius: 3px; background: var(--brand); }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

.grid4 { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.service { padding: 28px 22px; text-align: center; }
.service svg { width: 46px; height: 46px; margin: 0 auto 14px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 0 0 8px; font-size: 1.05rem; }
.service p { margin: 0; color: var(--muted); font-size: .9rem; }

/* About */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-hover); aspect-ratio: 1239 / 720; object-fit: cover; }
.about .bar { display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--brand); margin-bottom: 18px; }
.about h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; }
.about p { color: var(--ink); margin: 0 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.checks .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.checks .dot svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dot.t { background: var(--turquoise); } .dot.p { background: var(--pink); }

/* Projects */
.project { overflow: hidden; position: relative; }
.project img { width: 100%; aspect-ratio: 880 / 412; object-fit: cover; }
.project .info { padding: 14px 16px 18px; }
.project h3 { margin: 0; font-size: 1rem; }
.project p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }

/* CTA */
.cta { padding: 24px 0 56px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  padding: 44px 48px; min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(100deg, #0bb5cc 0%, #3f49a8 32%, #8a2c9a 55%, #e2468f 82%, #ff9d6e 100%);
}
.cta-box::before { content: ""; position: absolute; left: 30%; bottom: -60%; width: 55%; height: 120%; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.cta-box > * { position: relative; }
.cta-box h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.cta-box p { margin: 0 0 24px; max-width: 52ch; }
.cta-logo { position: absolute !important; right: 3%; top: 50%; transform: translateY(-50%); width: 300px; height: 142px; overflow: hidden; pointer-events: none; }
.cta-logo img { width: 300px; max-width: none; filter: brightness(1.08); }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 28px 0; font-size: .85rem; }
footer.site .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site nav a { text-decoration: none; }
footer.site nav a:hover { color: var(--violet); }
footer.site .copy { color: var(--muted); }

/* Legal pages */
.legal { padding: 56px 0; max-width: 780px; }
.legal h1 { font-size: 2.2rem; margin-top: 0; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--violet); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .cta-logo { opacity: .5; }
}
@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav a.link.active::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .hero .container, .about .container { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 560px; margin-inline: auto; }
  .about .container { gap: 32px; }
}
@media (max-width: 600px) {
  section { padding: 44px 0; }
  .grid4 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 24px; }
  .cta-logo { display: none; }
  .sec-head h2::before { display: none; }
  footer.site .container { flex-direction: column; align-items: flex-start; }
}

/* Cartes projet cliquables (lien étiré) */
.project h3 a { text-decoration: none; }
.project h3 a::after { content: ""; position: absolute; inset: 0; }
.project:has(a):hover h3 a { color: var(--violet); }
