/* ═══ 1.5.0 « Carnet de chantier » : mouvement, boutons, typographie (01/12/2026) ═══
   Skill site-humain-animations. Chargé sur toutes les pages sauf les landing pages, après carnet.css.
   - Défilement : animations CSS pilotées par le scroll (animation-timeline), sans JavaScript. Navigateurs qui ne les
     gèrent pas : rien ne bouge, tout reste affiché. Seuls translate / scale / rotate / opacity sont animés (pas de CLS),
     et le contenu n'est jamais caché (opacité minimale 0,35).
   - prefers-reduced-motion : aucun mouvement.
   - Fichier neuf : le cache edge de LWS ignore ?ver= sur les fichiers déjà servis. */

/* ── Typographie ───────────────────────────────────────────── */
.vxa-hero__h1, .vxa-h2, .vxa-card__title, .vxa-services__name, .vxa-capture__title {
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "clig";
  letter-spacing: -.012em;
}
.vxa-hero__h1 { letter-spacing: -.02em; }
.vxa-hero p, .vxa-section p, .vxa-contact p { text-wrap: pretty; hanging-punctuation: first; }
.vxa-review blockquote, .vxa-capture__hand { hanging-punctuation: first; }
.vxa-hero__price .vx-price-short, .vxa-services .vx-price { font-variant-numeric: lining-nums tabular-nums; }
.vxa-label { display: inline-flex; align-items: center; gap: .75rem; }
.vxa-label::before { content: ""; width: 1.75rem; height: 1px; background: #C9A96E; transform-origin: 0 50%; }
::selection { background: #E9DCC0; color: #1E1B18; }

/* ── Boutons et liens ──────────────────────────────────────── */
.btn-vhynx, .vxa-actions a, .vxa-contact button {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .18s ease, box-shadow .3s ease;
}
.btn-vhynx svg, .vxa-actions a svg, .vxa-contact button svg { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn-vhynx:hover svg, .vxa-actions a:hover svg, .vxa-contact button:hover svg { transform: translateX(4px); }
.btn-vhynx:hover { box-shadow: 0 14px 30px -18px rgba(30,27,24,.55); }
.btn-vhynx:active, .vxa-actions a:active, .vxa-contact button:active { transform: scale(.97); }
/* Lien souligné : le trait doré se remplit d'encre au survol */
.vxa-link {
  text-decoration: none;
  background: linear-gradient(#1E1B18, #1E1B18) 0 100% / 0 2px no-repeat, linear-gradient(#C9A96E, #C9A96E) 0 100% / 100% 2px no-repeat;
  padding-bottom: .35rem;
  transition: background-size .45s cubic-bezier(.2,.8,.2,1), color .25s;
}
.vxa-link:hover { background-size: 100% 2px, 100% 2px; color: #1E1B18; }
/* Liste des services : la ligne glisse et une flèche apparaît */
.vxa-services a { position: relative; transition: padding-left .35s cubic-bezier(.2,.8,.2,1); }
.vxa-services a::after { content: "→"; position: absolute; right: 0; top: 50%; translate: -12px -50%; opacity: 0; color: #7A5E2C; font-size: 1.25rem; transition: opacity .25s, translate .35s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 640px) {
  .vxa-services a { padding-right: 2.25rem; }
  .vxa-services a:hover { padding-left: .75rem; }
  .vxa-services a:hover::after { opacity: 1; translate: 0 -50%; }
}

/* ── Défilement ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Fil de lecture doré en haut de l'écran */
    body::after {
      content: ""; position: fixed; inset: 0 0 auto 0; z-index: 70; height: 2px; pointer-events: none;
      background: #C9A96E; transform-origin: 0 50%; transform: scaleX(0);
      animation: vx-progress linear both; animation-timeline: scroll(root);
    }
    /* Titres de section : ils montent en place en entrant dans l'écran */
    .vxa-h2, .vxa-section .vxa-muted {
      animation: vx-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%;
    }
    /* Étiquette : le trait se trace */
    .vxa-label::before { animation: vx-line linear both; animation-timeline: view(); animation-range: entry 10% cover 25%; }
    /* Captures du carnet : posées sur la table, elles se redressent légèrement */
    #carnet .vxa-capture { animation: vx-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    /* Services : chaque ligne arrive de la gauche */
    .vxa-services li { animation: vx-slide linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    /* Contact : la carte du formulaire et les coordonnées */
    .vxa-ways li { animation: vx-slide linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  }
  /* Hero de l'accueil, grand écran : les deux captures glissent à des vitesses différentes (profondeur) */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 1024px) {
      .vxa-hero__shots .vxa-capture:first-child { animation: vx-par-a linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
      .vxa-hero__shots .vxa-capture:last-child { animation: vx-par-b linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    }
  }
}
@keyframes vx-progress { to { transform: scaleX(1); } }
@keyframes vx-rise { from { translate: 0 28px; opacity: .35; } to { translate: 0 0; opacity: 1; } }
@keyframes vx-line { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes vx-settle { from { translate: 0 56px; scale: .95; } to { translate: 0 0; scale: 1; } }
@keyframes vx-slide { from { translate: -18px 0; opacity: .4; } to { translate: 0 0; opacity: 1; } }
@keyframes vx-par-a { to { translate: 0 -28px; } }
@keyframes vx-par-b { to { translate: 0 -72px; } }

@media (prefers-reduced-motion: reduce) {
  .vxa-link, .vxa-services a, .vxa-services a::after, .btn-vhynx svg { transition: none; }
}
