:root {
  --bg: #070c14;
  --surface: #0b121d;
  --surface-2: #101a28;
  --line: rgba(150, 203, 219, 0.16);
  --line-strong: rgba(150, 203, 219, 0.34);
  --text: #e8eef4;
  --text-muted: #8fa1b3;
  --accent: #58b6d8;
  --accent-strong: #46a3c5;
  --accent-soft: #96cbdb;
  --ok: #3ecf8e;
  --error: #ff7a7a;
  --radius: 8px;
  --radius-sm: 6px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/spacegrotesk-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/spacegrotesk-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/spacegrotesk-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--accent-soft); text-decoration: underline; text-decoration-color: rgba(150, 203, 219, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-soft); }

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

::selection { background: rgba(70, 163, 197, 0.35); }

html {
  scrollbar-width: thin;
  scrollbar-color: #223448 var(--bg);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #223448;
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2f4660; }
::-webkit-scrollbar-corner { background: var(--bg); }

.container {
  width: min(1080px, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface-2);
  color: var(--text);
  padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.meta-line {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}
p.meta-line { margin-bottom: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition-property: background-color, border-color, color, box-shadow, scale;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}
.btn:active { scale: 0.96; }
.btn svg { transition: translate 160ms var(--ease); }
.btn:hover svg { translate: 3px 0; }

.btn-primary {
  background: linear-gradient(135deg, #46a3c5 0%, #96cbdb 100%);
  color: #06121a;
  box-shadow: 0 0 22px rgba(70, 163, 197, 0.22);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(70, 163, 197, 0.38); }

.btn-dark {
  background: #0e1723;
  border-color: var(--line);
  color: var(--text);
}
.btn-dark:hover { border-color: var(--line-strong); background: var(--surface-2); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-strong); color: var(--accent-soft); }

.link-plain {
  font-size: 0.93rem;
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 12, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { border-radius: 7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a:not(.btn) {
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--text); }

.site-nav a.is-active:not(.btn) { color: var(--text); }
.site-nav a.is-active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-strong);
}
.nav-mobile a.is-active:not(.btn) { color: var(--accent-soft); }
.btn-nav { min-height: 38px; padding: 0.4rem 1rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: translate 200ms var(--ease), rotate 200ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:not(.btn) {
  color: var(--text);
  font-weight: 500;
  padding: 0.7rem 0.25rem;
  text-decoration: none;
}
.nav-mobile .btn { margin-top: 0.5rem; }

.hero {
  position: relative;
  padding-block: clamp(2rem, 3.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 78% 30%, rgba(70, 163, 197, 0.09), transparent 70%),
    repeating-linear-gradient(0deg, rgba(150, 203, 219, 0.025) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(150, 203, 219, 0.025) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 21, 32, 0.7);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 0.45em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #96cbdb 10%, #46a3c5 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .souligne {
  box-shadow: inset 0 -0.16em 0 0 rgba(70, 163, 197, 0.55);
}

.hero-lead {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.3rem;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1.3rem;
}
.hero-stats > div {
  min-width: 142px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 21, 32, 0.55);
  text-align: center;
  transition: border-color 160ms var(--ease), translate 160ms var(--ease);
}
.hero-stats > div:hover { border-color: var(--line-strong); translate: 0 -2px; }
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-soft);
  line-height: 1.2;
}
.hero-stats dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.hero-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.ico-mail { color: var(--accent); flex-shrink: 0; }
.hero-mail a { color: var(--text-muted); text-decoration: none; }
.hero-mail a:hover { color: var(--accent-soft); }

.btn-copy {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition-property: border-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.btn-copy::before {
  content: "";
  position: absolute;
  inset: -6px;
}
.btn-copy:hover { border-color: var(--line-strong); color: var(--text); }
.btn-copy:active { scale: 0.96; }
.btn-copy .ico-check { display: none; }
.btn-copy.is-copied { border-color: rgba(62, 207, 142, 0.5); color: var(--ok); }
.btn-copy.is-copied .ico-copy { display: none; }
.btn-copy.is-copied .ico-check { display: block; }

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-orbit {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 50% 50%, rgba(70, 163, 197, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-orbit img {
  width: 54%;
  border-radius: 22%;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(13, 21, 32, 0.88);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(2, 6, 12, 0.45);
  animation: flotte 6s ease-in-out infinite alternate;
}
.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.chip-1 { top: 6%; left: -4%; animation-delay: 0s; }
.chip-2 { top: 22%; right: -7%; animation-delay: -1.6s; }
.chip-3 { bottom: 26%; left: -9%; animation-delay: -3.1s; }
.chip-4 { bottom: 6%; right: 2%; animation-delay: -4.4s; }
.chip-5 { top: 58%; right: -11%; animation-delay: -2.3s; }

@keyframes flotte {
  from { translate: 0 -5px; }
  to { translate: 0 6px; }
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.hero-proof > div { display: flex; flex-direction: column; }
.hero-proof dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.hero-proof dt {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.hero-clients {
  margin-top: clamp(1.2rem, 2.5vw, 1.6rem);
  border-top: 1px solid var(--line);
  padding-block: 0.9rem 1rem;
}
.hero-clients > .meta-line { margin: 0 0 0.9rem; }

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: 0.8rem; }
.marquee:hover .marquee-list,
.marquee:focus-within .marquee-list { animation-play-state: paused; }
.marquee--inverse .marquee-list { animation-direction: reverse; animation-duration: 58s; }

.marquee-list {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  min-width: max-content;
  animation: defile 48s linear infinite;
}
.marquee-list a {
  display: block;
  line-height: 0;
  border-radius: 6px;
}
.marquee-list li { line-height: 0; }
.marquee-list img {
  width: auto;
  transition-property: opacity;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.marquee-list img:not(.is-avatar) {
  height: 24px;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}
.marquee-list li:hover img:not(.is-avatar) { opacity: 0.95; }

.marquee-list .is-avatar {
  height: 34px;
  border-radius: 50%;
  opacity: 0.85;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}
.marquee-list li:hover .is-avatar { opacity: 1; }

.marquee-list img.is-color {
  height: 30px;
  filter: none;
  opacity: 0.9;
}
.marquee-list li:hover img.is-color { opacity: 1; }

@keyframes defile {
  to { translate: -100% 0; }
}

.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .meta-line { color: var(--accent); }

.section h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.section-lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.03rem;
  margin-bottom: 0;
}

.activites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.activite {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.5rem 2.2rem 0;
}
.activite + .activite {
  border-left: 1px solid var(--line);
  padding-left: 2.5rem;
  padding-right: 0;
}

.activite h3 { font-size: 1.35rem; margin-top: 0; }
.activite > p { color: var(--text-muted); }

.liste-tirets {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.liste-tirets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
}
.liste-tirets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
}

.activite-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.projets-liste {
  border-top: 1px solid var(--line);
}

.projet {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.projet:nth-child(even) { direction: rtl; }
.projet:nth-child(even) > * { direction: ltr; }

.projet-media {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.macshot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 1px 2px rgba(2, 6, 12, 0.5), 0 10px 30px rgba(2, 6, 12, 0.4);
}
.macshot-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding-inline: 12px;
  border-bottom: 1px solid rgba(150, 203, 219, 0.1);
}
.macshot-dots {
  position: absolute;
  left: 12px;
  display: flex;
  gap: 6px;
}
.macshot-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.macshot-dots i:nth-child(1) { background: #ff5f57; }
.macshot-dots i:nth-child(2) { background: #febc2e; }
.macshot-dots i:nth-child(3) { background: #28c840; }
.macshot-url {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(7, 12, 20, 0.55);
  border-radius: 6px;
  padding: 0.18rem 0.9rem;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}
.macshot .shot-main img {
  border-radius: 0;
  outline: none;
}
.shot-main img,
.shot-thumbs img {
  border-radius: var(--radius);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  transition: opacity 150ms var(--ease);
}
.shot-main:hover img { opacity: 0.9; }

.shot-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.shot-thumbs button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}
.shot-thumbs button img { border-radius: var(--radius-sm); }
.shot-thumbs button:hover img { opacity: 0.82; }

.projet-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.projet-index {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  margin-bottom: 1.1rem;
}

.projet-body .meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  margin-bottom: 0.6rem;
}
.projet-body .meta-line a { color: var(--accent-soft); }
.tech {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}
.tech img { width: 15px; height: 15px; }

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.site-fav { border-radius: 4px; }
.macshot-url {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.macshot-url .site-fav { width: 14px; height: 14px; }

.projet-body h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-bottom: 0.4em;
}
.projet-body > p:last-child { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 0; }

.projet-highlight {
  font-size: 0.98rem;
  color: var(--accent-soft);
  border-left: 2px solid var(--accent-strong);
  padding: 0.15rem 0 0.15rem 0.85rem;
  margin: 0 0 0.9rem;
}
.projet-highlight strong { color: var(--text); font-weight: 600; }

.projets-github {
  margin: 2rem 0 0;
  text-align: right;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0 0 3rem;
}
.stats-band > div {
  border-top: 2px solid var(--accent-strong);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.stats-band dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}
.stats-band dt {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.registre-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.registre-filtres button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition-property: background-color, border-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.registre-filtres button:hover { border-color: var(--line-strong); color: var(--text); }
.registre-filtres button:active { scale: 0.96; }
.registre-filtres button .compte { font-size: 0.72rem; }
.registre-filtres button.is-active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #06121a;
}

[data-annee-table].is-off { display: none; }

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.table-tournois {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 640px;
}
.table-tournois caption {
  text-align: left;
  padding-bottom: 0.8rem;
}
.table-tournois th {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--line-strong);
}
.table-tournois td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-tournois td:first-child {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.table-tournois .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-tournois td.num { font-family: var(--font-body); font-size: 0.88rem; }
.table-tournois tbody tr { transition: background-color 140ms var(--ease); }
.table-tournois tbody tr:hover { background: rgba(150, 203, 219, 0.035); }
.table-wrap + .table-wrap { margin-top: 2.2rem; }

.event-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(150, 203, 219, 0.3);
  padding-bottom: 1px;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.event-link::after {
  content: " ↗";
  font-size: 0.8em;
  color: var(--accent);
}
.event-link:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
  text-decoration: none;
}

.tournois-sheet { margin-bottom: 0; }

.parcours-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: start;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 1.75rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 140ms var(--ease);
}
.timeline li:hover { background: rgba(150, 203, 219, 0.025); }
.tl-date {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0.25rem 0 0;
  color: var(--accent);
}
.timeline h3 {
  grid-column: 2;
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}
.timeline h3 span { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.timeline li > p:last-child {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
  max-width: 32rem;
}

.skills { display: grid; gap: 1.6rem; }
.skill-group h3 { margin: 0 0 0.7rem; }
.skill-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.skill-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.skill-tags li:hover { border-color: var(--line-strong); color: var(--accent-soft); }
.skill-tags img { width: 15px; height: 15px; flex-shrink: 0; }

.contact-solo {
  max-width: 720px;
  margin-inline: auto;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(2, 6, 12, 0.5), 0 12px 36px rgba(2, 6, 12, 0.35);
}

.form-head {
  text-align: center;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.form-head h3 {
  font-size: 1.3rem;
  margin: 0 0 0.25rem;
}
.form-head .meta-line { margin: 0; }

.form-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.form-mail a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-soft);
  text-decoration: none;
  word-break: break-all;
}
.form-mail a:hover { color: var(--text); }

.req { color: var(--accent); }

.btn-submit svg { transition: translate 160ms var(--ease); }
.btn-submit:hover svg { translate: 3px 0; }

.legal {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.legal .container { max-width: 760px; }
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}
.legal h2 {
  font-size: 1.2rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--text-muted); font-size: 0.98rem; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.3rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}
.footer-legal a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.footer-legal a:hover { color: var(--accent-soft); }
.footer-legal span { color: var(--line-strong); }

.field { display: grid; gap: 0.4rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
}
.label-optional { font-weight: 400; color: var(--text-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(143, 161, 179, 0.5); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(70, 163, 197, 0.16);
}
.field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238fa1b3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 15px;
  padding-right: 2.5rem;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: rgba(255, 122, 122, 0.55); }

.field-error {
  color: var(--error);
  font-size: 0.84rem;
  margin: 0;
}

.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-turnstile {
  display: flex;
  justify-content: center;
}
.field-turnstile:empty { display: none; }

.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: 0.65; cursor: progress; }

.notice {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.92rem;
}
.notice--success { border-color: rgba(62, 207, 142, 0.45); color: var(--ok); }
.notice--error { border-color: rgba(255, 122, 122, 0.45); color: var(--error); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 1.6rem 1.2rem;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand img { border-radius: 8px; }
.footer-name {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.footer-brand .meta-line { margin: 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.4rem;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.footer-nav a:hover { color: var(--text); }
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
  padding-block: 1.1rem;
}
.footer-social > .meta-line { margin: 0; }

.social-squares {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}
.sq {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition-property: translate, box-shadow, filter, scale;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}
.sq svg { width: 17px; height: 17px; }
.sq:hover { translate: 0 -3px; filter: brightness(1.12); box-shadow: 0 10px 24px rgba(2, 6, 12, 0.5); }
.sq:active { scale: 0.94; }
.sq-github { background: #24292e; }
.sq-linkedin { background: #0a66c2; }
.sq-x { background: #1c2430; }
.sq-discord { background: #5865f2; }
.sq-discord.is-copied { outline: 2px solid var(--ok); outline-offset: 2px; }

.footer-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}
.footer-mail a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
}
.footer-mail a:hover { color: var(--accent-soft); }

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.footer-bottom .meta-line { margin: 0; font-size: 0.8rem; }

.back-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent-soft);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2, 6, 12, 0.5);
  opacity: 0;
  translate: 0 8px;
  transition-property: opacity, translate, border-color, scale;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}
.back-top.is-visible { opacity: 1; translate: 0 0; }
.back-top[hidden] { display: none; }
.back-top:hover { border-color: var(--accent-strong); }
.back-top:active { scale: 0.94; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 8, 14, 0.9);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition-property: border-color, background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.lightbox-close:hover { border-color: var(--accent-strong); background: var(--surface-2); }
.lightbox-close:active { scale: 0.96; }

[data-reveal] {
  opacity: 0;
  translate: 0 10px;
  transition-property: opacity, translate;
  transition-duration: 450ms;
  transition-timing-function: var(--ease);
}
[data-reveal].is-visible { opacity: 1; translate: 0 0; }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); gap: 2rem; }
  .hero-orbit { width: min(300px, 100%); }
  .chip { font-size: 0.72rem; padding: 0.34rem 0.7rem; }
  .parcours-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .projet { grid-template-columns: 1fr; gap: 1.5rem; }
  .projet:nth-child(even) { direction: ltr; }
}

@media (max-width: 860px) {
  .activites-grid { grid-template-columns: 1fr; border-top: 0; }
  .activite { padding: 2rem 0; border-top: 1px solid var(--line); }
  .activite + .activite { border-left: 0; padding-left: 0; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.is-open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { gap: 0.7rem; }
  .hero-stats > div { flex: 1 1 130px; min-width: 0; padding: 0.75rem 0.9rem; }
  .hero-clients { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .hero-clients .marquee { width: 100%; }
  .timeline li { grid-template-columns: 1fr; row-gap: 0.15rem; }
  .tl-date { grid-row: 1; margin-top: 0; }
  .timeline h3, .timeline li > p:last-child { grid-column: 1; }
  .back-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .projets-github { text-align: left; }
}

@media (max-width: 480px) {
  .container { width: min(1080px, 100% - 2.2rem); }
  .stats-band { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .contact-form { padding: 1.3rem; }
  .clients-wall { gap: 1.1rem 1.6rem; }
  .clients-wall img { height: 32px; }
}
