/* ==========================================================================
   Techne Studio · site vitrine
   Mobile-first. Pour changer une couleur, modifier uniquement les variables
   du bloc :root ci-dessous.
   Plan : base · typo · boutons · header · hero (roue) · services ·
   chiffres · projets · méthode · tarifs · FAQ · contact ·
   footer · mouvement
   ========================================================================== */

@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-italic-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Couleurs (tirées des logos) */
  --brand: #5E1A26;       /* bordeaux : bandeau d'appel du pied de page, formule mise en avant */
  --ink: #2B1016;         /* texte, boutons sombres, fond de la FAQ */
  --white: #FFFFFF;
  --mist: #F7F2EA;        /* fond crème (traînée, tarifs), bouton clair */
  --slate: #6A5A5E;       /* texte secondaire */
  --accent: #A4475A;      /* accent unique : chiffres, étiquettes, survol des boutons */
  --line: #E6DCD0;        /* filets et bordures */
  --field: #85747A;       /* bordure des champs de formulaire (contraste ≥ 3:1) */
  --accent-tint: #F6EBEC; /* fond de la section chiffres, bouton Contact */
  --on-brand: #EBDAD4;    /* texte secondaire sur fond bordeaux ou sombre */
  --dark-card: #43202A;   /* questions de la FAQ, sur fond --ink */
  --todo: #FFF0B8;        /* surlignage des textes provisoires */

  /* Typo : titres en Public Sans gras, mot mis en valeur en Source Serif italique */
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Mise en page */
  --container: 80rem;     /* 1280 px */
  /* Zones de sécurité des téléphones (encoche, barre d'accueil) : 0 hors iPhone ou sans viewport-fit=cover */
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: max(1.25rem, var(--safe-left), var(--safe-right));   /* 20 px sur mobile, 40 px dès la tablette */
  --section: 4rem;        /* 64 px sur mobile, 112 px sur ordinateur */
  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-btn: cubic-bezier(0.625, 0.05, 0, 1);
  --shadow: 0 1px 2px rgba(43, 16, 22, 0.06), 0 18px 40px -24px rgba(43, 16, 22, 0.35);
}

@media (min-width: 48em) {
  :root { --gutter: max(2.5rem, var(--safe-left), var(--safe-right)); }
}
@media (min-width: 62em) {
  :root { --section: 7rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Langue autre que le français : page masquée le temps de la traduction, animations en attente
   (classe posée dans le <head>, retirée par i18n.js ou au bout de 5 s) */
html.lang-pending body { visibility: hidden; }
html.lang-pending body, html.lang-pending body * { animation-play-state: paused !important; }

html {
  scroll-padding-top: calc(var(--header-h) + 2rem);
  scroll-padding-bottom: calc(5rem + var(--safe-bottom));   /* le clavier ne laisse jamais le focus sous le CTA fixe */
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #CDBFB3 var(--mist);
  accent-color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--brand);   /* même couleur que le pied de page : pas de bande blanche au rebond du défilement en bas */
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--font-sans); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }

/* Le mot mis en valeur dans chaque titre : serif italique */
h1 em, h2 em, h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 700; letter-spacing: -0.01em; }

::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: fixed; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

main { position: relative; z-index: 1; background: var(--white); overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--accent-tint); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--white); }
/* Première section d'une page sans hero : laisse la place à l'en-tête fixe */
.section--page-top { padding-top: calc(var(--section) + 5rem); }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Marqueur des textes à remplir : visible tant qu'ils existent, pour ne pas les oublier */
.todo { background: var(--todo); color: var(--ink); padding: 0.05em 0.35em; border-radius: 3px; font-weight: 500; }

/* ---------- Typo ---------- */
.h1 { font-size: clamp(2.5rem, 1.75rem + 2.6vw, 3.5rem); }
.h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); }
.h3 { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); }
.label { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.text-medium { font-size: 1.0625rem; color: var(--slate); }
@media (min-width: 48em) { .text-medium { font-size: 1.125rem; } }

/* En-têtes de section */
.split-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.split-head .h2 { margin-top: 0.75rem; }
@media (min-width: 62em) { .split-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } .split-head .text-medium { padding-top: 2.25rem; } }

.row-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.row-head .h2 + .text-medium, .row-head .label + .h2 { margin-top: 0.75rem; }
.row-head .text-medium { margin-top: 1rem; max-width: 40rem; }
@media (min-width: 62em) { .row-head { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; } }

.center-head { max-width: 48rem; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.center-head .h2 { margin-top: 0.75rem; }

/* ---------- Boutons ----------
   Survol directionnel : app.js ajoute un cercle (.btn__circle) qui grandit
   depuis le point d'entrée de la souris. Sans JavaScript, le fond change simplement. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border: 0; border-radius: var(--radius-md);
  font: 500 1rem/1.2 var(--font-sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--small { min-height: 2.75rem; padding: 0.75rem 1.375rem; border-radius: 18px; }
.btn--large { min-height: 4rem; padding: 1.375rem 2.25rem; border-radius: var(--radius); }
.btn--dark   { background: var(--ink); color: var(--white); --btn-hover: var(--accent); --btn-hover-text: var(--white); }
.btn--light  { background: var(--mist); color: var(--brand); --btn-hover: var(--white); --btn-hover-text: var(--brand); }
.btn--accent { background: var(--accent-tint); color: var(--brand); --btn-hover: var(--brand); --btn-hover-text: var(--white); }
.btn:not(:has(.btn__circle)):hover { background: var(--btn-hover); color: var(--btn-hover-text); }
.btn__label { position: relative; z-index: 1; }
.btn__circle {
  position: absolute; left: 50%; top: 50%; z-index: 0; width: 115%; aspect-ratio: 1; border-radius: 50%;
  background: var(--btn-hover); pointer-events: none;
  transform: translate(-50%, -50%) scale(0); transition: transform 0.7s var(--ease-btn);
}
.btn.is-hover { color: var(--btn-hover-text); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn--light:focus-visible, .section--dark .btn:focus-visible { outline-color: var(--white); }

/* ---------- Header : pilule blanche flottante, logo au centre ---------- */
.site-header { position: fixed; top: calc(0.75rem + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 50; padding-inline: max(0.75rem, var(--safe-left), var(--safe-right)); pointer-events: none; }
@media (min-width: 48em) { .site-header { top: calc(1.125rem + env(safe-area-inset-top, 0px)); padding-inline: var(--gutter); } }
.nav {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 60rem; min-height: var(--header-h); margin-inline: auto; padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: var(--white); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(43, 16, 22, 0.06);
  transition: box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled .nav { box-shadow: 0 1px 2px rgba(43, 16, 22, 0.08), 0 18px 36px -22px rgba(43, 16, 22, 0.45); }

.brand { order: 0; display: inline-flex; align-items: center; margin-right: auto; color: var(--brand); text-decoration: none; }
.brand picture { display: block; }
.brand__logo { display: block; height: 1.5rem; width: auto; aspect-ratio: 600 / 153; }

.nav__links { display: flex; align-items: center; gap: 0.25rem 1.75rem; }
.nav__links a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.5rem; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a:not(.btn)[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__links--right { order: 1; gap: 1.5rem; }
.nav__links.nav__links--right > a { display: none; }
.burger { order: 2; }

.lang-switch { display: inline-flex; padding: 2px; border-radius: 12px; background: var(--mist); }
.lang-switch button {
  min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.5rem;
  border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: 600 0.8125rem/1 var(--font-sans); letter-spacing: 0.04em; color: var(--slate);
}
.lang-switch button:hover { color: var(--brand); }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--brand); box-shadow: 0 1px 3px rgba(43, 16, 22, 0.12); }

/* Burger : visible uniquement avec JavaScript, sous 64 em */
.burger { display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 14px; background: var(--mist); cursor: pointer; place-content: center; gap: 6px; }
.burger__bar { display: block; width: 1.25rem; height: 2px; background: var(--brand); border-radius: 1px; transition: transform 0.35s var(--ease); }
.is-open .burger__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.is-open .burger__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 63.99em) {
  /* Sans JavaScript : les liens passent sur une seconde ligne de la pilule, toujours visibles */
  .nav { flex-wrap: wrap; }
  .nav__links--left { order: 3; width: 100%; flex-wrap: wrap; gap: 0 1.25rem; padding: 0.25rem 0 0.25rem; }
  .nav__links--left .btn { display: none; }

  html.js .burger { display: inline-grid; }
  /* Avec JavaScript : langue à gauche, logo au centre, burger à droite */
  html.js .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-inline: 0.5rem; }
  html.js .nav__links--right { grid-column: 1; grid-row: 1; justify-self: start; }
  html.js .brand { grid-column: 2; grid-row: 1; margin: 0; }
  html.js .burger { grid-column: 3; grid-row: 1; justify-self: end; }
  html.js .nav__links--left {
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; order: 0; width: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.75rem 1.25rem 1.25rem; background: var(--white); border-radius: 20px;
    box-shadow: 0 24px 40px -24px rgba(43, 16, 22, 0.45);
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  html.js .nav__links--left a:not(.btn) { min-height: 3.25rem; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  html.js .nav__links--left a:not(.btn)::after { display: none; }
  html.js .nav__links--left .btn { display: inline-flex; margin-top: 1rem; min-height: 3.5rem; }
  html.js .is-open .nav__links--left { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}

@media (min-width: 64em) {
  /* Colonnes latérales égales et marges intérieures symétriques : le logo tombe pile au centre */
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.5rem; padding-inline: 0.5rem; }
  .nav__links--left { grid-column: 1; justify-self: start; padding-left: 1rem; }
  .brand { grid-column: 2; margin: 0; }
  .brand__logo { height: 2.5rem; aspect-ratio: 600 / 206; }
  .nav__links--right { grid-column: 3; justify-self: end; }
  .nav__links.nav__links--right > a { display: inline-flex; }
  .nav__mobile-only { display: none !important; }
}

/* ---------- 1. Hero : fond crème, titre en deux tons, roue de cartes ----------
   Fond crème et non bordeaux : l'encre et l'accent du titre n'y ont pas assez de contraste
   (1,4:1 et 2,2:1 sur bordeaux ; 15,9:1 et 5,2:1 sur crème). */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; padding-top: 8.5rem;
  background: var(--mist); color: var(--ink);
  border-bottom: 1px solid var(--line);   /* le crème et le blanc de la section suivante ne diffèrent que de 1,11:1 */
}
@media (min-width: 48em) { .hero { padding-top: 11rem; } }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { margin-top: 1rem; max-width: 22ch; }
.hero__line { display: block; }          /* une phrase par ligne */
.hero__line--accent { color: var(--accent); }
.hero__lead { margin-top: 1.25rem; max-width: 44rem; font-size: 1.0625rem; color: var(--slate); }
@media (min-width: 48em) { .hero__lead { font-size: 1.1875rem; } }
.hero__cta { margin-top: 2rem; }

/* Roue : 14 cartes posées sur un très grand cercle (CSS uniquement).
   Le cercle tourne lentement ; seul son sommet est visible. */
.wheel { display: flex; justify-content: center; margin-top: 3rem; padding-bottom: 4rem; pointer-events: none; }
.wheel__list {
  --total: 14; --wheel-r: 56em; --duration: 82s;
  display: grid; margin: 0; padding: 0; list-style: none; font-size: 16px;
  transform-origin: 50% var(--wheel-r);
}
.wheel__card {
  grid-area: 1 / 1; width: 16.5rem; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--ink);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.6);
  transform-origin: 50% var(--wheel-r);
  transform: rotate(calc(360deg / var(--total) * (var(--card) - 1)));
  backface-visibility: hidden;
}
.wheel__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.wheel__card:nth-child(1) { --card: 1; }   .wheel__card:nth-child(2) { --card: 2; }
.wheel__card:nth-child(3) { --card: 3; }   .wheel__card:nth-child(4) { --card: 4; }
.wheel__card:nth-child(5) { --card: 5; }   .wheel__card:nth-child(6) { --card: 6; }
.wheel__card:nth-child(7) { --card: 7; }   .wheel__card:nth-child(8) { --card: 8; }
.wheel__card:nth-child(9) { --card: 9; }   .wheel__card:nth-child(10) { --card: 10; }
.wheel__card:nth-child(11) { --card: 11; } .wheel__card:nth-child(12) { --card: 12; }
.wheel__card:nth-child(13) { --card: 13; } .wheel__card:nth-child(14) { --card: 14; }
@media (min-width: 30em) { .wheel__list { --wheel-r: 30em; --duration: 68s; } }
@media (min-width: 48em) { .wheel__list { --wheel-r: 51em; --duration: 96s; } .wheel { margin-top: 4rem; } }
@media (min-width: 62em) { .wheel__list { --wheel-r: 74em; --duration: 100s; } .wheel__card { width: 23rem; } }

/* ---------- 3. Services ---------- */
/* Les 4 catégories, en étiquettes-liens sous la phrase d'intro (accès direct à chaque catégorie) */
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }
.chips a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.125rem; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; color: var(--brand); text-decoration: none;
}
.chips a:hover { border-color: var(--brand); }

/* Catégories de services : en-tête numéroté, puis une grille de cartes (composant .pack des anciennes formules) */
.svc-cat + .svc-cat { margin-top: clamp(4rem, 8vw, 6.5rem); }
.svc-cat { scroll-margin-top: 7rem; }
.svc-cat__head { display: grid; gap: 0.75rem; max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.svc-cat__num { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1; color: var(--accent); }
.svc-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .svc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 48em) and (max-width: 61.99em) { .svc-grid--3 > .pack:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.svc-grid > .pack--wide { grid-column: 1 / -1; }
.svc .pack__name { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); }
.svc .pack__tag { margin: 0.625rem 0 1.5rem; font-size: 1.0625rem; }
.svc .checks { margin-bottom: 1.75rem; }
.svc__included {
  align-self: flex-start; margin: -0.5rem 0 1.75rem; padding: 0.375rem 0.75rem; border-radius: 10px;
  background: var(--mist); color: var(--brand); font-size: 0.875rem; font-weight: 600;
}
.pack--featured .svc__included { background: var(--white); }
.svc .btn { align-self: flex-start; }
.svc-cat__note { margin-top: 1rem; font-size: 0.9375rem; color: var(--slate); }
/* Carte pleine largeur : texte à gauche, points inclus à droite */
@media (min-width: 62em) {
  .pack--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; column-gap: 4rem; padding: 2.5rem; }
  .pack--wide > :not(.checks) { grid-column: 1; }
  .pack--wide > .checks { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin: 0; }
  .pack--wide .btn { margin-top: 0.5rem; }
}

/* ---------- 2. Offres de l'accueil : liste verticale numérotée 01-05 ---------- */
.offers { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.375rem 1.25rem; align-items: baseline;
  padding-block: 1.75rem; border-bottom: 1px solid var(--line);
}
.offer__num { grid-row: span 3; font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1; color: var(--accent); }
.offer__title { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); }
.offer p { max-width: 36rem; color: var(--slate); }
.offer__link { justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.offer__link::after { content: "→"; transition: transform 0.3s var(--ease); }
.offer__link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.offer__link:hover::after { transform: translateX(0.25rem); }
@media (min-width: 62em) {
  .offer { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 2rem; padding-block: 2.25rem; }
  .offer__num { grid-row: auto; }
}

/* ---------- Étiquettes (statut, descripteur) posées sur une image ---------- */
.tag {
  padding: 0.3rem 0.75rem; border-radius: 10px;
  background: rgba(43, 16, 22, 0.72); color: var(--white);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.3;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tag--strong { background: var(--white); color: var(--brand); font-weight: 600; }
.projects-note { max-width: 70ch; margin-top: 1.5rem; font-size: 0.9375rem; color: var(--slate); }

/* Cadrage des captures : chaque site garde sa partie lisible (titre, logo) quel que soit le format du cadre.
   Paolina, Vanilla, Blackbird et Big Shot ont leur titre à gauche ; le Clos, Carlito's et Jana sont centrés. */
:is(.wheel__card, .pcard__media, .project-hero) img[src*="paolina-caffe"]  { object-position: 0% 45%; }
:is(.wheel__card, .pcard__media, .project-hero) img[src*="vanilla-coffee"] { object-position: 0% 0%; }
:is(.wheel__card, .pcard__media, .project-hero) img[src*="blackbird"]      { object-position: 0% 50%; }
:is(.wheel__card, .pcard__media, .project-hero) img[src*="clos-dastorg"]   { object-position: 50% 35%; }
:is(.wheel__card, .pcard__media, .project-hero) img[src*="big-shot"]       { object-position: 0% 55%; }
:is(.wheel__card, .pcard__media, .project-hero) img[src*="carlitos"]       { object-position: 50% 45%; }
:is(.wheel__card, .pcard__media, .project-hero) img[src*="jana"]           { object-position: 50% 55%; }

/* ---------- 6. Méthode : 3 étapes (accueil et page Services) ---------- */
.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 40em) and (max-width: 61.99em) { .steps--3 > .step:last-child { grid-column: 1 / -1; } }
.step { padding: 1.5rem 1.5rem 1.75rem; border-radius: var(--radius); background: var(--mist); }
.step__num {
  display: block; font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); line-height: 1; letter-spacing: -0.02em; color: var(--accent);
}
.step__title { margin-top: 1.25rem; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
.step p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.5; color: var(--slate); }
.method-note { display: grid; gap: 0.375rem; margin-top: 1.25rem; padding: 1.5rem 1.5rem 1.75rem; border-radius: var(--radius); background: var(--brand); color: var(--on-brand); }
@media (min-width: 62em) { .method-note { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; gap: 2rem; } }
.method-note__title { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); color: var(--white); }

/* ---------- 7. Cartes de service (page Services) ---------- */
.pack {
  position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem;
  background: var(--white); border-radius: var(--radius);
}
.pack--featured { background: var(--brand); color: var(--white); }
.pack__badge {
  align-self: flex-start; margin-bottom: 1rem; padding: 0.3rem 0.75rem; border-radius: 10px;
  background: var(--mist); color: var(--brand); font-size: 0.8125rem; font-weight: 600;
}
.pack__name { font-size: 1.75rem; color: var(--brand); }
.pack--featured .pack__name { color: var(--white); }
.pack__tag { margin-top: 0.375rem; color: var(--slate); }
.pack--featured .pack__tag { color: var(--on-brand); }
.checks { margin-bottom: 2rem; display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.05rem; height: 1.05rem; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pack--featured .checks li::before { background: var(--on-brand); }
.pack .btn { margin-top: auto; }


/* ---------- 9. FAQ ---------- */
.section--dark .label { color: var(--on-brand); }
.section--dark .h2 em { color: var(--on-brand); }
.faq { display: grid; gap: 0.75rem; align-items: start; }
@media (min-width: 48em) { .faq { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.faq__item { border-radius: var(--radius); background: var(--dark-card); }
.faq__item h3 { font-size: inherit; letter-spacing: 0; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%;
  padding: 1.125rem 1.125rem 1.125rem 1.375rem; border: 0; border-radius: var(--radius); background: none; cursor: pointer; text-align: left;
  font-size: 1.0625rem; font-weight: 500; line-height: 1.35; color: var(--white);
}
.faq__q:focus-visible { outline-color: var(--white); outline-offset: -2px; }
.faq__icon { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--mist); transition: transform 0.45s var(--ease), background-color 0.3s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.875rem; height: 2px; margin: -1px 0 0 -0.4375rem; background: var(--brand); border-radius: 1px; }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(135deg); }
.faq__q:hover .faq__icon { background: var(--white); }
.faq__a { display: grid; grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { max-width: 62ch; padding: 0 1.375rem 1.375rem; color: var(--on-brand); }
/* Avec JavaScript, les réponses sont repliées ; sans JavaScript, tout reste lisible */
html.js .faq__a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.5s var(--ease), visibility 0s linear 0.5s; }
html.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.5s var(--ease), visibility 0s; }
html:not(.js) .faq__icon { display: none; }

/* ---------- 10. Contact ---------- */
.contact { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 62em) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5rem; } }
.contact__text .h2 { margin-top: 0.75rem; }
.contact__text .text-medium { margin-top: 1.25rem; max-width: 30rem; }
.infos { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
.info { display: flex; align-items: center; gap: 1rem; }
.icon-box { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 14px; background: var(--accent-tint); color: var(--brand); }
.icon-box .icon { width: 1.375rem; height: 1.375rem; }
.info__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.info__value { font-size: 1.0625rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
a.info__value { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.25em; }
a.info__value:hover { color: var(--brand); }

.quote { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quote__head { padding: 1.5rem 1.75rem; background: var(--brand); color: var(--on-brand); }
.quote__title { font-size: 1.625rem; color: var(--white); }
.quote__head p { margin-top: 0.375rem; }
.form { padding: 1.75rem; }
.form__grid { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 0.375rem; font-size: 0.9375rem; font-weight: 600; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  border: 1px solid var(--field); border-radius: 12px; background: var(--white);
  font: inherit; color: var(--ink); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235E1A26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 1rem center / 1rem no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 4px var(--accent); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #A3231F; }
.form__hint { margin-top: 1.25rem; font-size: 0.875rem; color: var(--slate); }
.form__submit { width: 100%; margin-top: 1.25rem; }

/* ---------- 11. Footer : bandeau d'appel + carte blanche ---------- */
.site-footer { position: relative; z-index: 0; background: var(--brand); color: var(--on-brand); }
.footer-cta { padding-block: clamp(5rem, 10vw, 8rem) clamp(3.5rem, 7vw, 5.5rem); }
.footer-cta__inner { max-width: 48rem; margin-left: 0; }
@media (min-width: 80em) { .footer-cta__inner { margin-left: max(0px, calc((100vw - var(--container)) / 2)); } }
.footer-cta__title { color: var(--white); }
.footer-cta__line { display: block; }          /* une phrase par ligne */
.footer-cta__line--accent { color: var(--on-brand); }
.footer-cta .text-medium { margin-top: 1.25rem; max-width: 34rem; color: var(--on-brand); }
.footer-cta .btn { margin-top: 2rem; }

.footer-card-wrap { padding: 0 max(0.75rem, var(--safe-right)) calc(0.75rem + var(--safe-bottom)) max(0.75rem, var(--safe-left)); }
.footer-card {
  max-width: calc(var(--container) + 2rem); margin-inline: auto; padding: 2.5rem 1.5rem 0.5rem;
  border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: 0.9375rem;
}
@media (min-width: 48em) { .footer-card { padding: 3.5rem 2.5rem 0.75rem; } }
.footer-card a { color: var(--ink); text-decoration-color: var(--line); }
.footer-card a:hover { color: var(--brand); text-decoration-color: var(--accent); }
.footer__grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 40em) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .footer__grid { grid-template-columns: 2fr 1fr 1.3fr; gap: 2.5rem; } }
.footer__logo { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; color: var(--brand); }
.footer__logo .icon-draw { width: 3.5rem; height: 3.5rem; flex: none; }
.footer__logo img { height: 1.5rem; width: auto; }
.footer__brand p { max-width: 22rem; color: var(--slate); }
.footer__title { margin-bottom: 1rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.footer__list { display: grid; gap: 0.375rem; color: var(--slate); }
.footer__list a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--slate); text-decoration: none; }
.footer__list a:hover { color: var(--brand); text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem;
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--slate);
}
.footer__legal, .footer__legal { margin-left: auto; }
/* Page Mentions légales */
.legal__body { max-width: 65ch; margin-top: 1.5rem; color: var(--slate); }
.legal__title { margin-top: 2rem; font-size: 1.125rem; letter-spacing: 0; color: var(--ink); }
.legal__body p { margin-top: 0.5rem; }

/* Logo redessiné en SVG (cercle, barre, pied du T, trois carrés) */
.icon-draw { display: block; overflow: visible; }
.icon-draw .id-ring, .icon-draw .id-sq { fill: none; stroke: currentColor; stroke-width: 19; }
.icon-draw .id-bar, .icon-draw .id-stem { fill: currentColor; }

/* ---------- Carte projet (index des projets, accueil, « Voir d'autres projets ») ----------
   Image, nom, descripteur court, tags en majuscules, étiquette de statut ; « Ouvrir » seulement si la page existe. */
.pcards { display: grid; gap: 2.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard__link { display: flex; flex-direction: column; align-items: flex-start; height: 100%; color: inherit; text-decoration: none; border-radius: var(--radius); }
.pcard__media { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--ink); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.pcard__status { position: absolute; left: 1rem; top: 1rem; }
.pcard__name { margin-top: 1.25rem; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; }
.pcard__desc { margin-top: 0.25rem; color: var(--slate); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.pcard__open { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-weight: 600; color: var(--brand); }
.pcard__open::after { content: "→"; transition: transform 0.3s var(--ease); }
a.pcard__link:hover .pcard__open { text-decoration: underline; text-underline-offset: 0.25em; }
a.pcard__link:hover .pcard__open::after { transform: translateX(0.25rem); }
a.pcard__link:focus-visible { outline-offset: 6px; }

/* ---------- Page À propos (a-propos.html) : portrait + texte d'Oscar ---------- */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48em) { .about { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; } }
@media (min-width: 62em) { .about { gap: 6rem; } }
.about__photo { overflow: hidden; max-width: 22rem; width: 100%; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--mist); }
@media (min-width: 48em) { .about__photo { max-width: none; } }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about__text .h2 { margin: 0.75rem 0 1.5rem; }
.about__text p:not(.label) { max-width: 36rem; font-size: 1.0625rem; }
.about__text p + p { margin-top: 1rem; }
.about__text .btn { margin-top: 2rem; }

/* ---------- 12. Pages projet (projets/*.html) ---------- */
.project-hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: min(80svh, 44rem); padding: 8.5rem 0 2.5rem; background: var(--ink); color: var(--white);
}
.project-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.project-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(43, 16, 22, 0.55) 0%, rgba(43, 16, 22, 0.25) 30%, rgba(43, 16, 22, 0.92) 70%, rgba(43, 16, 22, 0.96) 100%);
}
.project-hero__inner { position: relative; z-index: 2; }
.project-back { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--white); font-weight: 500; }
.project-back::before { content: "←"; margin-right: 0.5rem; }
.project-hero__title { margin-top: 0.5rem; color: var(--white); font-family: var(--font-serif); font-style: italic; }
.project-hero__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1rem; }

.project-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62em) { .project-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } }
.project-grid .label { margin-bottom: 1rem; }
.project-intro { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.45; max-width: 36rem; }
.details { margin: 1rem 0 0; }
.details > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.875rem; border-bottom: 1px solid var(--line); }
.details dt { color: var(--slate); }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.details a { text-decoration-color: var(--accent); }
.project-section-title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
/* Périmètre : liste numérotée 01-03 avec une flèche, comme les offres de l'accueil */
.scope { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.scope__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: baseline; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.scope__num { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); line-height: 1; color: var(--accent); }
.scope__arrow { font-size: 1.25rem; color: var(--brand); }

.shots { display: grid; gap: 1.25rem; }
.shot { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.shot img { width: 100%; height: auto; }
.shot--todo { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 1.5rem; border: 2px dashed var(--line); text-align: center; }
.shots__phones { display: flex; justify-content: center; gap: 1.25rem; }
.shot--phone { width: min(20rem, 48%); aspect-ratio: 390 / 844; }

/* Boutique démo (projets/boutique-demo.html) : en-tête sans image, bandeau concept, accès à la démo, vidéo au clic */
.project-hero--plain { min-height: 0; padding-top: 9rem; }
.project-notice {
  display: block; width: fit-content; max-width: 100%; margin-bottom: 1.5rem; padding: 0.75rem 1rem;
  border-radius: 12px; background: var(--mist); color: var(--ink); font-weight: 600; line-height: 1.4;
}
.demo-access { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.demo-access__pw { flex: 1 1 15rem; padding: 0.875rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.demo-access__code {
  display: inline-block; padding: 0.125rem 0.5rem; border-radius: 6px; background: var(--mist);
  font-size: 1.125rem; letter-spacing: 0.04em; color: var(--brand);
}
.demo-access__help { margin-top: 0.375rem; font-size: 0.875rem; color: var(--slate); }
.shot--video { aspect-ratio: 16 / 9; }
.shot--todo .todo { padding: 0.5rem 0.75rem; border-radius: 8px; }
.shot--todo code { overflow-wrap: anywhere; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video img, .video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3rem; padding: 0 1.25rem;
  border-radius: 999px; background: var(--white); color: var(--brand); font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(43, 16, 22, 0.55);
}
.video__play::before { content: ""; border-left: 0.75rem solid currentColor; border-block: 0.45rem solid transparent; }
.video__play:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* Carte projet sans capture (boutique démo) : panneau typographique ; carte large sur l'accueil (5e carte) */
.pcard__media--type { display: grid; place-items: center; background: var(--brand); }
.pcard__wordmark { font-family: var(--font-serif); font-style: italic; font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem); line-height: 1; color: var(--mist); }
@media (min-width: 48em) {
  .pcard--wide { grid-column: 1 / -1; }
  .pcard--wide .pcard__link { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 1.5rem; align-items: start; }
  .pcard--wide .pcard__media { grid-column: 1; grid-row: 1 / -1; }
  .pcard--wide .pcard__link > :not(.pcard__media) { grid-column: 2; }
  .pcard--wide .pcard__name { grid-row: 2; margin-top: 0; }
  .pcard--wide .pcard__desc { grid-row: 3; }
  .pcard--wide .pcard__tags { grid-row: 4; }
}


/* ---------- CTA fixe en pilule, en bas de l'écran ----------
   Affiché par app.js (classe .is-visible) ; masqué = invisible, hors du clavier et des lecteurs d'écran. */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(0.75rem + var(--safe-bottom));
  display: flex; align-items: center; gap: 0.25rem; padding: 0.375rem;
  background: var(--white); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(43, 16, 22, 0.08), 0 18px 36px -22px rgba(43, 16, 22, 0.45);
  transform: translate(-50%, 0);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0s;
}
/* Disparition immédiate (sans fondu) : il ne doit jamais rester par-dessus la section contact qui arrive */
.dock:not(.is-visible) { opacity: 0; visibility: hidden; transform: translate(-50%, 1rem); transition: none; }
.dock .btn { white-space: nowrap; }
.dock__wa {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem;
  border-radius: 14px; font-weight: 500; color: var(--brand); text-decoration: none; white-space: nowrap;
}
.dock__wa:hover { background: var(--accent-tint); }
.dock__wa .icon { width: 1.125rem; height: 1.125rem; }

/* ---------- Page de remerciement ---------- */
.thanks { min-height: 100svh; display: grid; place-items: center; padding-block: 9rem 5rem; background: var(--brand); color: var(--white); text-align: center; }
.thanks .h2 em { color: var(--on-brand); }
.thanks .text-medium { margin: 1.25rem auto 0; max-width: 30rem; color: var(--on-brand); }
.thanks .btn { margin-top: 2rem; }
.thanks .h2 { max-width: 20ch; margin-inline: auto; }

/* ==========================================================================
   Mouvement
   Rien ne bouge pour les visiteurs qui ont demandé « réduire les animations ».
   Sans JavaScript, tout reste visible ; la roue est en CSS pur.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise      { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
  @keyframes rise-flat { from { transform: translateY(1.25rem); } to { transform: none; } }   /* sans opacité : le titre reste peint dès le premier affichage */
  @keyframes wheel-spin  { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
  @keyframes wheel-intro { from { rotate: calc(360deg / var(--total)); } to { rotate: 0deg; } }

  /* 1. Ouverture de page */
  .nav { animation: rise 0.8s var(--ease) 0.05s both; }
  .hero__label { animation: rise 0.8s var(--ease) 0.1s both; }
  .hero__title { animation: rise-flat 0.9s var(--ease) 0.1s both; }
  .hero__lead { animation: rise 0.8s var(--ease) 0.25s both; }
  .hero__cta { animation: rise 0.8s var(--ease) 0.35s both; }
  .wheel__list {
    animation: wheel-spin var(--duration) linear infinite, wheel-intro 1.5s cubic-bezier(0.33, 1, 0.68, 1) both;
    will-change: transform;
  }
  @media (max-width: 47.99em) { .wheel__list { animation: wheel-spin var(--duration) linear calc(var(--duration) / var(--total) * -1) infinite; } }

  /* 2. Apparitions au défilement (app.js ajoute .is-in ; --d décale légèrement les éléments voisins).
     Courtes et discrètes : 0,4 s, 0,75 rem, déclenchées un peu avant l'entrée à l'écran (voir initMotion),
     pour ne pas laisser de blanc quand on défile vite. */
  html.js [data-reveal] {
    opacity: 0; transform: translateY(0.75rem);
    transition: opacity 0.4s var(--ease) var(--d, 0ms), transform 0.4s var(--ease) var(--d, 0ms);
  }
  html.js [data-reveal="slide"] { transform: translateX(0.5rem); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Logo du pied de page : le cercle se trace, la barre et le pied du T poussent, puis les trois carrés se posent */
  @keyframes draw-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes grow-x    { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes grow-y    { from { transform: scaleY(0); } to { transform: none; } }
  @keyframes pop       { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
  html.js .icon-draw--reveal .id-ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html.js .icon-draw--reveal .id-bar, html.js .icon-draw--reveal .id-stem, html.js .icon-draw--reveal .id-sq { opacity: 0; transform-box: fill-box; }
  html.js .icon-draw--reveal.is-in .id-ring { stroke-dashoffset: 0; animation: draw-ring 1.1s var(--ease) 0.15s both; }
  html.js .icon-draw--reveal.is-in .id-bar  { opacity: 1; transform-origin: center; animation: grow-x 0.5s var(--ease) 0.8s both; }
  html.js .icon-draw--reveal.is-in .id-stem { opacity: 1; transform-origin: top; animation: grow-y 0.5s var(--ease) 1.1s both; }
  html.js .icon-draw--reveal.is-in .id-sq   { opacity: 1; transform-origin: center; animation: pop 0.45s var(--ease) calc(1.35s + var(--n) * 0.12s) both; }

  /* 3. Survol */
  .btn:active { scale: 0.985; }
  .btn { transition: background-color 0.3s var(--ease), color 0.3s var(--ease), scale 0.2s var(--ease); }
  @media (hover: hover) {
    .pcard__media img { transition: scale 1s var(--ease); }
    a.pcard__link:hover .pcard__media img { scale: 1.04; }
  }

  /* 4. Changement de langue : le texte s'efface et revient, sans saut brusque */
  main, .site-footer { transition: opacity 0.3s var(--ease); }
  .is-swapping main, .is-swapping .site-footer { opacity: 0; transition-duration: 0.15s; }
}

/* Mouvement réduit : la roue s'arrête */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
