/* EVO-WA-GROUP, feuille de style unique.
   Direction : technique sobre, base charbon froide, un seul accent terre cuite,
   angles vifs partout, filets d'un pixel comme seule séparation.
   Thème unique : sombre. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #0a0b0c;
  --bg-raised: #0e1012;
  --bg-sunken: #070809;
  --ink: #eef1f3;
  --ink-soft: #c3cace;
  --muted: #8b9399;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #d8552f;
  --accent-bright: #f0653a;
  --accent-ink: #0a0b0c;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- barre de navigation ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 64px;
  background: rgba(10, 11, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.brand__mark {
  width: 20px;
  height: 20px;
  flex: none;
}

.brand__name {
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }

.nav__cta {
  color: var(--ink) !important;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__cta:hover {
  border-color: var(--accent);
  background: rgba(216, 85, 47, 0.1);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 104px 0 72px;
  overflow: hidden;
}

.hero__lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 72%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.6fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(1.95rem, 3.15vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.line {
  display: block;
  overflow: hidden;
}

.line__in {
  display: block;
  transform: translateY(112%);
  transition: transform 0.95s var(--ease);
}
body.is-ready .line:nth-child(1) .line__in { transition-delay: 0.08s; }
body.is-ready .line:nth-child(2) .line__in { transition-delay: 0.2s; }
body.is-ready .line__in { transform: none; }

.hero__sub {
  max-width: 46ch;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

[data-fade] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(0.32s + var(--d, 0) * 0.1s);
}
body.is-ready [data-fade] {
  opacity: 1;
  transform: none;
}

/* ---------- boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
    color 0.22s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-1px);
}
.btn--ghost:active { transform: translateY(1px); }

.btn__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.62;
  padding-left: 10px;
  border-left: 1px solid currentColor;
}

/* ---------- fiche société ---------- */

.sheet {
  border-top: 1px solid var(--line-strong);
  align-self: start;
  margin-top: 6px;
}

.sheet__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.sheet__key {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.sheet__val {
  font-size: 0.88rem;
  text-align: right;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sheet__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.sheet__row--stack .sheet__val {
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- sections ---------- */

.block {
  padding: clamp(72px, 11vw, 132px) 0;
  border-top: 1px solid var(--line);
}
.block--tight { padding-top: clamp(72px, 9vw, 116px); }

.h2 {
  margin: 0 0 clamp(34px, 5vw, 56px);
  font-size: clamp(1.5rem, 2.9vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 22ch;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- capacités ---------- */

.caps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.cap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3vw, 34px) 0 clamp(24px, 3vw, 34px) 22px;
  border-bottom: 1px solid var(--line);
}

.cap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.45s var(--ease);
}
.cap:hover::before,
.cap:focus-within::before { transform: scaleY(1); }

.cap__title {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}
.cap:hover .cap__title { color: var(--accent-bright); }

.cap__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 52ch;
}

.cap__stack {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

/* ---------- parcours ---------- */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(0px, 2vw, 0px);
}

.tl {
  display: grid;
  grid-template-columns: clamp(112px, 14vw, 168px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding: 0 0 clamp(30px, 3.4vw, 44px);
  position: relative;
}

.tl__dates {
  margin: 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.tl:hover .tl__dates { color: var(--accent-bright); }

.tl__body {
  position: relative;
  padding-left: clamp(20px, 2.6vw, 34px);
}

.tl__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: clamp(12px, 1.6vw, 20px);
  height: 1px;
  background: var(--line-strong);
  transition: background 0.25s var(--ease), width 0.35s var(--ease);
}
.tl:hover .tl__body::before { background: var(--accent); width: clamp(18px, 2.4vw, 28px); }

.tl__body::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: calc(-1 * clamp(30px, 3.4vw, 44px));
  width: 1px;
  background: var(--line);
}
.tl:last-child .tl__body::after { display: none; }

.tl__role {
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.tl__org {
  margin: 4px 0 8px;
  color: var(--accent);
  font-size: 0.84rem;
}

.tl__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 62ch;
}

.creds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--line);
  border: 1px solid var(--line);
}

.creds__item {
  background: var(--bg);
  padding: 20px 22px;
}

.creds__key {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creds__val {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- bandeau technologies ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-sunken);
}

.strip__track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}

.strip__seq {
  display: flex;
  align-items: center;
  gap: 0;
}

.strip__seq span {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0 22px;
  position: relative;
  white-space: nowrap;
}
.strip__seq span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--line-strong);
}

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- CV ---------- */

.cv__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.cv__text {
  margin: 0 0 30px;
  color: var(--ink-soft);
  max-width: 44ch;
}

.cv__actions { display: grid; gap: 14px; justify-items: start; }

.cv__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 34ch;
}

.cv__preview {
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 10px;
}

.cv__frame {
  width: 100%;
  height: clamp(400px, 46vw, 540px);
  border: 0;
  background: #15181a;
}

/* ---------- contact ---------- */

.contact {
  padding: clamp(76px, 11vw, 130px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(216, 85, 47, 0.13), transparent 62%),
    var(--bg-sunken);
}

.contact__title {
  margin: 0 0 clamp(30px, 4vw, 48px);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 26ch;
  text-wrap: balance;
}

.contact__lines {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.contact__mail {
  position: relative;
  display: inline-block;
  font-size: clamp(1.15rem, 3.1vw, 2.15rem);
  letter-spacing: -0.025em;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(216, 85, 47, 0.65);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  word-break: break-word;
}
.contact__mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.contact__mail:hover { color: var(--accent-bright); border-color: transparent; }
.contact__mail:hover::after { transform: scaleX(1); }

.contact__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.92rem;
  color: var(--muted);
}
.contact__alt a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact__alt a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- pied de page ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 28px;
  background: var(--bg);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer__name {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.footer__legal {
  margin: 0;
  color: #97a0a6;
  font-size: 0.8rem;
  line-height: 1.75;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__links a { transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--accent-bright); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  color: #97a0a6;
  font-size: 0.8rem;
}
.footer__base p { margin: 0; }

/* ---------- adaptations ---------- */

@media (max-width: 1024px) {
  .nav { gap: 18px; font-size: 0.82rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 44px; }
  .sheet { max-width: 460px; }
}

@media (max-width: 860px) {
  .cap { grid-template-columns: minmax(0, 1fr); }
  .cap__stack { grid-column: 1; }
  .cv__grid { grid-template-columns: minmax(0, 1fr); }
  .creds { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .topbar { height: 58px; }
  html { scroll-padding-top: 74px; }
  .nav a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 11px 16px; font-size: 0.85rem; }
  .brand__name { font-size: 0.78rem; letter-spacing: 0.1em; }
  .hero { min-height: auto; padding: 96px 0 64px; }
  .hero__title { font-size: clamp(1.95rem, 8.6vw, 2.6rem); }
  .hero__lattice { opacity: 0.34; }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-bottom: 30px; }
  .tl::before { display: none; }
  .tl__body { padding-left: 0; }
  .tl__body::before { display: none; }
  .tl__dates { color: var(--accent); }
  .footer__grid, .footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line__in { transform: none; transition: none; }
  [data-fade], [data-reveal] { opacity: 1; transform: none; transition: none; }
  .strip__track { animation: none; }
  .strip { overflow-x: auto; }
  .btn, .cap::before, .tl__body::before, .contact__mail::after { transition: none; }
  .btn:hover { transform: none; }
}
