/* Atelier Requena — feuille de style unique
   Système : une courbe (--ease), trois durées (--d1 200 ms, --d2 600 ms, --d3 900 ms), un rayon (--r), une grille de 8 px.
   Le mouvement n'utilise que transform, opacity, filter et clip-path. */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* General Sans (Indian Type Foundry, ITF Free Font License) : fichiers officiels, non modifiés. */
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #17120f;
  --bg-2: #1f1814;
  --bg-3: #2a211b;
  --ink: #f1e9dd;
  --ink-2: #cfc4b5;
  --copper: #c8875a;
  --copper-hi: #dc9d6f;

  /* Bordures : une famille, deux niveaux. Cartes : fond à peine plus clair que la page. */
  --line: rgba(241, 233, 221, 0.08);
  --line-2: rgba(241, 233, 221, 0.14);
  --card: rgba(241, 233, 221, 0.035);

  /* Mouvement : une courbe, trois durées. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --d1: 200ms;
  --d2: 600ms;
  --d3: 900ms;

  /* Un seul rayon (les boutons et onglets sont en pilule, les téléphones gardent leur forme d'objet). */
  --r: 12px;
  --pill: 999px;
  --r-device: 2.5rem;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(1.5rem, 5vw);
  --hh: 4rem;
  --section: 6rem;
  --measure: 60ch;
}
@media (min-width: 56rem) {
  :root {
    --section: 8rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain très léger sur tout le fond (tuile SVG statique, aucun calcul pendant le défilement). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* Halos de lumière cuivrée : deux grands dégradés fixes, déplacés lentement par main.js. */
.halos {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.halos i {
  position: absolute;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 135, 90, 0.15), rgba(200, 135, 90, 0.05) 48%, rgba(200, 135, 90, 0) 72%);
}
.halos i:nth-child(1) {
  left: -35vmax;
  top: -50vmax;
}
.halos i:nth-child(2) {
  right: -55vmax;
  top: 40vh;
  opacity: 0.7;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* Focus clavier : anneau décalé, halo doux. */
:focus-visible {
  outline: 2px solid var(--copper-hi);
  outline-offset: 4px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--r);
  font-weight: 500;
  text-decoration: none;
}
.skip:hover,
.skip:focus {
  color: var(--bg);
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Liens : soulignement animé ---------- */

a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(200, 135, 90, 0.55);
}
a:hover {
  color: var(--copper-hi);
}

/* Sur ordinateur : le trait se retire par la droite, un second trait clair arrive par la gauche. */
@media (hover: hover) and (pointer: fine) {
  .footer a,
  .prose a,
  .contact-alt a,
  .consent a,
  .header-link {
    position: relative;
    text-decoration: none;
  }
  .footer a::after,
  .prose a::after,
  .contact-alt a::after,
  .consent a::after,
  .header-link::after,
  .footer a::before,
  .prose a::before,
  .contact-alt a::before,
  .consent a::before,
  .header-link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 1px;
  }
  .footer a::after,
  .prose a::after,
  .contact-alt a::after,
  .consent a::after,
  .header-link::after {
    background: currentColor;
    opacity: 0.6;
    transform-origin: right;
    transition: transform var(--d1) var(--ease);
  }
  .footer a::before,
  .prose a::before,
  .contact-alt a::before,
  .consent a::before,
  .header-link::before {
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--d1) var(--ease) 80ms;
  }
  .footer a:hover::after,
  .prose a:hover::after,
  .contact-alt a:hover::after,
  .consent a:hover::after,
  .header-link:hover::after {
    transform: scaleX(0);
  }
  .footer a:hover::before,
  .prose a:hover::before,
  .contact-alt a:hover::before,
  .consent a:hover::before,
  .header-link:hover::before {
    transform: scaleX(1);
  }
}

/* ---------- Boutons : pilule, reflet léger au survol ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--copper);
  border-radius: var(--pill);
  background: var(--copper);
  color: var(--bg);
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease),
    color var(--d1) var(--ease), scale var(--d1) var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}
.btn:hover {
  background: var(--copper-hi);
  border-color: var(--copper-hi);
  color: var(--bg);
}
.btn:active {
  scale: 0.98;
  background: #ecb283;
  border-color: #ecb283;
}
.btn:focus-visible {
  outline-offset: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 8px rgba(220, 157, 111, 0.16);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after {
    transform: translateX(110%);
    transition: transform var(--d3) var(--ease);
  }
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--bg-3);
  border-color: var(--copper);
  color: var(--ink);
}
.btn--ghost:active {
  background: var(--bg-3);
  border-color: var(--copper);
}
@media (hover: none) {
  .btn:hover {
    background: var(--copper);
    border-color: var(--copper);
  }
  .btn--ghost:hover {
    background: transparent;
    border-color: var(--line-2);
  }
}

/* ---------- En-tête : flou d'arrière-plan, transparent tant qu'on n'a pas défilé (page d'accueil) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 18, 15, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease);
  view-transition-name: header;
}
.site-header[data-header]:not(.is-quiet) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--hh);
}
.logo {
  display: block;
  line-height: 0;
}
.logo img {
  height: 1.5rem;
  width: auto;
}
.logo:hover {
  color: var(--ink);
}
.header-link {
  padding-block: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
/* Menu : deux liens espacés ; sur petit écran ils passent à la ligne, alignés à droite. */
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 1.75rem;
}
@media (max-width: 30rem) {
  .site-header nav .header-link {
    padding-block: 0.3rem;
  }
}
.sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 5rem;
  pointer-events: none;
}

/* ---------- Fonds qui changent de teinte (calques en fondu, créés par main.js) ---------- */

.tints {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}
.tints i {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.tints i:nth-child(1) {
  background: #17120f;
  opacity: 1;
}
.tints i:nth-child(2) {
  background: #231910;
}
.tints i:nth-child(3) {
  background: #1a1810;
}
.tints i:nth-child(4) {
  background: #251612;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}
.section--alt {
  position: relative;
  border-block: 1px solid var(--line);
}
/* Séparateur : une petite arche posée sur le filet, comme le monogramme sur son socle. */
.section--alt::before,
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 1.75rem;
  height: 0.875rem;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(200, 135, 90, 0.7);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.section h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.04;
  max-width: 18ch;
}
.lead {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Cartes : bordure fine, fond à peine plus clair, un seul rayon. */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

/* Projecteur (ordinateur) : un halo cuivré suit la souris le long de la bordure. Variables --sx / --sy posées par main.js. */
.spot::before,
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d1) var(--ease);
}
.spot::before {
  padding: 1px;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(220, 157, 111, 0.75), rgba(220, 157, 111, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot::after {
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(220, 157, 111, 0.07), rgba(220, 157, 111, 0) 70%);
}
@media (hover: hover) and (pointer: fine) {
  .spot:hover::before,
  .spot:hover::after {
    opacity: 1;
  }
}

/* ---------- Premier écran : l'arche ----------
   Séquence 100 % CSS (aucun JavaScript, 2,4 s maximum) :
   0 → 900 ms le contour se dessine · 550 → 1150 ms l'image apparaît dans l'arche (zoom arrière) ·
   900 → 1800 ms l'arche s'agrandit jusqu'à couvrir l'écran · 1350 → 2370 ms le titre se révèle mot par mot ·
   1740 → 2400 ms sous-titre et bouton. Sans animation (mouvement réduit), la page affiche l'état final. */

.opening {
  --aw: min(49svh, 82vw);
  --ah: calc(var(--aw) / 0.7);
  --at: calc((100% - var(--ah)) / 2);
  --t-title: 1350ms;
  position: relative;
  height: 100svh;
  min-height: 34rem;
  margin-top: calc(var(--hh) * -1);
  overflow: hidden;
  isolation: isolate;
}
.opening__media {
  position: absolute;
  inset: 0;
  animation: arch-open var(--d3) var(--ease) 900ms both;
}
.opening__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: brightness(1.4) contrast(1.05) saturate(1.1);
  animation: fade var(--d2) var(--ease) 550ms both, img-zoom var(--d3) var(--ease) 550ms both;
}
.opening__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 11, 9, 0.5), rgba(14, 11, 9, 0) 65%),
    linear-gradient(180deg, rgba(14, 11, 9, 0.5) 0%, rgba(14, 11, 9, 0.14) 30%, rgba(14, 11, 9, 0.28) 58%, rgba(14, 11, 9, 0.84) 100%);
  animation: fade var(--d2) var(--ease) 900ms both;
}
.opening__arch {
  position: absolute;
  z-index: 1;
  left: calc((100% - var(--aw)) / 2);
  top: var(--at);
  width: var(--aw);
  height: var(--ah);
  overflow: visible;
  pointer-events: none;
}
.opening__arch path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  opacity: 0.55; /* état sans animation (mouvement réduit) : le contour reste visible */
  animation: draw var(--d3) var(--ease) both, arch-out var(--d2) var(--ease) 900ms both;
}
/* Sans animation, le socle (deuxième tracé) reste masqué : le contour de l'arche suffit. */
.opening__arch path:last-child {
  opacity: 0;
}
.opening__content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: clamp(2rem, 9svh, 5rem);
}
.opening h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  line-height: 1.02;
  max-width: 13ch;
  color: var(--ink);
  text-shadow: 0 0 2rem rgba(0, 0, 0, 0.35);
}
.opening h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.06em 0.14em;
  margin: 0 -0.06em -0.14em;
}
.opening h1 .w > span {
  display: inline-block;
  animation: word-in var(--d2) var(--ease) both;
}
.opening h1 .w:nth-child(1) > span { animation-delay: calc(var(--t-title) + 0ms); }
.opening h1 .w:nth-child(2) > span { animation-delay: calc(var(--t-title) + 70ms); }
.opening h1 .w:nth-child(3) > span { animation-delay: calc(var(--t-title) + 140ms); }
.opening h1 .w:nth-child(4) > span { animation-delay: calc(var(--t-title) + 210ms); }
.opening h1 .w:nth-child(5) > span { animation-delay: calc(var(--t-title) + 280ms); }
.opening h1 .w:nth-child(6) > span { animation-delay: calc(var(--t-title) + 350ms); }
.opening h1 .w:nth-child(7) > span { animation-delay: calc(var(--t-title) + 420ms); }
.hero__sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #e6dccd;
  text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);
  animation: rise var(--d2) var(--ease) 1740ms both;
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  animation: rise var(--d2) var(--ease) 1800ms both;
}
.hero__note {
  font-size: 0.9rem;
  color: #e6dccd;
  text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);
}

@keyframes arch-open {
  from {
    clip-path: inset(var(--at) calc((100% - var(--aw)) / 2) calc(100% - var(--at) - var(--ah)) calc((100% - var(--aw)) / 2) round calc(var(--aw) / 2) calc(var(--aw) / 2) 0 0);
  }
  to {
    clip-path: inset(0 0 0 0 round 0 0 0 0);
  }
}
@keyframes img-zoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: none;
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes arch-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes word-in {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}

/* Masques des mots (SplitText) : laissent la place aux jambages et aux italiques. */
.word-mask {
  padding: 0 0.06em 0.14em;
  margin: 0 -0.06em -0.14em;
}

/* ---------- Récit épinglé ---------- */

.hero {
  padding-block: 2rem 4rem;
}
.story__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.story__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: calc(100svh - var(--hh) - 2rem);
}

.tabs {
  display: inline-flex;
  padding: 0.25rem;
  gap: 0.25rem;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--bg-2);
}
.tab {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-2);
  font: 500 0.9rem/1 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), scale var(--d1) var(--ease);
}
.tab:hover {
  color: var(--ink);
}
.tab:active {
  scale: 0.97;
}
.tab:focus-visible {
  outline-offset: 2px;
}
.tab[aria-checked="true"] {
  background: var(--copper);
  color: var(--bg);
}

/* Enveloppes du téléphone : arrivée (3d), mouvement (par), puis le téléphone lui-même. */
.phone-wrap {
  position: relative;
}
.phone-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -0.9rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #000;
  opacity: 0.55;
  filter: blur(16px);
  pointer-events: none;
}

.phone {
  --p: 50;
  --cb: 0%;
  --pw: min(17.5rem, calc((100svh - 17rem) * 0.47));
  position: relative;
  width: max(var(--pw), 13.5rem);
  padding: 0.6rem;
  border-radius: 2.5rem;
  background: #0b0806;
  border: 1px solid rgba(241, 233, 221, 0.16);
}

.screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 100 / 205;
  border-radius: 1.9rem;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.compare {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.compare.is-interactive {
  cursor: ew-resize;
}
.compare:focus-visible {
  outline: 2px solid var(--copper-hi);
  outline-offset: 4px;
  border-radius: 1.9rem;
}

.site {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity var(--d2) var(--ease);
}
.site.was-active {
  opacity: 1;
  z-index: 1;
}
.site.is-active {
  opacity: 1;
  z-index: 2;
}

.layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  --u: 1cqw;
}
.layer--mid {
  opacity: 0;
}
/* Le rideau (--cb, du bas vers 0) et le curseur (--p, depuis la gauche) découpent le même calque. */
.layer--new {
  clip-path: inset(0 0 var(--cb) calc(var(--p) * 1%));
}

.handle {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  transform: translateX(calc(var(--p) * 1cqw));
  pointer-events: none;
}
.handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.handle__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5);
}
.compare:focus-visible .handle__knob {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.tag {
  position: absolute;
  z-index: 4;
  bottom: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font: 600 0.75rem/1.3 var(--sans);
  pointer-events: none;
}
.tag--old {
  left: 0.7rem;
  background: #000;
  color: #fff;
}
.tag--new {
  right: 0.7rem;
  background: var(--copper);
  color: var(--bg);
}

/* Commentaires du récit */
.story__captions {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  max-width: 22rem;
}
.story__captions li + li {
  margin-top: 0.4rem;
}
.story__captions--desk {
  display: none;
}
.story__bar {
  display: none;
  width: min(100%, 17.5rem);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.story__bar i {
  display: block;
  height: 100%;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
}

/* --- Maquettes : ancien site (daté, mais crédible) --- */

.o {
  background: var(--o-bg);
  color: var(--o-ink);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.12;
}
[data-site="barbier"] .o {
  font-family: Arial, Helvetica, sans-serif;
}
.o-top {
  padding: calc(3.2 * var(--u)) calc(3 * var(--u)) calc(2 * var(--u));
  text-align: center;
  border-bottom: calc(0.35 * var(--u)) solid var(--o-rule);
}
.o-title {
  font-size: calc(6.2 * var(--u));
  font-weight: 700;
  line-height: 1.05;
  color: var(--o-title);
}
.o-tag {
  margin-top: calc(0.8 * var(--u));
  font-size: calc(2.9 * var(--u));
  font-style: italic;
  color: var(--o-sub);
}
.o-nav {
  padding: calc(1.6 * var(--u)) calc(2 * var(--u));
  background: var(--o-navbg);
  border-bottom: calc(0.3 * var(--u)) solid var(--o-rule);
  text-align: center;
  font-size: calc(2.8 * var(--u));
  line-height: 1.3;
  color: var(--o-link);
  text-decoration: underline;
}
.o-body {
  padding: calc(2.2 * var(--u)) calc(3 * var(--u));
  font-size: calc(2.9 * var(--u));
  line-height: 1.14;
}
.o-body p {
  margin: 0 0 calc(1.4 * var(--u));
}
.o-photo {
  position: relative;
  float: left;
  width: calc(27 * var(--u));
  margin: calc(0.4 * var(--u)) calc(2.4 * var(--u)) calc(1 * var(--u)) 0;
  padding: calc(0.4 * var(--u));
  border: calc(0.3 * var(--u)) solid #777;
  background: #fff;
  line-height: 0;
}
.o-photo .px {
  width: 100%;
  height: auto;
}
.o-photo .hd {
  position: absolute;
  top: calc(0.7 * var(--u));
  left: calc(0.7 * var(--u));
  width: calc(100% - 1.4 * var(--u));
  height: calc(100% - 1.4 * var(--u));
  object-fit: cover;
  opacity: 0;
}
.o-photo .ring {
  position: absolute;
  inset: calc(-2.2 * var(--u));
  border: calc(0.9 * var(--u)) solid var(--copper);
  border-radius: calc(1.5 * var(--u));
  opacity: 0;
  pointer-events: none;
}
.o-h {
  clear: both;
  margin: calc(1.6 * var(--u)) 0 calc(0.8 * var(--u));
  font-size: calc(3.4 * var(--u));
  font-weight: 700;
  color: var(--o-title);
}
.o-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(2.8 * var(--u));
}
.o-table td {
  padding: calc(0.9 * var(--u)) calc(1.4 * var(--u));
  border: calc(0.25 * var(--u)) solid #999;
}
.o-table td:first-child {
  font-weight: 700;
  background: var(--o-th);
}
.o-list {
  margin: 0 0 calc(1.4 * var(--u));
  padding-left: calc(4.5 * var(--u));
  columns: 2;
  column-gap: calc(3 * var(--u));
  font-size: calc(2.8 * var(--u));
  line-height: 1.2;
}
.o-links {
  margin: 0;
  font-size: calc(2.7 * var(--u));
  color: var(--o-link);
  text-decoration: underline;
}
.o-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(1.6 * var(--u)) calc(2 * var(--u)) calc(6.5 * var(--u));
  background: var(--o-navbg);
  border-top: calc(0.25 * var(--u)) solid var(--o-rule);
  text-align: center;
  font-size: calc(2.4 * var(--u));
  line-height: 1.3;
  color: #666;
}

[data-site="salon"] .layer--old {
  --o-bg: #ffffff;
  --o-ink: #222222;
  --o-title: #1f3a68;
  --o-sub: #555555;
  --o-rule: #b5b5b5;
  --o-link: #0033cc;
  --o-navbg: #eef0f4;
  --o-th: #f0f0f0;
}
[data-site="barbier"] .layer--old {
  --o-bg: #f1f1f1;
  --o-ink: #1c1c1c;
  --o-title: #7a1f1f;
  --o-sub: #555555;
  --o-rule: #aaaaaa;
  --o-link: #1a4fb8;
  --o-navbg: #e2e2e2;
  --o-th: #e8e8e8;
}
[data-site="restaurant"] .layer--old {
  --o-bg: #fbf8f1;
  --o-ink: #222222;
  --o-title: #5b1a1a;
  --o-sub: #555555;
  --o-rule: #b8b09c;
  --o-link: #0033cc;
  --o-navbg: #efe9da;
  --o-th: #f0ebdd;
}

/* Étape intermédiaire (copie de l'ancien site, créée par main.js) : même mise en page, couleurs sombres et typographie soignée. */
[data-site] .layer--mid {
  --o-bg: #1b1713;
  --o-ink: #d9cfbf;
  --o-title: #f1e9dd;
  --o-sub: #a99d8c;
  --o-rule: rgba(241, 233, 221, 0.22);
  --o-link: #dc9d6f;
  --o-navbg: #221c17;
  --o-th: #2a231d;
  font-family: var(--sans);
  line-height: 1.35;
}
.layer--mid .o-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: calc(7 * var(--u));
}
.layer--mid .o-tag {
  font-style: normal;
  color: var(--copper-hi);
}
.layer--mid .o-nav {
  text-decoration: none;
}
.layer--mid .o-photo {
  border-color: rgba(241, 233, 221, 0.3);
  background: #2a231d;
}
.layer--mid .o-photo .hd {
  opacity: 1;
}
.layer--mid .o-photo .ring {
  display: none;
}
.layer--mid .o-table td {
  border-color: rgba(241, 233, 221, 0.18);
}
.layer--mid .o-foot {
  color: #8c8173;
}

/* --- Maquettes : nouveau site (dans l'esprit des démos : fond sombre, grande photo, titre Playfair, bouton visible) --- */

.n {
  background: #14100d;
  color: #f5f0e8;
  font-family: var(--sans);
  --n-accent: var(--copper-hi);
}
.n-photo {
  position: absolute;
  inset: 0;
  display: block;
}
.n-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.n-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 9, var(--scrim, 0.5));
}
[data-site="salon"] .layer--new {
  --scrim: 0.24;
  --shade: 0.9;
}
[data-site="salon"] .n-photo img {
  filter: brightness(1.45) contrast(1.06) saturate(1.15);
}
[data-site="barbier"] .layer--new {
  --scrim: 0.48;
  --shade: 0.6;
}
[data-site="restaurant"] .layer--new {
  --scrim: 0.45;
  --shade: 0.82;
}
.n-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(4.5 * var(--u)) calc(7 * var(--u));
  color: #f5f0e8;
  line-height: 1;
}
.n-logo {
  font-family: var(--serif);
  font-size: calc(4.8 * var(--u));
}
.n-burger {
  display: grid;
  gap: calc(1.1 * var(--u));
  width: calc(6 * var(--u));
}
.n-burger i {
  display: block;
  height: calc(0.5 * var(--u));
  background: #f5f0e8;
}
.n-hero-text {
  position: absolute;
  isolation: isolate;
  z-index: 2;
  left: calc(7 * var(--u));
  right: calc(7 * var(--u));
  top: calc(48 * var(--u));
}
/* Dégradé sombre derrière le titre : il tombe sur une zone sombre quelle que soit la photo. Réglé par métier avec --shade. */
.n-hero-text::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-12 * var(--u));
  bottom: calc(-12 * var(--u));
  left: calc(-7 * var(--u));
  right: calc(-7 * var(--u));
  background: linear-gradient(90deg, rgba(10, 8, 6, var(--shade, 0.7)) 0%, rgba(10, 8, 6, var(--shade, 0.7)) 70%, rgba(10, 8, 6, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  pointer-events: none;
}
.n-title {
  font-family: var(--serif);
  font-size: calc(13 * var(--u));
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #f5f0e8;
  text-shadow: 0 0 calc(3 * var(--u)) rgba(0, 0, 0, 0.55), 0 calc(0.4 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.45);
}
.n-title em {
  font-style: italic;
  color: var(--n-accent);
}
.n-sub {
  margin-top: calc(4 * var(--u));
  max-width: calc(66 * var(--u));
  font-size: calc(3.5 * var(--u));
  line-height: 1.45;
  color: #eee5d6;
  font-weight: 500;
  text-shadow: 0 0 calc(2 * var(--u)) rgba(0, 0, 0, 0.6);
}
.n-btn {
  display: inline-block;
  margin-top: calc(6.5 * var(--u));
  padding: calc(4.2 * var(--u)) calc(6.5 * var(--u));
  background: var(--n-accent);
  color: #1a1411;
  font-size: calc(3.3 * var(--u));
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: calc(0.6 * var(--u));
}
.n-panel {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(5 * var(--u)) calc(7 * var(--u)) calc(4 * var(--u));
  background: rgba(16, 12, 10, 0.9);
  border-radius: calc(6 * var(--u)) calc(6 * var(--u)) 0 0;
}
.n-h {
  margin-bottom: calc(1 * var(--u));
  font-family: var(--serif);
  font-size: calc(4.6 * var(--u));
  line-height: 1.2;
}
.n-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(2.3 * var(--u)) 0;
  border-bottom: calc(0.3 * var(--u)) solid rgba(245, 240, 232, 0.16);
  font-size: calc(3.5 * var(--u));
  line-height: 1.2;
}
.n-row:last-child {
  border-bottom: 0;
}
.n-row b {
  font-family: var(--serif);
  font-size: calc(4 * var(--u));
  font-weight: 600;
  color: var(--n-accent);
}

/* ---------- Ce qu'un vrai site change : une carte par bénéfice ---------- */

.points {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 0;
  list-style: none;
}
.point {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.point h3 {
  padding: 1.5rem 1.5rem 0;
  font-size: 1.5rem;
}
.point p {
  padding: 0.5rem 1.5rem 2rem;
  color: var(--ink-2);
}

.visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 900 / 646;
  border-bottom: 1px solid var(--line);
  background: #1a1a1a;
  background-size: cover;
  background-position: center;
}
.visual--tap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tap {
  position: absolute;
  left: 34.8%;
  top: 62.7%;
  width: 3.5rem;
  height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.visual--serp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}
.serp__query {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #202124;
}
.serp__query::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.6rem;
  border: 2px solid #9aa0a6;
  border-radius: 50%;
}
.serp__url {
  font-size: 0.72rem;
  color: #202124;
}
.serp__title {
  margin-top: 0.1rem;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #1a0dab;
}
.serp__desc {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #4d5156;
}
.serp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.serp__actions span {
  padding: 0.3rem 0.75rem;
  border: 1px solid #dadce0;
  border-radius: 999px;
  font-size: 0.74rem;
  color: #1a0dab;
}
.serp__actions .is-main {
  background: #1a0dab;
  border-color: #1a0dab;
  color: #ffffff;
}
.visual--photos {
  background: #1a1a1a;
}
.vp {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(200, 135, 90, 0.55);
  border-radius: 999px 999px 0 0;
  background-size: cover;
  background-position: center;
}
.vp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vp--1 {
  left: 4%;
  top: 8%;
  width: 46%;
  height: 52%;
}
.vp--2 {
  right: 4%;
  top: 14%;
  width: 42%;
  height: 62%;
}
.vp--3 {
  left: 12%;
  bottom: 6%;
  width: 38%;
  height: 31%;
}
.chip {
  position: absolute;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--copper);
  color: #17120f;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--1 {
  left: 6%;
  top: 49%;
}
.chip--2 {
  right: 6%;
  bottom: 12%;
}

/* ---------- Méthode ---------- */

.steps {
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}
.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 1px solid var(--line);
}
.step__n {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--copper);
}
.step h3 {
  font-size: 1.5rem;
}
.step p {
  margin-top: 0.5rem;
  max-width: var(--measure);
  color: var(--ink-2);
}

/* ---------- Démos ---------- */

.demos {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}
.demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem 2.5rem;
}
.demo .phone-par {
  width: min(100%, 20rem);
}
.demo .phone {
  width: 100%;
}
.demo .screen {
  aspect-ratio: 390 / 780;
  background-size: 100% auto;
  background-position: top;
  background-repeat: no-repeat;
}
.demo .screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}
.demo h3 {
  font-size: 1.5rem;
}
.demo p {
  max-width: 24rem;
  color: var(--ink-2);
}

/* ---------- Qui je suis ---------- */

.about {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.photo {
  display: block;
  width: min(100%, 14rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(200, 135, 90, 0.55);
  border-radius: 999px 999px 0 0;
  background: var(--card);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__text p {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 3rem;
  max-width: 46rem;
  border-bottom: 1px solid var(--line);
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  display: block;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  margin-top: -1px;
  background: var(--copper);
  transition: transform var(--d1) var(--ease);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq summary:focus-visible {
  outline-offset: -2px;
}
.faq__a {
  max-width: var(--measure);
  padding: 0 3rem 1.5rem 0;
  color: var(--ink-2);
}
.faq details[open] .faq__a {
  animation: rise var(--d2) var(--ease) both;
}

/* ---------- Formulaire ---------- */

.form-wrap {
  display: grid;
  gap: 3rem;
}
.form {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
  padding: 1.5rem;
}
.form-row {
  display: grid;
  gap: 1.5rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-weight: 500;
  font-size: 0.95rem;
}
.field .opt {
  color: var(--ink-2);
  font-weight: 400;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(23, 18, 15, 0.6);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.field input:focus-visible {
  outline: 2px solid var(--copper-hi);
  outline-offset: 2px;
  border-color: var(--copper);
  box-shadow: 0 0 0 6px rgba(220, 157, 111, 0.14);
}
.consent {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  align-items: start;
  font-size: 0.95rem;
}
.consent input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--copper);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .btn {
  justify-self: start;
  width: 100%;
  padding-inline: 1rem;
}
.form-status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.form-status[data-state="error"] {
  color: #f0b4a0;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.guarantee {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 40rem;
  color: var(--ink);
  font-weight: 500;
}
.guarantee svg {
  flex: none;
  color: var(--copper);
}
.contact-alt {
  max-width: 40rem;
  color: var(--ink-2);
}
.contact-alt a {
  white-space: nowrap;
}

/* ---------- Pied de page ---------- */

.footer {
  position: relative;
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.footer__row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer__logo {
  display: block;
  line-height: 0;
}
.footer .footer__logo {
  padding-block: 0;
}
.footer .footer__logo::before,
.footer .footer__logo::after {
  display: none;
}
.footer__logo img {
  height: 6rem;
  width: auto;
}
.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--ink-2);
}
.footer a:hover {
  color: var(--ink);
}

/* ---------- Pages légales et courtes ---------- */

.prose {
  padding-block: clamp(4rem, 8vw, 6rem);
}
.prose .wrap {
  max-width: 46rem;
}
.prose h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}
.prose h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
}
.prose p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--ink-2);
}
.prose .updated {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.center-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}
.center-page .wrap {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}
.center-page h1 {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  max-width: 20ch;
}
.center-page p {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* Aperçus flous (24 px de large, encodés en base64) : visibles tant que la vraie image charge. */
.visual--tap { background-image: url("data:image/jpeg;base64,/9j//gAPTGF2YzYzLjEuMTAyAP/bAEMACBwcIRwhJiYmJiYmLSotLy8vLS0tLS8vLzIyMjs7OzIyMi8vMjI4ODs7QEJAPT07PUJCRkZGVFRQUGJiZXh4kf/EAGcAAAIDAQEAAAAAAAAAAAAAAAIBBQQHAwABAQEBAAAAAAAAAAAAAAAAAAACAxAAAgEDAwIHAQAAAAAAAAAAAQACEQNBkjEEIRIjIpHRgfBhUhEBAQEBAAAAAAAAAAAAAAAAABFhAf/AABEIABIAGAMBIgACEQADEQD/2gAMAwEAAhEDEQA/AMyjcIx99W2bsJikx870ZOFzjCEe61ImnU03Op8b3DofBNaHGdThc6uakLRtA+SYH4T7s7Uf2NbjKLuhbw808IIc1LUh/9k="); }
.vp--1 { background-image: url("data:image/jpeg;base64,/9j//gAPTGF2YzYzLjEuMTAyAP/bAEMACBwcIRwhJiYmJiYmLSotLy8vLS0tLS8vLzIyMjs7OzIyMi8vMjI4ODs7QEJAPT07PUJCRkZGVFRQUGJiZXh4kf/EAGsAAAMBAQEBAAAAAAAAAAAAAAQFAgYBAwcBAQEBAQAAAAAAAAAAAAAAAAADBAEQAAIBAgQFBQEAAAAAAAAAAAEAAhIRMnEiA1FBsZEhMROSgSPREQEBAQEBAQAAAAAAAAAAAAAAARExwQL/wAARCAASABgDASIAAhEAAxEA/9oADAMBAAIRAxEAPwD4hIgnw6Mbg9wcKo9fLlUjVVVz9V1Dg3bNpyyn0LFWXdHibSuedx3D7fnxl8R/XuG2BQugdYyKkC6jj+m0YvvyhTiLxo4iy0H/2Q=="); }
.vp--2 { background-image: url("data:image/jpeg;base64,/9j//gAPTGF2YzYzLjEuMTAyAP/bAEMACBwcIRwhJiYmJiYmLSotLy8vLS0tLS8vLzIyMjs7OzIyMi8vMjI4ODs7QEJAPT07PUJCRkZGVFRQUGJiZXh4kf/EAGAAAAMBAQEAAAAAAAAAAAAAAAUGBAMCBwEBAQEAAAAAAAAAAAAAAAAAAgMBEAACAgEEAwEBAAAAAAAAAAABABECIXEDMUHwURKBwREBAQEAAAAAAAAAAAAAAAAAAAGR/8AAEQgAEgAYAwEiAAIRAAMRAP/aAAwDAQACEQMRAD8A8mBE9z0Up9DX3IQ9bQQYB1y2g2MR/EG5vu4io158CJ+/MutxAyUZ+leANbKy+1a2Vm6OrNWEa/JYm2/JYlMr/9k="); }
.vp--3 { background-image: url("data:image/jpeg;base64,/9j//gAPTGF2YzYzLjEuMTAyAP/bAEMACBwcIRwhJiYmJiYmLSotLy8vLS0tLS8vLzIyMjs7OzIyMi8vMjI4ODs7QEJAPT07PUJCRkZGVFRQUGJiZXh4kf/EAGkAAQEBAQAAAAAAAAAAAAAAAAUGBAMBAQEBAQEAAAAAAAAAAAAAAAIEAQADEAABBAEDBAMBAQAAAAAAAAABAgAREgMxQSFRMgSxgWFx8SIRAQADAAMBAAAAAAAAAAAAAAARASEx8FFB/8AAEQgAEgAYAwEiAAIRAAMRAP/aAAwDAQACEQMRAD8Aw+OsLTJOg5BI2a4y48hSEiJ1PRyAsuKJKep4IIezEULQbrCSNgCdN9YcmRfYdrj5KrEcgwI4M7uYaueqVQF3+61/v6wbBqDlQYD/AJapArMDRfpk4e1tK7fhXp5f0PEXlZTVy7Mp2Vw8X//Z"); }
.demos .demo:nth-child(1) .screen { background-image: url("data:image/jpeg;base64,/9j//gAPTGF2YzYzLjEuMTAyAP/bAEMACBwcIRwhJiYmJiYmLSotLy8vLS0tLS8vLzIyMjs7OzIyMi8vMjI4ODs7QEJAPT07PUJCRkZGVFRQUGJiZXh4kf/EAHQAAAICAwEBAAAAAAAAAAAAAAMAAQQFBwIGCAEBAQEBAAAAAAAAAAAAAAAAAAECAxAAAgAEAwYEBwEAAAAAAAAAAAECIQMREjFBcZEEUWHhIhPRgRSxUvAygqKhEQEBAAMBAAAAAAAAAAAAAAAAUQEhEaH/wAARCAB8ABgDASIAAhEAAxEA/9oADAMBAAIRAxEAPwDXETktvX1MhSUntMW/xW0M4sKVubA9fDJozljBUlOCSTb0R6/AwNb06eK3hvNfImsknTslns1LNHKGaX7TyK3FRYXTcnbk+pkexhnUp7TYOE1lQqqOOBrT0Nh+bDzND5yhjiWv3uLfnvJpNbjMwcZHBBDDhg8KSnch8fG01ggmmtdfc49zPW9UaDiKHWD2Vv8ADJ/EUPr/AJ7GryDswJNhrBMghBUwg8LLkyPFyKKoiICJAgXVgtPPb2APDonv7ARIERJKEQ97LNk4ur3kFcIcnQHFzkkgCQgMIB//2Q=="); }
.demos .demo:nth-child(2) .screen { background-image: url("data:image/jpeg;base64,/9j//gAPTGF2YzYzLjEuMTAyAP/bAEMACBwcIRwhJiYmJiYmLSotLy8vLS0tLS8vLzIyMjs7OzIyMi8vMjI4ODs7QEJAPT07PUJCRkZGVFRQUGJiZXh4kf/EAHAAAAIDAQEBAAAAAAAAAAAAAAADAgEEBQYHAQEBAQEAAAAAAAAAAAAAAAAAAQIDEAACAQMCBAUFAQAAAAAAAAAAAQIREiExQQORUaEE4dFSEzIigoFhcREBAAMBAQEAAAAAAAAAAAAAAFERARKhIf/AABEIAHwAGAMBIgACEQADEQD/2gAMAwEAAhEDEQA/APkdV7V39Rtmr2/hnwbbqaaGG2eyWcGej6M7PDc8taJbjfnZFctcOT0XTuLi6HUUcR+lflnkZZ2xxRV6p1Kw6sOLBapnS+Xg+3seGAzTfWp/oiexh42UIxjbD7VTNST8fNpqyGVTf1M3sep8l4oosDswgWNtYUYCQG2slawFgAFABQAbVZTOv++Qh27J8/ISBAABZQFGlOm75kW661ZAkYQJgQqRLKAsYLGAf//Z"); }

/* ---------- Mouvement ---------- */

/* Apparition « blur-in » : opacité, flou 8 px et translation 12 px vers l'état normal. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Changement de page : fondu enchaîné. L'en-tête reste en place. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--d2);
  animation-timing-function: var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* États de départ du mode mouvement : posés par boot.js, retirés si le script échoue. */
/* En-tête : fondu CSS au chargement. Le récit épinglé (sous le premier écran) apparaît au défilement, piloté par main.js. */
html.motion .site-header .wrap {
  animation: fade var(--d1) var(--ease) both;
}
html.motion .tabs,
html.motion .phone-3d,
html.motion .phone-shadow,
html.motion .story__captions {
  opacity: 0;
}
html.motion .phone {
  --p: 0;
  --cb: 100%;
}
html.motion .handle,
html.motion .tag,
html.motion .n-btn,
html.motion .n-panel {
  opacity: 0;
}
html.motion .curtain {
  visibility: hidden;
}
html.motion [data-rise] > *,
html.motion [data-reveal],
html.motion .point,
html.motion .step,
html.motion .demo {
  opacity: 0;
}
html.motion .story__captions {
  display: grid;
}
html.motion .story__captions--desk {
  display: none;
}
html.motion .story__captions li {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
}
html.motion .story__captions li:first-child {
  opacity: 1;
}
html.motion .story__bar {
  display: block;
}

/* Images : un aperçu flou (calque de fond) qui se précise quand la vraie image est prête. */
html.motion .visual img,
html.motion .vp img,
html.motion .demo .screen img {
  opacity: 0;
  filter: blur(12px);
  transition: opacity var(--d2) var(--ease), filter var(--d2) var(--ease);
}
html.motion .visual img.is-loaded,
html.motion .vp img.is-loaded,
html.motion .demo .screen img.is-loaded {
  opacity: 1;
  filter: blur(0);
}

/* Lenis : défilement fluide sur ordinateur */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- Écrans larges ---------- */

@media (min-width: 40rem) {
  .form .btn {
    width: auto;
    padding-inline: 2rem;
  }
  .form {
    padding: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .footer__logo img {
    height: 8rem;
  }
  .footer__meta {
    align-items: flex-end;
  }
}

@media (min-width: 56rem) {
  .hero {
    min-height: calc(100svh - var(--hh));
    display: grid;
    align-items: center;
    padding-block: 1.5rem;
  }
  .story__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
  .hero__cta {
    margin-top: 2.5rem;
  }
  .story__stage {
    min-height: 0;
    gap: 1rem;
  }
  .phone {
    --pw: min(22rem, calc((100svh - 12.5rem) * 0.47));
  }
  .story__captions--mob {
    display: none;
  }
  .story__captions--desk {
    display: block;
    min-height: 3.2rem;
    text-align: left;
    max-width: 26rem;
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    line-height: 1.2;
  }
  html.motion .story__captions--desk {
    display: grid;
  }
  html.motion .story__captions--mob {
    display: none;
  }
  .points {
    grid-template-columns: repeat(3, 1fr);
  }
  .demos {
    grid-template-columns: 1fr 1fr;
  }
  .demo .phone-par {
    width: min(100%, 22rem);
  }
  .photo {
    width: min(100%, 20rem);
  }
  .about {
    grid-template-columns: 20rem 1fr;
    gap: 4rem;
  }
  .step {
    grid-template-columns: 5rem 1fr;
  }
  .step__n {
    font-size: 3.5rem;
  }
}

@media (max-width: 55.99rem) {
  .story__grid {
    gap: 4.5rem;
  }
  .story__stage {
    gap: 0.75rem;
    padding-block: 0.25rem;
  }
  .phone {
    --pw: min(80vw, calc((100svh - 13.9rem) * 0.488 + 0.6rem));
  }
  .story__captions--mob {
    max-width: 100%;
    font-size: 1.1rem;
  }
  html.motion .story__captions--mob {
    display: grid;
    width: 100%;
    min-height: 2.3em;
    align-items: center;
    font-size: clamp(1.625rem, 7.4vw, 1.875rem);
    line-height: 1.15;
    color: var(--ink);
  }
  html.motion .story__captions--mob li {
    justify-self: center;
  }
}

@media (max-width: 24rem) {
  .logo img {
    height: 1.25rem;
  }
  .header-link {
    font-size: 0.8rem;
    white-space: normal;
    text-align: right;
    line-height: 1.3;
  }
  .tab {
    padding-inline: 0.75rem;
  }
}

/* ---------- Mouvement réduit : tout s'affiche, sans animation ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Page partenaires (13 octobre 2026) : seules additions, mêmes variables et mêmes composants ---------- */

/* Premier écran : seconde phrase, en italique cuivré comme les mots d'accent du site */
.hero__tag {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--copper-hi);
  text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);
  animation: rise var(--d2) var(--ease) 1700ms both;
}

/* Démo à la une : grande carte (téléphone + texte) */
.demo--feature {
  margin-top: 4rem;
}
.demo__text {
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.demo__tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}
.demo--feature + .lead {
  margin-top: 4rem;
}
.demo--feature + .lead + .demos {
  margin-top: 1.5rem;
}

/* Qui fait quoi : deux colonnes, listes à puces en arche */
.scope {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}
.scope__col {
  padding: 2rem 1.5rem;
}
.scope__col h3 {
  font-size: 1.5rem;
}
.checks {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.6rem;
  height: 0.8rem;
  border: 1px solid var(--copper);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

/* Formulaire : champ message */
.field textarea {
  width: 100%;
  min-height: 9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(23, 18, 15, 0.6);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  resize: vertical;
  transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.field textarea:focus-visible {
  outline: 2px solid var(--copper-hi);
  outline-offset: 2px;
  border-color: var(--copper);
  box-shadow: 0 0 0 6px rgba(220, 157, 111, 0.14);
}

@media (min-width: 56rem) {
  .demo--feature {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    padding: 3.5rem;
    text-align: left;
  }
  .demo--feature .phone-par {
    flex: none;
    width: 19rem;
  }
  .demo--feature .demo__text {
    justify-items: start;
    max-width: 28rem;
  }
  .scope {
    grid-template-columns: 1fr 1fr;
  }
}
