/* Accueil et étude de cas : la scène « le site en action » (haut de page), puis les projets et le récit. */

/* Haut de page : « le site en action ». Un ordinateur et un téléphone montrent, métier par métier,
   un visiteur qui accomplit l'action principale du site (devis, réservation, rendez-vous, commande). */

.scene { width: min(1120px, 100%); margin: clamp(40px, 5vw, 64px) auto 0; padding-bottom: clamp(64px, 8vw, 104px); }
.scene__plateau { position: relative; padding: 0 clamp(0px, 13%, 150px) clamp(28px, 4vw, 52px) 0; }

/* ---------- Ordinateur ---------- */
.scene__ordi { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 40px 80px -30px rgb(0 0 0 / .3); }
.scene__barre { height: 32px; background: #fafafa; border-bottom: 1px solid #ececec; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.scene__barre i { width: 10px; height: 10px; border-radius: 50%; background: #e2e2e2; }
.scene__url { margin: 0 auto; font-size: 12px; color: #63636a; background: #f0f0f0; padding: 4px 16px; border-radius: 6px; min-width: 36%; text-align: center; }
.scene__ecran { position: relative; overflow: hidden; aspect-ratio: 960 / 560; background: #f4f4f5; }

/* ---------- Téléphone ---------- */
.scene__tel { position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 360 / 740; border-radius: 38px; padding: 7px; background: var(--noir); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .06) inset; }
.scene__tel-ecran { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #fff; }
.scene__tel-ecran::before { content: ''; position: absolute; z-index: 5; top: 8px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 999px; background: var(--noir); }
.scene__fictif { position: absolute; left: 14px; bottom: calc(clamp(28px, 4vw, 52px) + 14px); z-index: 6; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgb(20 20 20 / .72); padding: 5px 10px; border-radius: 999px; }

/* Le doigt du visiteur : le point vert du logo */
.scene__doigt { position: absolute; z-index: 4; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgb(23 107 83 / .82); box-shadow: 0 0 0 3px rgb(255 255 255 / .9), 0 6px 14px rgb(0 0 0 / .25); opacity: 0; transform: translate(var(--x, 50%), var(--y, 110%)) scale(.6); transition: transform .7s var(--deplacement), opacity .3s var(--sortie); pointer-events: none; }
.scene__doigt.visible { opacity: 1; transform: translate(var(--x), var(--y)) scale(1); }
.scene__doigt::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.scene__doigt.tape::after { animation: tape .5s var(--sortie); }
@keyframes tape { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.8); } }

/* ---------- Mini-sites : dessinés à taille fixe, mis à l'échelle par le script ---------- */
.ms {
  --f: #fff; --t: #1d1d1f; --d: #6e6e73; --a: #1d1d1f; --sa: #fff; --c: #f4f4f5; --titre: 'Inter', sans-serif; --r: 4px;
  position: absolute; top: 0; left: 0; width: 960px; height: 560px; transform-origin: 0 0;
  background: var(--f); color: var(--t); font-family: 'Inter', sans-serif; line-height: 1.4; text-align: left; overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--sortie), visibility 0s .6s;
}
.ms.actif { opacity: 1; visibility: visible; transition: opacity .6s var(--sortie); }
/* Les autres métiers (photos, police) ne se chargent qu'après la page : voir scene.js */
.js .ms:not(.actif):not(.pret) { display: none; }
.ms__in { height: 100%; padding: 22px 40px 26px; display: flex; flex-direction: column; gap: 22px; transform: translateY(14px); transition: transform .9s var(--sortie); }
.ms.actif .ms__in { transform: none; }
.ms img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) * 3); }

.ms-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ms-logo { font-family: var(--titre); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.ms-liens { display: flex; gap: 24px; align-items: center; font-size: 13px; color: var(--d); }
.ms-btn { display: inline-block; background: var(--a); color: var(--sa); border-radius: calc(var(--r) * 6); padding: 9px 18px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ms-cta, .ms-envoyer { transition: transform .15s var(--sortie); }
.ms-cta.appuye, .ms-envoyer.appuye { transform: scale(.94); }
.ms-sur { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--a); font-weight: 700; }
.ms-titre { font-family: var(--titre); font-size: 46px; line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin: 12px 0 14px; }
.ms-par { font-size: 15px; line-height: 1.55; color: var(--d); margin-bottom: 22px; max-width: 380px; }
.ms-bande { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ms-bande > span { background: var(--c); border-radius: calc(var(--r) * 3); padding: 14px 16px; font-size: 12px; color: var(--d); }
.ms-bande b { display: block; font-size: 14px; color: var(--t); margin-bottom: 2px; }

/* Menuiserie : texte + grande photo, savoir-faire en bas */
.ms--menuiserie { --f: #f5f2ed; --t: #2b241e; --d: #6e6258; --a: #7a4a22; --c: #ebe5dc; --r: 2px; }
.ms-split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; flex: 1; min-height: 0; }
.ms-split .ms-photo { height: 100%; min-height: 0; }

/* Restaurant : photo plein cadre, texte posé dessus */
.ms--restaurant { --f: #15211c; --t: #f4eee3; --d: #c9c1b3; --a: #d8a25a; --sa: #15211c; --c: #22312a; --titre: 'Fraunces', serif; --r: 3px; }
.ms-plein { position: relative; flex: 1; min-height: 0; border-radius: calc(var(--r) * 3); overflow: hidden; }
.ms-plein::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(21 33 28 / .94) 0%, rgb(21 33 28 / .7) 42%, rgb(21 33 28 / 0) 75%); }
.ms-plein .ms-texte { position: absolute; z-index: 1; left: 36px; top: 50%; transform: translateY(-50%); max-width: 420px; }
.ms--restaurant .ms-titre { font-weight: 600; font-size: 48px; letter-spacing: -.01em; }
.ms--restaurant .ms-bande > span { padding: 12px 16px; }

/* Garage : photo à gauche, prestations et prix à droite */
.ms--garage { --f: #ffffff; --t: #111827; --d: #5b6474; --a: #d4421a; --c: #f3f4f6; --r: 3px; }
.ms-garage { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; flex: 1; min-height: 0; }
.ms-garage .ms-photo { min-height: 0; }
.ms-garage .ms-titre { font-size: 40px; }
.ms-tarifs { display: grid; gap: 8px; margin: 4px 0 20px; }
.ms-tarifs span { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 12px; background: var(--c); border-radius: calc(var(--r) * 2); }
.ms-tarifs b { color: var(--t); }
.ms-ouvert { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--d); margin-left: 12px; }
.ms-ouvert::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2f9e62; }

/* Boutique : grille de produits */
.ms--boutique { --f: #f3f2ee; --t: #0d0d0d; --d: #6b6b6b; --a: #0d0d0d; --c: #e9e8e3; --r: 0px; }
.ms--boutique .ms-nav { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ms--boutique .ms-logo { font-size: 24px; font-weight: 900; letter-spacing: .02em; }
.ms-collection { display: flex; justify-content: space-between; align-items: flex-end; }
.ms-collection .ms-titre { font-size: 40px; margin: 6px 0 0; text-transform: uppercase; letter-spacing: -.02em; font-weight: 800; }
.ms-produits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; flex: 1; min-height: 0; }
.ms-produit { display: flex; flex-direction: column; gap: 8px; min-height: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ms-produit .ms-photo { flex: 1; min-height: 0; background: #fff; }
.ms-produit img { object-fit: contain; }
.ms-produit span { display: flex; justify-content: space-between; }

/* ---------- Version téléphone (clone placé dans le téléphone) ---------- */
.ms.etroit { width: 360px; height: 740px; }
.ms.etroit .ms__in { padding: 44px 20px 20px; gap: 18px; }
.ms.etroit .ms-liens > span:not(.ms-btn):not(.ms-panier) { display: none; }
.ms picture { display: block; height: 100%; }
.ms.etroit .ms-titre { font-size: 34px !important; }
.ms.etroit .ms-par { font-size: 14px; margin-bottom: 18px; }
.ms.etroit .ms-split, .ms.etroit .ms-garage { grid-template-columns: 1fr; gap: 18px; flex: none; }
.ms.etroit .ms-split .ms-photo, .ms.etroit .ms-garage .ms-photo { height: 200px; order: -1; }
.ms.etroit .ms-bande { grid-template-columns: 1fr; gap: 8px; }
.ms.etroit .ms-plein { flex: none; height: 520px; }
.ms.etroit .ms-plein::after { background: linear-gradient(0deg, rgb(21 33 28 / .96) 0%, rgb(21 33 28 / .75) 48%, rgb(21 33 28 / .1) 100%); }
.ms.etroit .ms-plein .ms-texte { left: 20px; right: 20px; top: auto; bottom: 24px; transform: none; }
.ms.etroit .ms-tarifs span:nth-child(n+3) { display: none; }
.ms.etroit .ms-produits { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px; flex: none; }
.ms.etroit .ms-collection { flex-direction: column; align-items: flex-start; gap: 6px; }

/* La feuille d'action : n'existe que dans le téléphone */
.ms-feuille { display: none; }
.ms.etroit .ms-feuille {
  display: block; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 22px 20px 26px;
  background: var(--f); color: var(--t); border-radius: 22px 22px 0 0; box-shadow: 0 -18px 40px rgb(0 0 0 / .22);
  transform: translateY(102%); transition: transform .55s var(--sortie);
}
.ms--restaurant .ms-feuille { background: #1c2a24; }
.ms.etroit.ouverte .ms-feuille { transform: none; }
.ms-feuille::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--t) 22%, transparent); margin: -8px auto 16px; }
.ms-f-titre { font-family: var(--titre); font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.ms-formulaire { transition: opacity .3s var(--sortie); }
.ms-champ { display: grid; gap: 4px; padding: 10px 12px; margin-bottom: 8px; border-radius: calc(var(--r) * 2 + 6px); background: var(--c); font-size: 11px; color: var(--d); }
.ms-champ b { font-size: 15px; color: var(--t); font-weight: 600; min-height: 1.3em; clip-path: inset(0 100% 0 0); transition: clip-path .5s steps(14, end); }
.ms-champ.rempli b { clip-path: inset(0); }
.ms-puces { display: flex; gap: 6px; font-style: normal; }
.ms-puces i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--t); padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 22%, transparent); transition: background .25s, color .25s, box-shadow .25s; }
.ms-champ.rempli .ms-puces i.choisi { background: var(--a); color: var(--sa); box-shadow: none; }
.ms-envoyer { display: block; text-align: center; margin-top: 14px; padding: 13px; font-size: 15px; }
.ms-ok { position: absolute; left: 20px; right: 20px; bottom: 34px; display: grid; justify-items: center; text-align: center; gap: 6px; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--sortie), transform .45s var(--sortie); pointer-events: none; }
.ms-ok b { font-family: var(--titre); font-size: 22px; letter-spacing: -.01em; }
.ms-ok span { font-size: 14px; color: var(--d); max-width: 260px; }
.ms-coche { width: 56px; height: 56px; border-radius: 50%; background: var(--a); position: relative; transform: scale(.7); transition: transform .5s var(--sortie) .05s; margin-bottom: 6px; }
.ms-coche::after { content: ''; position: absolute; left: 20px; top: 15px; width: 13px; height: 22px; border-right: 3px solid var(--sa); border-bottom: 3px solid var(--sa); transform: rotate(45deg); }
.ms.confirme .ms-formulaire { opacity: 0; }
.ms.confirme .ms-ok { opacity: 1; transform: none; }
.ms.confirme .ms-coche { transform: none; }

/* ---------- Choix du métier, légende ---------- */
.scene__commandes { display: flex; gap: 12px; align-items: stretch; justify-content: center; margin-top: 8px; }
.scene__onglets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1; max-width: 860px; }
.scene__onglet { position: relative; overflow: hidden; text-align: left; border: 0; background: var(--gris); border-radius: 14px; padding: 12px 14px 14px; cursor: pointer; display: grid; gap: 1px; transition: background .2s, transform .15s var(--sortie); }
.scene__onglet:active { transform: scale(.97); }
.scene__onglet[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 1px var(--trait), 0 10px 24px -14px rgb(0 0 0 / .3); }
.scene__metier { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.scene__usage { font-size: 13px; color: #6e6e73; }
.scene__jauge { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.scene__onglet[aria-pressed="true"] .scene__jauge { opacity: 1; }
.scene__legende { margin-top: 16px; font-size: 15px; color: var(--doux); min-height: 1.5em; }
.scene__legende b { color: var(--texte); font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .scene__onglet:hover { background: #ececec; }
  .scene__onglet[aria-pressed="true"]:hover { background: #fff; }
}

/* Sans JS : un seul métier, sans téléphone ni commandes */
html:not(.js) .scene__tel, html:not(.js) .scene__commandes, html:not(.js) .scene__legende { display: none; }
html:not(.js) .scene__plateau { padding-right: 0; }

@media (max-width: 760px) {
  .scene { margin-top: 36px; padding-bottom: 64px; }
  .scene__plateau { padding: 0; display: flex; justify-content: center; }
  .scene__ordi { display: none; }
  .scene__tel { position: relative; width: min(290px, 76vw); }
  .scene__fictif { left: 50%; transform: translateX(-50%); bottom: -34px; }
  .scene__commandes { margin-top: 52px; }
  .scene__onglets { grid-template-columns: 1fr 1fr; }
  .scene__metier { font-size: 14px; }
  .scene__usage { font-size: 12px; }
  .scene__legende { padding: 0 8px; }
  html:not(.js) .scene__ordi { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  /* .ms garde son scale() posé par scene.js (mise à l'échelle de la maquette) : seules ses transitions sont coupées. */
  .ms, .ms.actif { transition: opacity .2s ease !important; }
  .ms__in, .ms-feuille, .ms-champ b, .ms-ok, .ms-coche, .ms-formulaire { transition: opacity .2s ease !important; transform: none !important; }
  .ms.etroit .ms-feuille { transform: translateY(102%) !important; }
  .ms.etroit.ouverte .ms-feuille { transform: none !important; }
  .scene__doigt { display: none; }
  .scene__jauge { display: none; }
}

/* Projets (accueil) et étude de cas (realisation.html).
   Grand écran : la scène reste fixe et le défilement fait passer d'un projet à l'autre.
   Téléphone, petit écran ou mouvement réduit : les projets se suivent et apparaissent à leur arrivée.
   Sans JS (pas de classe .js), tout est affiché à plat. */

.projets { background: var(--noir); color: #fff; padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 6vw, 80px); }
.projets .surtitre { color: #5cc9a0; }
.projets .titre-section span { color: #a1a1a6; }
.projets__entete { margin-bottom: clamp(32px, 4vw, 56px); }
.projets__scene { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.projet { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: 24px 0 64px; }
.projet__compteur { font-size: 14px; font-weight: 600; color: #f5f5f7; letter-spacing: .04em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.projet__compteur span { color: #a1a1a6; }
.projets .pastille { background: #2a2a2d; color: #f5f5f7; box-shadow: none; }
.projets .pastille--reelle { background: var(--accent); color: #fff; }
.projet__titre { font-size: clamp(30px, 3.1vw, 42px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.projet__titre span { display: block; color: #a1a1a6; }
.projet__resume { margin-top: 16px; font-size: 17px; color: #d2d2d7; max-width: 440px; }
.projets .livre { margin: 20px 0 26px; color: #d2d2d7; font-size: 15px; }
.projets .livre li::before { border-color: #5cc9a0; }
.projets .liens { margin-bottom: 14px; }
.projet__resume + .liens { margin-top: 28px; } /* « Votre projet » : pas de liste entre le texte et les boutons */
.projets .lien { color: #5cc9a0; }
.projets .mention { color: #a1a1a6; }

.projet__ecrans { position: relative; padding: 0 clamp(16px, 3vw, 36px) 36px 0; }
.projet__ordi { border-radius: 12px; overflow: hidden; background: #1d1d1f; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 80px -30px rgb(0 0 0 / .8); }
.projet__ordi img { width: 100%; }
.projet__tel { position: absolute; right: 0; bottom: 0; width: 25%; border-radius: 24px; overflow: hidden; border: 5px solid #2c2c2e; background: #000; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8); }

/* « Votre projet » : un site encore vide, prêt à commencer */
.projet__vide { position: relative; aspect-ratio: 1470 / 776; background: #fff; display: grid; align-content: center; justify-items: start; gap: 14px; padding: 0 12%; }
.projet__url { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #63636a; background: #f0f0f0; padding: 4px 16px; border-radius: 6px; }
.projet__vide i { display: block; height: 14px; width: 46%; border-radius: 4px; background: #ececee; }
.projet__vide i:first-of-type { height: 34px; width: 70%; }
.projet__vide i:nth-of-type(2) { height: 34px; width: 52%; }
.projet__vide b { display: block; width: 3px; height: 34px; background: var(--accent); margin-top: -82px; margin-left: calc(52% + 6px); animation: curseur 1s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }

.projets__reperes { display: none; }

/* ---------- Mise en scène (seulement avec JS) ---------- */
.js .projet__texte > * { opacity: 0; transform: translateY(28px); transition: opacity .5s var(--sortie), transform .8s var(--sortie); }
.js .projet.actif .projet__texte > * { opacity: 1; transform: none; }
.js .projet.actif .projet__texte > :nth-child(2) { transition-delay: .05s; }
.js .projet.actif .projet__texte > :nth-child(3) { transition-delay: .1s; }
.js .projet.actif .projet__texte > :nth-child(4) { transition-delay: .15s; }
.js .projet.actif .projet__texte > :nth-child(5) { transition-delay: .2s; }
.js .projet.actif .projet__texte > :nth-child(6) { transition-delay: .25s; }
.js .projet.actif .projet__texte > :nth-child(7) { transition-delay: .3s; }
.js .projet.passe .projet__texte > * { transform: translateY(-28px); }

/* L'écran d'ordinateur se dévoile de bas en haut, puis s'efface vers le haut */
.js .projet .projet__ordi { clip-path: inset(100% 0 0 0 round 12px); transition: clip-path .95s var(--deplacement); }
.js .projet .projet__ordi img, .js .projet .projet__ordi .projet__url { transform: scale(1.08); transition: transform 1.3s var(--sortie); }
.js .projet.actif .projet__ordi { clip-path: inset(0 0 0 0 round 12px); }
.js .projet.actif .projet__ordi img, .js .projet.actif .projet__ordi .projet__url { transform: none; }
.js .projet.passe .projet__ordi { clip-path: inset(0 0 100% 0 round 12px); }
.js .projet .projet__tel { opacity: 0; transform: translateY(70px); transition: opacity .6s var(--sortie), transform 1s var(--sortie); }
.js .projet.actif .projet__tel { opacity: 1; transform: none; transition-delay: .25s; }
.js .projet.passe .projet__tel { transform: translateY(-50px); transition-delay: 0s; }

/* Grand écran : la scène reste fixe pendant le défilement */
@media (min-width: 901px) and (min-height: 601px) and (prefers-reduced-motion: no-preference) {
  .js .projets__piste { height: calc(100svh + 3 * 70svh); }
  .js .projets__scene { position: sticky; top: var(--entete); height: calc(100svh - var(--entete)); display: grid; align-items: center; padding-left: 76px; }
  /* Projets inactifs transparents mais atteignables au clavier : le focus amène la scène sur eux (projets.js). */
  .js .projet { grid-area: 1 / 1; padding: 0; opacity: 0; pointer-events: none; transition: opacity .4s var(--sortie) .3s; }
  .js .projet.actif { opacity: 1; pointer-events: auto; transition-delay: 0s; }
  .js .projets__reperes { display: flex; gap: 14px; align-items: center; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
  .projets__fil { display: block; width: 2px; height: 168px; border-radius: 2px; background: #2c2c2e; overflow: hidden; }
  .projets__fil i { display: block; height: 100%; background: #5cc9a0; transform: scaleY(0); transform-origin: 50% 0; }
  .projets__reperes ol { display: grid; gap: 22px; font-size: 12px; font-weight: 600; color: #6e6e73; font-variant-numeric: tabular-nums; }
  .projets__reperes li { transition: color .3s; }
  .projets__reperes li.actif { color: #fff; }
  .projet__ecrans { max-height: calc(100svh - var(--entete) - 80px); }
}

@media (max-width: 900px) {
  .projet { grid-template-columns: 1fr; gap: 28px; padding-bottom: 88px; }
  .projet__ecrans { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .projet__texte > *, .js .projet .projet__ordi, .js .projet .projet__ordi img, .js .projet .projet__tel { opacity: 1; transform: none; clip-path: none; transition: none; }
  .projet__vide b { animation: none; }
}

/* ---------- Étude de cas : le récit, image fixe à gauche, étapes à droite ---------- */
.cas-entete { padding: clamp(56px, 8vw, 104px) 0 0; }
.cas-entete .titre-section { font-size: clamp(40px, 6.5vw, 80px); letter-spacing: -.045em; }
.cas-entete .liens { margin-top: 26px; }
.cas-ecrans { position: relative; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 clamp(20px, 6%, 80px) 48px 0; }
.cas-ecrans .projet__ordi { box-shadow: 0 0 0 1px var(--trait), 0 40px 80px -30px rgb(0 0 0 / .35); background: #fff; }
.cas-ecrans .projet__tel { border-color: var(--noir); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .4); }

.recit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); }
.recit__visuel { position: sticky; top: calc(var(--entete) + 8vh); align-self: start; }
.recit__pile { position: relative; }
.recit__pile > picture { display: block; }
.recit__pile > picture + picture { position: absolute; inset: 0; }
.recit__pile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.recit__pile > picture + picture { opacity: 0; }
/* Sans JavaScript : première image visible et textes pleinement lisibles ; le récit animé n'existe qu'avec .js. */
.js .recit__pile > picture { opacity: 0; transform: scale(1.03); transition: opacity .6s var(--sortie), transform .9s var(--sortie); }
.js .recit__pile > picture.actif { opacity: 1; transform: none; }
.recit__visuel .projet__tel { width: 27%; border-color: var(--noir); }
.recit__visuel .projet__tel .recit__pile { aspect-ratio: 600 / 1298; }
.recit__visuel .projet__ordi { background: #fff; box-shadow: 0 0 0 1px var(--trait), 0 40px 80px -30px rgb(0 0 0 / .35); }
.recit__visuel .projet__ordi .recit__pile { aspect-ratio: 1470 / 776; }
.recit__etapes { display: grid; }
.recit__etape { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.js .recit__etape { opacity: .3; transition: opacity .5s var(--sortie); }
.js .recit__etape.actif { opacity: 1; }
.recit__etape h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 12px; }
.recit__etape p { color: var(--doux); font-size: 17px; }
.recit__numero { font-size: 13px; font-weight: 600; color: var(--accent); }
.recit__mini { display: none; }

.autres { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.autre { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--trait); display: flex; flex-direction: column; }
.autre__image { aspect-ratio: 1470 / 776; overflow: hidden; }
.autre__image img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--sortie); }
.autre__texte { padding: 24px 26px 28px; display: grid; gap: 8px; justify-items: start; }
.autre__texte .pastille { margin-bottom: 4px; }
.autre h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.autre p { color: var(--doux); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .autre:hover .autre__image img { transform: scale(1.03); }
}

@media (max-width: 900px) {
  .recit { grid-template-columns: 1fr; }
  .recit__visuel { display: none; }
  .recit__etape, .js .recit__etape { min-height: 0; opacity: 1; padding: 28px 0; }
  .recit__mini { display: block; margin-top: 20px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--trait), 0 24px 48px -24px rgb(0 0 0 / .3); }
  .recit__mini--tel { width: min(240px, 66%); margin-inline: auto; border-radius: 30px; border: 6px solid var(--noir); box-shadow: 0 24px 48px -20px rgb(0 0 0 / .35); }
  .autres { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js .recit__pile > picture, .js .recit__etape { transition: none; transform: none; }
}
