/* ==========================================================================
   Effet « Le téléphone » — Ctrl-Data sur téléphone (16/11/2026, soir)
   Accueil général (#telephone : assistant, contacts, véhicules ; puis « votre
   application mobile ») et accueil BTP (#telephone : commandes, matériel,
   photos du chantier). Va avec assets/js/effets/telephone.js.
   Les écrans dessinés reprennent les libellés de l'application (mobile-pro/).
   Sommaire : 1. la section (texte + téléphone) · 2. onglets et Rejouer ·
   3. le téléphone · 4. les écrans (éléments communs) · 5. dessins (visée,
   carte de visite, QR, photos, carte) · 6. le scénario (classes posées par
   telephone.js) · 7. « votre application » (accueil général) · 8. mouvement réduit.
   Jetons seulement (base.css) : aucune couleur écrite en dur, deux modes.
   Sans JavaScript : la première scène, complète.
   ========================================================================== */

/* ---------- 1. La section : le texte à gauche, le téléphone à droite ---------- */
.tel-section { overflow-x: clip; }
.tel-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 48px); align-items: center; }
@media (min-width: 960px) { .tel-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tel-texte > * + * { margin-top: var(--espace-6); }
.tel-texte__titre { max-width: 13ch; font-size: clamp(2.1rem, .85rem + 3.7vw, 4.6rem); }
.tel-texte .chapeau { max-width: 30ch; }
.tel-liste { list-style: none; padding: 0; max-width: 46rem; border-bottom: 1px solid var(--filet); }
.tel-liste li {
  position: relative;
  padding: 12px 0 12px 26px;
  font-size: var(--t-petit);
  line-height: 1.5;
  color: var(--texte-2);
  border-top: 1px solid var(--filet);
}
.tel-liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 12px; height: 1px;
  background-color: var(--accent-texte);
}
.tel-liste b { font-weight: 600; color: var(--texte); }
.tel-note { font-size: var(--t-petit); line-height: 1.5; color: var(--texte-2); }

.tel { display: grid; justify-items: center; gap: clamp(16px, 2vw, 24px); min-width: 0; }

/* ---------- 2. Onglets (rectangulaires) + Rejouer ---------- */
.tel__commandes { display: flex; align-items: stretch; gap: 6px; width: min(100%, 26rem); }
html:not(.js) .tel__commandes { display: none; }
.js .tel:not(.tel--js) .tel__commandes { visibility: hidden; }
.tel__onglets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1 1 auto; }
.tel__onglet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 48px;
  padding: 8px 10px 10px;
  overflow: hidden;
  text-align: left;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--texte-2);
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duree-courte) ease, background-color var(--duree-courte) ease, border-color var(--duree-courte) ease;
}
.tel__onglet:hover { color: var(--texte); border-color: var(--texte-2); }
.tel__onglet[aria-selected="true"] { color: var(--fond); background-color: var(--texte); border-color: var(--texte); }
.tel__onglet-num { font-family: var(--police-mono); font-size: var(--t-mono-petit); letter-spacing: var(--interlettrage-mono); opacity: .72; }
/* Téléphone étroit : chaque onglet prend la largeur de son mot (« Photographier » entier) */
@media (max-width: 459px) {
  .tel__onglets { display: flex; }
  .tel__onglet { flex: 1 1 auto; min-width: 0; padding-inline: 8px; }
}
.tel__jauge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background-color: var(--tampon);
  transform: scaleX(0);
  transform-origin: left center;
}
.tel__rejouer { flex: none; display: grid; place-items: center; width: 48px; padding: 0; }
.tel__rejouer svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  transition: transform .7s var(--sortie);
}
.tel__rejouer:hover svg { transform: rotate(-200deg); }

/* ---------- 3. Le téléphone (un objet : coins arrondis d'appareil, pas de bouton en pilule) ---------- */
.tel__appareil {
  --tel-l: clamp(250px, 21vw, 288px);
  position: relative;
  width: var(--tel-l);
  aspect-ratio: 288 / 590;
  padding: 9px;
  background-color: var(--fond-3);
  border: 1px solid var(--filet-fort);
  border-radius: 34px;
  box-shadow: 0 50px 100px -50px var(--ombre-feuille), 0 3px 10px -4px var(--ombre-feuille);
}
.tel__appareil::before { /* le bouton de côté */
  content: "";
  position: absolute;
  top: 22%; right: -3px;
  width: 3px; height: 44px;
  background-color: var(--filet-fort);
  border-radius: 0 2px 2px 0;
}
.tel__encoche {
  position: absolute;
  top: 17px; left: 50%;
  z-index: 3;
  width: 30%; height: 16px;
  background-color: var(--fond-3);
  border-radius: 5px;
  transform: translateX(-50%);
}
.tel__ecran {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  font-size: .75rem;
  line-height: 1.35;
  background-color: var(--fond);
  border: 1px solid var(--filet);
  border-radius: 26px;
}
.tel__ecran p { max-width: none; }
.tel__scene {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 42px 14px 0;
}
.js .tel--js .tel__scene:not(.est-active) { visibility: hidden; }
html:not(.js) .tel__scene + .tel__scene,
.js .tel:not(.tel--js) .tel__scene + .tel__scene { display: none; }

/* ---------- 4. Les écrans : éléments communs ---------- */
.tel__tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 12px; }
.tel__titre { font-family: var(--police-titre); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.tel__sous,
.tel__section,
.tel__etat,
.tel__source {
  font-family: var(--police-mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: var(--interlettrage-mono);
  text-transform: uppercase;
  color: var(--texte-2);
}
.tel__ic { align-self: center; width: 14px; height: 14px; background-color: var(--tampon-fort); border-radius: 3px; }
.tel__corps { position: relative; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; min-height: 0; }

.tel__bulle { padding: 8px 10px 9px; border-radius: 4px; }
.tel__bulle--moi { align-self: flex-end; max-width: 86%; background-color: var(--fond-3); }
.tel__bulle--ia { display: grid; gap: 6px; background-color: var(--fond-2); box-shadow: inset 2px 0 0 var(--tampon); }
.tel__lien { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-texte); }
.tel__lien .fleche { width: 11px; height: 11px; }

.tel__etat { display: inline-flex; align-items: center; gap: 6px; }
.tel__points { display: inline-flex; gap: 3px; }
.tel__points i { width: 3px; height: 3px; background-color: currentColor; }
.tel__points i:nth-child(2) { --k: 1; }
.tel__points i:nth-child(3) { --k: 2; }

.tel__saisie {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 10px 0 16px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--filet-fort);
  border-radius: 4px;
}
.tel__saisie-texte,
.tel__saisie-vide { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--texte-2); }
.tel__saisie-texte { position: absolute; inset: 0 60px 0 10px; color: var(--texte); }
.tel__saisie-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  color: var(--texte-2);
  border: 1px solid var(--filet);
  border-radius: 3px;
}
.tel__saisie-ic svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tel__onde { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.tel__onde i { width: 2px; height: 100%; background-color: var(--tampon); transform: scaleY(var(--h, .4)); }
.tel__onde i:nth-child(1) { --h: .35; --k: 0; }
.tel__onde i:nth-child(2) { --h: .8; --k: 1; }
.tel__onde i:nth-child(3) { --h: .55; --k: 2; }
.tel__onde i:nth-child(4) { --h: 1; --k: 3; }
.tel__onde i:nth-child(5) { --h: .6; --k: 4; }
.tel__onde i:nth-child(6) { --h: .9; --k: 5; }
.tel__onde i:nth-child(7) { --h: .45; --k: 6; }
.tel__onde i:nth-child(8) { --h: .7; --k: 7; }

.tel__bouton {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 10px;
  font-weight: 600;
  text-align: center;
  color: var(--sur-tampon);
  background-color: var(--tampon-fort);
  border-radius: 4px;
  transition: transform .18s var(--sortie), opacity .18s ease;
}
.tel__bouton--ligne { font-weight: 500; color: var(--texte); background-color: transparent; box-shadow: inset 0 0 0 1px var(--filet-fort); }

.tel__liste { list-style: none; padding: 0; border-bottom: 1px solid var(--filet); }
.tel__liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid var(--filet); }
.tel__liste b { flex: none; font-weight: 600; }
.tel__liste small { display: block; font-size: .625rem; color: var(--texte-2); }
.tel__accent { color: var(--accent-texte); }

.tel__fiche { display: grid; gap: 6px; padding: 9px 10px 10px; background-color: var(--fond-2); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--filet); }
.tel__fiche-tete { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.tel__case {
  display: grid;
  place-items: center;
  width: 13px; height: 13px;
  color: var(--sur-tampon);
  background-color: var(--tampon-fort);
  border-radius: 2px;
}
.tel__case svg,
.tel__ok svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.tel__champs { display: grid; gap: 5px; margin: 0; }
.tel__champs > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); align-items: center; gap: 8px; }
.tel__champs dt { font-size: .625rem; color: var(--texte-2); }
.tel__champs dd { margin: 0; }
.tel__barre { display: block; width: var(--l, 70%); height: 6px; background-color: var(--texte-2); opacity: .55; border-radius: 1px; }

.tel__ok { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.tel__ok svg { width: 11px; height: 11px; color: var(--accent-texte); }
.tel__progres { display: block; height: 3px; margin-top: 6px; background-color: var(--filet); }
.tel__progres i { display: block; height: 100%; background-color: var(--tampon); transform-origin: left center; }

.tel__depot { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 4px; background-color: var(--fond-2); }
.tel__depot-texte { flex: 1; min-width: 0; }

.tel__tampon {
  --tampon-taille: .78rem;
  --tampon-rotation: -9deg;
  position: absolute;
  left: 4px;          /* à gauche : le bouton IA occupe le coin droit */
  bottom: 16px;
  z-index: 2;
  pointer-events: none;
}

/* La barre d'onglets de l'application, et le bouton de l'assistant (carré, coins de 4 px) */
.tel__onglets-app {
  display: flex;
  justify-content: space-around;
  gap: 4px;
  margin: auto -14px 0;
  padding: 10px 6px 18px;
  font-family: var(--police-mono);
  font-size: .5rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--texte-2);
  background-color: var(--fond-2);
  border-top: 1px solid var(--filet);
}
.tel__onglets-app span { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 4px; text-align: center; }
.tel__onglets-app span::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; opacity: .8; }
.tel__onglets-app .est-actif { color: var(--accent-texte); }
.tel__onglets-app .est-actif::before { background-color: currentColor; }
.tel__ia {
  position: absolute;
  right: 12px;
  bottom: 74px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  font-family: var(--police-mono);
  font-size: .625rem;
  font-weight: 500;
  color: var(--sur-tampon);
  background-color: var(--tampon-fort);
  border-radius: 6px;
  box-shadow: 0 8px 18px -8px var(--ombre-feuille);
}

/* ---------- 5. Dessins : visée, carte de visite, QR, photos, petite carte ---------- */
.tel__visee {
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  background-color: var(--fond-3);
  border-radius: 4px;
  overflow: hidden;
}
.tel__visee::before { /* les coins de la visée */
  content: "";
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(var(--texte), var(--texte)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--texte), var(--texte)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--texte), var(--texte)) top right / 14px 1.5px no-repeat,
    linear-gradient(var(--texte), var(--texte)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--texte), var(--texte)) bottom left / 14px 1.5px no-repeat,
    linear-gradient(var(--texte), var(--texte)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--texte), var(--texte)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--texte), var(--texte)) bottom right / 1.5px 14px no-repeat;
  opacity: .7;
}
.tel__carte-visite {
  display: grid;
  align-content: center;
  gap: 6px;
  width: 58%;
  aspect-ratio: 85 / 55;
  padding: 0 12px;
  background-color: var(--fond);
  border-radius: 3px;
  box-shadow: 0 6px 14px -6px var(--ombre-feuille);
  transform: rotate(-4deg);
}
.tel__carte-visite i { display: block; width: var(--l, 60%); height: 4px; background-color: var(--texte-2); opacity: .7; }
.tel__carte-visite i:first-child { height: 6px; background-color: var(--texte); }
.tel__qr {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  width: 64px; height: 64px;
  padding: 6px;
  background-color: var(--fond);
  border-radius: 2px;
}
.tel__qr i { background-color: var(--texte); }
.tel__qr i.v { background-color: transparent; }
.tel__photo { flex: none; display: grid; align-content: center; gap: 3px; width: 34px; height: 44px; padding: 5px; background-color: var(--fond); box-shadow: inset 0 0 0 1px var(--filet-fort); border-radius: 2px; }
.tel__photo i { display: block; height: 2px; width: var(--l, 80%); background-color: var(--texte-2); }
.tel__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tel__photos span {
  aspect-ratio: 1;
  background-color: var(--fond-3);
  background-image:
    linear-gradient(160deg, transparent 55%, var(--filet-fort) 55%, var(--filet-fort) 62%, transparent 62%),
    linear-gradient(to top, var(--filet-fort) 30%, transparent 30%);
  border-radius: 3px;
}
.tel__proche { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background-color: var(--fond-2); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--filet); }
.tel__proche b { display: block; font-weight: 600; }
.tel__proche small { display: block; font-size: .625rem; color: var(--texte-2); }
.tel__repere { flex: none; width: 10px; height: 10px; background-color: var(--tampon); transform: rotate(45deg); }
.tel__question { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--texte-2); }
.tel__oui { flex: none; padding: 4px 9px; font-weight: 600; color: var(--texte); border-radius: 3px; box-shadow: inset 0 0 0 1px var(--filet-fort); transition: background-color .2s ease, color .2s ease; }
.tel__plan {
  position: relative;
  height: 74px;
  border-radius: 4px;
  background-color: var(--fond-2);
  background-image:
    linear-gradient(var(--filet) 1px, transparent 1px),
    linear-gradient(90deg, var(--filet) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px var(--filet);
}
.tel__plan::before { /* une route */
  content: "";
  position: absolute;
  left: -10%; right: -10%; top: 58%;
  height: 5px;
  background-color: var(--filet-fort);
  transform: rotate(-8deg);
}
.tel__plan .tel__repere { position: absolute; left: 58%; top: 34%; width: 12px; height: 12px; box-shadow: 0 0 0 4px var(--fond-2); }

/* ---------- 6. Le scénario (seulement quand le script a pris la main : .tel--pret) ----------
   Chaque élément [data-ph] reçoit .est-vu quand son étape arrive (et le perd à data-ph-fin) ;
   la scène porte ph-1, ph-2… cumulées. Transitions écrites sur l'état « allumé » seulement. */

/* Sans script (ou fini, ou mouvement réduit) : les passagers ne se voient pas */
[data-ph-fin] { opacity: 0; }

.tel--pret [data-ph]:not(.est-vu),
.tel--pret [data-ph-fin]:not(.est-vu) { opacity: 0; transform: translateY(6px); }
.tel--pret [data-ph].est-vu,
.tel--pret [data-ph-fin].est-vu {
  opacity: 1;
  transform: none;
  transition: opacity .35s var(--sortie-douce), transform .55s var(--sortie);
}

/* Assistant : pendant la dictée, la saisie écoute */
.tel--pret .tel__scene.ph-1:not(.ph-2) .tel__saisie-vide { opacity: 0; }
.tel--pret .tel__scene.ph-1:not(.ph-2) .tel__saisie { box-shadow: inset 0 0 0 1px var(--tampon); }
.tel--pret.tel--visible .est-vu .tel__onde i { animation: tel-onde .7s ease-in-out calc(var(--k) * -90ms) infinite alternate; }
@keyframes tel-onde { from { transform: scaleY(.2); } to { transform: scaleY(var(--h)); } }
.tel--pret.tel--visible .est-vu .tel__points i { animation: tel-points .9s ease-in-out calc(var(--k, 0) * .15s) infinite; }
@keyframes tel-points {
  0%, 60%, 100% { transform: none; opacity: .35; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Visée : le déclencheur (les coins se resserrent un instant) */
.tel--pret .tel__scene.ph-2 .tel__visee::before { animation: tel-declic .45s var(--sortie); }
@keyframes tel-declic { 40% { transform: scale(.94); opacity: 1; } }

/* Fiche proposée : les champs arrivent l'un après l'autre */
.tel--pret .tel__scene:not(.ph-3) .tel__champs > div { opacity: 0; transform: translateX(-6px); }
.tel--pret .tel__scene.ph-3 .tel__champs > div { transition: opacity .3s var(--sortie-douce) calc(var(--k, 0) * 140ms + 150ms), transform .5s var(--sortie) calc(var(--k, 0) * 140ms + 150ms); }

/* Boutons touchés */
.tel--pret .tel__scene[data-touche="2"].ph-2 [data-touche-ici],
.tel--pret .tel__scene[data-touche="3"].ph-3 [data-touche-ici],
.tel--pret .tel__scene[data-touche="4"].ph-4 [data-touche-ici],
.tel--pret .tel__scene[data-touche="5"].ph-5 [data-touche-ici] { animation: tel-toucher .5s var(--sortie); }
@keyframes tel-toucher { 30% { transform: scale(.95); opacity: .78; } }
.tel--pret .tel__scene.ph-2 .tel__oui { color: var(--sur-tampon); background-color: var(--tampon-fort); box-shadow: none; }
.tel:not(.tel--pret) .tel__oui { color: var(--sur-tampon); background-color: var(--tampon-fort); box-shadow: none; }

/* La barre d'envoi avance */
.tel--pret .tel__scene:not(.ph-3) .tel__progres i { transform: scaleX(0); }
.tel--pret .tel__scene.ph-3 .tel__progres i { transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); }

/* Le repère tombe sur la carte */
.tel--pret .tel__scene.ph-5 .tel__plan .tel__repere { animation: tel-repere .6s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
@keyframes tel-repere { from { transform: translateY(-16px) rotate(45deg); opacity: 0; } to { transform: rotate(45deg); opacity: 1; } }

/* ---------- 7. Accueil général : « On développe aussi votre application mobile » ---------- */
.tel-vous {
  position: relative;
  display: grid;
  gap: var(--espace-5) clamp(16px, 2vw, 32px);
  align-items: end;
  margin-top: clamp(56px, 7vw, 112px);
  padding: clamp(24px, 3.4vw, 48px);
  background-color: var(--fond-2);
  border-radius: var(--rayon);
  box-shadow: inset 0 0 0 1px var(--filet);
}
.tel-vous::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background-color: var(--tampon);
  border-radius: var(--rayon) var(--rayon) 0 0;
}
@media (min-width: 900px) { .tel-vous { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.tel-vous__texte > * + * { margin-top: var(--espace-5); }
.tel-vous__titre {
  max-width: 20ch;
  font-family: var(--police-titre);
  font-size: clamp(1.7rem, 1rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
}
.tel-vous__titre em { display: block; }
.tel-vous__chapeau { max-width: 52ch; color: var(--texte-2); }
.tel-vous__action { display: flex; }
@media (min-width: 900px) { .tel-vous__action { justify-content: flex-end; } }

/* ---------- 7 bis. Téléphone (17/11/2026) : la section tient en moins d'écrans ----------
   Demande de Maxime : « on scrolle énormément ». Au téléphone seulement (rien ne change au-dessus
   de 600 px), sur l'accueil général ET l'accueil BTP :
   - en-tête resserré, téléphone dessiné un peu plus petit ;
   - avec le script, la liste des trois gestes devient la LÉGENDE de l'onglet choisi : elle passe
     sous le téléphone et ne montre que le geste en cours (les deux autres restent lus par les
     lecteurs d'écran, transparents, empilés au même endroit : la hauteur ne saute pas) ;
   - sans script : la liste reste à sa place, plus serrée. */
@media (max-width: 600px) {
  .tel-grille { row-gap: var(--espace-6); }
  .tel-texte > * + * { margin-top: var(--espace-4); }
  .tel-texte__titre { font-size: var(--t-2); }   /* l'échelle des titres du téléphone (base.css) */
  .tel-liste li { padding: 9px 0 9px 22px; }
  .tel-liste li::before { top: 20px; }
  .tel { gap: 14px; }

  /* Le téléphone : un peu plus petit, l'écran garde tout ce qu'il montre */
  .tel__appareil { --tel-l: 226px; aspect-ratio: 288 / 572; padding: 8px; border-radius: 30px; }   /* 2e passe : 240 → 226 */
  .tel__ecran { border-radius: 23px; }
  .tel__encoche { top: 15px; height: 14px; }
  .tel__scene { padding-top: 36px; }
  .tel__onglets-app { padding-bottom: 14px; }
  .tel__ia { bottom: 66px; }

  /* La légende de l'onglet choisi (seulement quand le script a pris la main : .tel--js) */
  .tel-grille:has(.tel--js) { row-gap: 0; }
  .tel-grille:has(.tel--js) .tel-texte { display: contents; }
  .tel-grille:has(.tel--js) .tel { margin-top: var(--espace-5); }
  .tel-grille:has(.tel--js) .tel-liste {
    order: 1;
    display: grid;
    margin-top: var(--espace-4);
    border-bottom: 0;
  }
  .tel-grille:has(.tel--js) .tel-note { order: 2; margin-top: var(--espace-3); }
  .tel-grille:has(.tel--js) .tel-liste li {
    grid-area: 1 / 1;
    padding: 0 0 0 22px;
    border-top: 0;
    opacity: 0;
    pointer-events: none;
  }
  .tel-grille:has(.tel--js) .tel-liste li::before { top: 11px; }

  /* Accueil général : « On développe aussi votre application mobile » redit la section « Sur mesure »
     plus bas. Au téléphone, la carte devient UNE ligne : le titre, puis la flèche de son lien ; toute la
     carte se touche. L'étiquette et le chapeau restent dans la page (lus par les lecteurs d'écran), le lien
     garde son nom « Voir le sur-mesure ». Ordinateur inchangé. (2e passe du 17/11/2026) */
  .tel-vous {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--espace-4);
    margin-top: var(--espace-6);
    padding: 15px 16px 14px 18px;
  }
  .tel-vous__texte > :not(.tel-vous__titre) {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tel-vous__texte > * + * { margin-top: 0; }
  .tel-vous__titre { max-width: none; font-size: 1.1875rem; line-height: 1.12; letter-spacing: -.02em; }
  .tel-vous__titre em { display: inline; }
  .tel-vous__action .bouton {
    position: static;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    font-size: 0;            /* le libellé reste le nom du lien ; seule la flèche se voit */
    color: var(--accent-texte);
  }
  .tel-vous__action .bouton::before { display: none; }
  .tel-vous__action .bouton::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
  .tel-vous__action .fleche { width: 18px; height: 18px; margin: 0; }
  .tel-vous__action .bouton:focus-visible { outline: none; }
  .tel-vous:has(.bouton:focus-visible) { outline: 2px solid var(--accent-texte); outline-offset: 2px; }
  .tel-vous:has(.bouton:active) { background-color: var(--fond); }
  .tel-grille:has(.tel__onglet:nth-child(1)[aria-selected="true"]) .tel-liste li:nth-child(1),
  .tel-grille:has(.tel__onglet:nth-child(2)[aria-selected="true"]) .tel-liste li:nth-child(2),
  .tel-grille:has(.tel__onglet:nth-child(3)[aria-selected="true"]) .tel-liste li:nth-child(3) {
    opacity: 1;
    pointer-events: auto;
    animation: tel-legende .5s var(--sortie) both;
  }
}
@keyframes tel-legende { from { opacity: 0; transform: translateY(6px); } }
/* Très petit téléphone (320 px) : les trois onglets ne poussent plus « Rejouer » hors de l'écran
   (avant : 21 px coupés à droite) ; mêmes mots, un peu plus serrés */
@media (max-width: 359px) {
  .tel__onglets { min-width: 0; gap: 4px; }
  .tel__onglet { padding-inline: 6px; font-size: .75rem; }
  .tel__commandes { gap: 4px; }
  .tel__rejouer { width: 44px; }
}

/* ---------- 8. Mouvement réduit : l'état final, sans mouvement ---------- */
.mouvement-reduit .tel *,
.mouvement-reduit .tel *::before,
.mouvement-reduit .tel *::after { transition: none !important; animation: none !important; }
.mouvement-reduit .tel__rejouer { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tel__rejouer { display: none; }
}
@media print {
  .tel__commandes { display: none; }
}
