/* =========================================================
   BOUBACAR KONATÉ — DESIGN « ATELIER »
   Papier chaud, encre, accent terre cuite.
   Unités : rem, em, %, unités de fenêtre, nombres sans unité.
   ========================================================= */

/* VARIABLES */
:root {
  --paper: #f5efe6;
  --paper-deep: #ebe2d4;
  --card: #fffcf7;
  --ink: #1d1a17;
  --ink-soft: #4a433b;
  --muted: #6a6157;
  --line: rgba(29, 26, 23, 0.14);
  --line-strong: rgba(29, 26, 23, 0.28);

  --accent: #b4462a;
  --accent-deep: #a8401f;
  --accent-ink: #8f3a1f;
  --accent-tint: #f3ddd1;
  --accent-wash: #f8ebe2;
  --accent-light: #e8805f;

  --sage: #2f6a52;
  --sage-tint: #dcebe2;
  --danger: #a3261b;

  --on-dark: #f5efe6;
  --on-dark-muted: #b9ad9e;
  --dark-line: rgba(245, 239, 230, 0.16);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

  --hairline: 0.0625rem;
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --pill: 10rem;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 75rem;
  --nav-h: 4.5rem;
  --section-y: clamp(4.5rem, 10vw, 8rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-sm: 0 0.0625rem 0.125rem rgba(29, 26, 23, 0.06), 0 0.375rem 1rem rgba(29, 26, 23, 0.06);
  --shadow-lg: 0 1.75rem 3.5rem -1.25rem rgba(29, 26, 23, 0.35);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain de papier */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 12.5rem;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

/* ACCESSIBILITÉ */
:focus-visible {
  outline: 0.1875rem solid var(--accent);
  outline-offset: 0.1875rem;
  border-radius: 0.25rem;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--pill);
  border: var(--hairline) solid transparent;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-0.125rem); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0.625rem 1.5rem -0.75rem rgba(180, 70, 42, 0.7);
}
.btn-accent:hover { background: var(--accent-deep); }

.btn-ink {
  background: var(--ink);
  color: var(--on-dark);
}
.btn-ink:hover { background: #332e29; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.btn-arrow { font-size: 0.85em; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(0.25rem); }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.4rem;
  transition: color 0.2s var(--ease);
}
.link-arrow i { font-size: 0.8em; color: var(--accent); transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover i { transform: translateY(0.2rem); }

/* EN-TÊTE */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 239, 230, 0.86);
  backdrop-filter: blur(0.75rem) saturate(1.2);
  -webkit-backdrop-filter: blur(0.75rem) saturate(1.2);
  box-shadow: 0 var(--hairline) 0 var(--line);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variation-settings: 'opsz' 36;
}
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}
.nav-links a {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.45rem;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

/* MENU DÉROULANT MÉTIERS */
.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.nav-trigger:hover { color: var(--ink); }
.nav-trigger i { font-size: 0.65em; transition: transform 0.2s var(--ease); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 0.9rem;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: var(--hairline) solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.4rem);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -0.9rem;
  left: 0;
  right: 0;
  height: 0.9rem;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.nav-trigger[aria-expanded="true"] + .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
}
.has-dropdown:hover .nav-trigger i,
.has-dropdown:focus-within .nav-trigger i,
.nav-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-dropdown a:hover { background: var(--paper-deep); color: var(--ink); }

/* Métiers dans le tiroir mobile */
.drawer-sub-label {
  margin: 1.5rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer-sub a {
  display: block;
  padding: 0.6rem 0;
  border-bottom: var(--hairline) solid var(--line);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 450;
}
.drawer-sub a:hover { color: var(--accent-ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-cta { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-sep { color: var(--line-strong); }
.lang-btn {
  padding: 0.25rem 0.3rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.3rem;
}

.burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 50%;
  border: var(--hairline) solid var(--line-strong);
}
.burger span {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  border-radius: 0.125rem;
  background: var(--ink);
}

/* MENU MOBILE */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(29, 26, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(24rem, 88vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: var(--hairline) solid var(--line);
  box-shadow: -1.5rem 0 3rem rgba(29, 26, 23, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.45s var(--ease), visibility 0s;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: 1.5rem;
  border-bottom: var(--hairline) solid var(--line);
}
.drawer-close {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--hairline) solid var(--line-strong);
  font-size: 1.1rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.drawer-close:hover { background: var(--ink); color: var(--on-dark); }

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.drawer-nav ul a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: var(--hairline) solid var(--line);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.drawer-nav ul a:hover { color: var(--accent-ink); padding-left: 0.35rem; }
.drawer-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.drawer-cta { width: 100%; margin-top: 2rem; }

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-top: var(--hairline) solid var(--line);
  font-size: 0.95rem;
}
.drawer-socials { display: flex; gap: 0.6rem; }
.drawer-socials a,
.footer-socials a {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--hairline) solid var(--line-strong);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.drawer-socials a:hover,
.footer-socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* ACCUEIL */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 55vw;
  aspect-ratio: 1;
  right: -18vw;
  top: -12vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 128, 95, 0.22), rgba(232, 128, 95, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.1875rem solid var(--card);
  box-shadow: 0 0 0 var(--hairline) var(--line-strong);
}
.hero-who p {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hero-who strong { font-size: 1rem; }
.hero-who p span { font-size: 0.9rem; color: var(--muted); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--pill);
  background: var(--sage-tint);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 600;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 106, 82, 0.45); }
  50% { box-shadow: 0 0 0 0.35rem rgba(47, 106, 82, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-variation-settings: 'opsz' 60;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 380;
  color: var(--accent);
}

.hero-desc {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--hairline) solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-proof li { display: flex; align-items: center; gap: 0.5rem; }
.hero-proof i { color: var(--accent); font-size: 0.8rem; }

/* Composition visuelle */
.hero-visual {
  position: relative;
  min-height: clamp(21rem, 36vw, 31rem);
}

.frame {
  position: absolute;
  overflow: hidden;
  background: var(--card);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}
.frame--back {
  width: 74%;
  top: 0;
  right: 0;
  transform: rotate(3deg);
}
.frame--back img { filter: saturate(0.85); }
.frame--front {
  width: 86%;
  left: 0;
  bottom: 9%;
  z-index: 2;
  transform: rotate(-2.5deg);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.75rem;
  padding-inline: 0.75rem;
  background: #efe6d8;
  border-bottom: var(--hairline) solid var(--line);
}
.frame-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d9826a;
}
.frame-bar i:nth-child(2) { background: #dfb45e; }
.frame-bar i:nth-child(3) { background: #8fae8a; }
.frame-bar span {
  margin-left: 0.6rem;
  padding: 0.05rem 0.6rem;
  border-radius: var(--pill);
  background: var(--card);
  font-size: 0.68rem;
  color: var(--muted);
}

.hero-note {
  position: absolute;
  right: 3%;
  bottom: -1%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  transform: rotate(2deg);
  box-shadow: var(--shadow-lg);
}
.hero-note-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero-note strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 450;
  line-height: 1.15;
}
.hero-note span:last-child { font-size: 0.82rem; color: var(--accent-light); }

.stamp {
  position: absolute;
  top: -1.5rem;
  left: -1.25rem;
  z-index: 3;
  width: clamp(6.5rem, 9vw, 8rem);
  height: auto;
  overflow: visible;
}
.stamp-bg { fill: var(--card); stroke: var(--line-strong); stroke-width: 1; }
.stamp-text {
  fill: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stamp-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 26s linear infinite;
}
.stamp-core { fill: var(--accent); }
.stamp-arrow {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Apparition au chargement */
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(2rem) rotate(var(--r, 0deg)); }
  to { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
.hero-text > * { animation: rise 0.9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-text > :nth-child(5) { animation-delay: 0.32s; }
.frame--back { --r: 3deg; animation: float-in 1s var(--ease) 0.25s both; }
.frame--front { --r: -2.5deg; animation: float-in 1s var(--ease) 0.4s both; }
.hero-note { --r: 2deg; animation: float-in 1s var(--ease) 0.6s both; }
.stamp { animation: rise 1s var(--ease) 0.75s both; }

/* SECTIONS */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-deep); }
.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker::after {
  content: '';
  flex: 1;
  max-width: 10rem;
  height: var(--hairline);
  background: var(--line-strong);
}
.kicker-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--accent);
}
.section-title {
  max-width: 18em;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-variation-settings: 'opsz' 48;
  text-wrap: balance;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: var(--hairline) solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-0.3rem); box-shadow: var(--shadow-lg); }

.service-card--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.service-flag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-icon {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 1.1rem;
}
.service-card--featured .service-icon {
  background: rgba(232, 128, 95, 0.16);
  color: var(--accent-light);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.service-for {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.service-card--featured .service-for { color: var(--on-dark-muted); }

.service-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}
.service-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 0.125rem;
  border-radius: 0.125rem;
  background: var(--accent);
}
.service-card--featured .service-list li::before { background: var(--accent-light); }

.service-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
  border-top: var(--hairline) solid var(--line);
}
.service-card--featured .service-meta { border-top-color: var(--dark-line); }
.service-price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.service-delay { font-size: 0.88rem; color: var(--muted); }
.service-card--featured .service-delay { color: var(--on-dark-muted); }
.service-cta { width: 100%; white-space: normal; text-align: center; }

.service-band {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: var(--hairline) dashed rgba(180, 70, 42, 0.45);
  background: var(--accent-wash);
}
.service-band-icon {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--accent-ink);
}
.service-band p { color: var(--ink-soft); }
.service-band strong { color: var(--ink); }

.service-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* RÉALISATIONS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
}

.projects-grid .work-group-head {
  grid-column: 1 / -1;
  border-top: var(--hairline) solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
.projects-grid > .work-group-head:first-child { border-top: 0; padding-top: 0; }
.work-group-head h3 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
}
.work-group-head p { margin-top: 0.35rem; max-width: 44em; color: var(--ink-soft); }
.projects-grid .work-group-more { grid-column: 1 / -1; margin-top: 0.25rem; }

.project-card {
  display: flex;
  flex-direction: column;
}

.project-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: var(--hairline) solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-img-wrap {
  transform: translateY(-0.35rem) rotate(-0.6deg);
  box-shadow: var(--shadow-lg);
}
.project-card:hover .project-img-wrap img { transform: scale(1.03); }

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 1.35rem;
}
.project-kind {
  align-self: flex-start;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--pill);
  background: rgba(29, 26, 23, 0.07);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-kind--client { background: var(--sage-tint); color: var(--sage); }
.project-kind--product { background: var(--accent-tint); color: var(--accent-ink); }

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.project-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.project-tags span {
  padding: 0.15rem 0.6rem;
  border-radius: var(--pill);
  border: var(--hairline) solid var(--line-strong);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: auto;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 0.09rem;
  text-underline-offset: 0.3rem;
  transition: color 0.2s var(--ease);
}
.project-link i { font-size: 0.75em; }
.project-link:hover { color: var(--ink); }
.project-link--muted { color: var(--ink-soft); text-decoration-color: var(--line-strong); }

.project-kind--pro { background: #dde7f2; color: #264c78; }
.project-body .project-private {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: auto 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.project-private i { font-size: 0.8em; }

/* Couvertures illustrées (projets sans capture publique) */
.project-cover {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: var(--hairline) solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover .project-cover {
  transform: translateY(-0.35rem) rotate(-0.6deg);
  box-shadow: var(--shadow-lg);
}

/* SaaS : tableau de bord stylisé */
.cover-app {
  display: grid;
  grid-template-columns: 22% minmax(0, 1fr);
  aspect-ratio: 16 / 9;
  background: #1f3147;
}
.cover-side {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 0.8rem;
  background: #172536;
}
.cover-side b {
  height: 0.7rem;
  width: 75%;
  margin-bottom: 0.4rem;
  border-radius: 0.2rem;
  background: var(--accent-light);
}
.cover-side i {
  height: 0.4rem;
  width: 85%;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.16);
}
.cover-side i:nth-of-type(1) { background: rgba(255, 255, 255, 0.42); }
.cover-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.85rem 1rem;
}
.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cover-top i {
  width: 42%;
  height: 0.5rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.55);
}
.cover-top b {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--sage-tint);
}
.cover-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.cover-kpis span {
  position: relative;
  height: 2.3rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: var(--hairline) solid rgba(255, 255, 255, 0.12);
}
.cover-kpis span::before,
.cover-kpis span::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  border-radius: 0.2rem;
}
.cover-kpis span::before { top: 0.5rem; width: 40%; height: 0.3rem; background: rgba(255, 255, 255, 0.3); }
.cover-kpis span::after { top: 1.15rem; width: 58%; height: 0.55rem; background: #8fb3d9; }
.cover-kpis span:nth-child(2)::after { background: var(--accent-light); }
.cover-kpis span:nth-child(3)::after { background: #9cc7ad; }
.cover-chart {
  display: flex;
  align-items: flex-end;
  gap: 6%;
  padding: 0.6rem 0.7rem 0;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
}
.cover-chart i {
  flex: 1;
  border-radius: 0.2rem 0.2rem 0 0;
  background: #8fb3d9;
}
.cover-chart i:nth-child(1) { height: 38%; }
.cover-chart i:nth-child(2) { height: 62%; }
.cover-chart i:nth-child(3) { height: 48%; }
.cover-chart i:nth-child(4) { height: 78%; }
.cover-chart i:nth-child(5) { height: 58%; }
.cover-chart i:nth-child(6) { height: 88%; background: var(--accent-light); }
.cover-chart i:nth-child(7) { height: 70%; }

/* Application mobile : téléphone stylisé.
   Même hauteur que les cartes avec capture : barre (1.75rem) + format 16/9. */
/* API : mini-terminal illustré (frame-bar + zone 16/9). */
.project-cover--api .cover-term {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1f2430;
  overflow: hidden;
}
.cover-term-code {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: clamp(0.9rem, 3vw, 1.5rem);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1.7vw, 0.92rem);
  line-height: 1.5;
}
.cover-term-code .t-cmd { color: #e6e1d6; }
.cover-term-code .t-verb { color: #e8805f; font-weight: 700; }
.cover-term-code .t-status { color: #8fcf9f; }
.cover-term-code .t-json { color: #b9ad9e; word-break: break-all; }

.project-cover--mobile {
  position: relative;
  padding-top: calc(1.75rem + 56.25%);
  background:
    radial-gradient(circle at 18% 22%, rgba(232, 128, 95, 0.28), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(47, 106, 82, 0.18), transparent 50%),
    var(--accent-tint);
}
.cover-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 84%;
  aspect-ratio: 9 / 18;
  padding: 0.75rem 0.55rem 0.6rem;
  border: 0.35rem solid var(--ink);
  border-radius: 1.3rem;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%) rotate(-5deg);
}
.cover-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}
.cover-phone-top b {
  width: 55%;
  height: 0.45rem;
  border-radius: 0.2rem;
  background: var(--ink);
}
.cover-phone-top i {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
}
.cover-list { display: grid; gap: 0.3rem; }
.cover-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 0.35rem;
  background: var(--paper);
}
.cover-list span {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent-light);
}
.cover-list li:nth-child(even) span { background: #9cc7ad; }
.cover-list i {
  flex: 1;
  height: 0.28rem;
  border-radius: 0.2rem;
  background: var(--line-strong);
}
.cover-phone-btn {
  margin-top: auto;
  height: 0.85rem;
  border-radius: var(--pill);
  background: var(--accent);
}

/* MÉTHODE */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: none;
}
.step {
  padding-top: 1.5rem;
  border-top: 0.125rem solid var(--ink);
}
.step-num {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.75rem;
  font-weight: 350;
  line-height: 1;
  color: var(--accent);
}
.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.step p { font-size: 0.95rem; color: var(--ink-soft); }

/* POURQUOI MOI */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.why-item { display: flex; flex-direction: column; gap: 0.5rem; }
.why-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 1.1rem;
}
.why-item h3 { font-size: 1.2rem; font-weight: 600; }
.why-item p { color: var(--ink-soft); }

/* PAGE 404 */
.error-wrap {
  max-width: 42rem;
  margin-inline: auto;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
  padding-block: clamp(2rem, 7vw, 6rem);
}
.error-code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.9;
  color: var(--accent);
}
.error-lead { max-width: 34em; color: var(--ink-soft); }
.error-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 0.75rem; }

/* COMPÉTENCES */
.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.skills-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 380;
  line-height: 1.35;
  color: var(--ink);
}
.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.skill-group h3 {
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: var(--hairline) solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  padding: 0.35rem 0.85rem;
  border-radius: var(--pill);
  background: var(--card);
  border: var(--hairline) solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}

/* À PROPOS */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.portrait {
  position: relative;
  max-width: 22rem;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--accent-tint);
}
.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: var(--hairline) solid var(--line);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.about-content {
  display: flex;
  flex-direction: column;
}
.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.about-text .btn { margin-top: 0.5rem; }

.about-brief {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.about-brief .portrait { flex: 0 0 min(13rem, 35%); max-width: none; }

.timeline-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.timeline-head::after {
  content: '';
  flex: 1;
  height: var(--hairline);
  background: var(--line-strong);
}
.timeline + .timeline-head { margin-top: 3rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.35rem;
  border-bottom: var(--hairline) solid var(--line);
}
.timeline-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-ink);
  white-space: nowrap;
}
.timeline-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.timeline-org {
  margin-top: 0.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-ink);
}
.timeline-item p:not(.timeline-org):not(.timeline-tech) {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.timeline-tech {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

@media (min-width: 60.0625em) {
  .about-side {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
}

/* TÉMOIGNAGES */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}
.testimonials-grid.is-single { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: var(--hairline) solid var(--line);
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  position: relative;
  flex: 1;
  padding-top: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: -0.5rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: var(--hairline) solid var(--line);
}
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}
.faq-item {
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.005em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; }
.faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
/* Ouverture en douceur (navigateurs récents ; sinon ouverture instantanée) */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* CONTACT (section sombre) */
.section--dark .kicker { color: var(--on-dark-muted); }
.section--dark .kicker::after { background: var(--dark-line); }
.section--dark .kicker-num { color: var(--accent-light); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.contact-intro .section-head { margin-bottom: 1.5rem; }
.contact-text {
  max-width: 30em;
  margin-bottom: 2.25rem;
  font-size: 1.1rem;
  color: var(--on-dark-muted);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  overflow-wrap: anywhere;
}
.contact-list i {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--hairline) solid var(--dark-line);
  color: var(--accent-light);
  font-size: 0.9rem;
}
.contact-list a {
  text-decoration: underline;
  text-decoration-color: var(--dark-line);
  text-underline-offset: 0.3rem;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-list a:hover { color: var(--accent-light); text-decoration-color: var(--accent-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, 0.5);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.field label { font-size: 0.86rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: var(--hairline) solid var(--line-strong);
  background: var(--paper);
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  background-repeat: no-repeat;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #8a8076; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 0.2rem rgba(180, 70, 42, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 0.82rem; color: var(--danger); }
.field-error:empty { display: none; }

.hp {
  position: absolute;
  left: -100vw;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
}

.form-submit { align-self: flex-start; }
.form-status { font-size: 0.92rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--sage); }
.form-status.is-error { color: var(--danger); }
.form-legal { font-size: 0.8rem; color: var(--muted); }
.form-legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* PIED DE PAGE */
.site-footer {
  background: var(--paper-deep);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: var(--hairline) solid var(--line-strong);
}
.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 60;
}
.footer-desc {
  max-width: 28em;
  margin-top: 1rem;
  color: var(--ink-soft);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 500;
}
.footer-nav ul a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3rem;
  transition: text-decoration-color 0.2s var(--ease);
}
.footer-nav ul a:hover { text-decoration-color: var(--accent); }
.footer-socials { display: flex; gap: 0.6rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-top-link i { font-size: 0.8em; color: var(--accent); transition: transform 0.25s var(--ease); }
.footer-top-link:hover i { transform: translateY(-0.2rem); }

.site-footer--compact { padding-block: 0.5rem 2rem; }

/* PAGE MENTIONS LÉGALES */
.legal-page {
  width: min(100% - 2 * var(--gutter), 48rem);
  margin-inline: auto;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: var(--section-y);
}
.legal-page .section-title { margin: 1rem 0 0.75rem; }
.legal-intro { color: var(--muted); margin-bottom: 2.5rem; }
.legal-page h2 {
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.25rem;
  border-top: var(--hairline) solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.legal-page p,
.legal-page li { color: var(--ink-soft); }
.legal-page p + p { margin-top: 0.75rem; }
.legal-page ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.9rem 0;
}
.legal-page li { position: relative; padding-left: 1.3rem; }
.legal-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.65rem;
  height: 0.125rem;
  background: var(--accent);
}
.legal-page strong { color: var(--ink); }
.legal-page a:not(.btn) {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.legal-todo {
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: #fff1c7;
  color: #5c4200;
  font-style: italic;
}
.legal-back { margin-top: 3rem; }

/* BLOG — liste */
.article-list { display: flex; flex-direction: column; gap: 1.25rem; }
.article-card a {
  display: block;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: var(--hairline) solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.article-card a:hover { transform: translateY(-0.3rem); box-shadow: var(--shadow-lg); }
.article-card time { font-size: 0.85rem; color: var(--muted); }
.article-card h2 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.55rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0.3rem 0 0.5rem;
}
.article-card p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.article-more { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--accent-ink); }
.article-card a:hover .article-more { color: var(--ink); }

/* BLOG — article */
.article-inner {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: var(--section-y);
}
.article-back { margin-bottom: 1.5rem; }
.article-back a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink-soft); font-weight: 500; }
.article-back a:hover { color: var(--accent-ink); }
.article h1 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
  text-wrap: balance;
}
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.article-body { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
.article-body h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 1.75rem 0 0.5rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.article-body li { position: relative; padding-left: 1.5rem; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 0.6rem; height: 0.125rem; background: var(--accent); }
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before { content: counter(li); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--accent-ink); }
.article-body strong { color: var(--ink); }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.2rem; }
.article-body a:hover { color: var(--ink); }
.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 0.2rem solid var(--accent);
  background: var(--paper-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
}
.article-body blockquote p { margin-bottom: 0.5rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-cta { margin-top: 3rem; }

/* ÉTUDES DE CAS */
.case-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 1.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: var(--hairline) solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.case-facts dt {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-facts dd { font-weight: 500; color: var(--ink); }
.case-link { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

/* APPARITION AU DÉFILEMENT (contenu visible si JavaScript est désactivé) */
.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .stamp-ring { animation: none; }
  .btn:hover, .service-card:hover, .project-card:hover .project-img-wrap, .project-card:hover .project-cover { transform: none; }
  .project-card:hover .project-img-wrap img { transform: none; }
}

/* ÉCRANS MOYENS ET PETITS (points de rupture en em) */
@media (max-width: 64em) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60em) {
  .hero-grid,
  .skills-layout,
  .about-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .hero-visual {
    width: min(100%, 36rem);
    margin-inline: auto;
    min-height: clamp(18rem, 60vw, 26rem);
  }
  .portrait { max-width: 20rem; }
}

@media (max-width: 53.75em) {
  .nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 37.5em) {
  :root { --nav-h: 4rem; }
  body { font-size: 1rem; }

  .nav-cta { display: none; }
  .lang-switch { font-size: 0.78rem; }

  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 16rem; }
  .stamp { width: 5.5rem; top: -1rem; left: -0.5rem; }
  .hero-note { padding: 0.8rem 1rem; }
  .hero-note strong { font-size: 1.3rem; }

  .service-flag { position: static; align-self: flex-start; margin-bottom: 1.25rem; }
  .service-band { align-items: flex-start; }

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

  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }

  .about-brief { flex-direction: column; }
  .about-brief .portrait { max-width: 13rem; }

  .form-submit { align-self: stretch; }
  .portrait::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
}
