/* ============================================================
   CodySoft — Landing statique (temporaire)
   Design system repris du site principal
   ============================================================ */

@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --watermelon: #ff5869;
  --turquoise: #2dd5c4;
  --purple: #7c5cfc;
  --mustard: #ffd133;
  --blue: #6b83ff;
  --dark: #0d1020;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #ececef;
  --white: #ffffff;

  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Caveat", "General Sans", cursive;

  --radius: 24px;
  --shadow-sm: 0 10px 30px -18px rgba(13, 16, 32, 0.25);
  --shadow: 0 30px 60px -30px rgba(13, 16, 32, 0.28);
  --shadow-lg: 0 50px 90px -35px rgba(13, 16, 32, 0.4);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(124, 92, 252, 0.2); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hand { font-family: var(--hand); font-weight: 600; }

/* ---- Underline accent (SVG-like) ---- */
.u { position: relative; white-space: nowrap; }
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px;
  background: currentColor; border-radius: 8px; opacity: .9;
  transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.16,1,.3,1) .2s;
}
.is-visible .u::after { transform: scaleX(1); }

/* ---- Section label pill ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; font-size: 11px; font-weight: 600;
  border: 1px solid;
}
.eyebrow .lbl { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px; transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(2px); }
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--watermelon); color: #fff; border-color: var(--watermelon); }
.btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(255, 88, 105, .55); }
.btn--primary .arrow { background: #fff; color: var(--watermelon); }

.btn--turquoise { background: var(--turquoise); color: #fff; border-color: var(--turquoise); }
.btn--turquoise:hover { box-shadow: 0 14px 30px -10px rgba(45, 213, 196, .55); }
.btn--turquoise .arrow { background: #fff; color: var(--turquoise); }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost .arrow { background: var(--soft); color: var(--ink); }
.btn--ghost:hover { border-color: #d9d9df; }

.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light .arrow { background: var(--watermelon); color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0; transition: padding .3s ease, background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  padding: 8px 0; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(0, 0, 0, .06);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 44px; width: auto; }
.footer__logo img { height: 45px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #3d3d3f;
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--soft); color: var(--purple); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 140px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -100px; right: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, .10), transparent 68%); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; bottom: -160px; left: -140px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 213, 196, .10), transparent 68%); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: #3d3d3f;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 4px rgba(45,213,196,.18); }
.hero h1 {
  margin-top: 22px; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.02em;
  font-weight: 600; color: var(--ink);
}
.hero h1 .rot { color: var(--purple); font-family: var(--hand); font-weight: 600; font-size: 1.06em; display: inline-block; }
.hero p.lead { margin-top: 22px; max-width: 500px; font-size: 17px; color: var(--muted); font-weight: 500; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px;
  background: var(--soft); overflow: hidden; box-shadow: var(--shadow-sm);
}
.avatars span:first-child { margin-left: 0; }
.avatars .plus { display: flex; align-items: center; justify-content: center; background: var(--purple); color: #fff; font-weight: 600; }
.hero__meta small { font-size: 13px; color: var(--muted); }
.hero__meta small b { color: var(--ink); }

/* Collage */
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 200px); gap: 16px; }
.collage figure { position: relative; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); }
.collage figure img { width: 100%; height: 100%; object-fit: cover;  object-position: top center;  transition: transform .8s cubic-bezier(.16,1,.3,1); }
.collage figure:hover img { transform: scale(1.06); }
.collage .tall { grid-row: span 2; }
.floaty {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04); animation: float 5s ease-in-out infinite;
}
.floaty--tl { top: -14px; left: -18px; }
.floaty--br { bottom: -16px; right: -14px; animation-delay: 1.2s; }
.floaty b { font-size: 20px; font-weight: 800; }
.floaty small { display: block; font-size: 11px; color: var(--muted); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: #3d3d3f; white-space: nowrap; }
.marquee__item .d { width: 7px; height: 7px; border-radius: 50%; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.pad { padding: 84px 0; }
.pad--soft { background: var(--soft); }
.head { max-width: 720px; }
.head h2 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.head h2 .hand { font-size: 1.15em; }
.head p { margin-top: 14px; font-size: 16px; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---- Service cards ---- */
.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin-top: 8px; font-size: 13.5px; color: var(--muted); flex: 1; }
.tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 500; color: #4d4d52; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.card__img { margin-top: 18px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.card:hover .card__img img { transform: scale(1.05); }

/* ---- Expertises ---- */
.exp { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
.exp__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.exp__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.exp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.exp__card:hover .exp__media img { transform: scale(1.05); }
.exp__num { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.exp__body { padding: 22px 24px 26px; }
.exp__body h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.exp__body p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.exp__list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.exp__list li { list-style: none; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #3d3d3f; }
.exp__list .d { width: 6px; height: 6px; border-radius: 50%; flex: none; }

/* ---- Stats ---- */
.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---- Tech ---- */
.tech { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.tech .pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.tech .pill:hover { transform: translateY(-3px); }
.tech .pill .d { width: 9px; height: 9px; border-radius: 50%; }

/* ============================================================
   CTA band + Contact (dark)
   ============================================================ */
.cta {
  position: relative; overflow: hidden; color: #fff; border-radius: 32px; margin: 0 auto; max-width: var(--max);
  background: var(--dark); padding: 64px 56px; text-align: center;
}
.cta::before { content: ""; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,252,.35), transparent 70%); }
.cta::after { content: ""; position: absolute; bottom: -120px; left: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(45,213,196,.22), transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.02em; font-weight: 600; }
.cta h2 .hand { color: var(--turquoise); font-size: 1.1em; }
.cta p { margin: 16px auto 0; max-width: 520px; color: #b9bdcc; font-size: 16px; }
.cta__row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.cta__mail { font-weight: 600; color: #fff; border-bottom: 1px dashed rgba(255,255,255,.4); padding-bottom: 2px; }
.stripe { display: flex; margin-top: 40px; border-radius: 999px; overflow: hidden; height: 5px; max-width: 260px; margin-left: auto; margin-right: auto; }
.stripe i { flex: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0b0e1c; color: #fff; padding: 64px 0 0; margin-top: 84px; }
.footer__top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #1c2445; }
.footer__brand img { height: 55px; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; font-size: 14px; color: #7d88b5; line-height: 1.6; }
.footer__col h4 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; color: #7d88b5; margin-bottom: 10px; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; border: 1px solid #272f52; background: #141827; display: flex; align-items: center; justify-content: center; color: #7d88b5; transition: color .2s, border-color .2s; }
.socials a:hover { color: #fff; border-color: #3d4775; }
.socials svg { width: 16px; height: 16px; }
.footer__bottom { padding: 22px 0; text-align: center; font-size: 12.5px; color: #4a5580; }
.footer__bottom .note { color: #7d88b5; font-weight: 600; }
.footer__stripe { display: flex; height: 4px; }
.footer__stripe i { flex: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .collage { max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .exp { grid-template-columns: 1fr; max-width: 480px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .nav__burger { display: flex; }
  .pad { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { padding: 48px 24px; border-radius: 24px; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; justify-content: space-between; }

  .nav.open { background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); box-shadow: 0 1px 24px rgba(0, 0, 0, .08); }
  .nav.open .nav__links {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px;
    padding: 10px 24px 20px; background: #fff; border-top: 1px solid var(--line);
  }
  .nav.open .nav__links a { padding: 13px 14px; }
}
