/* ============================================================
   PORTFOLIO — MAMADOU DRAME — style.css
   Neo-Brutalist Warm Grid — 2026
   ============================================================ */

/* ── 0. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Couleurs */
  --cream:     #FFF0E5;
  --cream-2:   #F5E6D8;
  --ink:       #1A1A1A;
  --ink-soft:  #3D3D3D;
  --muted:     #888888;
  --cyan:      #79CBE2;
  --lime:      #D4E79E;
  --salmon:    #FFB3A7;
  --white:     #FFFFFF;
  --black:     #000000;

  /* Shadows néo-brutalist (zero blur) */
  --shadow-sm: 3px 3px 0px var(--ink);
  --shadow-md: 5px 5px 0px var(--ink);
  --shadow-lg: 8px 8px 0px var(--ink);

  /* Bordure */
  --border: 2px solid var(--ink);

  /* Typographies */
  --ff-display: 'Space Grotesk', 'Syne', sans-serif;
  --ff-body:    'Plus Jakarta Sans', 'Inter', sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;

  /* Hauteur nav */
  --nav-h: 64px;

  /* Max width */
  --max-w: 1200px;
  --pad-x: clamp(16px, 5vw, 80px);
}

/* ── 1. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── 2. SKIP LINK — RGAA ──────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  padding: 8px 16px;
  z-index: 9999;
  border: var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ── 3. UTILITIES ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent-cyan  { color: var(--cyan); }
.text-accent-lime  { color: var(--lime); }
.text-accent-salmon{ color: var(--salmon); }

.u-label {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Focus visible global — RGAA */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ── 4. HEADER / NAVBAR ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: var(--border);
  height: var(--nav-h);
  transition: box-shadow 0.25s;
}
.site-header.scrolled {
  box-shadow: 0 4px 0 var(--ink);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav__logo-col { flex-shrink: 0; }

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav__logo-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.nav__logo-role {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Nav links */
.nav__center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav__link {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 6px 14px;
  border: var(--border);
  background: transparent;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.nav__link:hover,
.nav__link.active,
.nav__link--active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

/* Right col */
.nav__right-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__mail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--border);
  background: transparent;
  color: var(--ink);
  transition: background 0.15s, box-shadow 0.15s;
}
.nav__mail:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

.nav__badge {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--lime);
  color: var(--ink);
  border: var(--border);
  padding: 5px 10px;
  white-space: nowrap;
}

/* Burger — visible par défaut (mobile-first), masqué à 1025px+ */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  border: var(--border);
  margin-left: auto;
}
.nav__burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── 4b. DRAWER MOBILE ────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 85vw);
  background: var(--cream);
  border-left: var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 48px;
}
.nav-drawer[aria-hidden="false"] {
  transform: translateX(0);
}
.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer__link {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: var(--border);
  display: block;
  transition: color 0.15s;
}
.nav-drawer__link:hover {
  color: var(--cyan);
}
.nav-drawer__cta {
  margin-top: 40px;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-drawer__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 190;
  backdrop-filter: blur(2px);
}
.nav-drawer__overlay[aria-hidden="false"] {
  display: block;
}

/* ── 5. HERO ─────────────────────────────────────────────── */
.hero {
  height: auto;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: var(--border);
}

/* Moitié gauche (texte) — passe visuellement à droite sur desktop */
.hero__left {
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 72px) clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  border-right: none;
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
  order: 2;
}

/* Badge studio */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: var(--border);
  padding: 5px 12px;
  background: var(--salmon);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  width: fit-content;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* H1 principal */
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.hero__title-line3 {
  display: inline-block;
  background: var(--cyan);
  padding: 2px 16px 4px;
  border: var(--border);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

/* Corps */
.hero__body {
  font-family: var(--ff-body);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 24px;
  line-height: 1.65;
  flex-shrink: 0;
}
.hero__body strong {
  font-weight: 600;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

/* Formation */
.hero__formation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: var(--border);
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.hero__formation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hero__formation-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: var(--border);
  flex-shrink: 0;
  margin-top: 4px;
}
.hero__formation-dot--done { background: var(--lime); }
.hero__formation-dot--next { background: var(--cyan); }

.hero__formation-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__formation-label {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero__formation-value {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.hero__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-right: var(--border);
}
.hero__stat:last-child { border-right: none; }
.hero__stat-value {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.hero__stat-label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.3;
}

/* CTA */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: #FFF0E5;
  -webkit-text-fill-color: #FFF0E5;
  -webkit-background-clip: unset;
  background-clip: unset;
  padding: 13px 24px;
  border: var(--border);
  box-shadow: var(--shadow-md);
  width: fit-content;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: box-shadow 0.15s, transform 0.15s;
}
.hero__cta:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
}
.hero__cta-text {
  color: #FFF0E5;
  -webkit-text-fill-color: #FFF0E5;
}
.hero__cta svg {
  stroke: #FFF0E5;
  flex-shrink: 0;
}

/* Étoile décorative */
.hero__star {
  position: absolute;
  bottom: 28px;
  right: 28px;
  animation: heroStarSpin 12s linear infinite;
  transform-origin: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
@keyframes heroStarSpin {
  to { transform: rotate(360deg); }
}

/* Moitié droite — hauteur fixe sur mobile, auto sur desktop */
.hero__right {
  position: relative;
  background: var(--cream-2);
  overflow: hidden;
  height: clamp(320px, 65vw, 520px);
  min-height: 320px;
  order: 1;
}

/* Cartes de fond — décoratives, visibles uniquement si pas d'image */
.hero__card-bg {
  display: none;
}

/* Portrait — pleine colonne */
.hero__portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
}
.hero__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero__portrait-placeholder {
  width: 100%;
  height: 100%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
}

/* Bandeau coloré en bas de la colonne droite */
.hero__right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan) 50%, var(--salmon) 50%);
  z-index: 3;
}

/* Badge circulaire rotatif */
.hero__rotate-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 4;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.hero__rotate-badge:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.06);
}
.hero__rotate-badge:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
.hero__rotate-svg {
  position: absolute;
  inset: 0;
}
.hero__rotate-center {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  background: var(--cream);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 6. SECTIONS COMMUNES ─────────────────────────────────── */
.section {
  padding: clamp(60px, 8vw, 120px) 0;
  border-bottom: var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 56px;
}

.section-desc {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.65;
}

/* ── 7. REVEAL ANIMATION ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 8. SERVICES — BENTO ASYMÉTRIQUE ─────────────────────── */
.services {
  background: var(--cream);
  padding: 0;
}

.services__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 0;
  align-items: start;
}

/* En-tête — position: static par défaut (mobile), sticky à 768px+ */
.services__header {
  position: static;
  padding-top: 4px;
}

.services__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.services__eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.services__counter {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: var(--border);
  padding: 3px 8px;
  background: var(--cream-2);
}

.services__title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.services__title-accent {
  color: var(--ink);
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: var(--ink);
}

/* Bento grid — 1 colonne par défaut (mobile), 2 col à 768px+ */
.svc-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: var(--border);
  box-shadow: none;
}

.svc-col-right {
  display: grid;
  grid-template-rows: auto;
  border-left: none;
  border-top: var(--border);
}

/* Carte de base */
.svc-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--cream);
  position: relative;
}

/* Grande carte — UX */
.svc-card--large {
  background: var(--cream-2);
  justify-content: space-between;
  min-height: 280px;
}

/* Carte accent — UI */
.svc-card--accent {
  background: var(--cyan);
  border-bottom: var(--border);
}

/* Carte dark — Méthodes */
.svc-card--dark {
  background: var(--ink);
}

/* Top row : num + icône */
.svc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.svc-card__num {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.svc-card__num--light { color: rgba(255, 240, 229, 0.35); }

/* Icône */
.svc-card__icon {
  width: 40px;
  height: 40px;
  border: var(--border);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.svc-card__icon--light {
  background: transparent;
  border-color: rgba(255, 240, 229, 0.3);
  color: var(--cream);
  box-shadow: none;
}

/* Titre */
.svc-card__title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 10px;
  flex: 1;
}
.svc-card__title--sm {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  margin-bottom: 8px;
}
.svc-card__title--light { color: var(--cream); }

/* Description */
.svc-card__desc {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 38ch;
}

/* Tags en liste verticale */
.svc-card__tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.svc-card__tags li {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-left: 12px;
  position: relative;
}
.svc-card__tags li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--ink);
}

/* Tags inline */
.svc-card__tags--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.svc-card__tags--inline li {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(26, 26, 26, 0.08);
  border: 1px solid rgba(26, 26, 26, 0.2);
  padding: 3px 8px;
  padding-left: 8px;
}
.svc-card__tags--inline li::before { display: none; }

.svc-card__tags--light li {
  color: rgba(255, 240, 229, 0.7);
  background: rgba(255, 240, 229, 0.08);
  border-color: rgba(255, 240, 229, 0.2);
}

/* ── Grille icônes outils ─────────────────────────────────── */
.svc-tools {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.svc-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: var(--border);
  background: var(--cream);
  transition: transform 0.15s, box-shadow 0.15s;
}
.svc-tool:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}
.svc-tool__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.svc-tool__name {
  font-family: var(--ff-mono);
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}

/* Lien */
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  width: fit-content;
  margin-top: auto;
  transition: gap 0.15s;
}
.svc-card__link:hover { gap: 12px; }
.svc-card__link--light {
  color: var(--cream);
  border-bottom-color: rgba(255, 240, 229, 0.4);
}

/* ── Responsive services (inline dans le bloc services) ──── */
/* Les breakpoints complets sont dans la section 14-15 */

/* ── 9. TICKER ─────────────────────────────────────────────── */
.ticker-wrapper {
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--ink);
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.ticker-item {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream);
  padding: 14px 28px;
  flex-shrink: 0;
}

.ticker-sep {
  color: var(--cyan);
  padding: 14px 4px;
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ── 10. PROJETS ──────────────────────────────────────────── */
/* Les styles détaillés sont dans projects.css */
.projects {
  background: var(--cream-2);
}

/* ── 11. ABOUT ────────────────────────────────────────────── */
.about {
  background: var(--cream);
  border-top: var(--border);
  border-bottom: var(--border);
}

/* ── Header éditorial ────────────────────────────────────── */
.about__head {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 48px);
  border-bottom: var(--border);
  text-align: center;
}
.about__eyebrow {
  color: var(--muted);
  white-space: nowrap;
}
.about__title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 5vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}
.about__title em {
  font-style: normal;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
}
.about__head-badge {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.4;
  white-space: nowrap;
  border: var(--border);
}

/* ── Grille 3 colonnes ───────────────────────────────────── */
.about__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}
.about__col {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about__col:last-child { border-bottom: none; }
.about__col-label {
  color: var(--muted);
  display: block;
  padding-bottom: 12px;
  border-bottom: var(--border);
}

.about__body {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.about__body strong {
  font-weight: 600;
  color: var(--ink);
}

/* ── Expériences ─────────────────────────────────────────── */
.about__xp {
  display: flex;
  flex-direction: column;
}
.about__xp-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(26,26,26,0.08);
}
.about__xp-item:first-child { padding-top: 0; }
.about__xp-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.about__xp-num {
  font-family: var(--ff-mono);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.about__xp-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.about__xp-date {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 24px;
}
.about__xp-desc {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 24px;
}

/* ── Tags ────────────────────────────────────────────────── */
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.about__tag {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--lime);
  color: var(--ink);
  border: var(--border);
  padding: 4px 10px;
  box-shadow: var(--shadow-sm);
}

/* ── Lien CV ─────────────────────────────────────────────── */
.about__cv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border: var(--border);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  transition: transform 0.15s, box-shadow 0.15s, gap 0.15s;
}
.about__cv-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  gap: 12px;
}

/* ── 12. CONTACT ──────────────────────────────────────────── */
.contact {
  background: var(--ink);
  color: var(--cream);
}

.contact-inner {
  padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
}

.contact .section-label {
  color: rgba(255, 240, 229, 0.4);
}

.contact-title {
  color: var(--cream);
}

.contact-desc {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: rgba(255, 240, 229, 0.7);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact-desc__link {
  color: var(--cyan);
  border-bottom: 1px solid rgba(78, 189, 195, 0.4);
  transition: border-color 0.15s, color 0.15s;
}
.contact-desc__link:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--cyan);
  color: var(--ink);
  padding: 14px 28px;
  border: 2px solid var(--cream);
  box-shadow: 5px 5px 0 var(--cream);
  transition: box-shadow 0.15s, transform 0.15s;
}
.btn-primary:hover {
  box-shadow: 8px 8px 0 var(--cream);
  transform: translate(-2px, -2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--cream);
  padding: 14px 28px;
  border: 2px solid var(--cream);
  box-shadow: 5px 5px 0 var(--cream);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-secondary:hover {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(255,240,229,0.4);
  transform: translate(-2px, -2px);
}

.contact-meta {
  display: flex;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,240,229,0.15);
  padding-top: 32px;
}

.contact-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-meta-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,240,229,0.4);
}

.contact-meta-value {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
}
a.contact-meta-value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 13. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  border-top: var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cream);
}
.footer-role {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: rgba(255,240,229,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,240,229,0.5);
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--cream);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.footer-copy {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: rgba(255,240,229,0.4);
}
.footer-a11y {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: rgba(255,240,229,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   14. RESPONSIVE — MOBILE-FIRST
   Breakpoints :
     < 480px   Mobile S
     481–767   Mobile L
     768–1024  Tablette
     1025–1279 Laptop
     1280+     Desktop / Desktop XL
   ═══════════════════════════════════════════════════════════ */

/* ── Base mobile (tout < 480px et plus) ────────────────────
   Le site est écrit pour mobile par défaut :
   grilles 1 colonne, paddings clamp(), burger visible
   ────────────────────────────────────────────────────────── */

/* Navbar — nav links, badge, mail cachés par défaut (mobile-first) */
.nav__center,
.nav__badge,
.nav__mail {
  display: none;
}

/* About — badge masqué sur mobile (pas assez de place) */
.about__head-badge {
  display: none;
}

/* Services — svc-card--large sans min-height sur mobile */
.svc-card--large {
  min-height: auto;
}
.svc-card--accent {
  border-bottom: var(--border);
}

/* Grille icônes outils — 2 colonnes sur très petits écrans */
.svc-tools {
  grid-template-columns: repeat(2, 1fr);
}

/* Contact — boutons pleine largeur sur mobile */
.contact-actions {
  flex-direction: column;
}
.btn-primary,
.btn-secondary {
  width: 100%;
  justify-content: center;
}

/* Contact meta — colonne sur mobile */
.contact-meta {
  flex-direction: column;
  gap: 20px;
}

/* Footer — colonne sur mobile */
.footer-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-right {
  align-items: flex-start;
}
.footer-nav {
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Mobile S spécifique (< 480px) ────────────────────────── */
@media (max-width: 480px) {
  .hero__right {
    height: clamp(320px, 90vw, 420px);
  }
  .hero__portrait-img {
    object-position: center 15%;
  }
  .hero__rotate-badge {
    width: 72px;
    height: 72px;
    bottom: 12px;
    left: 12px;
  }
  .hero__rotate-badge > svg {
    width: 72px;
    height: 72px;
  }
  .hero__rotate-center svg {
    width: 11px;
    height: 11px;
  }
  .nav-inner {
    padding: 0 16px;
  }
  /* Touch targets : agrandir burger et mail icon */
  .nav__burger {
    width: 44px;
    height: 44px;
  }
  /* Formation — texte légèrement réduit */
  .hero__formation {
    padding: 10px 12px;
    gap: 8px;
  }
  .hero__formation-value {
    font-size: 0.75rem;
  }
  /* Stats — 3 côte à côte sur une ligne */
  .hero__stats {
    flex-wrap: nowrap;
  }
  .hero__stat {
    flex: 1;
    padding: 10px 10px;
  }
  .hero__stat-value {
    font-size: 1.1rem;
  }
  .hero__stat-label {
    font-size: 0.5rem;
  }
  .hero__stat:last-child {
    border-right: none;
  }
  /* Hero CTA — pleine largeur, taille réduite mais touch-friendly */
  .hero__cta {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.7rem;
  }
  /* Services — grille outils 2 colonnes forcé */
  .svc-tools {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .svc-tool {
    padding: 10px 8px;
    gap: 6px;
  }
  .svc-tool__icon {
    width: 20px;
    height: 20px;
  }
  .svc-tool__name {
    font-size: 0.45rem;
  }
  /* About — en-tête simplifié */
  .about__eyebrow {
    display: none;
  }
  /* Drawer projet — pleine largeur */
  .proj-drawer {
    width: 100vw;
  }
  .footer-nav {
    display: none;
  }
}

/* ── Mobile L (481px → 767px) ─────────────────────────────── */
@media (min-width: 481px) {
  .hero__right {
    height: clamp(340px, 55vw, 440px);
  }
  .hero__rotate-badge {
    width: 90px;
    height: 90px;
    bottom: 16px;
    left: 16px;
  }
  .hero__rotate-badge svg {
    width: 90px;
    height: 90px;
  }
  /* Grille outils : 4 colonnes dès 481px */
  .svc-tools {
    grid-template-columns: repeat(4, 1fr);
  }
  /* About titre : remettre nowrap si assez large */
  .about__title {
    white-space: nowrap;
  }
  /* Contact meta — rangée à partir de 481px */
  .contact-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 64px);
  }
}

/* ── Tablette (768px → 1024px) ────────────────────────────── */
@media (min-width: 768px) {

  /* Nav — on montre le badge et mail */
  .nav__badge {
    display: inline-flex;
  }
  .nav__mail {
    display: flex;
  }

  /* Hero — image à gauche (order:1), texte à droite (order:2) */
  .hero {
    grid-template-columns: 48% 52%;
    height: calc(100svh - var(--nav-h));
    min-height: 560px;
  }
  .hero__left {
    border-left: var(--border);
    border-right: none;
    border-bottom: none;
    padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px);
    order: 2;
  }
  .hero__right {
    height: auto;
    min-height: auto;
    order: 1;
  }
  .hero__rotate-badge {
    width: 100px;
    height: 100px;
    bottom: 20px;
    left: 20px;
  }
  .hero__rotate-badge svg {
    width: 100px;
    height: 100px;
  }

  /* Services — 2 colonnes tablette */
  .services__inner {
    grid-template-columns: 180px 1fr;
    gap: 0 24px;
  }
  .services__header {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
  }
  .svc-bento {
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-lg);
  }
  .svc-col-right {
    border-left: var(--border);
    border-top: none;
    grid-template-rows: 1fr 1fr;
  }
  .svc-card--large {
    min-height: 260px;
  }

  /* About — en-tête 3 colonnes à partir de 768px */
  .about__head {
    grid-template-columns: auto 1fr auto;
    text-align: left;
    gap: 24px;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px);
  }
  .about__head-badge {
    display: flex;
  }
  .about__eyebrow {
    display: block;
  }
  .about__title {
    white-space: nowrap;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    text-align: center;
  }

  /* About — grille 2 colonnes tablette */
  .about__grid {
    grid-template-columns: 1fr 1fr;
    border-top: var(--border);
  }
  .about__col {
    border-right: var(--border);
    border-bottom: none;
  }
  .about__col:last-child {
    border-right: none;
    grid-column: span 2;
    border-top: var(--border);
  }

  /* Contact — boutons côte à côte */
  .contact-actions {
    flex-direction: row;
  }
  .btn-primary,
  .btn-secondary {
    width: auto;
    justify-content: flex-start;
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .footer-right {
    align-items: flex-end;
  }
  .footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
  }
}

/* ── Laptop (1025px → 1279px) ─────────────────────────────── */
@media (min-width: 1025px) {

  /* Nav complète */
  .nav__center {
    display: flex;
  }
  .nav__mail {
    display: flex;
  }
  .nav__burger {
    display: none;
  }

  /* Hero — proportions finales desktop */
  .hero {
    grid-template-columns: 45% 55%;
    height: calc(100svh - var(--nav-h));
    min-height: 600px;
  }
  .hero__left {
    padding: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 60px);
    order: 2;
  }
  .hero__right {
    order: 1;
  }
  .hero__rotate-badge {
    width: 110px;
    height: 110px;
    bottom: 24px;
    left: 24px;
  }
  .hero__rotate-badge svg {
    width: 110px;
    height: 110px;
  }

  /* Services — layout final 220px + 1fr */
  .services__inner {
    grid-template-columns: 220px 1fr;
    gap: 0 32px;
  }
  .svc-card--large {
    min-height: 280px;
  }

  /* About — 3 colonnes desktop */
  .about__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .about__col {
    border-right: var(--border);
    border-bottom: none;
    border-top: none;
  }
  .about__col:last-child {
    border-right: none;
    grid-column: auto;
    border-top: none;
  }
}

/* ── Desktop XL (1440px+) ─────────────────────────────────── */
@media (min-width: 1440px) {
  .hero__rotate-badge {
    width: 120px;
    height: 120px;
    bottom: 28px;
    left: 28px;
  }
  .hero__rotate-badge svg {
    width: 120px;
    height: 120px;
  }
}

/* ── Ultra Wide (1921px+) ─────────────────────────────────── */
@media (min-width: 1921px) {
  :root {
    --max-w: 1600px;
  }
  .hero {
    max-width: 100%;
  }
}

/* ── 16. ACCESSIBILITÉ ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.nav__link:focus-visible,
.nav__burger:focus-visible,
.nav__mail:focus-visible,
.hero__cta:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.svc-card__link:focus-visible,
.project-card__link:focus-visible,
.about__cv-link:focus-visible,
.about__cv-link:focus-visible,
.contact-desc__link:focus-visible,
.contact-meta-value:focus-visible,
.footer-nav a:focus-visible,
.nav-drawer__link:focus-visible,
.nav-drawer__cta:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* Focus visible inversé (éléments sur fond sombre) */
.contact .section-label:focus-visible,
.contact-title:focus-visible,
.proj-drawer__btn:focus-visible,
.proj-drawer__close:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .hero__title-line3,
  .about__tag,
  .nav__badge {
    forced-color-adjust: none;
  }
}
