/* ==========================================================================
   LA CARTOUCHE — accueil.css · page d'accueil « Signal » (docs/DA-SIGNAL.md §4-5)
   Chargée après pages.css sur index.html uniquement. Préfixe .pg-home .ac-*.
   Couleurs : tokens.css seulement. Durées et courbes : tokens.css (--dur-*,
   --pas-*, --ease-signal). Typo : --f-titre (Unbounded), --f-corps (Manrope),
   Étiquettes en Manrope, casse normale : lisible par tout le monde.
   Tout mouvement est coupé sous prefers-reduced-motion (bas du fichier).
   ========================================================================== */

/* Retard des animations d'entrée : nul, sauf pendant l'allumage (§4.1). */
:root { --retard: 0s; }
html.sg-allume { --retard: 3.3s; }   /* durée de l'intro canvas (4,05 s × 0,75) */
html.sg-allume.sg-coupe { --retard: 0s; }

.pg-home .accueil { padding-block: 0 32px; display: flex; flex-direction: column; }

.pg-home .ac-mono {
  font-family: var(--f-corps); font-weight: 600; font-size: 13.5px; letter-spacing: 0; color: var(--gris); margin: 0;
}
.pg-home .ac-mono.vert { color: var(--violet); }
.pg-home .ac-h2 {
  font-family: var(--f-titre); font-weight: 900; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1; letter-spacing: -.03em; text-transform: uppercase; margin: 0; color: var(--encre);
}
.pg-home .ac-p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--vert-sur); }
.pg-home .ac-lien {
  font-family: var(--f-corps); font-weight: 600; font-size: 14px; letter-spacing: 0;
  color: var(--violet); text-decoration: underline; text-underline-offset: 5px; white-space: nowrap;
}
.pg-home .ac-lien:hover { color: var(--violet-fonce); }

/* ---------- Boutons ------------------------------------------------------- */
.pg-home .ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: var(--r-1);
  font-family: var(--f-corps); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.pg-home .ac-btn:hover { transform: translateY(-1px); }
.pg-home .ac-btn.plein { background: var(--violet); color: var(--fond); box-shadow: var(--lueur); }
.pg-home .ac-btn.plein:hover { background: var(--violet-fonce); color: var(--fond); }
.pg-home .ac-btn.ligne { background: transparent; color: var(--encre); border: 1px solid var(--bord-champ); }
.pg-home .ac-btn.ligne:hover { border-color: var(--encre); color: var(--encre); }
.pg-home .ac-btn.sm { min-height: 46px; padding: 11px 18px; font-size: 15px; align-self: flex-start; }

/* ---------- Papier : les photos vivent sur fond clair --------------------- */
.pg-home .ac-papier { background: var(--papier); border-radius: var(--r-3); overflow: hidden; position: relative; margin: 0; }
.pg-home .ac-papier img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.pg-home .ac-etiq {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--f-corps); font-weight: 600; font-size: 12.5px; letter-spacing: 0;
  background: var(--fond); color: var(--violet); padding: 6px 9px; border-radius: var(--r-1);
}
.pg-home .ac-etiq.ambre { color: var(--ambre); }
.pg-home .ac-etiq.gris { color: var(--vert-sur); }
.pg-home .ac-etiq.bas-g { top: auto; bottom: 12px; }

/* ==========================================================================
   1. ALLUMAGE — l'intro du logo en canvas (js/allumage.js), puis fondu 0,6 s.
   Visible seulement si <html> porte .sg-allume (script du <head>).
   ========================================================================== */
.sg-allumage { display: none; }
html.sg-allume .sg-allumage { display: block; position: fixed; inset: 0; z-index: 200; background: var(--fond); }
html.sg-allume .sg-allumage canvas { display: block; width: 100%; height: 100%; }
html.sg-allume .sg-allumage.sg-fini { animation: sg-voile var(--dur-allume-f) var(--ease-standard) forwards; }
@keyframes sg-voile { to { opacity: 0; visibility: hidden; } }
@keyframes sg-clignote { 50% { opacity: 0; } }

/* ==========================================================================
   2. HERO 7/5
   ========================================================================== */
.pg-home .ac-hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 40px;
  padding: 64px 0 56px; align-items: center;
}
.pg-home .ac-hero-txt { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pg-home .ac-h1 {
  font-family: var(--f-titre); font-weight: 900; font-size: clamp(48px, 6.4vw, 92px);
  line-height: .92; letter-spacing: -.03em; text-transform: uppercase; margin: 0; color: var(--encre);
}
.pg-home .ac-h1 .l { display: block; overflow: hidden; padding: .14em 0 .04em; margin-top: -.14em; }
.pg-home .ac-h1 .l > * {
  display: inline-block; transform: translateY(140%);
  animation: sg-monte var(--dur-monte) var(--ease-signal) forwards;
  animation-delay: calc(var(--retard) + var(--li, 0) * var(--pas-monte));
}
.pg-home .ac-h1 .l:nth-child(2) { --li: 1; }
.pg-home .ac-h1 .l:nth-child(3) { --li: 2; }
.pg-home .ac-h1 em { font-style: normal; color: var(--violet); }
.pg-home .ac-h1 .l > em { animation-name: sg-monte-lueur; }
@keyframes sg-monte { to { transform: none; } }
@keyframes sg-monte-lueur { 0% { text-shadow: none; } 60% { text-shadow: none; } 100% { transform: none; text-shadow: var(--lueur-txt); } }

.pg-home .ac-entre {
  opacity: 0; transform: translateY(12px);
  animation: sg-entre var(--dur-slow) var(--ease-enter) forwards;
  animation-delay: calc(var(--retard) + 3 * var(--pas-monte) + var(--dur-base));
}
@keyframes sg-entre { to { opacity: 1; transform: none; } }

.pg-home .ac-hero-p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--vert-sur); max-width: 560px; }
.pg-home .ac-hero-acts { display: flex; gap: 12px; flex-wrap: wrap; }

.pg-home .ac-chiffres {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 0; max-width: 560px;
  border-top: 1px solid var(--bord-carte);
}
.pg-home .ac-chiffres > div { padding: 16px 16px 0 0; display: flex; flex-direction: column-reverse; gap: 6px; min-width: 0; }
.pg-home .ac-chiffres dd { margin: 0; font-family: var(--f-titre); font-weight: 900; font-size: 32px; line-height: 1; color: var(--encre); }
.pg-home .ac-chiffres dt { font-family: var(--f-corps); font-weight: 600; font-size: 12.5px; letter-spacing: 0; color: var(--gris-2); }

.pg-home .ac-hero-droite { grid-column: span 5; position: relative; min-width: 0; padding-bottom: 72px; }
.pg-home .ac-hero-fig { aspect-ratio: 4 / 5; width: 100%; }
/* 4. Balayage lumineux toutes les 4,5 s */
.pg-home .ac-hero-fig::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(155, 229, 100, .26) 50%, transparent 65%);
  transform: translateX(-110%);
  animation: sg-balaye var(--dur-balayage) var(--ease-standard) infinite;
}
@keyframes sg-balaye { 0% { transform: translateX(-110%); } 45%, 100% { transform: translateX(110%); } }


/* ==========================================================================
   5. CONFIANCE : quatre promesses simples, lisibles d'un coup d'œil
   ========================================================================== */
.pg-home .ac-confiance { border-top: 1px solid var(--bord-carte); border-bottom: 1px solid var(--bord-carte); padding: 22px 0; margin-top: 8px; }
.pg-home .ac-confiance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.pg-home .ac-confiance li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: start; }
.pg-home .ac-confiance li > svg { grid-row: span 2; color: var(--violet); margin-top: 1px; }
.pg-home .ac-confiance b { font-weight: 700; font-size: 15.5px; color: var(--encre); }
.pg-home .ac-confiance span { font-size: 14px; line-height: 1.45; color: var(--gris); }

/* ==========================================================================
   Sections numérotées 01 → 04
   ========================================================================== */
.pg-home .ac-sect { padding-top: 104px; }
.pg-home .ac-tete {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 28px;
  margin-bottom: 36px;
}
.pg-home .ac-tete > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pg-home .ac-num {
  font-family: var(--f-titre); font-weight: 900; font-size: 96px; line-height: .8; letter-spacing: -.04em;
  color: var(--num-sect); user-select: none;
}

/* ---------- 01 · STOCK ---------------------------------------------------- */
.pg-home .ac-filtres { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pg-home .ac-filtres a {
  font-family: var(--f-corps); font-weight: 600; font-size: 13px; letter-spacing: 0;
  border: 1px solid var(--bord-champ); color: var(--gris); padding: 8px 11px; border-radius: var(--r-1);
  text-decoration: none; min-height: 36px; display: inline-flex; align-items: center;
}
.pg-home .ac-filtres a:first-child, .pg-home .ac-filtres a:hover { border-color: var(--violet); color: var(--violet); }

.pg-home .ac-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* 6. Cartes : survol = -6 px, bordure phosphore, photo 1,04 */
.pg-home .ac-piece {
  background: var(--blanc); border: 1px solid var(--bord-carte); border-radius: var(--r-3);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0; color: var(--encre); text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.pg-home .ac-piece.reveal.is-in:hover, .pg-home .ac-piece:hover { border-color: var(--violet); transform: translateY(-6px); color: var(--encre); }
.pg-home .ac-piece .ac-papier { border-radius: 0; height: 240px; flex: 0 0 auto; }
.pg-home .ac-piece .ac-papier img { transition: transform var(--dur-zoom) var(--ease-standard); }
.pg-home .ac-piece:hover .ac-papier img { transform: scale(1.04); }
.pg-home .ac-piece .ac-papier.modele img { object-fit: contain; padding: 22px; }
.pg-home .ac-piece .corps { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.pg-home .ac-piece h3 { margin: 0; font-family: var(--f-titre); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.pg-home .ac-piece .fait { margin: 0; font-family: var(--f-corps); font-weight: 600; font-size: 13px; line-height: 1.7; letter-spacing: 0; color: var(--violet); }
.pg-home .ac-piece .defaut { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gris); }
.pg-home .ac-piece .bas {
  margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--bord-carte);
}
.pg-home .ac-piece .bas span { font-family: var(--f-corps); font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--gris); }
.pg-home .ac-piece .bas b { font-family: var(--f-titre); font-weight: 900; font-size: 24px; letter-spacing: -.02em; color: var(--violet); white-space: nowrap; }
.pg-home .ac-vide { grid-column: 1 / -1; color: var(--gris); font-size: 15px; }
.pg-home .ac-suite { margin: 28px 0 0; display: flex; gap: 12px 32px; flex-wrap: wrap; }
.pg-home .ac-suite .ac-custom { color: var(--citron); text-decoration-color: var(--citron); }

/* ---------- AVIS (réels, data/avis.json) ---------------------------------- */
.pg-home .ac-avis-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pg-home .ac-avis { margin: 0; background: var(--blanc); border: 1px solid var(--bord-carte); border-radius: var(--r-3); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pg-home .ac-avis-t { margin: 0; font-size: 16px; line-height: 1.55; color: var(--encre); }
.pg-home .ac-avis footer { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-corps); font-size: 13px; letter-spacing: 0; color: var(--gris); margin-top: auto; }
.pg-home .ac-note { color: var(--citron); font-size: 14px; letter-spacing: .1em; }
.pg-home .ac-note i { font-style: normal; color: var(--bord-champ); }
@media (max-width: 1080px) { .pg-home .ac-avis-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pg-home .ac-avis-grille { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 02 · MÉTHODE : ligne de progression + 4 étapes ---------------- */
.pg-home .ac-progres { position: relative; }
.pg-home .ac-progres-ligne { height: 1px; background: var(--bord-carte); margin-bottom: 28px; position: relative; }
.pg-home .ac-progres-ligne i {
  position: absolute; inset: 0; background: var(--violet); box-shadow: var(--lueur);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-progres) var(--ease-signal);
}
.pg-home .ac-progres.is-in .ac-progres-ligne i { transform: scaleX(1); }
.pg-home .ac-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pg-home .ac-etape {
  border-left: 1px solid var(--bord-carte); padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-enter), transform var(--dur-slow) var(--ease-enter);
}
.pg-home .ac-etape:nth-child(2) { transition-delay: calc(1 * var(--pas-etape)); }
.pg-home .ac-etape:nth-child(3) { transition-delay: calc(2 * var(--pas-etape)); }
.pg-home .ac-etape:nth-child(4) { transition-delay: calc(3 * var(--pas-etape)); }
.pg-home .ac-progres.is-in .ac-etape { opacity: 1; transform: none; }
.pg-home .ac-etape h3 { margin: 0; font-family: var(--f-corps); font-weight: 600; font-size: 20px; letter-spacing: 0; line-height: 1.25; }
.pg-home .ac-etape p:not(.ac-mono) { margin: 0; font-size: 15px; line-height: 1.55; color: var(--vert-sur); }

/* ---------- 03 · RÉPARATION ---------------------------------------------- */
.pg-home .ac-atelier-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.pg-home .ac-atelier-g > figure { grid-column: span 7; min-height: 400px; }
.pg-home .ac-repa {
  grid-column: span 5; background: var(--blanc); border: 1px solid var(--bord-carte); border-radius: var(--r-3);
  padding: 32px; display: flex; flex-direction: column; gap: 22px;
}
.pg-home .ac-repa-p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--vert-sur); }
.pg-home .ac-tarifs { margin: 0; padding: 0; list-style: none; font-family: var(--f-corps); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.pg-home .ac-tarifs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--bord-carte); color: var(--encre); }
.pg-home .ac-tarifs li:first-child { border-top: 1px solid var(--bord-carte); }
.pg-home .ac-tarifs li span:last-child { color: var(--violet); white-space: nowrap; text-align: right; }

/* ---------- 04 · RACHAT : bloc plein ------------------------------------- */
.pg-home .ac-rachat {
  position: relative; overflow: hidden;
  background: var(--vert-profond); border: 1px solid var(--bord-carte); border-radius: var(--r-3);
  padding: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 40px; align-items: end;
}
.pg-home .ac-rachat .ac-num { position: absolute; right: 28px; top: 24px; color: var(--vert); }
.pg-home .ac-rachat-txt { grid-column: span 7; display: flex; flex-direction: column; gap: 16px; position: relative; }
.pg-home .ac-rachat-acts { grid-column: span 5; display: flex; flex-direction: column; gap: 10px; position: relative; }
.pg-home .ac-rachat-acts .ac-mono { text-align: center; color: var(--vert-sur); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .pg-home .ac-hero { column-gap: 28px; }
}
@media (max-width: 900px) {
  .pg-home .ac-hero { grid-template-columns: minmax(0, 1fr); }
  .pg-home .ac-hero-txt, .pg-home .ac-hero-droite { grid-column: auto; }
  .pg-home .ac-hero-droite { max-width: 640px; }
  .pg-home .ac-hero-fig { aspect-ratio: 4 / 3; }
}
@media (max-width: 1080px) {
  .pg-home .ac-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-home .ac-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .pg-home .ac-atelier-g, .pg-home .ac-rachat { grid-template-columns: minmax(0, 1fr); }
  .pg-home .ac-atelier-g > figure, .pg-home .ac-repa,
  .pg-home .ac-rachat-txt, .pg-home .ac-rachat-acts { grid-column: auto; }
  .pg-home .ac-tete { grid-template-columns: minmax(0, 1fr); }
  .pg-home .ac-tete > :nth-child(3) { grid-column: 1 / -1; justify-content: flex-start; justify-self: start; }
}
@media (max-width: 640px) {
  .pg-home .ac-hero { padding: 32px 0 40px; }
  .pg-home .ac-hero-droite { padding-bottom: 0; }
  .pg-home .ac-chiffres dd { font-size: 26px; }
  .pg-home .ac-sect { padding-top: 72px; }
  .pg-home .ac-num { font-size: 64px; }
  .pg-home .ac-tete { grid-template-columns: minmax(0, 1fr); }
  .pg-home .ac-tete > :nth-child(3) { grid-column: auto; }
  .pg-home .ac-h2 { font-size: 27px; }
  .pg-home .ac-rachat .ac-num { display: none; }
  .pg-home .ac-grille { grid-template-columns: minmax(0, 1fr); }
  .pg-home .ac-etapes { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .pg-home .ac-atelier-g > figure { min-height: 260px; }
  .pg-home .ac-rachat, .pg-home .ac-repa { padding: 24px; }
  .pg-home .ac-rachat .ac-num { right: 16px; top: 16px; }
  .pg-home .ac-btn { width: 100%; }
  .pg-home .ac-lien { white-space: normal; }
}

/* ==========================================================================
   MOUVEMENT RÉDUIT : tout est visible tout de suite, rien ne bouge.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.sg-allume .sg-allumage { display: none; }
  .pg-home .ac-h1 .l > *, .pg-home .ac-entre,
  .pg-home .ac-etape { animation: none; transform: none; opacity: 1; width: auto; transition: none; }
  .pg-home .ac-h1 em { text-shadow: var(--lueur-txt); }
  .pg-home .ac-hero-fig::after { animation: none; display: none; }
  .pg-home .ac-progres-ligne i { transform: none; transition: none; }
  .pg-home .ac-piece:hover, .pg-home .ac-piece:hover .ac-papier img { transform: none; }
}

/* Simplicité : plus de gros numéros de section, la lecture suit les titres. */
.pg-home .ac-num { display: none; }
@media (max-width: 980px) { .pg-home .ac-confiance ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pg-home .ac-confiance ul { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
