/* ==========================================================================
   NOVO. — feuille de styles du site
   Fidèle à l'export Claude Design « Site vitrine web design Renens ».
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0B0B;
  --ink-2: #2A2A2A;
  --muted: #5E5E5E;
  --subtle: #6E6E6E;
  --faint: #8A8A8A;
  --surface: #F4F4F4;
  --line: #ECECEC;
  --line-2: #E3E3E3;
  --field: #E6E6E6;
  --white: #FFFFFF;
  --accent: #B5EFFF;
  --accent-2: #9AE9FF;
  --hover: #2C2C2C;
  --dark-text: #A3A3A3;
  --dark-faint: #8E8E93;
  --dark-lead: #B4B4B9;
  --dark-line: #262626;
  --error: #B42318;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1320px;
  --wrap-wide: 1392px;
  --gutter: clamp(20px, 5vw, 64px);
  --gutter-wide: clamp(12px, 2vw, 24px);
  --space: clamp(96px, 12vw, 168px);
  --space-head: clamp(40px, 5vw, 64px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --focus: var(--ink);
}

/* Taille d'un « pixel » des maquettes illustrées, recalculée selon la place disponible. */
@property --u {
  syntax: '<length>';
  inherits: true;
  initial-value: 1px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Défilement doux seulement après une interaction : l'arrivée sur une ancre (/page#section) reste instantanée. */
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
::placeholder { color: #7A7A7A; opacity: 1; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  --focus: var(--accent);
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  transform: translateY(-180%);
  transition: transform .2s;
}
.skip:focus { transform: none; }
.balance { text-wrap: balance; }

/* ---------- Typographie ---------- */
.h1 { font-size: clamp(50px, 6.2vw, 86px); line-height: 1.03; letter-spacing: -.025em; font-weight: 400; }
.h2 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.025em; font-weight: 400; }
.h2--md { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; }
.h-light { display: block; font-weight: 300; color: var(--faint); }
/* Exposants (1re, 2e) sans agrandir l'interligne. */
sup { position: relative; top: -.5em; font-size: 70%; line-height: 0; vertical-align: baseline; }

.lead { position: relative; padding-left: 20px; font-size: 17.5px; line-height: 1.6; color: var(--muted); }
.lead::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.lead a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lead--hero { max-width: 480px; margin-top: 34px; font-size: clamp(17px, 1.4vw, 18.5px); }
.lead--dark { color: var(--dark-lead); }
.lead--dark::before { background: var(--white); }

.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }

/* ---------- Mise en page ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: var(--space) var(--gutter) 0; }
.section--end { padding-bottom: var(--space); }
.section-wide { padding: var(--space) var(--gutter-wide) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 64px; }
.section-head > .h1, .section-head > .h2 { flex: 1 1 520px; min-width: 0; }
.section-head > .lead { flex: 0 1 420px; min-width: 0; }
.mt-head { margin-top: var(--space-head); }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }

/* ---------- Icônes ---------- */
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.tick {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}
.tick svg { width: 10px; height: 10px; stroke-width: 1.7; }
.tick--accent { background: var(--accent); color: var(--ink); }
.tick--md { width: 24px; height: 24px; }
.tick--lg { width: 30px; height: 30px; }
.tick--lg svg { width: 13px; height: 13px; stroke-width: 1.6; }

.cross { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E4E4E4; }
.cross::before, .cross::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  margin: -.75px 0 0 -6px;
  background: var(--muted);
  transform: rotate(45deg);
}
.cross::after { transform: rotate(-45deg); }
.cross--md { width: 24px; height: 24px; }
.cross--md::before, .cross--md::after { width: 10px; margin-left: -5px; }

.plus { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--white); }
.plus::before { width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; }
.plus::after { width: 1.5px; height: 14px; margin: -7px 0 0 -.75px; }
.plus--lg { width: 52px; height: 52px; }

.icon-tile {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}
.icon-tile--sm { width: 46px; height: 46px; border-radius: 14px; }

.round-arrow {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
}
.round-arrow svg { stroke-width: 1.6; }

.f-badge {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 12px; font-weight: 600;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15.5px; font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--hover); }
.btn--outline { border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--accent); }
.btn--lg { height: 56px; padding: 0 24px; font-size: 16px; }
.btn--xl { height: 60px; padding: 0 26px; font-size: 16px; }

.cta {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px;
  padding: 0 28px 0 20px;
  border-radius: 999px;
  transition: background-color .2s, border-color .2s;
}
.cta > svg { flex: none; }
.cta__text { display: flex; flex-direction: column; line-height: 1.2; }
.cta__kicker { font-size: 11.5px; }
.cta__label { font-size: 16.5px; font-weight: 500; }
.cta--dark { background: var(--ink); color: var(--white); }
.cta--dark .cta__kicker { color: #BDBDBD; }
.cta--dark:hover { background: var(--hover); }
.cta--light { border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); }
.cta--light .cta__kicker { color: var(--subtle); }
.cta--light:hover { border-color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pastilles ---------- */
.pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.pill--white { background: var(--white); color: var(--muted); }
.pill--accent { background: var(--accent); color: var(--ink); }
.badge { display: inline-flex; margin-top: 26px; padding: 8px 14px; border-radius: 999px; background: var(--accent); font-size: 14px; font-weight: 500; }
.badge--grey { background: var(--surface); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter-wide) 0; }
.nav {
  --focus: var(--accent);
  position: relative;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 70px;
  padding: 0 12px 0 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2C2C2C 0%, #0B0B0B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 30px -20px rgba(0, 0, 0, .7);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.brand__name { font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.brand--lg { display: inline-flex; }
.brand--lg img { width: 36px; height: 36px; }
.brand--lg .brand__name { font-size: 22px; }

.nav__links { display: none; }
.nav__links a {
  display: block;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14.5px;
  color: #D9D9D9;
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav__links a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta {
  display: flex; align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px; font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s;
}
.nav__cta:hover { background: var(--accent); }
.nav__cta-short { display: none; }

.nav__toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.js .nav__toggle { display: block; }
.nav__toggle span {
  position: absolute; left: calc(50% - 9px);
  width: 18px; height: 1.6px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s;
}
.nav__toggle span:first-child { top: calc(50% - 5px); }
.nav__toggle span:last-child { top: calc(50% + 3px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menu sous la barre, défilable si l'écran est trop bas pour l'afficher en entier (téléphone couché). */
.nav__menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  max-height: calc(100svh - var(--header-h) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.nav__menu a { display: block; padding: 14px 16px; border-radius: 10px; font-size: 17px; color: #D9D9D9; }
.nav__menu a:hover { color: var(--white); }
.nav__menu a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .1); }

@media (min-width: 980px) {
  .nav__links {
    position: absolute; left: 50%; top: 12px;
    height: 46px;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 2px;
    padding: 0 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .09);
    white-space: nowrap;
  }
  .js .nav__toggle, .nav__menu { display: none; }
}
@media (max-width: 639.98px) {
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { padding: 0 var(--gutter-wide) var(--gutter-wide); }
.footer {
  --focus: var(--accent);
  position: relative;
  overflow: hidden;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #1C1C1C 0%, #0B0B0B 60%);
  color: var(--white);
}
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer__intro { flex: 1 1 280px; max-width: 380px; }
.footer__intro p { margin-top: 22px; font-size: 16px; line-height: 1.6; color: var(--dark-text); }
.footer__cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px;
  margin-top: 28px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px; font-weight: 500;
  transition: background-color .2s;
}
.footer__cta:hover { background: var(--accent); }
.footer__cta svg { stroke-width: 1.6; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; color: #E4E4E4; }
.footer__col h2 { margin-bottom: 6px; font-size: 13px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-faint); }
/* Liens du pied de page : zone cliquable plus haute, même rythme qu'avant. */
.footer__col ul { display: flex; flex-direction: column; gap: 2px; }
.footer__col li { padding: 5px 0; }
.footer__col li:has(> a) { padding: 0; }
.footer__col a { display: inline-block; padding: 5px 0; color: #E4E4E4; transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__hint { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--dark-faint); font-size: 12px; }
.footer__wordmark {
  margin-top: clamp(48px, 7vw, 88px);
  font-size: clamp(96px, 21vw, 300px);
  font-weight: 600;
  line-height: .78;
  letter-spacing: -.05em;
  color: #1A1A1A;
  user-select: none;
  pointer-events: none;
}
.footer__bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #232323;
  font-size: 13.5px;
  color: var(--dark-faint);
}
/* Liens légaux en pastilles : faciles à viser au doigt comme à la souris. */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__legal a, .footer__cookies {
  display: inline-flex; align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #C9C9CE;
  font: inherit;
  transition: background-color .2s, border-color .2s, color .2s;
}
.footer__legal a:hover, .footer__cookies:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .1); color: var(--white); }
.footer__cookies { display: none; cursor: pointer; }
.js .footer__cookies { display: inline-flex; }

/* ==========================================================================
   Héros de page
   Écran en portrait (mobile, tablette) : contenu centré, empilé.
   Écran en paysage à partir de 768 px : deux colonnes, comme la maquette.
   Les tailles suivent aussi la hauteur de l'écran pour que l'essentiel tienne d'un coup d'œil.
   ========================================================================== */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, min(8vw, 5svh), 112px) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(24px, 3.4svh, 48px);
  text-align: center;
}
.hero__text { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 680px; }
.hero .h1 { font-size: clamp(40px, min(12.8vw, 7svh), 72px); text-wrap: balance; }
.hero .lead--hero { max-width: 34em; margin-top: clamp(16px, 2.6svh, 28px); padding-left: 0; font-size: clamp(16px, 4.3vw, 18.5px); }
.hero .lead--hero::before { display: none; }
.hero .actions { justify-content: center; margin-top: clamp(20px, 3.6svh, 40px); }
.hero .cta--solo { margin-top: clamp(20px, 3.6svh, 40px); }

/* Pages intérieures : le héros remplit le premier écran, contenu centré dans la hauteur.
   La suite de la page n'apparaît qu'au premier défilement, avec son animation. */
.hero:not(.hero--home) {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  justify-content: center;
  padding-bottom: clamp(28px, min(8vw, 5svh), 112px);
}

@media (max-width: 599.98px) {
  .hero .actions { width: 100%; gap: 10px; }
  .hero .actions .cta { flex: 1 1 100%; }
  .hero .cta { width: 100%; max-width: 340px; height: 54px; justify-content: center; }
}

/* Téléphone : quand l'écran est bas, l'en-tête et les héros des pages intérieures se resserrent
   pour que tout l'essentiel (titre, texte, boutons, liste, photo) tienne sur l'écran.
   --t vaut 0 sur un écran visible de 553 px (iPhone SE dans Safari) et 207 px dès 760 px :
   chaque valeur passe de sa forme compacte à sa forme habituelle, qu'elle ne dépasse jamais.
   Les grands téléphones gardent donc exactement la mise en page d'avant. */
@media (max-width: 599.98px) {
  :root {
    --t: clamp(0px, 100svh - 553px, 207px);
    --header-h: calc(min(14px, 8px + var(--t) * .04) + min(70px, 58px + var(--t) * .08));
  }
  /* Pages plus chargées : on reste compact jusqu'à des écrans plus hauts. */
  .hero--about { --t: clamp(0px, 100svh - 640px, 207px); }
  .hero--services { --t: clamp(0px, 100svh - 720px, 207px); }
  .site-header { padding-top: min(14px, 8px + var(--t) * .04); }
  .nav { height: min(70px, 58px + var(--t) * .08); }
  .nav__cta, .nav__toggle { height: min(46px, 44px + var(--t) * .02); }

  .hero:not(.hero--home) {
    gap: min(clamp(24px, 3.4svh, 48px), 12px + var(--t) * .1);
    padding-block: min(clamp(28px, min(8vw, 5svh), 112px), 10px + var(--t) * .15);
  }
  .hero:not(.hero--home) .h1 { font-size: min(clamp(40px, min(12.8vw, 7svh), 72px), 30px + var(--t) * .14); }
  .hero:not(.hero--home) .lead--hero {
    margin-top: min(clamp(16px, 2.6svh, 28px), 10px + var(--t) * .06);
    font-size: min(clamp(16px, 4.3vw, 18.5px), 15px + var(--t) * .02);
    line-height: min(1.6em, 1.45em + var(--t) * .012);
  }
  .hero:not(.hero--home) :is(.actions, .cta--solo) { margin-top: min(clamp(20px, 3.6svh, 40px), 12px + var(--t) * .1); }
  .hero:not(.hero--home) .actions { gap: min(10px, 8px + var(--t) * .02); }
  .hero:not(.hero--home) .cta { height: min(54px, 46px + var(--t) * .05); }

  .hero .link-list { gap: min(6px, 4px + var(--t) * .02); padding: min(8px, 6px + var(--t) * .02); }
  .hero .link-row { padding-block: min(12px, 4px + var(--t) * .04); }
  .hero .link-row .icon-tile--sm { width: min(40px, 32px + var(--t) * .04); height: min(40px, 32px + var(--t) * .04); }
  .hero .link-row .round-arrow { width: min(30px, 28px + var(--t) * .02); height: min(30px, 28px + var(--t) * .02); }
  .hero .link-list__foot { padding-block: min(8px, 4px + var(--t) * .03) min(4px, 2px + var(--t) * .02); }
}

@media (min-width: 768px) and (min-aspect-ratio: 5/4), (min-width: 600px) and (max-height: 560px) and (orientation: landscape) {
  .hero {
    --hero-top: clamp(32px, min(8vw, 12.5svh), 112px);
    display: grid;
    /* Mêmes proportions que la maquette à 1440 px (texte 623 px, liste 483 px). */
    grid-template-columns: minmax(0, 1.29fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(40px, 6vw, 96px);
    padding-top: var(--hero-top);
    text-align: left;
  }
  .hero:not(.hero--home) { padding-bottom: var(--hero-top); }
  .hero__text { align-items: flex-start; max-width: none; }
  .hero .h1 { font-size: clamp(36px, min(6.2vw, 9.6svh), 86px); text-wrap: wrap; }
  .hero .lead--hero { max-width: 480px; margin-top: clamp(16px, 3.8svh, 34px); padding-left: 20px; font-size: clamp(15px, min(1.4vw, 2.06svh), 18.5px); }
  .hero .lead--hero::before { display: block; }
  .hero .actions { justify-content: flex-start; margin-top: clamp(20px, 4.4svh, 40px); }
  .hero .cta--solo { margin-top: clamp(20px, 4.4svh, 40px); }
}

/* Téléphone couché (écran en paysage très bas) : deux colonnes dès 600 px de large, en-tête, héros et listes
   resserrés pour que l'essentiel tienne sur l'écran. Même principe qu'en portrait : --t vaut 0 sur un écran
   visible de 300 px et 260 px à 560 px ; chaque valeur passe de sa forme compacte à sa forme habituelle. */
@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --t: clamp(0px, 100svh - 300px, 260px);
    --header-h: calc(min(14px, 6px + var(--t) * .03) + min(70px, 52px + var(--t) * .07));
  }
  .site-header { padding-top: min(14px, 6px + var(--t) * .03); }
  .nav { height: min(70px, 52px + var(--t) * .07); }
  .nav__cta, .nav__toggle { height: min(46px, 40px + var(--t) * .03); }
  .nav__toggle { width: min(46px, 40px + var(--t) * .03); }

  .hero {
    --hero-top: min(clamp(32px, min(8vw, 12.5svh), 112px), 6px + var(--t) * .25);
    column-gap: min(clamp(40px, 6vw, 96px), 24px + var(--t) * .1);
  }
  .hero .h1 { font-size: min(clamp(36px, min(6.2vw, 9.6svh), 86px), 28px + var(--t) * .1); }
  .hero .lead--hero {
    margin-top: min(clamp(16px, 3.8svh, 34px), 8px + var(--t) * .05);
    line-height: min(1.6em, 1.45em + var(--t) * .01);
  }
  .hero :is(.actions, .cta.cta--solo) { margin-top: min(clamp(20px, 4.4svh, 40px), 12px + var(--t) * .05); }
  .hero .actions { gap: 8px; }
  .hero .cta { height: min(48px, 44px + var(--t) * .02); gap: 10px; padding: 0 22px 0 16px; }
  .hero .cta__kicker { display: none; }

  .hero .link-list { gap: min(8px, 4px + var(--t) * .02); padding: min(10px, 6px + var(--t) * .02); border-radius: 22px; }
  .hero .link-row { gap: 10px; padding: min(16px, 4px + var(--t) * .05) 8px min(16px, 4px + var(--t) * .05) min(18px, 6px + var(--t) * .05); border-radius: 16px; }
  .hero .link-row__text > * { line-height: 1.2; }
  .hero .link-row .icon-tile--sm { width: min(46px, 34px + var(--t) * .05); height: min(46px, 34px + var(--t) * .05); border-radius: 12px; }
  .hero .link-row .round-arrow { width: 26px; height: 26px; }
  .hero .link-row__title { font-size: 16px; }
  .hero .link-row__sub { font-size: 13px; }
  .hero .link-list__foot { padding: min(10px, 4px + var(--t) * .03) 10px min(6px, 2px + var(--t) * .02); font-size: 14px; }
  .hero .link-list__foot img { width: 34px; height: 34px; }
}
/* Services : une liste assez large pour garder chaque ligne sur une ligne ; dès 800 px, les deux boutons
   restent aussi côte à côte. Plus étroit, « Voir le tarif » s'efface (le tarif reste détaillé plus bas). */
@media (min-width: 600px) and (max-height: 560px) and (orientation: landscape) {
  .hero--services { grid-template-columns: minmax(0, 1.2fr) minmax(min(100%, 316px), 1fr); }
}
@media (max-width: 799.98px) and (max-height: 400px) and (orientation: landscape) {
  .hero--services .cta--light { display: none; }
}

/* ---------- Accueil : héros ---------- */
/* Plein écran : le texte en haut, la maquette occupe la place restante (rognée en bas si besoin). */
.hero--home {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-rows: auto minmax(200px, 1fr);
  justify-items: center;
  row-gap: clamp(20px, 3svh, 40px);
  padding-bottom: 0;
}
.hero__extras { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 16px 40px; margin-top: clamp(24px, min(7vw, 9.8svh), 88px); }
.howto { position: relative; flex: none; display: block; width: 312px; height: 146px; color: var(--ink); text-align: left; }
.howto__top {
  position: absolute; left: 56px; top: 0;
  width: 256px; height: 84px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #F2F2F2;
}
.howto__mark { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); }
.howto__mark img { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.howto__note { padding-top: 1px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.howto__note span { color: var(--subtle); }
.howto__bar {
  position: absolute; left: 0; bottom: 0;
  width: 312px; height: 86px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  border-radius: 18px;
  background: #F7F7F7;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 20px 36px -26px rgba(0, 0, 0, .35);
  font-size: 20px;
}
.howto__bar svg { stroke-width: 1.4; transition: transform .2s; }
.howto:hover .howto__bar svg { transform: translateX(3px); }
.hero__delay { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; font-size: 15px; line-height: 1.3; color: var(--ink-2); text-align: left; }
.hero__delay strong { font-weight: 500; }

/* Petits écrans et téléphone couché : « Comment ça marche » et « 24 h » en version compacte. */
@media (max-width: 599.98px), (max-height: 560px) and (orientation: landscape) {
  .howto { width: auto; height: auto; }
  .howto__top { display: none; }
  .howto__bar { position: static; width: auto; height: 48px; gap: 12px; padding: 0 18px 0 22px; border-radius: 999px; font-size: 16px; }
  .hero__delay { flex-direction: row; align-items: center; gap: 8px; padding: 0; font-size: 14.5px; }
  .hero__delay br { display: none; }
}

.hero__visual {
  container: hero-visual / size;
  position: relative;
  justify-self: stretch;
  align-self: stretch;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 64px), transparent);
}
/* En portrait, le halo est une ellipse inscrite dans la zone : aucun bord net. */
.hero__visual > .glow {
  inset: 0;
  border-radius: 0;
  background: radial-gradient(closest-side, rgba(181, 239, 255, .5), rgba(181, 239, 255, 0));
}

/* Maquette de téléphone (illustration). Toutes les cotes sont en multiples de --u :
   sur mobile, elle prend ~62 % de la largeur et se laisse rogner en bas ; en deux colonnes, elle tient en hauteur. */
.phone {
  --u: min(1px, calc(100cqw * .62 / 318), max(calc((100cqh - 16px) / 690), .58px));
  position: relative; flex: none;
  width: calc(318 * var(--u)); height: calc(652 * var(--u));
  padding: calc(11 * var(--u));
  border-radius: calc(54 * var(--u));
  background: var(--ink);
  box-shadow: inset 0 0 0 calc(1.5 * var(--u)) #2E2E2E, 0 calc(60 * var(--u)) calc(90 * var(--u)) calc(-40 * var(--u)) rgba(0, 0, 0, .45), 0 calc(30 * var(--u)) calc(40 * var(--u)) calc(-30 * var(--u)) rgba(0, 0, 0, .35);
  text-align: left;
  rotate: 3deg;
}
.phone__btn { position: absolute; width: calc(3 * var(--u)); background: #1F1F1F; }
.phone__btn--1 { left: calc(-3 * var(--u)); top: calc(150 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(2 * var(--u)) 0 0 calc(2 * var(--u)); }
.phone__btn--2 { left: calc(-3 * var(--u)); top: calc(218 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(2 * var(--u)) 0 0 calc(2 * var(--u)); }
.phone__btn--3 { right: calc(-3 * var(--u)); top: calc(190 * var(--u)); height: calc(86 * var(--u)); border-radius: 0 calc(2 * var(--u)) calc(2 * var(--u)) 0; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: calc(44 * var(--u)); overflow: hidden; background: var(--white); }
.phone__island { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(98 * var(--u)); height: calc(29 * var(--u)); margin-left: calc(-49 * var(--u)); border-radius: 999px; background: #000; }
.phone__status { display: flex; justify-content: space-between; align-items: center; height: calc(50 * var(--u)); padding: 0 calc(28 * var(--u)) 0 calc(34 * var(--u)); font-size: calc(14.5 * var(--u)); font-weight: 600; }
.phone__icons { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.signal { display: flex; align-items: flex-end; gap: calc(2 * var(--u)); height: calc(10 * var(--u)); }
.signal span { width: calc(3 * var(--u)); border-radius: calc(1 * var(--u)); background: var(--ink); }
.signal span:nth-child(1) { height: calc(4 * var(--u)); }
.signal span:nth-child(2) { height: calc(6 * var(--u)); }
.signal span:nth-child(3) { height: calc(8 * var(--u)); }
.signal span:nth-child(4) { height: calc(10 * var(--u)); }
.battery { position: relative; width: calc(24 * var(--u)); height: calc(11 * var(--u)); border-radius: calc(3.5 * var(--u)); border: calc(1.2 * var(--u)) solid rgba(11, 11, 11, .4); }
.battery::after { content: ""; position: absolute; left: calc(1.5 * var(--u)); top: calc(1.5 * var(--u)); width: calc(16 * var(--u)); height: calc(6 * var(--u)); border-radius: calc(1.5 * var(--u)); background: var(--ink); }

.app { padding: 0 calc(20 * var(--u)); }
.app__head { display: flex; align-items: center; justify-content: space-between; margin-top: calc(12 * var(--u)); }
.app__user { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.app__user img { width: calc(42 * var(--u)); height: calc(42 * var(--u)); border-radius: 50%; object-fit: cover; }
.app__hello { font-size: calc(12 * var(--u)); line-height: 1.3; color: var(--faint); }
.app__hello span { font-size: calc(15 * var(--u)); font-weight: 500; color: var(--ink); }
.app__chat { display: grid; place-items: center; width: calc(42 * var(--u)); height: calc(42 * var(--u)); border-radius: 50%; border: calc(1 * var(--u)) solid #EAEAEA; }
.app__chat svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); stroke-width: 1.4; }
.app__title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: calc(24 * var(--u)); }
.app__title { font-size: calc(28 * var(--u)); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
.app__go { display: grid; place-items: center; width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: calc(17 * var(--u)); background: var(--ink); color: var(--white); }
.app__go svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); stroke-width: 1.6; }
.app__chips { display: flex; gap: calc(8 * var(--u)); margin-top: calc(18 * var(--u)); }
.app__chip {
  flex: none;
  display: flex; align-items: center; gap: calc(6 * var(--u));
  height: calc(32 * var(--u));
  padding: 0 calc(8 * var(--u)) 0 calc(12 * var(--u));
  border-radius: 999px;
  border: calc(1 * var(--u)) solid #E6E6E6;
  font-size: calc(12.5 * var(--u));
}
.app__chip--on { border-color: var(--accent); background: var(--accent); font-weight: 500; }
.app__x { display: grid; place-items: center; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: #F0F0F0; font-size: calc(10 * var(--u)); line-height: 1; }
.app__chip--on .app__x { background: var(--ink); color: var(--white); }
.app__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: calc(24 * var(--u)); }
.app__row--tight { margin-top: calc(22 * var(--u)); }
.app__row-title { font-size: calc(15 * var(--u)); font-weight: 500; }
.app__row-link { font-size: calc(11.5 * var(--u)); color: var(--faint); }
.app__grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(10 * var(--u)); margin-top: calc(12 * var(--u)); }
.app__card {
  height: calc(136 * var(--u));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(14 * var(--u));
  border-radius: calc(20 * var(--u));
  border: calc(1 * var(--u)) solid var(--line);
}
.app__card--dark { border-color: var(--ink); background: var(--ink); color: var(--white); }
.app__card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.app__icon { display: grid; place-items: center; width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; background: #F2F2F2; }
.app__icon svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); stroke-width: 1.4; }
.app__num { font-size: calc(15 * var(--u)); font-weight: 600; }
.app__mark { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; box-shadow: 0 0 0 calc(1 * var(--u)) rgba(255, 255, 255, .25); }
.app__price { text-align: right; font-size: calc(14 * var(--u)); font-weight: 600; line-height: 1.15; }
.app__price span { font-size: calc(10 * var(--u)); font-weight: 400; color: #9A9A9A; }
.app__card-title { display: block; font-size: calc(14 * var(--u)); font-weight: 500; }
.app__card-sub { display: block; margin-top: calc(3 * var(--u)); font-size: calc(11 * var(--u)); color: var(--faint); }
.app__card--dark .app__card-sub { color: #9A9A9A; }
.app__project { margin-top: calc(12 * var(--u)); padding: calc(8 * var(--u)); border-radius: calc(20 * var(--u)); background: var(--surface); }
.app__project img { width: 100%; height: auto; border-radius: calc(14 * var(--u)); }
.app__project-meta { display: flex; align-items: center; justify-content: space-between; padding: calc(10 * var(--u)) calc(6 * var(--u)) calc(4 * var(--u)); font-size: calc(13.5 * var(--u)); font-weight: 500; }
.app__project-meta small { margin-left: calc(6 * var(--u)); font-size: calc(11 * var(--u)); font-weight: 400; color: var(--faint); }
.app__project-go { display: grid; place-items: center; width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: var(--ink); color: var(--white); }
.app__project-go svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }

/* Deux colonnes : héros centré verticalement, maquette ajustée à la hauteur de l'écran. */
@media (min-width: 768px) and (min-aspect-ratio: 5/4), (min-width: 600px) and (max-height: 560px) and (orientation: landscape) {
  .hero--home {
    --hero-py: clamp(16px, 4svh, 48px);
    grid-template-columns: minmax(0, 1.39fr) minmax(0, 1fr);
    grid-template-rows: none;
    align-content: center;
    justify-items: stretch;
    padding-top: var(--hero-py);
    padding-bottom: var(--hero-py);
  }
  .hero__extras { justify-content: flex-start; gap: 32px 52px; }
  .hero__visual > .glow {
    inset: auto;
    left: 50%; top: 50%;
    width: 640px; height: 640px;
    margin: -320px 0 0 -320px;
    border-radius: 50%;
  }
  .hero__visual {
    align-self: center;
    height: min(720px, calc(100vh - var(--header-h) - 2 * var(--hero-py)));
    height: min(720px, calc(100svh - var(--header-h) - 2 * var(--hero-py)));
    align-items: center;
    padding-top: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .phone { --u: min(1px, calc(100cqh / 690), calc(100cqw / 350)); }
}

/* Téléphone couché : la colonne de texte garde la place des deux boutons côte à côte ; la maquette,
   petite à cette hauteur, se contente du reste. */
@media (min-width: 600px) and (max-height: 560px) and (orientation: landscape) {
  .hero--home {
    --hero-py: min(clamp(16px, 4svh, 48px), 6px + var(--t) * .04);
    grid-template-columns: minmax(min(100%, 460px), 1.39fr) minmax(0, 1fr);
  }
  .hero__extras { margin-top: min(clamp(24px, min(7vw, 9.8svh), 88px), 12px + var(--t) * .1); column-gap: 24px; }
}
/* Moins de 300 px de haut (Android couché, barre du navigateur affichée) : titre, texte et boutons d'abord ;
   les raccourcis « Comment ça marche » et « 48 h » s'effacent (la méthode reste détaillée plus bas). */
@media (max-height: 300px) and (orientation: landscape) {
  .hero__extras { display: none; }
}

/* ---------- Accueil : confiance ---------- */
.trust { padding-top: clamp(72px, 9vw, 120px); }
.trust__title { text-align: center; font-size: 13.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
/* Bande défilante des logos. Sans animation (ou sans JavaScript), les logos restent centrés. */
.marquee { margin-top: 36px; overflow: hidden; }
.marquee__track { display: flex; width: max-content; margin: 0 auto; }
.marquee__group { display: flex; align-items: center; }
.marquee__group li { flex: none; padding: 0 clamp(28px, 4vw, 52px); }
.marquee__logo { width: auto; height: clamp(40px, 4.4vw, 52px); }
.marquee__logo--tall { height: clamp(56px, 6vw, 72px); }
.marquee.is-running {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee.is-running .marquee__track { margin: 0; animation: marquee var(--marquee-duration, 30s) linear infinite; }
.marquee.is-running:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- Accueil : constat ---------- */
.constat__title { max-width: 16em; }
.compare { display: flex; flex-wrap: wrap; gap: 16px; }
.compare__card { flex: 1 1 420px; min-width: 0; padding: clamp(28px, 3.4vw, 44px); border-radius: 28px; background: var(--surface); }
.compare__card--dark { --focus: var(--accent); background: var(--ink); color: var(--white); }
.compare__list {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 34px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.4;
  color: var(--muted);
}
.compare__card--dark .compare__list { color: var(--white); }
.compare__list li { display: flex; align-items: flex-start; gap: 16px; }

/* ---------- Cartes de services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.svc {
  display: flex; flex-direction: column; gap: 28px;
  min-height: 330px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color .2s;
}
.svc:hover { border-color: var(--ink); }
.svc__body { margin-top: auto; }
.svc__title { font-size: 23px; font-weight: 500; letter-spacing: -.01em; }
.svc__text { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.svc__more {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #F0F0F0;
  font-size: 14px; font-weight: 500;
}

/* ---------- Bloc sombre pleine largeur ---------- */
.panel {
  --focus: var(--accent);
  position: relative;
  overflow: hidden;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px);
  border-radius: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, #1C1C1C 0%, #0B0B0B 55%);
  color: var(--white);
}
.panel > .glow {
  right: -10%; top: -35%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(154, 233, 255, .16), rgba(154, 233, 255, 0));
}
.panel .h-light, .pricing .h-light { color: var(--dark-faint); }
.panel__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px clamp(40px, 6vw, 96px); }
.panel .lead { max-width: 480px; margin-top: 32px; }

.handmade__text { flex: 1.2 1 480px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 28px 24px; margin-top: var(--space-head); }
.stats li { padding-top: 20px; border-top: 1px solid #2C2C2C; }
.stats__value { display: block; font-size: clamp(38px, 3.6vw, 48px); line-height: 1; letter-spacing: -.03em; }
.stats__label { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--dark-text); }

.code {
  flex: 1 1 360px; min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #121212;
  border: 1px solid var(--dark-line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.code__bar { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-bottom: 1px solid #222; }
.code__dot { width: 9px; height: 9px; border-radius: 50%; background: #3A3A3E; }
.code__tab { padding: 6px 10px; font-family: var(--mono); font-size: 12px; color: var(--dark-faint); }
.code__tab--on { margin-left: 12px; border-radius: 8px; background: #1F1F1F; color: #E4E4E7; }
.code__body { padding: 22px 22px 26px; overflow: hidden; font-family: var(--mono); font-size: 13.5px; line-height: 1.95; color: #E4E4E7; white-space: nowrap; }
.code__line { display: flex; gap: 18px; }
.code__ln { flex: none; width: 14px; text-align: right; color: #4A4A4E; }
.code__in1 { padding-left: 18px; }
.code__in2 { padding-left: 36px; }
.t-tag { color: var(--accent-2); }
.t-attr { color: #CDBEFF; }
.t-str { color: #8DF2CC; }

/* ---------- Projet à la une (accueil) ---------- */
.feature {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 48px clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: 32px;
  background: var(--surface);
}
.feature__text { flex: 1 1 320px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; align-items: flex-start; }
.feature__logo { height: 40px; width: auto; }
.feature__meta { margin-top: 12px; font-size: 14px; color: var(--subtle); }
.feature__desc { margin-top: 24px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -.01em; }
.feature .btn { margin-top: 32px; }
.feature:hover .btn--dark { background: var(--hover); }
.feature:hover .btn > svg { translate: 2px -2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 7px 13px; border-radius: 999px; background: var(--white); font-size: 13.5px; }
.feature__visual { position: relative; flex: 1.4 1 440px; min-width: 0; padding: 0 clamp(28px, 5vw, 64px) 56px 0; }

.browser {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35), 0 0 0 1px #E6E6E6;
}
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid #F0F0F0; }
.browser__dot { width: 8px; height: 8px; border-radius: 50%; background: #E4E4E7; }
.browser__url { flex: 1; height: 16px; margin: 0 18% 0 8%; border-radius: 999px; background: var(--surface); }
.browser img { width: 100%; height: auto; }

/* Capture d'écran dans un cadre de téléphone : l'image garde ses proportions,
   le haut et le bas reprennent la couleur de son fond (gris anthracite). */
.shot {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(#212123, #151517);
}
.shot img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent);
}
.shot__island { position: absolute; left: 50%; top: 10px; z-index: 1; width: 82px; height: 24px; margin-left: -41px; border-radius: 999px; background: #000; }

/* Mini téléphone PneuGo */
.mini {
  position: absolute; right: 0; bottom: 0;
  width: 150px; height: 308px;
  padding: 6px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px #2E2E2E, 0 30px 50px -24px rgba(0, 0, 0, .5);
  rotate: 3deg;
}
.mini .shot { border-radius: 22px; }
.mini .shot__island { top: 6px; width: 44px; height: 13px; margin-left: -22px; }

.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 16px;
  padding: 22px 22px 22px 26px;
  border-radius: 24px;
  border: 1.5px dashed #D6D6D6;
}
.next__info { display: flex; align-items: center; gap: 18px; }
.next__title { font-size: 19px; font-weight: 500; }
.next__text { margin-top: 3px; font-size: 15px; color: var(--muted); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.step-card {
  display: flex; flex-direction: column; gap: 56px;
  min-height: 310px;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
}
.step-card--dark { background: var(--ink); color: var(--white); }
.step-card__top { display: flex; justify-content: space-between; align-items: center; }
.step-card__num {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px; font-weight: 600;
}
.step-card--dark .step-card__num { background: var(--white); color: var(--ink); }
.step-card__badge { padding: 7px 12px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 500; }
.step-card--dark .step-card__badge { background: rgba(181, 239, 255, .14); color: var(--accent); }
.step-card__body { margin-top: auto; }
.step-card__title { font-size: 23px; font-weight: 500; letter-spacing: -.01em; }
.step-card__text { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.step-card--dark .step-card__text { color: var(--dark-text); }

/* ---------- Témoignages ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.quote { display: flex; flex-direction: column; gap: 28px; padding: 32px; border-radius: 24px; border: 1px solid var(--line); }
.quote--fill { border-color: var(--surface); background: var(--surface); }
.quote__stars { font-size: 15px; letter-spacing: .14em; }
.quote blockquote { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); font-size: 14px; font-weight: 500; }
.quote--fill .quote__avatar { background: var(--white); }
.quote__name { display: block; font-size: 15.5px; font-weight: 500; }
.quote__role { display: block; font-size: 13.5px; color: var(--subtle); }

/* ---------- Tarif ---------- */
.pricing {
  --focus: var(--accent);
  position: relative;
  overflow: hidden;
  display: flex; flex-wrap: wrap;
  gap: 40px clamp(40px, 6vw, 96px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: 32px;
  background: var(--ink);
  color: var(--white);
}
.pricing > .glow {
  left: -15%; bottom: -60%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(154, 233, 255, .14), rgba(154, 233, 255, 0));
}
.pricing__main { position: relative; flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.pricing__title { margin-top: 28px; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; font-weight: 400; }
.pricing__title .h-light { margin-bottom: 10px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; }
.pricing__note { margin-top: 24px; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--dark-text); }
.pricing .btn { margin-top: 36px; }
.pricing__box { position: relative; flex: 1 1 340px; min-width: 0; padding: 30px; border-radius: 24px; background: #161616; border: 1px solid var(--dark-line); }
.box-title { font-size: 15px; font-weight: 500; }
.box-title--next { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.ticks { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; font-size: 16px; color: #E4E4E4; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.pricing__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--dark-text); }
.price-rows { display: flex; flex-direction: column; margin-top: 12px; font-size: 16px; }
.price-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dark-line); }
.price-rows div:last-child { padding-bottom: 0; border-bottom: 0; }
.price-rows dt { color: #E4E4E4; }
.price-rows dd { color: var(--dark-faint); text-align: right; }

/* ---------- FAQ ---------- */
.faq-section { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); }
.faq-section__intro { flex: 1 1 320px; min-width: 0; }
.faq-section__intro .lead { max-width: 340px; margin-top: 28px; font-size: 17px; }
.faq { flex: 1.6 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 20px; background: var(--surface); }
.faq summary {
  position: relative;
  display: flex; align-items: center;
  min-height: 78px;
  padding: 22px 76px 22px 26px;
  border-radius: 20px;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq__icon {
  position: absolute; right: 22px; top: 50%;
  width: 34px; height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .25s, background-color .25s;
}
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); }
.faq__icon::before { width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; }
.faq__icon::after { width: 1.5px; height: 12px; margin: -6px 0 0 -.75px; }
.faq details[open] .faq__icon { background: var(--accent); transform: rotate(45deg); }
.faq details p { max-width: 46em; padding: 0 26px 24px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ==========================================================================
   Formulaires
   ========================================================================== */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px clamp(40px, 6vw, 96px); }
.split__intro { flex: 1 1 380px; min-width: 0; }
.split__intro .lead { max-width: 440px; margin-top: 28px; }
.founder { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; padding: 8px 22px 8px 8px; border-radius: 999px; background: var(--surface); }
.founder img { width: 52px; height: 52px; border-radius: 50%; }
.founder__name { display: block; font-size: 16px; font-weight: 500; }
.founder__role { display: block; font-size: 13.5px; color: var(--subtle); }

.form-card { flex: 1.2 1 460px; min-width: 0; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px; background: var(--surface); }
.form { display: flex; flex-direction: column; gap: 12px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.field {
  display: block;
  width: 100%; height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--field);
  background: var(--white);
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
}
.field:focus { border-color: var(--ink); }
.field[aria-invalid="true"] { border-color: var(--error); }
textarea.field { height: auto; padding: 16px 18px; line-height: 1.5; resize: vertical; }
.label { display: block; }

.form__group { margin-top: 8px; }
.form__label { font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--white);
  font-size: 14.5px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.chips--lg { margin-top: 16px; }
.chips--lg .chip span { height: 44px; font-size: 15px; }
.form__message { margin-top: 4px; }

.form__hint { font-size: 14px; color: var(--error); }
.form__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.form__submit:hover { background: var(--hover); }
.form__note { text-align: center; font-size: 13px; color: var(--subtle); }
button[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ==========================================================================
   Services
   ========================================================================== */
.link-list {
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
  padding: 10px;
  border-radius: 28px;
  background: var(--surface);
}
.link-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--white);
  transition: box-shadow .2s;
}
.link-row:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.link-row__text { flex: 1; min-width: 0; }
.link-row__title { display: block; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.link-row__sub { display: block; font-size: 13.5px; color: var(--subtle); }
.link-row__text > * + * { margin-top: 2px; }
.link-list__foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px 6px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.link-list__foot img { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.link-list__foot strong { font-weight: 500; color: var(--ink); }

/* Sur téléphone, lignes plus compactes pour que la liste tienne dans le premier écran. */
@media (max-width: 599.98px) {
  .link-list { gap: 6px; padding: 8px; border-radius: 22px; }
  .link-row { gap: 12px; padding: 12px 14px; border-radius: 16px; }
  .link-row .icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
  .link-row__title { font-size: 16px; }
  .link-row__sub { font-size: 13px; }
  .link-row .round-arrow { width: 30px; height: 30px; }
  .link-list__foot { padding: 8px 10px 4px; font-size: 14px; }
}

.svc-detail { padding-top: clamp(72px, 9vw, 120px); scroll-margin-top: 60px; }
.svc-detail--first { padding-top: clamp(96px, 12vw, 160px); }
.svc-detail__inner {
  display: flex; flex-wrap: wrap;
  gap: 40px clamp(40px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.svc-detail__text { flex: 1.1 1 440px; min-width: 0; }
.svc-detail__num { font-size: 14px; font-weight: 500; color: var(--subtle); }
.svc-detail .h2 { margin-top: 20px; }
.svc-detail__desc { max-width: 34em; margin-top: 26px; font-size: 17.5px; line-height: 1.65; color: var(--muted); }
.svc-detail__for { margin-top: 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.svc-detail__for strong { font-weight: 500; }
.included { flex: 1 1 360px; min-width: 0; padding: 30px; border-radius: 24px; background: var(--surface); }
.included ul { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; font-size: 16px; line-height: 1.4; }
.included li { display: flex; align-items: flex-start; gap: 12px; }

.vs { display: flex; flex-wrap: wrap; gap: 16px; }
.vs__card { flex: 1 1 420px; min-width: 0; padding: clamp(26px, 3.4vw, 40px); border-radius: 28px; background: var(--surface); color: var(--muted); }
.vs__card--novo { background: var(--ink); color: var(--white); }
.vs__head { display: flex; align-items: center; gap: 12px; min-height: 36px; color: var(--ink); }
.vs__card--novo .vs__head { color: var(--white); }
.vs__head img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.vs__brand { font-size: 20px; font-weight: 600; }
.vs__name { font-size: 20px; font-weight: 500; }
.vs__head .pill { margin-left: auto; padding: 6px 12px; font-size: 13px; }
.vs__list { display: flex; flex-direction: column; margin-top: 28px; }
.vs__list li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid #E4E4E4; }
.vs__card--novo .vs__list li { border-top-color: var(--dark-line); }
.vs__list li:last-child { padding-bottom: 0; }
.vs__key { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.vs__card--novo .vs__key { color: var(--dark-faint); }
.vs__value { display: block; margin-top: 4px; font-size: 17.5px; }

.pricing-anchor { scroll-margin-top: 60px; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px 48px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background: var(--surface);
}

/* ==========================================================================
   Réalisations
   ========================================================================== */
.case { padding-top: clamp(56px, 7vw, 96px); }
.showcase {
  position: relative;
  overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  gap: 32px;
  padding: clamp(24px, 5vw, 72px) clamp(20px, 5vw, 72px) 0;
  border-radius: 32px;
  background: var(--surface);
}
.showcase > .glow {
  left: 50%; top: 20%;
  width: 70%;
  aspect-ratio: 1;
  margin-left: -35%;
  background: radial-gradient(closest-side, rgba(181, 239, 255, .55), rgba(181, 239, 255, 0));
}
.showcase .browser { position: relative; flex: 1 1 520px; min-width: 0; max-width: 820px; margin-bottom: clamp(24px, 5vw, 72px); }
.showcase .browser__bar { height: 36px; }

.pg-phone {
  position: relative; flex: none;
  width: 260px; height: 540px;
  margin-bottom: -60px;
  padding: 10px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px #2E2E2E, 0 50px 80px -30px rgba(0, 0, 0, .5);
}
.pg-phone .shot { border-radius: 37px; }

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.meta div { padding: 22px 20px 22px 0; }
.meta dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.meta dd { margin-top: 8px; font-size: 19px; font-weight: 500; }

.story-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 96px); margin-top: clamp(32px, 4vw, 48px); }
.story-cols > div { flex: 1 1 380px; min-width: 0; }
.story-cols h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 400; }
.story-cols h3 span { font-weight: 300; color: var(--faint); }
.story-cols p { max-width: 34em; margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.case > .btn { margin-top: 36px; }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.project { display: flex; flex-direction: column; gap: 16px; }
.project__media { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--surface); }
.project__info { padding: 0 4px; }
.project__name { display: block; font-size: 19px; font-weight: 500; }
.project__meta { display: block; margin-top: 4px; font-size: 14.5px; color: var(--subtle); }
.project__add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  border: 1.5px dashed #D6D6D6;
  font-size: 19px; font-weight: 500;
  transition: border-color .2s;
}
.project:hover .project__add { border-color: var(--ink); }

/* Projet en cours : maquette du futur site (logo du client en haut à gauche, « Arrive prochainement » au centre).
   Tout suit la largeur de la carte (unités cqw), du téléphone au grand écran. */
.soon {
  container-type: inline-size;
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #F6F3EE;
}
.soon__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 12cqw;
  padding: 0 4.5cqw;
  background: var(--white);
  border-bottom: 1px solid #ECE6DC;
}
.soon__logo { width: auto; height: 7cqw; }
.soon__nav { display: flex; align-items: center; gap: 2.4cqw; }
.soon__nav span { width: 6cqw; height: 1.1cqw; border-radius: 999px; background: #E2DCD2; }
.soon__nav .soon__btn { width: 11cqw; height: 4cqw; margin-left: 1.2cqw; background: var(--ink); }
.soon__body {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw;
  text-align: center;
}
.soon__body::before {   /* coup de rouleau derrière le titre */
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 66cqw; height: 9cqw;
  translate: -50% -30%;
  rotate: -3deg;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(229, 220, 205, 0), #E5DCCD 14%, #E5DCCD 86%, rgba(229, 220, 205, 0));
}
.soon__eyebrow { position: relative; font-size: max(9px, 2.2cqw); letter-spacing: .14em; text-transform: uppercase; color: #8C8478; }
.soon__title { position: relative; font-size: 6.4cqw; line-height: 1.05; letter-spacing: -.02em; font-weight: 500; }

/* ==========================================================================
   À propos
   ========================================================================== */
/* La photo et ses deux bulles, posées au bord sans jamais couvrir l'image : « Renens » au-dessus à droite,
   « Diogo » en dessous à gauche. Les bulles prennent la largeur de leur texte et débordent vers l'extérieur.
   En portrait, l'ensemble passe au-dessus du texte et sa taille suit la hauteur de l'écran. */
.portrait {
  --gap: 12px;          /* espace entre une bulle et la photo */
  --out-place: 100px;   /* photo étroite : écart entre le centre de la photo et le bord droit de « Renens » */
  --out-card: 150px;    /* photo étroite : écart entre le centre de la photo et le bord gauche de « Diogo » */
  position: relative;
  order: -1;
  display: flex; flex-direction: column; align-items: flex-start;
  width: min(52vw, 280px, 16svh);
  text-align: left;
}
.portrait > .glow {
  left: 50%; top: 46%;
  width: 600px; height: 600px;
  margin: -300px 0 0 -300px;
  background: radial-gradient(closest-side, rgba(181, 239, 255, .5), rgba(181, 239, 255, 0));
}
.portrait__photo {
  position: relative;
  align-self: stretch;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .35);
  rotate: 2deg;
}
.portrait__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Débord d'au moins 28 px ; sur une photo étroite, les bulles restent groupées autour de son centre. */
.portrait__place, .portrait__card { position: relative; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
.portrait__place {
  order: -1;
  align-self: flex-end;
  margin: 0 min(-28px, 50% - var(--out-place)) var(--gap) 0;
  display: flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .4);
  font-size: 14px; font-weight: 500; line-height: 1.3;
}
.portrait__place svg { stroke-width: 1.8; }
.portrait__card {
  margin: var(--gap) 0 0 min(-28px, 50% - var(--out-card));
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px 10px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2C2C2C 0%, #0B0B0B 100%);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 40px -20px rgba(0, 0, 0, .6);
}
.portrait__card img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.portrait__name { display: block; font-size: 17px; font-weight: 500; line-height: 1.3; }
.portrait__role { display: block; font-size: 13.5px; line-height: 1.3; color: var(--dark-text); }

@media (max-width: 599.98px) {
  .portrait { --gap: 8px; --out-place: 90px; --out-card: 125px; }
  .portrait__photo { border-radius: 24px; }
  .portrait__place { gap: 6px; min-height: 32px; padding: 5px 12px 5px 10px; font-size: 13px; }
  .portrait__card { gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; }
  .portrait__card img { width: 34px; height: 34px; }
  .portrait__name { font-size: 15px; }
  .portrait__role { font-size: 12px; }
}

/* Téléphone (dès 360 px) : la photo à gauche, les deux bulles empilées à sa droite, toujours hors de l'image.
   La photo suit la hauteur de l'écran et rétrécit si la largeur manque. */
@media (min-width: 360px) and (max-width: 599.98px) {
  .portrait {
    display: grid;
    grid-template-columns: minmax(0, clamp(88px, (100svh - 560px) * .8, 200px)) max-content;
    align-items: center;
    gap: 8px 14px;
    width: auto;
    max-width: 100%;
  }
  .portrait__photo { grid-column: 1; grid-row: 1 / 3; }
  .portrait__place { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  .portrait__card { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
}

@media (min-width: 768px) and (min-aspect-ratio: 5/4), (min-width: 600px) and (max-height: 560px) and (orientation: landscape) {
  /* La photo est dimensionnée pour s'arrêter 28 px avant le bas de l'écran : pas de grande marge en dessous. */
  .hero.hero--about { grid-template-columns: minmax(0, 1.39fr) minmax(0, 1fr); padding-bottom: 28px; }
  .portrait {
    order: 0;
    justify-self: center;
    /* Sous la photo : la carte « Diogo » (76 px) et 28 px avant le bas de l'écran.
       Au-dessus, « Renens » se loge dans la marge haute du héros (52 px). */
    width: min(100% - 56px, 420px, (100svh - var(--header-h) - var(--hero-top) - 104px) * .8);
    margin-top: -52px;
  }
}

/* Téléphone couché : marge haute trop fine pour y loger « Renens », la photo laisse la place aux deux bulles. */
@media (min-width: 600px) and (max-height: 560px) and (orientation: landscape) {
  /* Colonne de texte assez large pour garder les deux boutons côte à côte. */
  .hero.hero--about { grid-template-columns: minmax(min(100%, 440px), 1.39fr) minmax(0, 1fr); padding-bottom: var(--hero-top); }
  .portrait {
    --gap: 8px; --out-place: 90px; --out-card: 125px;
    width: min(100% - 56px, 420px, (100svh - var(--header-h) - 2 * var(--hero-top) - 100px) * .8);
    margin-top: 0;
  }
  .portrait__photo { border-radius: 24px; }
  .portrait__place { gap: 6px; min-height: 32px; padding: 5px 12px 5px 10px; font-size: 13px; }
  .portrait__card { gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; }
  .portrait__card img { width: 34px; height: 34px; }
  .portrait__name { font-size: 15px; }
  .portrait__role { font-size: 12px; }
}

.story { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); }
.story > .h2 { flex: 1 1 440px; min-width: 0; }
.story__text {
  flex: 1 1 440px; min-width: 0;
  display: flex; flex-direction: column; gap: 22px;
  padding-top: 10px;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}
.story__text .ink { color: var(--ink); }

.commitments { border-bottom: 1px solid var(--line); }
.commitments li {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 12px 32px;
  padding: clamp(26px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.commitments__head { flex: 1 1 380px; min-width: 0; display: flex; align-items: baseline; gap: 24px; }
.commitments__num { flex: none; width: 36px; font-size: 15px; font-weight: 500; color: var(--faint); }
.commitments h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 400; }
.commitments p { flex: 1.2 1 340px; min-width: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

.region__text { flex: 1.1 1 460px; min-width: 0; }
.region__card { flex: 1 1 380px; min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: #141414; border: 1px solid var(--dark-line); }
.region__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.region__label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-faint); }
.region__city { margin-top: 8px; font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.region__coords { text-align: right; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--dark-faint); }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.towns li {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: #1E1E1E;
  border: 1px solid #2C2C2C;
  color: #E4E4E4;
  font-size: 14.5px;
}
.towns .is-base { padding-left: 11px; border-color: var(--accent); background: var(--accent); color: var(--ink); font-weight: 500; }
.towns .is-base svg { stroke-width: 2; }
.region__remote { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 15px; color: var(--dark-lead); }

/* ==========================================================================
   Contact
   ========================================================================== */
.hero .cta--solo { margin-top: 40px; }
.devis-section { padding-top: clamp(96px, 12vw, 152px); }
.devis { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px clamp(40px, 6vw, 96px); scroll-margin-top: 110px; }
.devis__intro { flex: 1 1 340px; min-width: 0; }
.devis__next { margin-top: clamp(40px, 5vw, 56px); }
.timeline { margin-top: 20px; }
.timeline li { position: relative; display: flex; gap: 18px; padding-bottom: 30px; }
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute; left: 17.25px; top: 44px; bottom: 6px;
  width: 1.5px;
  border-radius: 2px;
  background: #E4E4E4;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); font-size: 14px; font-weight: 600; }
.timeline li:first-child .timeline__num { background: var(--ink); color: var(--white); }
.timeline__body { padding-top: 5px; }
.timeline__title { display: block; font-size: 18.5px; font-weight: 500; }
.timeline__text { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

.stepper { flex: 1.5 1 520px; min-width: 0; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px; background: var(--surface); scroll-margin-top: 110px; }
.progress { display: none; margin-bottom: 36px; }
.js .progress { display: block; }
.progress__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.progress__row strong { font-weight: 500; }
.progress__row span { color: var(--subtle); }
.progress__bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.progress__bar span { height: 4px; border-radius: 4px; background: #DCDCDC; transition: background-color .3s; }
.progress__bar .is-done { background: var(--ink); }

/* Sans JavaScript, les trois étapes s'affichent l'une sous l'autre (mode « page unique »). */
.step + .step { margin-top: 40px; padding-top: 32px; border-top: 1px solid #E4E4E4; }
.step__legend { margin-bottom: 24px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.js .step:not(.is-current) { display: none; }
.js .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.js .step__legend {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.q { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.q:focus { outline: none; }
.q--block { margin-bottom: 20px; }
.qgroup + .qgroup { margin-top: 32px; }
.stepper .chips { margin-top: 16px; }
.stepper .label + .label, .stepper .field-row + .label { margin-top: 12px; }
.via { margin-top: 28px; }
.via .form__label { font-size: 15.5px; }
.via .chips { margin-top: 14px; }
.stepper .form__hint { margin-top: 20px; font-size: 14.5px; }

.step-nav { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid #E4E4E4; }
.step-nav--mid { display: none; }
.js .step-nav--mid { display: flex; }
.btn-step {
  display: none;
  align-items: center; gap: 10px;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.js .btn-step, .btn-step--send { display: inline-flex; }
.btn-step:hover { background: var(--hover); }
.btn-step--next, .btn-step--send { margin-left: auto; }
.btn-step--back { padding: 0 22px 0 18px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); }
.btn-step--back:hover { background: var(--white); border-color: var(--ink); }
.step-note { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--subtle); }

/* ==========================================================================
   Page de remerciement et page 404 : message centré
   ========================================================================== */
.thanks {
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, min(8vw, 9svh), 104px) var(--gutter) var(--space);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.thanks__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); }
.thanks__icon svg { stroke-width: 1.2; }
.thanks > .h1 { margin-top: 28px; font-size: clamp(40px, min(10vw, 7.4svh), 72px); text-wrap: balance; }
.thanks > .lead { max-width: 30em; margin-top: 22px; padding-left: 0; font-size: clamp(16px, 4.3vw, 18.5px); }
.thanks > .lead::before { display: none; }
.thanks > .actions { justify-content: center; margin-top: 32px; }
.thanks__next { width: 100%; margin-top: clamp(48px, 7vw, 72px); padding: clamp(24px, 4vw, 36px); border-radius: 28px; background: var(--surface); text-align: left; }
.thanks__next .timeline__num { background: var(--white); }
.thanks__next .timeline li:first-child .timeline__num { background: var(--ink); }
.thanks__next .timeline li:not(:last-child)::before { background: var(--line-2); }
.thanks__more { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--muted); }
.thanks__more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 599.98px) {
  .thanks > .actions { width: 100%; gap: 10px; }
  .thanks > .actions .btn { flex: 1 1 100%; max-width: 340px; margin: 0 auto; }
}

/* ==========================================================================
   Pages légales
   ========================================================================== */
.legal-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, min(8vw, 9svh), 104px) var(--gutter) 0; }
.legal-head__title { margin-top: 18px; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.025em; font-weight: 400; text-wrap: balance; }
.legal-head__actions { margin-top: 28px; }
.legal {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) var(--space);
  display: grid;
  gap: 32px clamp(40px, 6vw, 96px);
}
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal__nav a {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14.5px;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.legal__nav a:hover { background: var(--line); }
.legal__nav a[aria-current="page"] { background: var(--ink); color: var(--white); }

.prose { min-width: 0; max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; color: var(--ink); scroll-margin-top: 110px; }
.prose h3 { margin-top: 32px; font-size: 19px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 500; color: var(--ink); }
.prose__table { overflow-x: auto; }
.prose td { hyphens: auto; }
@media (max-width: 379.98px) {
  .prose table { font-size: 13.5px; }
  .prose th, .prose td { padding-right: 8px; }
}
.prose__date { margin-top: 40px; font-size: 15px; color: var(--subtle); }
.prose__action { display: none; }
.js .prose__action { display: block; margin-top: 20px; }

@media (min-width: 900px) {
  .legal { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .legal__nav { position: sticky; top: calc(var(--header-h) + 24px); flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .legal__nav a { padding: 11px 16px; border-radius: 12px; background: transparent; font-size: 15px; white-space: normal; }
  .legal__nav a:hover { background: var(--surface); }
}

/* ==========================================================================
   Bandeau cookies
   ========================================================================== */
.cookie {
  --focus: var(--accent);
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  max-width: 420px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2C2C2C 0%, #0B0B0B 100%);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .6);
}
/* Tant que le bandeau est affiché, sa hauteur est réservée en bas de page : il ne masque jamais le pied de page. */
body.has-cookie { padding-bottom: calc(var(--cookie-h, 0px) + 24px); }
.cookie__text { font-size: 14.5px; line-height: 1.55; color: #C9C9CE; }
.cookie__text a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie__short { display: none; }
/* Les deux boutons ont exactement la même taille et le même style. */
.cookie__actions { display: flex; gap: 8px; margin-top: 16px; }
.cookie__btn {
  flex: 1 1 0;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background-color .2s;
}
.cookie__btn:hover { background: var(--accent); }

@media (max-width: 599.98px) {
  .cookie { padding: 16px; }
  .cookie__long { display: none; }
  .cookie__short { display: inline; }
  .cookie__actions { margin-top: 14px; }
}
@media (min-width: 600px) {
  .cookie { left: 24px; right: auto; bottom: 24px; }
}

/* ==========================================================================
   Animations
   Activées par motion.js (classe .motion sur <html>), jamais si le visiteur préfère
   réduire les animations. Elles n'utilisent que l'opacité et les transformations.
   ========================================================================== */

/* Entrée du héros au chargement (CSS seul : rien ne clignote, rien ne dépend du script).
   --enter la décale le temps de l'intro de l'accueil, ou du chargement léger des autres pages. */
.motion:not(.has-intro) { --enter: .45s; }
.has-intro { --enter: 2.15s; }
.intro-skip { --enter: 0s; }
.motion :is(.hero__text, .legal-head, .thanks) > * { animation: reveal .8s var(--ease) var(--enter, 0s) both; }
.motion :is(.hero__text, .legal-head, .thanks) > :nth-child(2) { animation-delay: calc(var(--enter, 0s) + 80ms); }
.motion :is(.hero__text, .legal-head, .thanks) > :nth-child(3) { animation-delay: calc(var(--enter, 0s) + 160ms); }
.motion :is(.hero__text, .legal-head, .thanks) > :nth-child(n+4) { animation-delay: calc(var(--enter, 0s) + 240ms); }
.motion .thanks > .thanks__icon { animation: pop-in .6s var(--ease) var(--enter, 0s) both; }
.motion :is(.hero__visual, .hero > .portrait, .hero > .link-list) { animation: reveal-visual 1s var(--ease) calc(var(--enter, 0s) + .18s) both; }

/* Apparition au défilement */
.motion [data-reveal] { opacity: 0; }
.motion [data-reveal].is-in { animation: reveal .8s var(--ease) var(--d, 0s) both; }
@keyframes reveal {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes reveal-visual {
  from { opacity: 0; translate: 0 34px; scale: .97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

/* Parallaxe : la position est calculée par motion.js */
.motion [data-parallax] { translate: 0 var(--py, 0px); }

/* Inclinaison de la maquette et du portrait selon le curseur */
.motion .phone,
.motion .portrait__photo {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease);
}

/* Halo qui suit le curseur sur les blocs sombres */
@property --spot {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
.panel, .pricing, .footer { transition: --spot .5s var(--ease); }
.panel { background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(154, 233, 255, calc(.09 * var(--spot))), transparent 70%), linear-gradient(180deg, #1C1C1C 0%, #0B0B0B 55%); }
.pricing { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(154, 233, 255, calc(.09 * var(--spot))), transparent 70%), var(--ink); }
.footer { background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 50%), rgba(154, 233, 255, calc(.06 * var(--spot))), transparent 70%), linear-gradient(180deg, #1C1C1C 0%, #0B0B0B 60%); }
.is-lit { --spot: 1; }

/* Boutons : léger déplacement magnétique (motion.js), flèche qui avance, pression au clic */
.cta, .nav__cta, .footer__cta, .pricing .btn--light { transition: background-color .2s, border-color .2s, translate .4s var(--ease), scale .15s var(--ease); }
.btn, .form__submit, .btn-step, .cookie__btn { transition: background-color .2s, border-color .2s, color .2s, scale .15s var(--ease); }
.btn:active, .cta:active, .nav__cta:active, .footer__cta:active, .form__submit:active, .btn-step:active, .cookie__btn:active { scale: .97; }
.btn > svg, .svc__more svg, .footer__cta svg, .form__submit svg, .btn-step svg { transition: translate .3s var(--ease); }
.btn:hover > svg, .svc:hover .svc__more svg, .footer__cta:hover svg, .form__submit:hover svg, .btn-step--next:hover svg, .btn-step--send:hover svg { translate: 3px 0; }
.btn-step--back:hover svg { translate: -3px 0; }
.chip span { transition: background-color .2s, color .2s, border-color .2s, scale .15s var(--ease); }
.chip:active span { scale: .96; }

/* Cartes et liens */
.svc { transition: border-color .2s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -32px rgba(0, 0, 0, .4); }
.svc .icon-tile { transition: transform .4s var(--ease); }
.svc:hover .icon-tile { transform: rotate(-6deg) scale(1.06); }
.step-card { transition: transform .4s var(--ease); }
.step-card:hover { transform: translateY(-4px); }
.link-row .round-arrow { transition: background-color .25s, color .25s, translate .3s var(--ease); }
.link-row:hover .round-arrow { background: var(--ink); color: var(--white); translate: 2px 0; }
.feature .browser img { transition: scale .7s var(--ease); }
.feature:hover .browser img { scale: 1.025; }
.feature .mini { transition: rotate .6s var(--ease), translate .6s var(--ease); }
.feature:hover .mini { rotate: 5deg; translate: 0 -6px; }
.plus { transition: rotate .45s var(--ease); }
.next:hover .plus, .project:hover .plus { rotate: 90deg; }
.brand img { transition: rotate .6s var(--ease); }
.brand:hover img { rotate: -12deg; }
.faq__icon { transition: transform .25s, background-color .25s, scale .25s var(--ease); }
.faq summary:hover .faq__icon { scale: 1.08; }

/* Petites transitions d'interface */
.motion .nav__menu:not([hidden]) { animation: drop-in .28s var(--ease) both; }
.motion .cookie:not([hidden]) { animation: rise-in .55s var(--ease) both; }
.motion .step.is-current { animation: fade-in .45s var(--ease) both; }
@keyframes drop-in { from { opacity: 0; translate: 0 -8px; } }
@keyframes rise-in { from { opacity: 0; translate: 0 18px; } }
@keyframes fade-in { from { opacity: 0; translate: 0 10px; } }
@keyframes pop-in { from { opacity: 0; scale: .6; } }

/* Ouverture douce des questions fréquentes (navigateurs compatibles) */
@supports (interpolate-size: allow-keywords) {
  .motion { interpolate-size: allow-keywords; }
  .motion .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .motion .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Intro de l'accueil ----------
   La pièce NOVO. tourne sur elle-même en accrochant la lumière, puis rejoint le logo de l'en-tête (2,7 s).
   Tout le déroulé est ici : même sans script, l'intro se termine seule. motion.js ajoute la tranche
   de la pièce, calcule le point d'arrivée et permet de passer l'intro (clic, touche, défilement). */
@property --turn {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}
.intro { display: none; }
.has-intro .intro {
  --coin: clamp(128px, 30vmin, 216px);   /* diamètre de la pièce */
  --t: calc(var(--coin) * .08);          /* épaisseur */
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--white);
  animation: intro-backdrop .5s ease 1.95s forwards, intro-end .01s linear 2.75s forwards;
}
.intro-skip .intro { animation: intro-skip .35s ease forwards; }

/* Halo bleu derrière la pièce, et trait de lumière quand elle accroche le reflet */
.has-intro .intro::before,
.has-intro .intro::after { content: ""; position: absolute; left: 50%; top: 50%; pointer-events: none; }
.has-intro .intro::before {
  width: calc(var(--coin) * 3); aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(181, 239, 255, .24), rgba(181, 239, 255, .07) 48%, rgba(181, 239, 255, 0));
  animation: intro-glow 2.4s var(--ease) both;
}
.has-intro .intro::after {
  width: 150vw; height: 2px;
  translate: calc(-50% + var(--coin) * .34) calc(var(--coin) * -.34);
  background: linear-gradient(90deg, rgba(181, 239, 255, 0), rgba(181, 239, 255, .5) 42%, #fff 50%, rgba(181, 239, 255, .5) 58%, rgba(181, 239, 255, 0));
  opacity: 0;
  animation: intro-flare .8s ease-out 1.6s both;
}

/* La pièce : arrivée, rotation, puis envol vers le logo de l'en-tête (--fly-* calculés par motion.js) */
.intro__coin {
  position: relative;
  width: var(--coin); aspect-ratio: 1;
  perspective: calc(var(--coin) * 5);
  animation:
    intro-coin-in .6s var(--ease) .05s both,
    intro-spin 1.45s cubic-bezier(.12, .62, .22, 1) .05s both,
    intro-coin-fly .62s cubic-bezier(.7, 0, .2, 1) 2s forwards,
    intro-coin-land .14s linear 2.56s forwards;
}
.intro__coin::after {   /* éclat sur le bord, en haut à droite */
  content: "";
  position: absolute; left: 84%; top: 16%;
  width: 42%; aspect-ratio: 1;
  translate: -50% -50%;
  background:
    radial-gradient(closest-side, #fff, rgba(255, 255, 255, .7) 18%, rgba(181, 239, 255, 0) 60%) center / 30% 30% no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0)) center / 100% 3% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0)) center / 3% 100% no-repeat;
  opacity: 0;
  animation: intro-glint .6s ease-out 1.62s both;
}
.coin {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  /* Rotation pilotée par --turn, que intro-spin anime sur .intro__coin : quand transform était
     lui-même animé, Safari sur iPhone laissait la pièce de face, sans la faire tourner.
     L'inclinaison de départ (20°) revient à plat au même rythme que les trois tours. */
  transform: rotateX(calc(var(--turn) / -54)) rotateY(var(--turn));
}
.coin__face {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(calc(var(--t) / 2));
  filter: brightness(calc(.45 + .55 * cos(var(--turn)) * cos(var(--turn))));   /* plus sombre vue de biais */
}
.coin__face--back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
.coin__face svg { width: 100%; height: 100%; }
.coin__face::before,
.coin__face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
/* Bord en relief et lumière fixe venue d'en haut à gauche */
.coin__face::before {
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 52%);
  box-shadow: inset 0 0 0 calc(var(--coin) * .022) rgba(255, 255, 255, .18), inset 0 0 calc(var(--coin) * .1) rgba(0, 0, 0, .5);
}
/* Reflet qui glisse sur la face pendant que la pièce tourne */
.coin__face::after {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .45) 48%, rgba(181, 239, 255, .2) 54%, rgba(255, 255, 255, 0) 64%) calc(50% + 70% * cos(var(--turn))) 0 / 300% 100% no-repeat;
}
/* Surbrillance finale : un éclat de lumière traverse la pièce */
.coin__glare {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .85) 50%, rgba(181, 239, 255, .45) 55%, rgba(255, 255, 255, 0) 64%) 120% 0 / 260% 100% no-repeat;
  animation: intro-glare .7s cubic-bezier(.45, 0, .2, 1) 1.38s both;
}
/* Tranche de la pièce : 36 lamelles posées en cercle par motion.js, striées comme une pièce de monnaie */
.coin__rim {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--coin) * 3.1416 / 36 + 1px);
  height: var(--t);
  margin: calc(var(--t) / -2) 0 0 calc(var(--coin) * -3.1416 / 72 - .5px);
  transform: rotate(calc(var(--i) * 10deg)) translateY(calc(var(--coin) / -2)) rotateX(90deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    hsl(0 0% calc(18% + 12% * cos(calc(var(--i) * 10deg + 45deg))));
}
.intro__word {
  position: absolute; left: 0; right: 0;
  top: calc(50% + var(--coin) / 2 + clamp(22px, 4vmin, 40px));
  padding-left: .14em;   /* compense l'espacement après le point final */
  text-align: center;
  font-size: clamp(22px, 4vmin, 30px); font-weight: 600; letter-spacing: .14em;
  animation: intro-word .55s var(--ease) 1.25s both, intro-word-out .25s ease 1.95s forwards;
}

/* Le logo de l'en-tête attend la pièce, puis prend sa place. */
.has-intro .site-header .brand img { animation: intro-logo .14s linear 2.56s both; }
.intro-skip .site-header .brand img { animation: none; }

@keyframes intro-spin {
  from { --turn: -1080deg; }
  to { --turn: 0deg; }
}
@keyframes intro-coin-in { from { opacity: 0; scale: .55; } }
@keyframes intro-coin-fly { to { translate: var(--fly-x, 0px) var(--fly-y, 0px); scale: var(--fly-scale, .4); } }
@keyframes intro-coin-land { to { opacity: 0; } }
@keyframes intro-glare { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes intro-glint {
  from { opacity: 0; scale: 0; rotate: -40deg; }
  35% { opacity: 1; scale: 1; }
  to { opacity: 0; scale: .5; rotate: 50deg; }
}
@keyframes intro-glow {
  from { opacity: 0; scale: .6; }
  30%, 62% { opacity: 1; scale: 1; }
  70% { scale: 1.12; }
  80% { opacity: 1; scale: 1; }
  to { opacity: 0; scale: .9; }
}
@keyframes intro-flare {
  from { opacity: 0; scale: .2 1; }
  30% { opacity: .9; }
  to { opacity: 0; scale: 1 1; }
}
@keyframes intro-word { from { opacity: 0; translate: 0 10px; letter-spacing: .42em; } }
@keyframes intro-word-out { to { opacity: 0; translate: 0 -8px; } }
@keyframes intro-backdrop { to { background-color: rgba(11, 11, 11, 0); } }
@keyframes intro-end { to { visibility: hidden; } }
@keyframes intro-skip { to { opacity: 0; visibility: hidden; } }
@keyframes intro-logo { from { opacity: 0; } }

/* ---------- Chargement des autres pages ----------
   Plus léger : sur fond blanc, le logo fait un tour de pièce, puis la page apparaît (0,75 s). */
.motion:not(.has-intro) body::before,
.motion:not(.has-intro) body::after {
  content: "";
  position: fixed; z-index: 200;
  pointer-events: none;
}
.motion:not(.has-intro) body::before {
  inset: 0;
  background: var(--white);
  animation: loader-out .3s ease .45s forwards;
}
.motion:not(.has-intro) body::after {
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .6) 48%, rgba(255, 255, 255, 0) 60%) 120% 0 / 260% 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23111'/%3E%3Cpath fill='%23fff' d='M30 0h70v100H70zM14 0h16v100H14z'/%3E%3Cpath fill='%23111' d='M70 0h16v100H70z'/%3E%3C/svg%3E") center / cover;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5);
  animation: loader-coin .55s var(--ease) both, loader-out .25s ease .45s forwards;
}
@keyframes loader-coin {
  from { opacity: 0; transform: perspective(240px) rotateY(-360deg) scale(.7); background-position: 120% 0, center; }
  to { transform: perspective(240px) rotateY(0deg) scale(1); background-position: -20% 0, center; }
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

@media print {
  .motion [data-reveal] { opacity: 1 !important; animation: none !important; }
  .intro, body::before, body::after { display: none !important; }
}

/* ==========================================================================
   Petits écrans
   ========================================================================== */
/* Réalisations : sur mobile, le téléphone vient chevaucher la capture, comme sur grand écran. */
@media (max-width: 767.98px) {
  .showcase { display: block; padding: 20px 20px 0; }
  .showcase .browser { margin-bottom: 150px; }
  .pg-phone { position: absolute; right: 24px; bottom: -72px; margin: 0; scale: .56; transform-origin: 100% 100%; }
}

/* Très petits téléphones (dès 280 px) : barre de navigation resserrée. */
@media (max-width: 359.98px) {
  .nav { gap: 8px; padding: 0 8px 0 14px; }
  .brand { gap: 8px; }
  .nav__actions { gap: 6px; }
  .nav__cta { padding: 0 14px; }
  .nav__toggle { width: 42px; height: 42px; }
  .nav__toggle span { left: 11px; }
  .nav__toggle span:first-child { top: 16px; }
  .nav__toggle span:last-child { top: 24px; }
  .pg-phone { scale: .5; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
