/* ===================================================================
 * feuille de style principale
 *
 * 1. Réglages (couleurs, typographie, espacements)
 * 2. Base et accessibilité
 * 3. Composants (boutons, liens, étiquettes, icônes)
 * 4. En-tête et navigation
 * 5. Sections communes
 * 6. Accueil
 * 7. Pages intérieures (à propos, services, contact)
 * 8. Appel à l'action et pied de page
 * 9. Animations
 * 10. Responsive
 * =================================================================== */

/* 1. Réglages
 * ------------------------------------------------------------------- */
:root {
  /* Palette : noir profond, anthracite, blanc cassé, champagne */
  --bg: #0a0a0b;
  --bg-raised: #0f0f11;
  --surface: #151518;
  --surface-hover: #19191d;
  --line: rgba(242, 238, 230, 0.08);
  --line-strong: rgba(242, 238, 230, 0.16);
  --text: #f2eee6;
  --text-muted: #a8a399;
  --text-subtle: #8a867e;
  --accent: #d4bc8c;
  --accent-hover: #e3d0a8;
  --accent-line: rgba(212, 188, 140, 0.4);
  --error: #e3907e;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(56px, 7vw, 104px);
  --header-h: 76px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base et accessibilité
 * ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

button {
  font: inherit;
}

h1, h2, h3 {
  text-wrap: balance;
}

p, li, dd {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
  color: var(--text);
}

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

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

.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;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 3. Composants
 * ------------------------------------------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.display,
.h2,
.cta__title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display em,
.h2 em,
.cta__title em {
  font-style: italic;
  color: var(--accent);
}

.display {
  display: block;
  font-size: clamp(2.75rem, 1.5rem + 5.2vw, 6rem);
  line-height: 1;
}

.h2 {
  font-size: clamp(2.25rem, 1.55rem + 2.8vw, 4rem);
  line-height: 1.04;
}

.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--accent);
  color: #0a0a0b;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.875rem;
}

/* Lien fléché */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* Étiquettes de technologies */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--text-muted);
}

/* Badge de synthèse (famille de technologies) */
.tags .tag--summary {
  border-color: var(--accent-line);
  background: rgba(212, 188, 140, 0.06);
  color: var(--accent);
}

/* Pastille d'icône */
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  transition: border-color 0.4s var(--ease);
}

.icon-badge .icon {
  width: 22px;
  height: 22px;
}

/* 4. En-tête et navigation
 * ------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

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

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: border-color 0.3s var(--ease);
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
}

.brand:hover .brand__mark {
  border-color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav__links {
  display: flex;
  gap: 34px;
}

.site-nav__links a {
  position: relative;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.site-nav__links a:hover,
.site-nav__links .current a {
  color: var(--text);
}

.site-nav__links a:hover::after,
.site-nav__links .current a::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* 5. Sections communes
 * ------------------------------------------------------------------- */
.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.section--flush-top {
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 28px 72px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head .eyebrow {
  margin-bottom: 22px;
}

.section-head__lead {
  max-width: 36rem;
  justify-self: end;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 3vw, 44px);
}

/* Grille de cartes à filets fins */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

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

/* Grille à 3 colonnes incomplète : la dernière carte comble la ligne */
.cards:not(.cards--2) > :last-child:nth-child(3n + 2) {
  grid-column: span 2;
}

.cards:not(.cards--2) > :last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--bg);
  transition: background-color 0.4s var(--ease);
}

.card:hover {
  background: var(--bg-raised);
}

.card:hover .icon-badge {
  border-color: var(--accent-line);
}

.card h3 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.12;
}

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

/* Liste cochée */
.checklist {
  border-top: 1px solid var(--line);
}

.checklist li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.checklist .icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--accent);
}

/* 6. Accueil
 * ------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(40px, 5vw, 72px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: clamp(40px, 6vw, 96px);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-weight: 400;
}

.hero__lead {
  max-width: 42rem;
  margin-top: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.portrait {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #28282c;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 30%;
}

/* Liste numérotée des services */
.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: baseline;
  gap: 12px 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-row__num {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.service-row h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  font-weight: 400;
  line-height: 1.12;
}

.service-row p {
  color: var(--text-muted);
}

.stack {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 48px);
}

.stack__label {
  padding-top: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* Projets */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: clamp(28px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.project:hover {
  border-color: var(--accent-line);
  background: var(--surface);
}

.meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.project h3 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.1;
}

.project p {
  font-size: 1rem;
  color: var(--text-muted);
}

.project .meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.project .project__stack {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-subtle);
}

/* 7. Pages intérieures
 * ------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(36px, 5vw, 72px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  align-items: end;
  gap: clamp(40px, 6vw, 96px);
}

.page-hero h1 {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-weight: 400;
}

.page-hero .display {
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);
}

.page-hero__lead {
  max-width: 46rem;
  margin-top: 32px;
}

/* Parcours */
.timeline {
  border-top: 1px solid var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: 12px 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__date {
  padding-top: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline__item p:not(.timeline__date) {
  max-width: 42rem;
  margin-top: 12px;
  color: var(--text-muted);
}

/* Bloc à deux colonnes */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px 72px;
  align-items: start;
}

.split .eyebrow {
  margin-bottom: 22px;
}

/* Méthode en étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.step {
  padding: clamp(28px, 2.8vw, 40px);
  background: var(--bg);
}

.step__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  margin-top: 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.step p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.panel {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.panel > p {
  margin-top: 14px;
  color: var(--text-muted);
}

/* Formulaire de contact */
.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  min-height: 168px;
  line-height: 1.6;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(242, 238, 230, 0.28);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212, 188, 140, 0.16);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}

.field-trap {
  display: none;
}

.contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 6px;
}

.contact-form__footer .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.contact-form__note {
  flex: 1 1 220px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-subtle);
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: var(--error);
}

/* Alternative LinkedIn sous le formulaire */
.contact-alt {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-alt > p {
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.channel:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.channel .icon-badge {
  width: 44px;
  height: 44px;
}

.channel__text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.channel__text strong {
  font-weight: 500;
}

.channel__text span {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.channel__arrow {
  margin-left: auto;
  color: var(--text-subtle);
  transition: color 0.3s var(--ease), transform 0.35s var(--ease);
}

.channel:hover .channel__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.info-list {
  border-top: 1px solid var(--line);
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-top: 4px;
}

.info-list dd {
  color: var(--text);
}

.contact-aside .h3 {
  margin-top: 56px;
  margin-bottom: 20px;
}

/* Questions fréquentes */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 44rem;
  padding-bottom: 28px;
  color: var(--text-muted);
}

/* 8. Appel à l'action et pied de page
 * ------------------------------------------------------------------- */
.cta {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__title {
  max-width: 15ch;
  margin-top: 24px;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5.25rem);
  line-height: 1.02;
}

.cta__text {
  max-width: 38rem;
  margin-top: 26px;
  color: var(--text-muted);
}

.cta .btn {
  margin-top: 40px;
}

.site-footer {
  padding-block: 56px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 48px 80px;
  align-items: start;
}

.site-footer__about p {
  max-width: 25rem;
  margin-top: 22px;
  color: var(--text-muted);
}

/* Réseaux */
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover,
.footer-links .current a {
  color: var(--text);
}

.social-list {
  display: flex;
  gap: 10px;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.social-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-list .icon {
  width: 19px;
  height: 19px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.site-footer__bottom a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.site-footer__bottom a:hover {
  color: var(--text);
}

.site-footer__bottom .to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.to-top .icon {
  width: 16px;
  height: 16px;
}

/* 9. Animations
 * ------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Apparition en cascade (cartes, projets) */
.js [data-stagger] > * > * {
  opacity: 0;
  transform: translateY(22px);
  transition-property: opacity, transform, border-color, background-color;
  transition-duration: 0.9s, 0.9s, 0.4s, 0.4s;
  transition-timing-function: var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s;
}

.js [data-stagger].is-visible > * > * {
  opacity: 1;
  transform: none;
}

/* Entrée de la page d'accueil */
@keyframes intro-rise {
  from { transform: translateY(110%); }
  to { transform: none; }
}

@keyframes intro-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-fade {
  to { opacity: 1; }
}

@keyframes intro-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes intro-unveil {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes intro-settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.js .intro [data-intro] {
  opacity: 0;
  animation: intro-fade-up 1s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.js .intro .eyebrow::before {
  transform-origin: left center;
  animation: intro-line 1.1s var(--ease) 0.1s both;
}

/* Titre révélé mot à mot (découpage fait par main.js) */
.js .intro [data-split]:not(.is-split) {
  opacity: 0;
  animation: intro-fade 0.6s ease 1.5s forwards;
}

.intro .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.14em 0.08em 0.18em 0;
  margin: -0.14em -0.08em -0.18em 0;
}

.intro .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: intro-rise 1.1s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--i, 0) * 60ms);
}

.js .intro .hero__portrait {
  animation: intro-unveil 1.4s var(--ease) 0.35s both;
}

.js .intro .hero__portrait img {
  animation: intro-settle 2s var(--ease) 0.35s both;
}

@media (prefers-reduced-motion: reduce) {
  .js .intro [data-intro],
  .js .intro [data-split],
  .intro .word > span,
  .js [data-stagger] > * > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .js .intro .eyebrow::before,
  .js .intro .hero__portrait,
  .js .intro .hero__portrait img {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 10. Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  /* Menu mobile plein écran */
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.4s var(--ease);
  }

  .nav-toggle__bars {
    position: relative;
    transform: translateY(-3.5px);
  }

  .nav-toggle__bars::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
  }

  .menu-open .nav-toggle__bars {
    transform: translateY(0) rotate(45deg);
  }

  .menu-open .nav-toggle__bars::before {
    transform: translateY(-7px) rotate(-90deg);
  }

  .menu-open,
  .menu-open body {
    overflow: hidden;
  }

  .menu-open .site-header {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }

  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease);
  }

  .site-nav__links {
    flex-direction: column;
    gap: 6px;
  }

  .site-nav__links a {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 9vw, 3.5rem);
    line-height: 1.2;
    color: var(--text);
  }

  .site-nav__links a::after {
    display: none;
  }

  .site-nav__links .current a {
    color: var(--accent);
  }

  .site-nav .btn {
    min-height: 52px;
    padding: 0 28px;
    font-size: 0.9375rem;
  }

  /* Mises en page à une colonne */
  .hero__grid,
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__portrait,
  .page-hero__portrait {
    order: -1;
    width: 92px;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .hero .portrait img,
  .page-hero .portrait img {
    object-position: 58% 22%;
  }

  .section-head,
  .split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head__lead {
    justify-self: start;
  }

  .cards,
  .cards--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards:not(.cards--2) > :last-child:nth-child(3n + 2),
  .cards:not(.cards--2) > :last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .service-row {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 28px 0;
  }

  .service-row p {
    grid-column: 2;
  }

  .stack,
  .timeline__item,
  .info-list div {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline__item {
    padding: 32px 0;
  }

  .timeline__date {
    padding-top: 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
