/* =========================================================
   YA — Base styles (V1)
   Thème sombre, accent dégradé, responsive.
   Remplace les couleurs / le nom de marque à ta guise.
   ========================================================= */

:root {
  --bg: #0b0d12;
  --bg-elev: #12151d;
  --bg-card: #151925;
  --border: #232838;
  --text: #e8ebf2;
  --text-dim: #9aa3b8;
  --text-mute: #6b7488;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-2: #7f5af0;
  --accent-2-soft: rgba(127, 90, 240, 0.14);
  --accent-grad: linear-gradient(120deg, #22d3ee 0%, #7f5af0 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #072429;
  font-weight: 700;
}

.btn-primary:hover {
  background: #3fdcf1;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

/* Le point du logo : violet plein #7f5af0 (pas de dégradé) */
.brand .accent-text {
  background: none;
  -webkit-text-fill-color: #7f5af0;
  color: #7f5af0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-elev);
}

.nav-links a.active {
  color: var(--text);
  background: var(--bg-elev);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elev);
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-mute);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}

.lang-switch button.active {
  background: var(--accent);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(127, 90, 240, 0.28) 0%,
    rgba(34, 211, 238, 0.12) 45%,
    transparent 70%
  );
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 38px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  text-align: center;
}

.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: #22d3ee;
  color: #22d3ee;
}

.stat .label {
  color: var(--text-mute);
  font-size: 0.9rem;
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.96rem;
}

/* ---------- Alt background band ---------- */
.band {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.member {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.member .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #0b0d12;
}

.member h3 {
  font-size: 1.25rem;
}

.member .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.member p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.member .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.tag {
  font-size: 0.78rem;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-dim);
}

/* ---------- Work / réalisations ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.work-item:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 90, 240, 0.5);
}

.work-thumb {
  height: 190px;
  background: linear-gradient(135deg, #1a1f2e, #12151d);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-mute);
  position: relative;
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0.08;
}

.work-body {
  padding: 24px 26px 28px;
}

.work-body .category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-body h3 {
  font-size: 1.25rem;
  margin: 8px 0 10px;
}

.work-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.work-body .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
}

.contact-info p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-list .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-2-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-list .meta span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mute);
}

.contact-list .meta a,
.contact-list .meta strong {
  font-weight: 600;
  color: var(--text);
}

/* Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: 14px;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
}

/* Honeypot anti-bots : invisible pour les humains, appât pour les robots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0.06;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 32px;
  background: var(--bg-elev);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 14px;
}

/* Les deux colonnes de liens partagent la même grille que le footer-top
   pour un alignement net et régulier. */
.footer-cols {
  display: contents;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--text);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 0.88rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }

  /* Footer : marque en pleine largeur, les 2 colonnes de liens côte à côte */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 760px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a { padding: 12px 14px; }

  .grid-2, .grid-3,
  .team-grid, .work-grid { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr; gap: 30px; }

  section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
}
