/* =====================================================================
   QUALIMATIC PRODUCTION · À PROPOS (preview v10)
   Une couverture de magazine vue dans un viseur, la route que trace le
   van, l'étalonnage avant/après, la rature « je ne suis pas », les
   principes empilés, la corde à linge de l'équipage.
   S'appuie sur refonte.css et accueil.css.
   ===================================================================== */

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* =====================================================================
   1. LA COUVERTURE
   ===================================================================== */
.couverture { position: relative; height: calc(var(--ecran) * 2.2); }
.couverture__fixe {
  position: sticky; top: 0;
  height: var(--ecran);
  overflow: hidden;
}
/* une lumière chaude derrière lui, sur le velours */
.couverture__lumiere {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 62% at 50% 58%, rgba(214, 140, 96, .3), rgba(214, 140, 96, 0) 70%),
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 40%, rgba(8, 0, 2, .55) 100%);
}

.couverture__nom {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 1;
  display: flex; justify-content: center;
  transform: translateY(-58%);
  font-family: var(--titre); font-weight: 400; font-variation-settings: "opsz" 100;
  font-size: min(25vw, calc(var(--ecran) * .52)); line-height: .82;
  color: var(--creme);
  letter-spacing: -.005em;
  opacity: var(--co, 1);
  pointer-events: none;
}
.couverture__lettre { display: inline-block; translate: var(--lx, 0px) var(--ly, 0px); will-change: translate; }
.couverture__je {
  position: absolute; z-index: 3;
  left: max(6vw, calc(50% - min(25vw, calc(var(--ecran) * .52)) * 1.45));
  top: calc(50% - min(25vw, calc(var(--ecran) * .52)) * .62);
  font-family: var(--script); font-size: clamp(40px, 4.6vw, 80px); line-height: 1;
  color: var(--rose);
  rotate: -8deg;
  opacity: var(--co, 1);
}

/* Charly, détouré, devant les lettres */
.couverture__sujet {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  height: calc(var(--ecran) * .8);
  aspect-ratio: 970 / 1248;
  transform: translateX(-50%) scale(var(--cz, 1));
  transform-origin: 50% 100%;
}
.couverture__sujet img {
  width: 100%; height: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)) contrast(1.03);
}
/* le cadre de mise au point, sur son visage */
.couverture__mise-au-point {
  position: absolute; left: 22%; top: 8%; width: 30%; height: 20%;
  --c: rgba(243, 231, 211, .9);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 14px 1.5px, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px 14px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 14px 1.5px, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px 14px,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 1.5px, linear-gradient(var(--c), var(--c)) 0 100% / 1.5px 14px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 14px 1.5px, linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px 14px;
  background-repeat: no-repeat;
  animation: mise-au-point 3.2s var(--doux) infinite;
}
@keyframes mise-au-point {
  0%, 100% { transform: scale(1); opacity: .95; }
  12% { transform: scale(1.12); opacity: .6; }
  24% { transform: scale(1); opacity: .95; }
}

/* le viseur */
.viseur {
  position: absolute; z-index: 4;
  inset: calc(var(--entete) + 18px) clamp(18px, 4vw, 64px) clamp(70px, 9vh, 100px);
  transform: scale(var(--vz, 1));
  opacity: var(--co, 1);
  pointer-events: none;
  color: var(--creme);
}
.viseur__coin { position: absolute; width: 42px; height: 42px; border: 0 solid rgba(243, 231, 211, .85); }
.viseur__coin--hg { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.viseur__coin--hd { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.viseur__coin--bg { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.viseur__coin--bd { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.viseur__rec, .viseur__tc {
  position: absolute; top: 18px;
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}
.viseur__rec { left: 22px; }
.viseur__rec i { width: 9px; height: 9px; border-radius: 50%; background: #E2352C; box-shadow: 0 0 10px rgba(226, 53, 44, .7); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
.viseur__tc { right: 22px; }

/* les lignes de couverture */
.couverture__lignes {
  position: absolute; z-index: 5; bottom: clamp(96px, 13vh, 130px);
  display: grid; gap: 14px;
  color: var(--creme);
  opacity: var(--co, 1);
}
.couverture__lignes--g { left: clamp(40px, 7vw, 120px); }
.couverture__lignes--d { right: clamp(40px, 7vw, 120px); text-align: right; }
.couverture__lignes li { display: grid; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); }
.couverture__lignes b {
  font-family: var(--titre); font-weight: 400; font-variation-settings: "opsz" 100;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1; letter-spacing: .02em;
  color: var(--creme);
}
.couverture__indice { z-index: 6; }

/* =====================================================================
   2. LA FEUILLE : démarche, citation, route
   ===================================================================== */
.feuille--apropos { margin-top: 0; }
.demarche {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center;
  padding: clamp(90px, 10vw, 160px) clamp(28px, 6vw, 100px) clamp(40px, 5vw, 80px);
}
.demarche__photo { grid-column: 1 / span 4; margin: 0; }
.demarche__photo .tirage { rotate: -3deg; }
.demarche__texte { grid-column: 6 / span 7; }
.demarche .etiquette { text-align: left; color: var(--vin); }
.demarche .duo__caps { font-size: clamp(54px, 7vw, 120px); }
.demarche .duo__script { font-size: clamp(42px, 5vw, 86px); padding-left: .5em; }
.demarche__chapo {
  margin-top: clamp(14px, 1.6vw, 24px);
  font-family: var(--titre); font-weight: 300; font-variation-settings: "opsz" 60;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15;
  color: var(--bordeaux);
}
.demarche__corps { margin-top: clamp(18px, 2vw, 28px); max-width: 56ch; color: var(--encre-doux); }
.demarche__corps p + p { margin-top: 1em; }

.citation {
  margin: 0; padding: clamp(60px, 7vw, 120px) var(--marge) clamp(70px, 8vw, 130px);
  text-align: center;
}
.citation p {
  max-width: 14em; margin: 0 auto;
  font-family: var(--titre); font-weight: 300; font-variation-settings: "opsz" 70;
  font-size: clamp(32px, 4.6vw, 78px); line-height: 1.08;
  color: var(--encre);
}
.citation em { font-family: var(--script); font-style: normal; font-size: 1.14em; color: var(--vin); }

/* ---------- la route ---------- */
.route { padding: 0 clamp(28px, 6vw, 100px) clamp(110px, 11vw, 180px); }
.route__tete { text-align: center; margin-bottom: clamp(50px, 6vw, 90px); }
.route__tete .etiquette { color: var(--vin); }
.route__tete .duo__caps { font-size: clamp(56px, 8vw, 132px); }
.route__tete .duo__script { font-size: clamp(42px, 5.6vw, 94px); }
.route__sous { margin-top: 18px; color: var(--encre-doux); }

.route__trajet { position: relative; padding: 40px 0 60px; }
.route__chemin { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.route__fond { fill: none; stroke: rgba(110, 25, 50, .22); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.route__trace { fill: none; stroke: var(--vin); stroke-width: 2.2; stroke-linecap: round; }
.route__van {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: clamp(96px, 9vw, 140px); height: auto;
  filter: drop-shadow(0 8px 8px rgba(40, 10, 18, .3));
  will-change: transform;
  pointer-events: none;
}

.etape {
  position: relative; z-index: 2;
  width: 44%;
  margin-bottom: clamp(70px, 9vw, 150px);
  opacity: .25; translate: 0 40px;
  transition: opacity 1s var(--doux), translate 1.2s var(--doux);
}
.etape.est-atteinte, html:not(.js) .etape { opacity: 1; translate: 0 0; }
.etape:last-child { margin-bottom: 0; }
.etape--d { margin-left: auto; }
.etape__annee {
  font-family: var(--titre); font-weight: 300; font-variation-settings: "opsz" 100;
  font-size: clamp(76px, 9vw, 150px); line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--vin);
}
.etape__titre {
  margin-top: 10px;
  font-family: var(--script); font-weight: 400; font-size: clamp(36px, 3.6vw, 58px); line-height: 1;
  color: var(--vin);
}
.etape__texte { margin-top: 12px; max-width: 46ch; color: var(--encre-doux); }
.etape__images { display: flex; gap: 18px; margin-top: 26px; }
.etape__images--trois .carte-postale { flex: 1; }
.etape .bouton { margin-top: 24px; }

.carte-postale {
  position: relative; margin: 0;
  padding: 8px 8px 30px;
  background: var(--fond-papier-clair);
  box-shadow: 0 16px 30px rgba(40, 10, 18, .2);
  rotate: var(--r, 0deg);
  transition: rotate .8s var(--doux);
}
.carte-postale img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.carte-postale figcaption {
  position: absolute; left: 0; right: 0; bottom: 6px;
  text-align: center;
  font-family: var(--script); font-size: 20px; line-height: 1;
  color: var(--vin);
}
.etape__images > .carte-postale:not(.carte-postale--large) { width: 40%; }
.etape__images--trois > .carte-postale:not(.carte-postale--large) { width: auto; }
.etape__images--trois .carte-postale img { aspect-ratio: 4 / 5; }
.carte-postale--large { width: 92%; padding-bottom: 8px; }
.carte-postale--large img { aspect-ratio: 16 / 10; }
@media (hover: hover) { .carte-postale:hover { rotate: 0deg; } }

/* l'étalonnage : le plan brut et le plan final, la ligne glisse au défilement */
.etalonnage {
  position: relative; margin: 26px 0 0;
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  touch-action: pan-y;
  box-shadow: 0 22px 40px rgba(40, 10, 18, .28);
  user-select: none;
}
.etalonnage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.etalonnage__final { clip-path: inset(0 0 0 var(--coupe, 50%)); }
.etalonnage__ligne {
  position: absolute; top: 0; bottom: 0; left: var(--coupe, 50%); z-index: 2;
  width: 1.5px; margin-left: -.75px;
  background: var(--creme);
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.etalonnage__ligne::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 1.5px solid var(--creme);
  background: rgba(28, 11, 15, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23F3E7D3' stroke-width='1.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.etalonnage__mot {
  position: absolute; top: 12px; z-index: 3;
  padding: 5px 10px;
  font-size: 9px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--creme); background: rgba(28, 11, 15, .45);
}
.etalonnage__mot--brut { left: 12px; }
.etalonnage__mot--final { right: 12px; }
.etalonnage figcaption {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px);
  font-size: 12px; font-style: italic; color: var(--encre-doux);
}

/* =====================================================================
   3. JE SUIS, JE NE SUIS PAS
   ===================================================================== */
.suis { padding: clamp(110px, 12vw, 200px) clamp(22px, 6vw, 100px) clamp(100px, 11vw, 180px); color: var(--creme); }
.suis__tete { text-align: center; margin-bottom: clamp(50px, 6vw, 90px); }
.suis__tete .etiquette { color: var(--rose); }
.suis .duo__caps { font-size: clamp(56px, 8vw, 136px); }
.suis .duo__script { font-size: clamp(40px, 5.2vw, 88px); }
.suis__colonnes, .paire {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 6vw, 110px);
  max-width: 1180px; margin: 0 auto;
}
.suis__colonnes {
  padding-bottom: 14px; border-bottom: 1px solid var(--filet-clair);
  font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--rose);
}
.paire { align-items: center; padding: clamp(22px, 2.6vw, 38px) 0; border-bottom: 1px solid var(--filet-clair); }
.paire__non {
  position: relative; justify-self: start;
  font-family: var(--titre); font-weight: 300; font-variation-settings: "opsz" 50;
  font-size: clamp(19px, 1.8vw, 28px); line-height: 1.25;
  color: rgba(243, 231, 211, calc(.92 - var(--b, 0) * .5));
}
.paire__mots::first-letter { text-transform: uppercase; }
.paire__rature {
  position: absolute; left: -2%; top: 50%; width: 104%; height: 26px; margin-top: -11px;
  overflow: visible; pointer-events: none;
}
.paire__rature path {
  fill: none; stroke: #C8231C; stroke-width: 3; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--b, 0));
}
.paire__oui {
  font-family: var(--script); font-size: clamp(30px, 2.8vw, 46px); line-height: 1.1;
  color: var(--rose);
  opacity: var(--o, 0);
  translate: calc((1 - var(--o, 0)) * 40px) 0;
}
.paire__oui::first-letter { text-transform: uppercase; }
html:not(.js) .paire__oui { opacity: 1; translate: none; }

/* =====================================================================
   4. LES PRINCIPES : les cartes s'empilent
   ===================================================================== */
.principes {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: clamp(40px, 5vw, 80px) clamp(22px, 6vw, 100px) clamp(110px, 12vw, 200px);
  color: var(--creme);
}
.principes__tete { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--entete) + 22vh); }
.principes .etiquette { text-align: left; color: var(--rose); }
.principes .duo__caps { font-size: clamp(50px, 6vw, 104px); }
.principes .duo__script { font-size: clamp(40px, 4.4vw, 76px); padding-left: .5em; }
.principes__sous { margin-top: 22px; max-width: 32ch; color: var(--creme-doux); }
.principes__pile { grid-column: 7 / span 6; }
.principe {
  position: sticky; top: calc(var(--entete) + 60px + var(--i) * 26px);
  margin-bottom: calc(var(--ecran) * .32);
  padding: clamp(34px, 3.6vw, 56px) clamp(30px, 3.4vw, 54px) clamp(36px, 3.6vw, 58px);
  background: var(--fond-papier-clair);
  color: var(--encre);
  box-shadow: 0 -6px 30px rgba(10, 0, 3, .3), 0 30px 60px rgba(10, 0, 3, .4);
  rotate: var(--r, 0deg);
}
.principe:last-child { margin-bottom: 0; }
.principe__num { font-size: 10.5px; font-weight: 500; letter-spacing: .26em; color: var(--vin); }
.principe__titre {
  margin-top: 14px;
  font-family: var(--titre); font-weight: 400; font-variation-settings: "opsz" 100;
  font-size: clamp(42px, 4.4vw, 74px); line-height: .9; text-transform: uppercase;
  color: var(--bordeaux);
}
.principe__titre span { display: block; margin-top: -.08em; padding-left: .4em; font-family: var(--script); font-size: .78em; text-transform: none; color: var(--vin); }
.principe p { margin-top: 18px; max-width: 40ch; color: var(--encre-doux); }

/* =====================================================================
   5. HORS CHAMP : le van, l’équipage
   ===================================================================== */
.hors-champ { padding: clamp(80px, 9vw, 150px) clamp(22px, 6vw, 100px) clamp(120px, 12vw, 200px); }
.hors-champ__texte { max-width: 760px; margin: 0 auto; text-align: center; }
.hors-champ .etiquette { color: var(--vin); }
.hors-champ .duo__caps { font-size: clamp(50px, 6.6vw, 112px); }
.hors-champ .duo__script { font-size: clamp(38px, 4.6vw, 78px); }
.hors-champ__corps { margin: 22px auto 0; max-width: 52ch; color: var(--encre-doux); }

/* la corde à linge : les tirages se balancent, plus fort quand on défile vite */
.corde { position: relative; height: clamp(420px, 40vw, 560px); margin-top: clamp(50px, 6vw, 90px); }
.corde__fil { position: absolute; left: -3%; top: 0; width: 106%; height: 80px; overflow: visible; }
.corde__fil path { fill: none; stroke: rgba(70, 45, 30, .7); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.linge {
  position: absolute; left: var(--x); top: 34px;
  width: clamp(170px, 20vw, 300px);
  margin: 0;
  transform-origin: 50% 0;
  rotate: calc(var(--b) + var(--vent, 0deg));
  transition: rotate .4s ease-out;
}
.linge:nth-of-type(2) { top: 52px; }
.linge::before {
  /* la pince à linge */
  content: ""; position: absolute; left: 50%; top: -22px; z-index: 2;
  width: 12px; height: 40px; margin-left: -6px;
  background: linear-gradient(90deg, #B98A5B, #D9B184 45%, #A9794C);
  border-radius: 2px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .25);
}
.linge__tirage {
  padding: 10px 10px 54px;
  background: #F8F3EB;
  box-shadow: 0 20px 36px rgba(40, 10, 18, .25);
  transform-origin: 50% 0;
  animation: balancement 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.linge__tirage img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.linge figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  text-align: center;
  font-family: var(--script); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.05;
  color: var(--vin);
}
@keyframes balancement {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}

/* =====================================================================
   MOBILE
   ===================================================================== */
@media (max-width: 760px) {
  .couverture { height: calc(var(--ecran) * 2); }
  .couverture__nom { top: 31%; font-size: 26vw; transform: translateY(-50%); }
  .couverture__je { left: 6vw; top: calc(31% - 24vw); font-size: 36px; }
  .couverture__sujet { height: calc(var(--ecran) * .54); }
  .viseur { inset: calc(var(--entete) + 10px) 14px 62px; }
  .viseur__coin { width: 26px; height: 26px; }
  .viseur__rec, .viseur__tc { top: 10px; font-size: 9.5px; }
  .viseur__rec { left: 12px; }
  .viseur__tc { right: 12px; }
  .couverture__lignes { bottom: 82px; gap: 8px; }
  .couverture__lignes--g { left: 28px; }
  .couverture__lignes--d { right: 28px; }
  .couverture__lignes li { font-size: 7.5px; letter-spacing: .16em; }
  .couverture__lignes b { font-size: 17px; }

  .demarche { display: flex; flex-direction: column; gap: 40px; padding: 70px 22px 30px; }
  .demarche__photo { width: 64%; align-self: center; }
  .demarche .duo__caps { font-size: 50px; }
  .demarche .duo__script { font-size: 40px; }
  .citation p { font-size: 30px; }

  .route { padding: 0 18px 100px; }
  .route__tete .duo__caps { font-size: 52px; }
  .route__tete .duo__script { font-size: 40px; }
  .route__trajet { padding: 20px 0 40px; }
  .route__van { width: 70px; }
  .etape { width: auto; margin: 0 0 76px 58px; }
  .etape--d { margin-left: 58px; }
  .etape__annee { font-size: 68px; }
  .etape__titre { font-size: 34px; }
  .etape__texte { font-size: 14px; }
  .etape__images { gap: 10px; }
  .carte-postale--large { width: 100%; }
  .etalonnage figcaption { font-size: 11px; }

  .suis { padding: 90px 22px 80px; }
  .suis .duo__caps { font-size: 52px; }
  .suis .duo__script { font-size: 34px; }
  .suis__colonnes { display: none; }
  .paire { grid-template-columns: 1fr; row-gap: 10px; padding: 22px 0; }
  .paire__non { font-size: 18px; }
  .paire__oui { font-size: 28px; }

  .principes { display: block; padding: 30px 22px 90px; }
  .principes__tete { position: static; margin-bottom: 40px; }
  .principes .duo__caps { font-size: 44px; }
  .principes .duo__script { font-size: 36px; }
  .principe { top: calc(var(--entete) + 20px + var(--i) * 16px); margin-bottom: calc(var(--ecran) * .22); padding: 28px 24px 32px; }
  .principe__titre { font-size: 40px; }


  .hors-champ { padding: 60px 22px 130px; }
  .hors-champ .duo__caps { font-size: 46px; }
  .hors-champ .duo__script { font-size: 36px; }
  .corde { height: 330px; margin-top: 40px; }
  .linge { width: 33vw; }
  .linge:nth-of-type(1) { left: -1%; }
  .linge:nth-of-type(2) { left: 33%; top: 50px; }
  .linge:nth-of-type(3) { left: auto; right: -1%; top: 30px; }
  .linge figcaption { font-size: 15px; }
  .linge__tirage { padding-bottom: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .couverture__mise-au-point, .linge__tirage, .viseur__rec i { animation: none; }
}
