/* ==========================================================================
   Shapi : feuille de styles unique du site vitrine
   Thème sombre, accent orange du logo. Aucune dépendance externe.
   ========================================================================== */

/* Polices variables auto-hébergées (licence SIL OFL 1.1, voir assets/fonts) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-2: #120f0d;
  --surface: #181412;
  --surface-2: #201a17;
  --line: rgba(255, 236, 222, 0.09);
  --line-strong: rgba(255, 236, 222, 0.16);
  --text: #f6f1ec;
  --muted: #b5aaa1;
  --dim: #948980;
  --accent: #ff6b45;
  --accent-1: #ff7c5c;
  --accent-2: #fc4716;
  --accent-ink: #1a0802;
  --grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::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) + 16px);
}

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

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--accent-2); color: #fff; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { border-color: rgba(255, 236, 222, 0.32); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  border-color: transparent;
  background: var(--grad);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(252, 71, 22, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  border-color: transparent;
  box-shadow: 0 16px 40px -12px rgba(252, 71, 22, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--ghost { background: transparent; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(12, 10, 9, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(12, 10, 9, 0.86); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { width: 77px; height: 32px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__list a:hover { color: var(--text); background: rgba(255, 236, 222, 0.06); }
.nav__list a[aria-current="page"] { color: var(--text); }
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 22px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__list { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav__cta { display: none; }
  .js .nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(12, 10, 9, 0.97);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js .nav.is-open .nav__list {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s;
  }
  .js .nav__list a { padding: 14px 12px; font-size: 1.125rem; color: var(--text); border-radius: 12px; }
  .nav__list .nav__mobile-cta { display: block; margin-top: 8px; }
  .nav__list .nav__mobile-cta a { text-align: center; background: var(--grad); color: var(--accent-ink); font-weight: 600; }
}
@media (min-width: 861px) {
  .nav__mobile-cta { display: none; }
}

/* ---------- Sections communes ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section--tight { padding-block: clamp(64px, 8vw, 100px); }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent-1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; max-width: 620px; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: none;
}
.section-head--split > div { max-width: 680px; }

.text-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 130px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -20%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(252, 71, 22, 0.34), rgba(252, 71, 22, 0.08) 55%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  /* grille fine, rappel « atelier » */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 236, 222, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 236, 222, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hero__lead {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
  color: var(--dim);
  font-size: 0.9375rem;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* Mur d'icônes */
.icon-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  max-width: 440px;
  margin-inline: auto;
  transform: rotate(-8deg);
}
.icon-wall__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 26%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 9s ease-in-out infinite;
}
.icon-wall__item img { width: 100%; height: 100%; object-fit: cover; }
.icon-wall__item:nth-child(3n + 2) { translate: 0 34%; animation-delay: -3s; }
.icon-wall__item:nth-child(3n) { translate: 0 12%; animation-delay: -6s; }
.icon-wall__item--mark {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #221b17, #120e0c);
  box-shadow: 0 30px 60px -20px rgba(252, 71, 22, 0.55), 0 0 0 1px rgba(255, 124, 92, 0.3);
}
.icon-wall__item--mark img { width: 34%; height: auto; object-fit: contain; }
.icon-wall__item--soon {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px dashed rgba(255, 236, 222, 0.22);
  box-shadow: none;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .icon-wall { max-width: 300px; margin-bottom: 24px; }
}
@media (max-width: 520px) {
  .icon-wall { max-width: 230px; }
}

/* ---------- Apps (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-column: span 6;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.app-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(252, 71, 22, 0.18)), transparent);
  opacity: 0.6;
  transition: opacity 0.4s;
}
.app-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.app-card:hover::before { opacity: 1; }

.app-card__top { display: flex; align-items: center; gap: 18px; }
.app-card__icon {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 22%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-card__icon img { width: 100%; height: 100%; }
.app-card h3 { font-size: 1.625rem; }
.app-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}
.tag--soon { border-color: rgba(255, 124, 92, 0.45); color: var(--accent-1); }
.app-card__desc { color: var(--muted); max-width: 46ch; }
.app-card__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

.app-card--feature { grid-column: 1 / span 6; grid-row: span 2; justify-content: space-between; --glow: rgba(120, 80, 255, 0.28); }
.app-card--feature .app-card__top { flex-direction: column; align-items: flex-start; gap: 24px; }
.app-card--feature .app-card__icon { width: clamp(112px, 14vw, 156px); height: clamp(112px, 14vw, 156px); }
.app-card--feature h3 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.app-card--feature .app-card__desc { font-size: 1.1875rem; color: var(--text); opacity: 0.86; }

.app-card--puzzle { --glow: rgba(255, 190, 70, 0.2); }
.app-card--cat { --glow: rgba(255, 150, 60, 0.2); }
.app-card--hangman { --glow: rgba(90, 200, 120, 0.2); }
.app-card--killer { --glow: rgba(255, 255, 255, 0.1); }

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 236, 222, 0.04);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.store-link:hover { background: rgba(255, 236, 222, 0.1); border-color: rgba(255, 236, 222, 0.3); }
.store-link svg { width: 18px; height: 18px; color: var(--accent-1); }
.store-link small { display: block; color: var(--dim); font-size: 0.6875rem; font-weight: 500; line-height: 1.1; letter-spacing: 0.02em; }
.store-link span { line-height: 1.15; }

.dev-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 16px;
  padding: 20px clamp(22px, 3vw, 32px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.dev-pages p { margin: 0; }
.dev-pages strong { color: var(--text); font-weight: 600; }
.dev-pages__links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .app-card, .app-card--feature { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- Univers ---------- */
.universes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: uni;
}
.universe {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.universe:hover { border-color: var(--line-strong); background: var(--surface); }
.universe__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: rgba(252, 71, 22, 0.12);
  color: var(--accent-1);
}
.universe__icon svg { width: 28px; height: 28px; }
.universe__num {
  position: absolute;
  top: clamp(26px, 3vw, 36px);
  right: clamp(26px, 3vw, 36px);
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
}
.universe h3 { margin-bottom: 14px; font-size: 1.75rem; }
.universe p { color: var(--muted); }
.universe__apps { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.9375rem; }
.universe__apps b { color: var(--text); font-weight: 500; }

@media (max-width: 900px) {
  .universes { grid-template-columns: 1fr; }
}

/* ---------- Sur mesure ---------- */
.custom {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(252, 71, 22, 0.12), transparent 70%),
    var(--bg);
}
.custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.custom__intro h2 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); }
.custom__intro > p { margin-top: 24px; color: var(--muted); font-size: 1.125rem; }
.checklist { margin-top: 32px; list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--accent-1); }
.custom__intro .btn { margin-top: 36px; }

.tech-title { margin-bottom: 18px; color: var(--muted); font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; }
.tech {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tech:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tech svg { width: 40px; height: 40px; margin-bottom: 18px; color: var(--accent-1); }
.tech h4 { margin-bottom: 8px; font-size: 1.3125rem; }
.tech p { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

@media (max-width: 900px) {
  .custom__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* ---------- Étapes ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.step {
  position: relative;
  padding-top: 64px;
}
.step::before {
  /* losange : rappel du point du « S » */
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 124, 92, 0.55);
  border-radius: 10px;
  background: var(--bg);
  transform: rotate(45deg);
}
.step__n {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--accent-1);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
}
.step__line {
  position: absolute;
  top: 22px; left: 60px; right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 124, 92, 0.45), var(--line) 60%);
}
.step:last-child .step__line { display: none; }
.step h3 { margin-bottom: 10px; font-size: 1.375rem; }
.step p { color: var(--muted); font-size: 0.975rem; padding-right: 12px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 72px; }
  .step__line { top: 52px; bottom: 6px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(to bottom, rgba(255, 124, 92, 0.45), var(--line)); }
  .step:last-child { padding-bottom: 0; }
}

/* ---------- CTA final ---------- */
.cta-final { padding-block: clamp(64px, 9vw, 120px); }
.cta-card {
  position: relative;
  padding: clamp(36px, 7vw, 88px);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(255, 124, 92, 0.42), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(252, 71, 22, 0.28), transparent 60%),
    var(--surface);
  border: 1px solid rgba(255, 124, 92, 0.25);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-card__mark {
  position: absolute;
  z-index: -1;
  right: -40px; bottom: -80px;
  width: clamp(140px, 20vw, 240px);
  height: auto;
  opacity: 0.1;
  transform: rotate(-12deg);
}
.cta-card h2 { font-size: clamp(2.25rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; }
.cta-card p { max-width: 560px; margin: 22px auto 0; color: var(--muted); font-size: 1.125rem; }
.cta-card .hero__actions { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 64px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer__brand img { width: 97px; height: 40px; margin-bottom: 18px; }
.footer__brand p { max-width: 300px; }
.site-footer h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer__list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom p { margin: 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.875rem;
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Pages intérieures ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 100px) clamp(32px, 4vw, 48px); position: relative; isolation: isolate; overflow-x: clip; }
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%; right: -25%;
  width: min(900px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(252, 71, 22, 0.24), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.035em; }
.page-hero p { max-width: 640px; margin-top: 20px; color: var(--muted); font-size: 1.125rem; }

.prose { max-width: 760px; padding-bottom: clamp(72px, 10vw, 120px); }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 1.1875rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose a { color: var(--accent-1); text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 1em; }
.prose dt { color: var(--text); font-weight: 500; }
.prose dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 12px; }
}
.prose .updated { color: var(--dim); font-size: 0.9375rem; }

mark.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: #ffd84d;
  color: #1a1300;
  font-weight: 600;
  font-size: 0.95em;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 120px);
}
.contact__aside { display: grid; gap: 16px; }
.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.info-card h2 { margin-bottom: 10px; font-size: 1.25rem; }
.info-card p, .info-card li { color: var(--muted); font-size: 0.975rem; }
.info-card a { color: var(--accent-1); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.info-card ol { padding-left: 1.2em; display: grid; gap: 8px; }

.form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field .opt { color: var(--dim); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #7d736c; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 236, 222, 0.28); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(255, 124, 92, 0.2);
}
.field [aria-invalid="true"] { border-color: #ff8a8a; }
.field__error { color: #ffa3a3; font-size: 0.875rem; }
.field__error:empty { display: none; }
.field__hint { color: var(--dim); font-size: 0.8125rem; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 8px; }
.consent input {
  flex: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent-2);
}
.consent label { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.consent a { color: var(--accent-1); }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form__status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.975rem;
}
.form__status:empty { display: none; }
.form__status--ok { background: rgba(80, 200, 120, 0.12); border: 1px solid rgba(80, 200, 120, 0.4); color: #b6f0c8; }
.form__status--error { background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255, 120, 120, 0.4); color: #ffc4c4; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { order: 2; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.notfound p:not(.notfound__code) { max-width: 460px; margin: 20px auto 32px; color: var(--muted); }

/* ---------- Apparition au défilement ---------- */
.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.will-reveal.is-visible { opacity: 1; transform: none; }
[data-delay="1"] { --delay: 0.08s; }
[data-delay="2"] { --delay: 0.16s; }
[data-delay="3"] { --delay: 0.24s; }

@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;
    transition-delay: 0s !important;
  }
  .will-reveal { opacity: 1; transform: none; }
}
.notfound .hero__actions { justify-content: center; }
.notfound h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
