/* Site découverte — ce fichier contient tout ce qui diffère du site officiel :
   plus de mouvement, vidéos de démonstration, bloc d'inscription, page contact.
   Tout mouvement est coupé si le visiteur a demandé « réduire les animations ». */

/* ───────────── Barre de progression de lecture ───────────── */
.progression {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ───────────── Halo qui suit la souris (ordinateur seulement) ───────────── */
.halo-souris {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 88, 147, 0.13) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.halo-souris.actif {
  opacity: 1;
}

/* ───────────── Apparitions plus marquées ───────────── */
.apparait {
  opacity: 0;
  transform: translateY(54px) scale(0.975);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.apparait.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Titres : les mots montent un à un (découpés par decouverte.js) */
.mots .mot {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
.mots .mot > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--n) * 70ms);
}
.mots.visible .mot > i {
  transform: none;
}

/* Cartes : inclinaison légère sous la souris, halo au survol */
.offre,
.panneau,
.demo-carte,
.conseils-liste a {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
}
.offre.apparait:not(.visible),
.panneau.apparait:not(.visible) {
  transform: translateY(54px) scale(0.975);
}
.offre:hover,
.panneau:hover {
  --ty: -6px;
}

/* Boutons : la flèche avance, le bouton principal respire */
.action span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.action:hover:not(:disabled) span {
  transform: translate(4px, -4px);
}
.action.pulse {
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(246, 88, 147, 0.55); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(246, 88, 147, 0); }
}
.action.discret {
  background: transparent;
  color: var(--creme);
}
.action.discret:hover:not(:disabled) {
  background: var(--creme);
  color: var(--fond);
  border-color: var(--creme);
}

/* ───────────── Accueil : vidéos de démonstration ───────────── */
.demos {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.demos-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 56px;
}
.demo-carte {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--filet-fort);
  background: radial-gradient(circle at 30% 20%, rgba(246, 88, 147, 0.22), #101010 70%);
  aspect-ratio: 1;
  will-change: transform;
}
.demo-carte:nth-child(2) {
  margin-top: 72px;
}
.demo-carte:nth-child(3) {
  margin-top: 24px;
}
.demo-carte video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-carte figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(16, 16, 16, 0.72);
  backdrop-filter: blur(8px);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

/* ───────────── Accueil : bloc de conviction (remplace la phrase finale) ───────────── */
.conviction {
  position: relative;
  z-index: 1;
  padding: 160px var(--marge) 0;
  border-top: 1px solid var(--filet);
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(246, 88, 147, 0.16) 0%, transparent 70%);
}
.conviction-titre {
  margin: 20px 0 40px;
  font-weight: 500;
  font-size: clamp(54px, 10.5vw, 176px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.conviction-titre em {
  font-style: normal;
  color: var(--rose);
}
.conviction-texte {
  max-width: 30ch;
  margin: 0 0 72px;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.conviction-points {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.conviction-points li {
  padding-top: 20px;
  border-top: 1px solid var(--filet-fort);
}
.conviction-points span {
  display: block;
  margin-bottom: 28px;
  font-weight: 500;
  font-size: 13px;
  color: var(--rose);
}
.conviction-points b {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.2;
}
.conviction-points p {
  margin: 0;
  color: var(--discret);
}
.conviction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.conviction-actions .action {
  width: auto;
  align-self: auto;
}
.conviction-actions .action.sombre {
  height: 60px;
}
/* Barres d'égaliseur animées en bas du bloc */
.egaliseur {
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 0.6vw, 10px);
  height: clamp(110px, 16vw, 230px);
  margin: 96px calc(var(--marge) * -1) 0;
  padding: 0 4px;
}
.egaliseur i {
  flex: 1;
  height: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, rgba(246, 88, 147, 0.9), rgba(255, 253, 224, 0.75));
  transform-origin: 50% 100%;
  transform: scaleY(0.12);
  animation: barre var(--d, 1.4s) ease-in-out calc(var(--k) * -0.11s) infinite alternate;
}
@keyframes barre {
  0% { transform: scaleY(0.08); }
  35% { transform: scaleY(var(--h, 0.7)); }
  70% { transform: scaleY(0.28); }
  100% { transform: scaleY(calc(var(--h, 0.7) * 0.82)); }
}

/* ───────────── Bloc « Soyez prévenu de l'ouverture » ───────────── */
.inscription {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 72px;
  padding: 36px;
  border: 1px solid var(--filet-fort);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(246, 88, 147, 0.12) 0%, rgba(255, 253, 224, 0.02) 55%, transparent 100%),
    rgba(24, 24, 24, 0.7);
}
.bloc-inscription .inscription {
  margin-top: 0;
}
.inscription-titre {
  margin: 12px 0 16px;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.inscription-texte {
  margin: 0;
  max-width: 44ch;
  color: var(--discret);
}
.inscription-form {
  grid-template-columns: 1fr;
}
.inscription-form .action {
  width: auto;
  justify-self: start;
}

/* ───────────── Formations sans prix ───────────── */
.plancher-bientot {
  margin: 0 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--filet);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--rose);
}

/* ───────────── Page extrait : lecteur ───────────── */
.extrait-lecteur {
  position: relative;
  margin-top: 48px;
  border: 1px solid var(--filet-fort);
  border-radius: 22px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 40px 120px -40px rgba(246, 88, 147, 0.45);
}
.extrait-lecteur video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
}
.extrait-apres {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.extrait-apres .action {
  width: auto;
  align-self: auto;
}

/* ───────────── Page contact (remplace le formulaire de devis) ───────────── */
.contact-carte {
  padding: 32px;
  border: 1px solid var(--filet-fort);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(246, 88, 147, 0.12) 0%, rgba(255, 253, 224, 0.02) 55%, transparent 100%),
    rgba(24, 24, 24, 0.7);
}
.contact-carte h2 {
  margin: 12px 0 12px;
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.contact-carte > p {
  margin: 0 0 24px;
  color: var(--discret);
}
.contact-liens {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.contact-liens a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--filet-fort);
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-liens a:hover {
  border-color: var(--rose);
  background: rgba(246, 88, 147, 0.08);
  transform: translateX(6px);
}
.contact-liens small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--discret);
}
.contact-liens b {
  font-weight: 500;
  font-size: 18px;
}
.contact-liens span {
  color: var(--rose);
}
.contact-carte ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--discret);
}
.contact-carte li {
  margin-bottom: 6px;
}
.contact-carte .devis-conditions {
  margin: 0;
}

/* Qui sommes-nous : le portrait est retiré de cette version */
.technicien-grille {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .demos-grille {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .demo-carte:nth-child(2),
  .demo-carte:nth-child(3) {
    margin-top: 0;
  }
  .conviction {
    padding-top: 110px;
  }
  .conviction-points,
  .inscription {
    grid-template-columns: 1fr;
  }
  .inscription {
    gap: 28px;
    padding: 24px;
  }
  .conviction-texte {
    margin-bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apparait,
  .mots .mot > i {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .offre,
  .panneau,
  .demo-carte,
  .conseils-liste a {
    transform: none;
    transition: none;
  }
  .action.pulse,
  .egaliseur i {
    animation: none;
  }
  .egaliseur i {
    transform: scaleY(var(--h, 0.5));
  }
  .halo-souris,
  .progression {
    display: none;
  }
}

/* ───────────── Téléphone : menu à quatre onglets, sur toute la largeur ─────────────
   Avant : la rangée d'onglets était dans la colonne de gauche, à côté du bouton
   « Demander un devis ». Elle ne disposait que d'environ 190 px, défilait de côté
   avec une barre de défilement masquée, et paraissait coupée net.
   Maintenant : logo et bouton sur la première ligne, onglets en dessous sur toute
   la largeur, renvoyés à la ligne si la place manque. Aucun onglet n'est caché. */
@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
  }
  .nav-gauche {
    display: contents;
  }
  .nav .marque {
    order: 1;
  }
  .nav .action-claire {
    order: 2;
    margin-left: auto;
  }
  .onglets {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    gap: 6px;
  }
  .onglets a {
    height: 32px;
    padding: 0 9px;
    font-size: 11px;
    letter-spacing: 0;
  }
}
@media (max-width: 380px) {
  .onglets {
    gap: 3px;
  }
  .onglets a {
    padding: 0 6px;
    font-size: 10.5px;
  }
}
@media (max-width: 359px) {
  .nav {
    column-gap: 8px;
  }
  .nav .marque {
    font-size: 18px;
  }
  .nav .action-claire {
    padding: 0 9px;
    font-size: 10.5px;
  }
  /* Quatre onglets sur deux lignes : la page commence plus bas pour ne pas passer sous le menu. */
  .accroche {
    padding-top: 190px;
  }
  .bloc.tete {
    padding-top: 190px;
  }
}

/* ───────────── Accueil allégé (13 novembre 2026) ───────────── */
/* Micro en 3D (grand écran) : même longueur que la version d'origine (520vh, comme style.css),
   rétablie le 14 novembre 2026 à la demande de l'utilisateur. Le téléphone n'a pas cette scène. */
.scene {
  height: 520vh;
}
.demos-grille.une-video {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.demos-grille.une-video .demo-carte {
  margin-top: 0;
}
.conviction-courte {
  padding-bottom: 140px;
  text-align: left;
}
.conviction-courte .conviction-titre {
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .conviction-courte {
    padding-bottom: 96px;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   VERSION TÉLÉPHONE (13 novembre 2026)
   Une seule colonne, corps de texte 16 px, zones de toucher de 44 px,
   en-tête compact avec un bouton « Menu », blocs plus courts.
   ═════════════════════════════════════════════════════════════════════ */

/* Sans JavaScript (ou si le script ne se charge pas), tout le contenu reste visible. */
html:not(.js) .apparait {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Safari sur iPhone : 100vh compte la barre d'adresse cachée ; svh prend la hauteur réellement visible. */
.scene-fixe {
  height: 100vh;
  height: 100svh;
}

/* Le débordement horizontal est coupé sur le contenu lui-même (Safari ignore souvent overflow-x sur body). */
main,
.pied {
  overflow-x: clip;
}

.menu-bouton,
.egaliseur-mobile {
  display: none;
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  /* ── En-tête compact ── */
  html.menu-js .nav {
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
    row-gap: 0;
  }
  html.menu-js .nav .marque {
    min-height: 44px;
  }
  html.menu-js .onglets,
  html.menu-js .nav > .action-claire {
    display: none;
  }
  .menu-bouton {
    order: 2;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--creme);
    border-radius: 980px;
    background: transparent;
    color: var(--creme);
    font: inherit;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
  }
  .menu-trait,
  .menu-trait::before,
  .menu-trait::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .menu-trait {
    position: relative;
  }
  .menu-trait::before,
  .menu-trait::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .menu-trait::before { top: -5px; }
  .menu-trait::after { top: 5px; }
  .menu-ouvert .menu-trait { background: transparent; }
  .menu-ouvert .menu-trait::before { transform: translateY(5px) rotate(45deg); }
  .menu-ouvert .menu-trait::after { transform: translateY(-5px) rotate(-45deg); }

  /* Menu ouvert : quatre grands liens, puis le bouton de devis. */
  html.menu-js .nav.menu-ouvert {
    max-height: 100svh;
    overflow-y: auto;
    padding-bottom: 20px;
    background: rgba(18, 18, 18, 0.97);
  }
  html.menu-js .nav.menu-ouvert .onglets {
    order: 3;
    display: flex;
    flex: 1 0 100%;
    flex-direction: column;
    gap: 0;
    margin: 12px 0 16px;
    overflow: visible;
  }
  html.menu-js .nav.menu-ouvert .onglets a {
    height: auto;
    min-height: 56px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid var(--filet);
    border-radius: 0;
    background: transparent;
    color: var(--creme);
    font-size: 22px;
    letter-spacing: -0.02em;
  }
  html.menu-js .nav.menu-ouvert .onglets a[aria-current="page"] {
    color: var(--rose);
  }
  html.menu-js .nav.menu-ouvert > .action-claire {
    order: 4;
    display: flex;
    flex: 1 0 100%;
    justify-content: center;
    min-height: 48px;
    margin-left: 0;
    font-size: 15px;
  }

  /* Le haut des pages commence sous l'en-tête compact (environ 60 px). */
  .bloc.tete,
  .tete {
    padding-top: 104px;
  }
  html {
    scroll-padding-top: 76px;
  }

  /* ── Blocs plus courts ── */
  .bloc {
    padding: 64px 0;
  }
  .final {
    padding: 96px 20px;
  }
  .offre {
    min-height: 0;
  }
  .offre-nom {
    margin-bottom: 20px;
  }
  .panneau h3 {
    margin-bottom: 16px;
  }
  .panneaux.entree {
    gap: 12px;
  }
  /* Tailles calculées pour que les mots les plus longs (« SONORISATION. », « D'ACCOMPAGNEMENT »)
     tiennent sur une ligne de 320 à 430 px, sans coupure de mot. */
  .titre.geant {
    font-size: clamp(32px, 10.5vw, 64px);
  }
  .titre {
    font-size: clamp(27px, 8.3vw, 48px);
  }
  .texte {
    max-width: none;
    font-size: 16px;
  }

  /* ── Zones de toucher ── */
  .action,
  .action.discret {
    min-height: 48px;
  }
  .pied a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }
  .pied {
    padding-top: 56px;
  }
  .pied-bas {
    padding-top: 40px;
  }
  .pied-marque {
    font-size: 30px;
  }
  .extrait-case input {
    width: 24px;
    height: 24px;
  }
  .extrait-case label {
    min-height: 44px;
  }

  /* ── Accueil sans 3D : accroche immédiate, égaliseur léger ── */
  .scene {
    height: auto;
  }
  .scene-fixe {
    position: static;
    height: auto;
    overflow: visible;
  }
  .etape,
  .indice {
    display: none;
  }
  /* Le micro, en entier, dans sa propre colonne à droite du texte d'accroche : il ne passe
     plus derrière les mots (demande du 13 novembre). micro-mobile.js y déplace la toile. */
  .scene-fixe {
    position: relative;
  }
  .accroche {
    position: relative;
    z-index: 1;
    padding: 108px 20px 48px;
    pointer-events: auto;
  }
  .accroche h1 {
    font-size: clamp(38px, 11.5vw, 56px);
  }
  .accroche .l3 {
    margin: 0.3em 0 0;
  }
  .accroche-bas {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
  }
  .accroche-texte {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  .micro-place {
    display: block;
    position: relative;
    flex: 0 0 42%;
    max-width: 200px;
    aspect-ratio: 3 / 5;
  }
  .sans-webgl .micro-place {
    display: none;
  }
  .micro-place #micro {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
  }
  .micro-pret .micro-place #micro {
    opacity: 1;
  }
  /* Tant que la toile n'est pas dans sa colonne, elle reste invisible. */
  .scene-fixe > #micro {
    display: none;
  }
  /* Accroche toujours lisible : l'animation ne joue que sur la position, jamais sur l'opacité,
     pour que le texte reste visible même si l'animation ne se lance pas. */
  .accroche .ligne,
  .accroche-texte {
    opacity: 1;
    animation-name: glisse;
  }
  /* Barres retirées : le micro qui tourne joue désormais ce rôle (choix du 13 novembre). */
  .egaliseur-mobile.garde {
    display: flex;
    height: 72px;
    margin: 32px 0 0;
    padding: 0;
  }

  /* Mots-clés : bandeau qui défile en continu, deux copies identiques pour boucler sans saut. */
  .mots-defile {
    display: block;
    overflow: hidden;
    margin: 24px -20px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .mots-piste {
    display: flex;
    width: max-content;
    animation: mots-defile 28s linear infinite;
  }
  .mots-defile .mots-cles {
    display: flex;
    flex-wrap: nowrap;
    flex: none;
    gap: 8px;
    max-width: none;
    margin: 0;
    padding: 0 8px 0 0;
    opacity: 1;
    animation: none;
  }
  .mots-defile .mots-cles li {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    color: var(--creme, #fffde0);
    white-space: nowrap;
  }
  .mots-defile .mobile-seul {
    display: flex;
  }

  /* ── Bloc final de l'accueil : marges de téléphone et titre à la taille de l'écran ── */
  .conviction {
    padding-left: 20px;
    padding-right: 20px;
  }
  .conviction-titre {
    font-size: clamp(40px, 13.5vw, 64px);
  }

  /* ── Démos : une vidéo, pleine largeur ── */
  .demos-grille.une-video {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  /* ── Devis : la scène de rendez-vous tenait plus large que l'écran ── */
  .cadre.deux > * {
    min-width: 0;
  }
  .rdv-scene {
    height: 340px;
    overflow: hidden;
  }
  .rdv-halo {
    inset: 4% 0 0;
  }

  /* ── Qui sommes-nous : les bandes de photos inclinées dépassaient de 2 à 3 px ── */
  .bandes {
    max-width: 100%;
    overflow: hidden;
  }

  /* ── Pages légales : tableaux en fiches empilées ── */
  .legal-table.large table.fiches-mobile {
    min-width: 0;
  }
  .legal table.fiches-mobile,
  .legal table.fiches-mobile tbody,
  .legal table.fiches-mobile tr,
  .legal table.fiches-mobile td {
    display: block;
    width: 100%;
  }
  .legal table.fiches-mobile thead {
    display: none;
  }
  .legal table.fiches-mobile tr {
    margin-bottom: 14px;
    border: 1px solid var(--filet-fort);
    border-radius: 14px;
    overflow: hidden;
  }
  .legal table.fiches-mobile td {
    border: 0;
    border-top: 1px solid var(--filet);
    padding: 10px 14px;
  }
  .legal table.fiches-mobile td:first-child {
    border-top: 0;
    color: var(--creme);
    font-weight: 500;
  }
  .legal table.fiches-mobile td[data-titre]:not(:first-child)::before {
    content: attr(data-titre);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--discret);
  }
}

@media (prefers-reduced-motion: reduce) {
  .egaliseur-mobile i {
    animation: none;
  }
}

/* ── Compléments après le premier contrôle automatique ── */
/* Sans JavaScript : les prix des formules et les lignes de « Qui sommes-nous » restent visibles. */
html:not(.js) #evenements .offre .plancher,
html:not(.js) #evenements .offre .prix,
html:not(.js) .ligne .ligne-num,
html:not(.js) .ligne > div,
html:not(.js) .ligne > ul,
html:not(.js) .ligne .ligne-lien {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  /* Petites étiquettes : 13 px minimum. */
  .etiquette,
  .devis label,
  .inclus,
  .plancher small,
  .prix .promo.neutre,
  .ligne-nom,
  .conseils-liste span,
  .programme-liste b,
  .chapitres span,
  .offres-note,
  .devis-ecrire {
    font-size: 13px;
  }
  .accroche .sur-titre {
    font-size: 13px;
  }
  .reperes b,
  .technicien .reperes b {
    font-size: 13px;
  }
  .devis .extrait-case input {
    width: 24px;
    height: 24px;
  }
  /* Titres longs : retour à la ligne plutôt que débordement. */
  .titre,
  .titre em,
  .titre-offres {
    overflow-wrap: break-word;
    hyphens: manual;
  }
  /* Devis : les cartes de contact restent dans l'écran, même à 320 px. */
  .contact-liens a {
    min-width: 0;
  }
  .contact-liens b {
    overflow-wrap: anywhere;
  }
  /* Qui sommes-nous : bandes de photos dans la largeur, numéros sans décalage. */
  /* Les bandes sont penchées (skewX 17°) : plus basses et plus resserrées, elles restent dans l'écran. */
  .bandes {
    height: 240px;
    margin: 0 13%;
  }
  .ligne .ligne-num {
    transform: none;
  }
  /* Liens dans le texte des pages légales : zone de toucher plus haute. */
  .legal a {
    display: inline-block;
    padding: 10px 0;
    margin: -10px 0;
  }
}

@keyframes glisse {
  from {
    transform: translateY(18px);
  }
  to {
    transform: none;
  }
}

/* Les titres découpés en mots par decouverte.js recevaient aussi l'animation de a-propos.css
   (opacité 0 au départ) : deux animations l'une sur l'autre, et un titre invisible si elles ne jouent pas.
   On garde une seule animation, sur la position uniquement. */
[data-mots] .mot {
  opacity: 1;
  transform: none;
  animation: none;
}
/* Titre de « Qui sommes-nous » : même principe, le texte reste visible pendant l'animation. */
.mots .mot {
  opacity: 1;
}

/* ───────────── Pied de page et bloc « Par où commencer » allégés (téléphone) ───────────── */
.pied-plan > summary {
  list-style: none;
  cursor: default;
}
.pied-plan > summary::-webkit-details-marker {
  display: none;
}
.formule-phrase {
  display: none;
}
@media (max-width: 900px) {
  /* Pied de page : logo, contact, réseaux, liste repliée, mentions. */
  .pied {
    padding: 24px 0 16px;
  }
  .pied-colonnes {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  /* Le logo est déjà dans l'en-tête : pas de second « KLARSOUND » géant en bas. */
  .pied-marque {
    display: none;
  }
  .pied .pied-titre {
    margin: 0;
  }
  .pied-contact > .pied-titre,
  .pied-contact a[href="index.html"],
  .pied-contact a[href="a-propos.html"],
  .pied-contact a[href="extrait-gratuit.html"] {
    display: none;
  }
  .pied-contact {
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
  }
  /* Même largeur utile sur toutes les pages (l'accueil gardait les grandes marges). */
  .pied .cadre {
    margin-left: 20px;
    margin-right: 20px;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: auto;
  }
  /* E-mail et WhatsApp d'abord, les réseaux ensuite. */
  .pied-contact a[href^="mailto:"] { order: 1; }
  .pied-contact a[href*="wa.me"] { order: 2; }
  .pied-contact a[href*="tiktok"] { order: 3; }
  .pied-contact a[href*="instagram"] { order: 4; }
  .pied-contact a {
    font-size: 13px;
  }
  .pied-plan > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border-top: 1px solid var(--filet);
    border-bottom: 1px solid var(--filet);
    color: var(--creme);
    cursor: pointer;
  }
  .pied-plan > summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
  }
  .pied-plan[open] > summary::after {
    content: "−";
  }
  .pied-plan[open] {
    padding-bottom: 6px;
  }
  .pied-bas {
    padding-top: 10px;
    gap: 0 20px;
    align-items: center;
  }
  .pied-bas > span:first-child,
  .pied-bas > span:last-child {
    display: none;
  }

  /* Accueil, « Par où commencer » : un titre, une phrase, un bouton par carte. */
  #portes .formule ul {
    display: none;
  }
  #portes .formule-phrase {
    display: block;
    margin: 0 0 24px;
    color: var(--discret);
  }
  #portes .formule-titre {
    margin-bottom: 12px;
  }
  #portes .offre {
    padding: 24px 20px;
  }
  #portes .offres {
    gap: 16px;
  }
  #portes .titre-offres {
    margin-bottom: 28px;
  }
}

@media (max-width: 900px) {
  .rdv-semaine span,
  .rdv-grille i,
  .rdv-mois span,
  .rdv-carte small,
  .rdv-etat em,
  .offre-nom em {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  /* Pastille « Recommandé » : 12 px (la règle d'origine était plus précise que la précédente). */
  .formule.recommande .offre-nom em,
  #evenements .offre-nom em {
    font-size: 12px;
  }
}

/* Mots-clés et colonne du micro : neutres en grand écran (mise en page d'origine). */
@media (min-width: 901px) {
  .accroche-bas,
  .mots-defile,
  .mots-piste {
    display: contents;
  }
  .micro-place,
  .mots-copie,
  .mots-cles .mobile-seul {
    display: none;
  }
}
@keyframes mots-defile {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .mots-piste {
    animation: none;
    width: auto;
  }
  .mots-defile {
    margin: 28px 0 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .mots-defile .mots-cles {
    flex-wrap: wrap;
    padding: 0;
  }
  .mots-defile .mots-copie {
    display: none;
  }
}

/* ───────────── Téléphone : fluidité (14 novembre 2026) ─────────────
   Les blocs apparaissent tout de suite (fondu court, sans flou ni retard échelonné) et
   on retire ce qui force le processeur graphique sans apport visible sur un petit écran :
   flous d'arrière-plan, grands flous, ombres étendues, animations de couleur ou d'ombre. */
@media (max-width: 900px) {
  .apparait,
  .offre.apparait:not(.visible),
  .panneau.apparait:not(.visible) {
    transform: translateY(8px);
    filter: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    transition-delay: 0s !important;
  }
  .apparait.visible {
    transform: none;
  }
  .offre,
  .panneau,
  .demo-carte,
  .conseils-liste a {
    transition: none;
  }
  /* Flous d'arrière-plan remplacés par un fond presque opaque. */
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(24, 24, 24, 0.97);
  }
  .rdv-carte,
  #evenements .offre,
  .demo-carte figcaption {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .rdv-carte {
    background:
      linear-gradient(155deg, rgba(255, 253, 224, 0.13) 0%, rgba(255, 253, 224, 0.04) 42%, rgba(24, 24, 24, 0.6) 100%),
      rgba(30, 28, 30, 0.96);
    box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  #evenements .offre {
    background:
      linear-gradient(160deg, rgba(255, 253, 224, 0.09) 0%, rgba(255, 253, 224, 0.025) 38%, rgba(24, 24, 24, 0.35) 100%),
      rgba(28, 27, 28, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .demo-carte figcaption {
    background: rgba(16, 16, 16, 0.88);
  }
  /* Grands flous : les dégradés sont déjà fondus, le flou n'ajoutait presque rien. */
  .offre::before,
  .panneau::before,
  .rdv-halo {
    filter: none;
  }
  .rdv-halo {
    animation: none;
    opacity: 0.6;
  }
  .extrait-lecteur {
    box-shadow: 0 16px 40px -24px rgba(246, 88, 147, 0.45);
  }
  /* Animations repeintes à chaque image (couleur, ombre, dégradé tournant) : arrêtées. */
  #methode .panneau::after,
  .rdv-creneau::after,
  #evenements .offre::after,
  .rdv-grille i.choisi,
  .rdv-etat i,
  .action.pulse,
  .entite-titre span {
    animation: none;
  }
  #methode .panneau,
  .bande {
    animation: none;
  }
  /* Calendrier du devis : état « jour choisi » fixe, comme en mode moins d'animations. */
  .rdv-grille i.choisi {
    color: #181818;
    background: linear-gradient(140deg, #ff8fb8, #f65893);
  }
  .rdv-etat i {
    background: #f65893;
  }
}

/* Grand écran : le titre « Un bon son, ça change tout. » se lit d'un bloc, sur deux lignes,
   « tout. » en rose à la suite de « ça change » (l'ancien décalage à droite venait de l'accroche en trois lignes). */
@media (min-width: 901px) {
  .accroche .l2,
  .accroche .l3 {
    display: inline-block;
  }
  .accroche .l3 {
    margin: 0;
  }
}

/* ───────────── Corrections du 14 novembre 2026 (relecture dans Chrome) ───────────── */

/* Titres découpés en mots : le masque de chaque mot rognait le haut des capitales accentuées
   (È de « ACCÈS », Ç, À…) et le bord droit des lettres italiques, à cause de l'interligne serré.
   Le masque s'agrandit vers le haut et sur les côtés (marge interne), et une marge négative
   identique compense : la mise en page du titre ne bouge pas. */
.mots .mot {
  padding: 0.22em 0.12em 0.08em;
  margin: -0.22em -0.12em 0;
}

/* En-tête (grand écran) : une bande sombre apparaît dès qu'on fait défiler, pour que le contenu
   qui passe dessous ne se mélange plus au logo ni aux onglets. Pas de flou d'arrière-plan. */
@media (min-width: 901px) {
  .nav::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -32px;
    right: -32px;
    bottom: -28px;
    z-index: -1;
    background: linear-gradient(
      to bottom,
      rgba(24, 24, 24, 0.97) 0%,
      rgba(24, 24, 24, 0.94) calc(100% - 28px),
      rgba(24, 24, 24, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  html.defile .nav::before {
    opacity: 1;
  }
  /* Bulle « Vos disponibilités » du devis : 12 px au lieu de 10. */
  .rdv-bulle small {
    font-size: 12px;
  }
}
