/* ═══════════════════════════════════════════════════════════════════════
   SCROLER — Page « Communication »
   ───────────────────────────────────────────────────────────────────────
   Suppose base.css puis page.css chargés avant.

   Même pièce que l'accueil et que la page « Site web » : un sol nocturne
   traversé du haut en bas, de la lumière orange, du verre. Ici la pièce
   sert de plateau de tournage — d'où le vocabulaire : viseur, faisceau,
   socle, projecteur.

   Le geste signature de l'accueil (des éléments posés sur des socles que
   la lumière fait tourner) est repris en CSS 3D dans « La vitrine » :
   `transform: rotateY` suffit et coûte cent fois moins cher qu'une
   scène complète. Le seul WebGL de la page est le drone du hero
   (communication-drone.js), chargé paresseusement après `load`.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --cm-r: 300px;                 /* rayon du carrousel, recalculé en JS */
  --cm-collant: 104px;
}
@media (max-width: 860px) { :root { --cm-collant: 20px; } }

/* ═══════════════════════════════════════════════════════════════════════
   1. HERO — le viseur
   ═══════════════════════════════════════════════════════════════════════ */
.cm-hero {
  position: relative;
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: center;
  padding-block: clamp(52px, 6.5vw, 88px);
  overflow: hidden;
}

/* Nappe de lumière qui suit le curseur — même principe que la torche de
   la page « Site web », en fusion additive.                            */
.cm-torche {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--tx, 50%) var(--ty, 40%),
    rgba(233,78,26,.26) 0%, rgba(233,78,26,.09) 38%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .6s ease;
}
.cm-hero:hover .cm-torche { opacity: 1; }

/* ─── HERO — le drone ─────────────────────────────────────────────────
   Conteneur du canvas WebGL de communication-drone.js : même étage que
   la torche (z-index 1), sous le contenu (.cm-hero__inner, z-index 2).
   Sans JavaScript, sans WebGL ou en mouvement réduit, il reste vide et
   le hero actuel est complet.                                        */
.cm-drone {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cm-drone canvas { width: 100%; height: 100%; }

/* La commande d'arrêt du décor (WCAG 2.2.2), posée par le script dans
   la grammaire des boutons existants (.cm-lecture).                  */
.cm-decor-stop {
  position: absolute;
  right: clamp(14px, 3vw, 46px);
  bottom: 18px;
  z-index: 3;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--scr-bord);
  border-radius: 999px;
  background: rgba(23,18,15,.5);
  color: var(--scr-on-night-soft);
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
}
.cm-decor-stop:hover { border-color: var(--scr-orange); color: var(--scr-paper); }

/* Décor figé : les boucles CSS du hero se mettent en pause avec lui. */
.cm-hero.is-fige .cm-viseur::after,
.cm-hero.is-fige .cm-tele span:first-child::before,
.cm-hero.is-fige .cm-descendre i { animation-play-state: paused; }

/* ─── Le viseur : quatre équerres + télémétrie, comme un retour caméra ─
   Purement décoratif : aria-hidden, aucune information ne s'y trouve
   qui ne soit ailleurs en texte.                                      */
.cm-viseur {
  position: absolute;
  inset: clamp(18px, 3vw, 46px) clamp(14px, 3vw, 46px);
  z-index: 1;
  pointer-events: none;
}
.cm-viseur i {
  position: absolute;
  width: clamp(22px, 3vw, 40px);
  height: clamp(22px, 3vw, 40px);
  border: 1px solid rgba(233,78,26,.55);
}
.cm-viseur i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cm-viseur i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cm-viseur i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cm-viseur i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Ligne de balayage : elle descend lentement, comme un capteur qui lit. */
.cm-viseur::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,78,26,.5), transparent);
}
.js .cm-viseur::after { animation: cmScan 7s var(--scr-ease) infinite; }
@keyframes cmScan { 0%,8% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Télémétrie : mono, discrète, en haut du hero */
.cm-tele {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 26px;
  font-family: var(--scr-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242,239,234,.62);
}
.cm-tele span { display: inline-flex; align-items: center; gap: 8px; }
.cm-tele span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--scr-orange);
  box-shadow: 0 0 8px rgba(233,78,26,.9);
}
.js .cm-tele span:first-child::before { animation: cmRec 1.9s steps(1) infinite; }
@keyframes cmRec { 50% { opacity: .15; box-shadow: none; } }
.cm-tele b { font-weight: 500; color: var(--scr-paper); font-variant-numeric: tabular-nums; }

.cm-hero .scr-wrap { max-width: 1320px; }
.cm-hero__inner { position: relative; z-index: 2; width: 100%; }

.cm-hero h1 {
  margin: 0 0 26px;
  font-size: clamp(26px, 5vw, 72px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -.032em;
  color: var(--scr-paper);
}
.cm-hero h1 .cm-l { display: block; overflow: hidden; }
.cm-hero h1 .cm-l > span { display: block; }
.js .cm-hero h1 .cm-l > span {
  transform: translateY(108%);
  animation: cmMonte 1.05s var(--scr-ease) forwards;
}
.js .cm-hero h1 .cm-l:nth-child(2) > span { animation-delay: .13s; }
@keyframes cmMonte { to { transform: translateY(0); } }

.cm-hero h1 em {
  font-style: normal;
  color: var(--scr-orange);
  text-shadow: 0 0 38px rgba(233,78,26,.55), 0 0 90px rgba(233,78,26,.25);
}

.js .cm-hero .scr-lede,
.js .cm-hero__actions,
.js .cm-preuve { opacity: 0; animation: cmApparait .9s ease .45s forwards; }
.js .cm-hero__actions { animation-delay: .58s; }
.js .cm-preuve { animation-delay: .7s; }
@keyframes cmApparait { to { opacity: 1; } }

.cm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.cm-preuve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin: clamp(32px, 4vw, 50px) 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--scr-bord);
  font-family: var(--scr-mono);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--scr-on-night-mute);
}
.cm-preuve span { display: inline-flex; align-items: center; gap: 11px; }
.cm-preuve span::before {
  content: "";
  flex: 0 0 auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--scr-orange);
  box-shadow: 0 0 9px rgba(233,78,26,.9);
}
.cm-preuve b { font-weight: 500; color: var(--scr-paper); font-variant-numeric: tabular-nums; }

.cm-descendre {
  position: absolute;
  left: 50%; bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-family: var(--scr-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(242,239,234,.55);
  pointer-events: none;
}
.cm-descendre i {
  display: block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--scr-orange));
}
.js .cm-descendre i { animation: cmDesc 2.1s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes cmDesc { 0%,100% { transform: scaleY(.35); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-height: 780px), (max-width: 860px) { .cm-descendre { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   2. RELANCES — le rappel d'action entre deux stations
   ═══════════════════════════════════════════════════════════════════════ */
.cm-relance {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  margin-top: clamp(40px, 5vw, 66px);
  padding: 30px 34px;
  border: 1px solid var(--scr-bord);
  border-left: 2px solid var(--scr-orange);
  border-radius: 4px 20px 20px 4px;
  background: var(--scr-verre-1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cm-relance p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--scr-on-night-soft); }
.cm-relance p b { font-weight: 400; color: var(--scr-paper); }
.cm-relance .scr-btn { flex: 0 0 auto; }

/* ═══════════════════════════════════════════════════════════════════════
   3. CE QUE LA COMMUNICATION DOIT CHANGER — quatre rôles
   ═══════════════════════════════════════════════════════════════════════ */
.cm-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--scr-bord);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 720px)  { .cm-roles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1040px) { .cm-roles { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.cm-role {
  position: relative;
  padding: clamp(26px, 2.8vw, 38px);
  background: #1B1512;
  transition: background-color .35s ease;
}
.cm-role:hover { background: #221A15; }
.cm-role h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 300;
  color: var(--scr-paper);
}
.cm-role p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--scr-on-night-soft); }
.cm-role::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--scr-orange);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .7s var(--scr-ease);
}
.cm-role.is-in::before { transform: scaleY(1); }
.cm-role.is-in:nth-child(2)::before { transition-delay: .1s; }
.cm-role.is-in:nth-child(3)::before { transition-delay: .2s; }
.cm-role.is-in:nth-child(4)::before { transition-delay: .3s; }

/* ═══════════════════════════════════════════════════════════════════════
   4. LES PRESTATIONS — grille bento
   ───────────────────────────────────────────────────────────────────────
   Neuf métiers, tailles inégales : la vue drone et les réseaux sociaux
   occupent deux cases, parce que ce sont les deux portes d'entrée les
   plus fréquentes. Chaque carte porte un dessin au trait animé — aucune
   photographie n'est requise pour que la page tienne debout.
   ═══════════════════════════════════════════════════════════════════════ */
.cm-bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 1.8vw, 22px);
  grid-template-columns: 1fr;
}
/* Trois colonnes au maximum : a quatre, la ligne de mots-cles en
   capitales se hachait sur cinq lignes dans les cartes etroites.  */
@media (min-width: 620px)  { .cm-bento { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1040px) { .cm-bento { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.cm-presta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 232px;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--scr-bord);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--scr-verre-2), rgba(23,18,15,.5));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .35s ease, transform .5s var(--scr-ease), box-shadow .5s ease;
}
.cm-presta:hover {
  border-color: var(--scr-bord-vif);
  box-shadow: 0 24px 60px -30px rgba(233,78,26,.55);
}
/* Balayage de lumière au survol, comme sur les dalles de la page site web */
.cm-presta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(242,239,234,.09) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 1.1s var(--scr-ease);
}
.cm-presta:hover::after { transform: translateX(130%); }

/* Deux cases pour les deux prestations d'appel */
@media (min-width: 620px) {
  .cm-presta--large { grid-column: span 2; }
}

.cm-presta__num {
  font-family: var(--scr-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(242,239,234,.5);
}
.cm-presta h3 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 300;
  color: var(--scr-paper);
}
.cm-presta p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--scr-on-night-soft); }
.cm-presta p.cm-presta__pt {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(242,239,234,.09);
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--scr-orange);
}

/* Le dessin : SVG au trait, en filigrane dans le coin haut droit */
.cm-presta__dessin {
  position: absolute;
  top: -14px; right: -14px;
  width: 118px; height: 118px;
  color: var(--scr-orange);
  opacity: .22;
  pointer-events: none;
  transition: opacity .45s ease, transform .6s var(--scr-ease);
}
.cm-presta:hover .cm-presta__dessin { opacity: .5; transform: scale(1.06) rotate(-4deg); }
.cm-presta__dessin svg { width: 100%; height: 100%; }
/* Les hélices tournent, le reste est fixe. */
.js .cm-presta:hover .cm-helice {
  animation: cmTourne 1.1s linear infinite;
  transform-origin: center;
  /* fill-box : chaque hélice tourne autour de son propre centre, pas
     de celui du dessin entier.                                       */
  transform-box: fill-box;
}
/* La lueur qui suit le pointeur : le span est injecté par inclinaison()
   — donc jamais au tactile ni en mouvement réduit. ::after est déjà
   pris par le balayage de lumière.                                   */
.cm-presta__lueur {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(242,239,234,.09), rgba(233,78,26,.05) 45%, transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
}
.cm-presta:hover .cm-presta__lueur { opacity: 1; }
@keyframes cmTourne { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════
   5. LA VITRINE — le carrousel à projecteurs
   ───────────────────────────────────────────────────────────────────────
   Le geste de l'accueil, en CSS : des éléments posés sur un anneau que la
   lumière fait tourner. Trois collections (comptes, logos, magazines),
   des EMPLACEMENTS à remplir tant que les visuels ne sont pas fournis.

   Sans JavaScript, l'anneau n'existe pas : les emplacements s'affichent
   en grille, ce qui reste parfaitement lisible.
   ═══════════════════════════════════════════════════════════════════════ */
.cm-vitrine { position: relative; }

/* Sélecteur de collection */
.cm-collections { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 3vw, 40px); }
.cm-collection {
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--scr-bord);
  border-radius: 999px;
  background: transparent;
  color: var(--scr-on-night-soft);
  font-family: var(--scr-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--scr-ease), border-color .3s ease, color .3s ease, background-color .3s ease;
}
.cm-collection:hover { transform: translateY(-2px); border-color: var(--scr-orange); color: var(--scr-paper); }
.cm-collection[aria-selected="true"] {
  background: var(--scr-orange-d);
  border-color: var(--scr-orange-d);
  color: #fff;
}
.cm-collection em { font-style: normal; opacity: .62; font-variant-numeric: tabular-nums; }

/* ─── La scène ────────────────────────────────────────────────────────── */
.cm-scene {
  position: relative;
  height: 470px;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  /* Les pieces laterales depassent la largeur du contenu sur petit
     ecran : sans ce clip, la page gagne une barre de defilement
     horizontale. L'anneau sort du cadre, ce qui est le comportement
     attendu d'un plateau.                                         */
  overflow: hidden;
}
@media (max-width: 760px) { .cm-scene { height: 400px; } }
.cm-scene[hidden] { display: none; }

/* Sol : la nappe de lumière sous l'anneau */
.cm-scene::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 44px;
  width: min(760px, 92%);
  height: 190px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(233,78,26,.20) 0%, rgba(233,78,26,.05) 45%, transparent 72%);
  pointer-events: none;
}
/* Le sol réactif : quand une pièce arrive sous le projecteur, la nappe
   « respire » — classe posée 500 ms par placer() dans communication.js. */
.js .cm-scene::before { transition: transform .5s ease; }
.js .cm-scene.is-tourne::before {
  transform: translateX(-50%) scale(1.12);
  background:
    radial-gradient(ellipse at center, rgba(233,78,26,.14) 0%, transparent 52%),
    radial-gradient(ellipse at center, rgba(233,78,26,.22) 0%, rgba(233,78,26,.06) 45%, transparent 72%);
}

/* Sans JS : grille simple, aucun 3D, tout est visible */
.cm-anneau {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.js .cm-anneau {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform .95s var(--scr-ease);
}
.js .cm-piece {
  position: absolute;
  top: 50%; left: 50%;
  width: 214px;
  margin: -150px 0 0 -107px;
  transform-style: preserve-3d;
  /* Sans cela, les pieces du fond de l'anneau se voient par l'arriere :
     leur texte apparait en miroir a travers la piece de devant.     */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity .6s ease, filter .6s ease;
  /* Profondeur de champ graduée : --prof (0 devant, 1 à l'opposé) est
     posée par placer() dans communication.js. Sans elle, le repli
     vaut l'ancien rendu en retrait.                                  */
  opacity: calc(1 - var(--prof, 1) * .55);
  filter: blur(calc(var(--prof, 1) * 2.4px)) saturate(calc(1 - var(--prof, 1) * .45));
}
.js .cm-piece.is-front { opacity: 1; filter: none; }
/* La piece sous le projecteur : bord vif et halo, pour qu'on sache tout
   de suite laquelle on regarde.                                     */
.js .cm-piece.is-front .cm-slot {
  border-color: rgba(233,78,26,.85);
  box-shadow: 0 0 55px -12px rgba(233,78,26,.6), 0 30px 60px -40px #000;
}
@media (max-width: 760px) { .js .cm-piece { width: 178px; margin-left: -89px; } }

/* Le faisceau du projecteur : il ne s'allume que sur la pièce de devant */
.cm-piece__faisceau {
  position: absolute;
  left: 50%; bottom: 6px;
  width: 250px; height: 300px;
  transform: translateX(-50%);
  background: linear-gradient(to top, rgba(233,78,26,.46), rgba(233,78,26,.10) 45%, transparent 78%);
  clip-path: polygon(38% 100%, 62% 100%, 96% 0%, 4% 0%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.js .cm-piece.is-front .cm-piece__faisceau { opacity: 1; }

/* Le socle, comme sur l'accueil */
.cm-piece__socle {
  position: relative;
  margin-top: 14px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(233,78,26,.55), rgba(233,78,26,0) 70%);
}
.cm-piece__socle::before {
  content: "";
  position: absolute;
  left: 50%; top: 2px;
  width: 74%; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: rgba(242,239,234,.28);
}

/* Le reflet sous la pièce éclairée : un écho de lumière injecté par le
   script — le repli en grille sans JavaScript reste identique.       */
.cm-piece__reflet {
  position: absolute;
  left: 9%; top: 100%;
  width: 82%; height: 54px;
  margin-top: 4px;
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(233,78,26,.18), rgba(242,239,234,.05) 40%, transparent 75%);
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.js .cm-piece.is-front .cm-piece__reflet { opacity: .9; }

/* La poussière du faisceau : canvas décoratif posé par le script sur la
   scène visible, arrêté avec la rotation (bouton .cm-lecture).       */
.cm-vitrine__poussiere {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ─── L'emplacement : une dalle en pointillés, à remplir ──────────────── */
.cm-slot {
  position: relative;
  display: block;
  border: 1px dashed rgba(233,78,26,.5);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(242,239,234,.11), rgba(23,18,15,.88));
  overflow: hidden;
  transition: border-color .5s ease, box-shadow .5s ease;
}
.cm-slot__todo {
  position: absolute;
  left: 10px; top: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  /* Fond a .12 et texte #FF7A3D : 4,9:1 — l'orange vif n'y donnait que 3,2. */
  background: rgba(233,78,26,.12);
  border: 1px solid rgba(233,78,26,.45);
  font-family: var(--scr-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FF7A3D;
}
/* Trame en diagonale : on lit tout de suite « rien n'est encore posé là ». */
.cm-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(242,239,234,.045) 0 8px, transparent 8px 17px);
  pointer-events: none;
}
.cm-slot__legende {
  padding: 12px 14px 14px;
  font-family: var(--scr-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(242,239,234,.62);
}
.cm-slot__legende b { display: block; font-weight: 500; font-size: 12.5px; letter-spacing: .06em; color: var(--scr-paper); text-transform: none; }

/* Variante « compte social » : un profil en fil de fer */
.cm-slot--compte .cm-slot__vue { padding: 34px 14px 12px; }
.cm-compte__tete { display: flex; align-items: center; gap: 10px; }
.cm-compte__ava {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(242,239,234,.28);
  background: rgba(242,239,234,.06);
}
.cm-compte__id { display: grid; gap: 5px; flex: 1 1 auto; }
.cm-compte__id i { display: block; height: 7px; border-radius: 4px; background: rgba(242,239,234,.20); }
.cm-compte__id i:last-child { width: 55%; height: 6px; background: rgba(242,239,234,.11); }
.cm-compte__stats {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-family: var(--scr-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  /* .55 = 5,1:1 sur la carte verre-2 — .45 ne donnait que 3,9:1
     pour du mono 9,5 px non decoratif.                               */
  color: rgba(242,239,234,.55);
}
.cm-compte__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 12px;
}
.cm-compte__grille span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(242,239,234,.07);
}
.js .cm-piece.is-front .cm-compte__grille span:nth-child(2) { background: rgba(233,78,26,.28); }
.js .cm-piece.is-front .cm-compte__grille span:nth-child(6) { background: rgba(233,78,26,.16); }

/* Variante « logo » : un carré de marque */
.cm-slot--logo .cm-slot__vue {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 20px;
}
.cm-logo__mono {
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  border: 1px solid rgba(242,239,234,.22);
  border-radius: 50%;
  font-family: var(--scr-mono);
  font-size: 22px;
  letter-spacing: .06em;
  color: rgba(242,239,234,.36);
}
.js .cm-piece.is-front .cm-logo__mono { border-color: rgba(233,78,26,.6); color: var(--scr-orange); }

/* Variante « magazine » : une couverture debout */
.cm-slot--mag .cm-slot__vue {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 30px 16px 16px;
}
.cm-mag__titre { display: block; height: 12px; border-radius: 3px; background: rgba(242,239,234,.22); }
.cm-mag__bloc { display: block; margin-top: 9px; height: 7px; border-radius: 3px; background: rgba(242,239,234,.13); }
.cm-mag__bloc--court { width: 58%; }
.cm-mag__image {
  margin-top: 14px;
  height: 46%;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, rgba(242,239,234,.07) 0 6px, transparent 6px 13px);
  border: 1px solid rgba(242,239,234,.12);
}
.cm-mag__pli {
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(242,239,234,.18), transparent);
}

/* ─── Commandes du carrousel ──────────────────────────────────────────── */
.cm-commandes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.cm-fleche {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--scr-bord);
  border-radius: 50%;
  background: transparent;
  color: var(--scr-on-night-soft);
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, transform .3s var(--scr-ease);
}
.cm-fleche:hover { border-color: var(--scr-orange); color: var(--scr-paper); transform: scale(1.06); }
.cm-fleche svg { width: 17px; height: 17px; }

.cm-pips { display: flex; align-items: center; gap: 9px; }
.cm-pip {
  width: 26px; height: 24px;
  padding: 11px 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.cm-pip::before {
  content: "";
  display: block;
  height: 2px;
  background: rgba(242,239,234,.55);
  transition: background-color .4s ease, transform .4s ease;
}
.cm-pip[aria-current="true"]::before { background: var(--scr-orange); transform: scaleY(2); }
.cm-pip:hover::before { background: var(--scr-paper); }

.cm-lecture {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--scr-bord);
  border-radius: 999px;
  background: transparent;
  color: var(--scr-on-night-soft);
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
}
.cm-lecture:hover { border-color: var(--scr-orange); color: var(--scr-paper); }
.cm-lecture svg { width: 12px; height: 12px; }
.cm-lecture__pause { display: none; }
.cm-vitrine.is-pause .cm-lecture__pause { display: block; }
.cm-vitrine.is-pause .cm-lecture__play { display: none; }

.cm-vitrine__hint {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--scr-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242,239,234,.58);
}

/* Consigne de remplissage, sous la vitrine */
.cm-consigne {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: 20px 24px;
  border: 1px dashed rgba(233,78,26,.45);
  border-radius: 14px;
  background: rgba(233,78,26,.05);
  font-size: 15px;
  line-height: 1.6;
  color: var(--scr-on-night-soft);
}
.cm-consigne b { font-weight: 400; color: var(--scr-paper); }
.cm-consigne code {
  font-family: var(--scr-mono);
  font-size: 13px;
  color: var(--scr-orange);
}

/* ═══════════════════════════════════════════════════════════════════════
   6. LE TOURNAGE — plan de vol
   ═══════════════════════════════════════════════════════════════════════ */
.cm-vol { list-style: none; margin: 0; padding: 0; position: relative; }
.cm-vol::before {
  content: "";
  position: absolute;
  left: 17px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--scr-orange), rgba(233,78,26,.08));
}
.cm-etape { position: relative; padding: 0 0 clamp(34px, 4vw, 58px) 58px; }
.cm-etape:last-child { padding-bottom: 0; }
.cm-etape__n {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 35px; height: 35px;
  border: 1px solid var(--scr-bord);
  border-radius: 50%;
  background: var(--scr-night);
  font-family: var(--scr-mono);
  font-size: 12px;
  color: rgba(242,239,234,.68);
  transition: border-color .5s ease, color .5s ease, box-shadow .5s ease;
}
.cm-etape.is-in .cm-etape__n {
  border-color: var(--scr-orange);
  color: var(--scr-orange);
  box-shadow: 0 0 22px rgba(233,78,26,.4);
}
.cm-etape h3 { margin: 4px 0 8px; font-size: 21px; font-weight: 300; color: var(--scr-paper); }
.cm-etape p { margin: 0; font-size: 16.5px; line-height: 1.66; color: var(--scr-on-night-soft); }
.cm-etape__meta {
  margin: 0 0 8px;
  font-family: var(--scr-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--scr-orange);
}

/* ─── La trajectoire se dessine au défilement ─────────────────────────
   Fil et tête sont injectés par trajectoire() dans communication.js ;
   --cm-avancee (0 → 1) et --cm-h (hauteur en px) sont posées par le
   script. Sans JavaScript, seul le ::before statique existe.         */
.cm-vol--fil::before { opacity: .18; }   /* l'ancien rail devient fantôme */
.cm-vol__fil {
  position: absolute;
  left: 17px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--scr-orange), rgba(233,78,26,.25));
  transform: scaleY(var(--cm-avancee, 0));
  transform-origin: 50% 0;
}
.cm-vol__tete {
  position: absolute;
  left: 13.5px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--scr-orange);
  box-shadow: 0 0 18px rgba(233,78,26,.9);
  transform: translateY(calc(var(--cm-avancee, 0) * var(--cm-h, 0px)));
}

/* ═══════════════════════════════════════════════════════════════════════
   7. RÉSEAUX SOCIAUX — le téléphone et le calendrier
   ═══════════════════════════════════════════════════════════════════════ */
.cm-social {
  display: grid;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: center;
}
@media (min-width: 940px) { .cm-social { grid-template-columns: 1fr 340px; } }

.cm-tel {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 9 / 17;
  padding: 12px;
  border: 1px solid rgba(242,239,234,.18);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(242,239,234,.08), rgba(23,18,15,.9));
  box-shadow: 0 40px 90px -40px rgba(233,78,26,.5);
  overflow: hidden;
}
.cm-tel::before {
  content: "";
  position: absolute;
  left: 50%; top: 12px;
  width: 74px; height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(242,239,234,.2);
}
.cm-tel__ecran {
  height: 100%;
  border-radius: 24px;
  background: #191411;
  border: 1px solid rgba(242,239,234,.08);
  overflow: hidden;
  padding: 26px 12px 12px;
}
.cm-tel__post {
  position: absolute;
  inset: 38px 12px 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(242,239,234,.05);
  border: 1px solid rgba(242,239,234,.1);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .6s ease, transform .7s var(--scr-ease);
}
.cm-tel__post.is-vu { opacity: 1; transform: none; }
.cm-tel__format {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  /* Meme cure que .cm-slot__todo : fond .12, texte #FF7A3D — 5,5:1. */
  background: rgba(233,78,26,.12);
  border: 1px solid rgba(233,78,26,.45);
  font-family: var(--scr-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FF7A3D;
}
.cm-tel__zone {
  height: 46%;
  border-radius: 12px;
  border: 1px dashed rgba(242,239,234,.18);
  background: repeating-linear-gradient(135deg, rgba(242,239,234,.05) 0 7px, transparent 7px 15px);
}
.cm-tel__ligne { display: block; height: 7px; margin-top: 10px; border-radius: 4px; background: rgba(242,239,234,.16); }
.cm-tel__ligne--court { width: 52%; }
.cm-tel__actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  color: rgba(242,239,234,.4);
}
.cm-tel__actions svg { width: 15px; height: 15px; }
.cm-tel__actions svg:first-child { color: var(--scr-orange); }

/* ─── Le téléphone en vraie perspective, piloté par le défilement ─────
   Même technique progressive que la barre .scr-progress de page.css :
   sans animation-timeline, le téléphone est strictement identique à
   aujourd'hui. Restreint aux écrans où .cm-social est en deux
   colonnes, pour qu'aucune rotation ne déborde à 390 px.             */
@media (min-width: 940px) {
  @supports (animation-timeline: view()) {
    .cm-tel {
      animation: cmTelOrbite linear both;
      animation-timeline: view();
      animation-range: entry 15% exit 85%;
    }
    /* Reflet d'écran (le ::before est pris par l'encoche) : une nappe
       claire qui glisse sur la vitre pendant l'orbite.               */
    .cm-tel::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(115deg, transparent 30%, rgba(242,239,234,.10) 45%, transparent 60%);
      background-size: 250% 100%;
      background-position: 100% 0;
      animation: cmTelReflet linear both;
      animation-timeline: view();
      animation-range: entry 15% exit 85%;
    }
  }
}
@keyframes cmTelOrbite {
  from { transform: perspective(1100px) rotateY(24deg) rotateX(5deg) translateY(18px); }
  50%  { transform: perspective(1100px) rotateY(0deg) rotateX(0deg); }
  to   { transform: perspective(1100px) rotateY(-13deg) rotateX(-4deg) translateY(-12px); }
}
@keyframes cmTelReflet {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

/* La commande d'arrêt du défilé des publications (WCAG 2.2.2), posée
   par le script — sans JavaScript, ni cycle ni bouton.               */
.cm-tel__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--scr-bord);
  border-radius: 999px;
  background: transparent;
  color: var(--scr-on-night-soft);
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
  justify-self: center;
}
.cm-tel__pause:hover { border-color: var(--scr-orange); color: var(--scr-paper); }
@media (min-width: 940px) { .cm-tel__pause { grid-column: 2; } }

/* Le calendrier éditorial : une grille de cases qui s'allument.
   Bride a 420 px : sans elle, les cases faisaient 90 px de cote et le
   dessin ne ressemblait plus a un calendrier.                      */
.cm-calendrier {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  max-width: 420px;
  margin-top: 30px;
}
.cm-calendrier span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(242,239,234,.06);
  transition: background-color .5s ease, box-shadow .5s ease;
}
.cm-calendrier.is-in span[data-post] {
  background: rgba(233,78,26,.55);
  box-shadow: 0 0 12px rgba(233,78,26,.5);
}
.cm-calendrier.is-in span[data-post="2"] { background: rgba(233,78,26,.28); box-shadow: none; }
.cm-calendrier.is-in span:nth-child(2)  { transition-delay: .05s; }
.cm-calendrier.is-in span:nth-child(6)  { transition-delay: .12s; }
.cm-calendrier.is-in span:nth-child(11) { transition-delay: .2s; }
.cm-calendrier.is-in span:nth-child(16) { transition-delay: .28s; }
.cm-calendrier.is-in span:nth-child(21) { transition-delay: .36s; }
.cm-calendrier.is-in span:nth-child(25) { transition-delay: .44s; }

.cm-social__liste { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.cm-social__liste li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--scr-on-night-soft);
}
.cm-social__liste li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 11px; height: 1px;
  background: var(--scr-orange);
}

/* ═══════════════════════════════════════════════════════════════════════
   8. AFFICHAGE & ÉDITION — le mur de supports en 3D
   ═══════════════════════════════════════════════════════════════════════ */
.cm-supports {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  perspective: 1200px;
}
.cm-support {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--scr-bord);
  border-radius: 18px;
  background: var(--scr-verre-1);
  transform-style: preserve-3d;
  transition: transform .6s var(--scr-ease), border-color .4s ease, box-shadow .5s ease;
}
.cm-support:hover {
  border-color: var(--scr-bord-vif);
  transform: rotateY(-8deg) rotateX(4deg) translateZ(24px);
  box-shadow: -30px 30px 70px -40px rgba(0,0,0,.9), 0 0 60px -30px rgba(233,78,26,.6);
}
.cm-support h3 { margin: 0 0 8px; font-size: 19px; font-weight: 300; color: var(--scr-paper); }
.cm-support p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--scr-on-night-soft); }
/* La maquette du support, dessinée en CSS : proportions réelles */
.cm-support__vue {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid rgba(242,239,234,.18);
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, rgba(242,239,234,.05) 0 7px, transparent 7px 15px);
}
.cm-support__vue--panneau { aspect-ratio: 4 / 3; }
.cm-support__vue--kake    { aspect-ratio: 1 / 3; width: 34%; }  /* 46 % rendait la maquette deux fois plus haute que les autres */
.cm-support__vue--mag     { aspect-ratio: 3 / 4; width: 54%; }
.cm-support__vue--vitrine { aspect-ratio: 16 / 9; }
.cm-support__vue::after {
  content: attr(data-format);
  position: absolute;
  right: 7px; bottom: 6px;
  font-family: var(--scr-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(242,239,234,.5);
}
/* Pied du kakémono, pour qu'on le reconnaisse au premier coup d'œil */
.cm-support__vue--kake::before {
  content: "";
  position: absolute;
  left: -18%; right: -18%; bottom: -5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(242,239,234,.28);
}

/* ═══════════════════════════════════════════════════════════════════════
   9. LE MATÉRIEL — la valise
   ═══════════════════════════════════════════════════════════════════════ */
.cm-valise {
  display: grid;
  gap: 1px;
  background: var(--scr-bord);
  border: 1px solid var(--scr-bord);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 700px)  { .cm-valise { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .cm-valise { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cm-outil {
  display: flex;
  gap: 16px;
  padding: clamp(22px, 2.4vw, 30px);
  background: #1B1512;
  transition: background-color .35s ease;
}
.cm-outil:hover { background: #221A15; }
.cm-outil__ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(233,78,26,.4);
  border-radius: 12px;
  color: var(--scr-orange);
}
.cm-outil__ic svg { width: 20px; height: 20px; }
.cm-outil h3 { margin: 0 0 5px; font-size: 17px; font-weight: 300; color: var(--scr-paper); }
.cm-outil p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--scr-on-night-soft); }
.cm-outil__marque {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(242,239,234,.18);
  border-radius: 999px;
  font-family: var(--scr-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242,239,234,.68);
}

/* ═══════════════════════════════════════════════════════════════════════
   10. CAMPAGNE — l'entonnoir
   ═══════════════════════════════════════════════════════════════════════ */
.cm-entonnoir { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cm-etage {
  position: relative;
  padding: 20px 26px;
  border: 1px solid var(--scr-bord);
  border-radius: 14px;
  background: var(--scr-verre-1);
  overflow: hidden;
}
.cm-etage::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--cm-part, 100%);
  /* .24 et non .30 : le tag orange doit garder 4,5:1 par-dessus la nappe. */
  background: linear-gradient(90deg, rgba(233,78,26,.24), rgba(233,78,26,.05));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--scr-ease);
}
.cm-entonnoir.is-in .cm-etage::before { transform: scaleX(1); }
.cm-entonnoir.is-in .cm-etage:nth-child(2)::before { transition-delay: .12s; }
.cm-entonnoir.is-in .cm-etage:nth-child(3)::before { transition-delay: .24s; }
.cm-entonnoir.is-in .cm-etage:nth-child(4)::before { transition-delay: .36s; }
.cm-etage > * { position: relative; }
.cm-etage h3 { margin: 0 0 4px; font-size: 18px; font-weight: 300; color: var(--scr-paper); }
.cm-etage p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--scr-on-night-soft); }
.cm-etage__tag {
  display: block;
  margin-bottom: 6px;
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  /* #FF7A3D : le tag est posé SUR la nappe orange de l'entonnoir — le
     vif #E94E1A n'y tenait plus le 4,5:1.                             */
  color: #FF7A3D;
}

.cm-avertissement {
  margin-top: clamp(26px, 3vw, 40px);
  padding: 18px 22px;
  border-left: 2px solid rgba(242,239,234,.28);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--scr-on-night-mute);
}

/* ═══════════════════════════════════════════════════════════════════════
   11. LE DEVIS — un formulaire par secteur
   ───────────────────────────────────────────────────────────────────────
   Le cœur de la page. Le secteur est un vrai groupe de boutons radio :
   sans JavaScript, tous les blocs sectoriels restent visibles et le
   formulaire reste envoyable. Avec JavaScript, seuls les champs du
   secteur choisi sont actifs — les autres sont `disabled`, donc jamais
   transmis.
   ═══════════════════════════════════════════════════════════════════════ */
.cm-devis { position: relative; }
.cm-devis__cadre {
  position: relative;
  padding: clamp(26px, 3.6vw, 54px);
  border: 1px solid var(--scr-bord);
  border-radius: 24px;
  background: linear-gradient(170deg, var(--scr-verre-2), rgba(23,18,15,.72));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
/* Halo orange derrière le formulaire : c'est la zone éclairée de la pièce */
.cm-devis__cadre::before {
  content: "";
  position: absolute;
  left: 50%; top: -180px;
  width: 620px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(233,78,26,.20), transparent 68%);
  pointer-events: none;
}
.cm-devis__cadre > * { position: relative; }

.cm-pas {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242,239,234,.62);
}
/* #F2601F : sur le verre du cadre, le vif passait sous 4,5:1. */
.cm-pas b { color: #F2601F; font-weight: 500; }
.cm-pas i { flex: 1 1 auto; height: 1px; background: rgba(242,239,234,.14); }

.cm-champs { display: grid; gap: 20px; }
@media (min-width: 720px) { .cm-champs--2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.cm-champs--espace { margin-top: 20px; }

.cm-champ { display: grid; gap: 7px; }
.cm-champ > label {
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--scr-on-night-soft);
}
.cm-champ > label .cm-oblig { color: var(--scr-orange); }
.cm-champ input,
.cm-champ select,
.cm-champ textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid rgba(242,239,234,.16);
  border-radius: 12px;
  /* Verre clair, PLUS clair que le panneau qui le porte : le champ se
     présente comme une surface qui attend la main, pas comme un puits. */
  background: rgba(242,239,234,.07);
  color: var(--scr-paper);
  font-family: var(--scr-font);
  font-weight: 300;
  font-size: 16px;               /* 16px : iOS ne zoome pas au focus */
  line-height: 1.5;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.cm-champ textarea { min-height: 128px; resize: vertical; }
.cm-champ select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(242,239,234,.6) 50%),
                    linear-gradient(135deg, rgba(242,239,234,.6) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.cm-champ input::placeholder,
.cm-champ textarea::placeholder { color: rgba(242,239,234,.48); }
.cm-champ input:hover,
.cm-champ select:hover,
.cm-champ textarea:hover { border-color: rgba(242,239,234,.3); }
.cm-champ input:focus,
.cm-champ select:focus,
.cm-champ textarea:focus {
  /* Le focus ECLAIRE le champ (il l'assombrissait) : on écrit dans la lumière. */
  background: rgba(242,239,234,.1);
  box-shadow: 0 0 0 4px rgba(233,78,26,.16);
}
.cm-champ__aide { font-size: 14px; line-height: 1.55; color: var(--scr-on-night-mute); }

/* État d'erreur : couleur ET texte, jamais la couleur seule */
.cm-champ input[aria-invalid="true"],
.cm-champ select[aria-invalid="true"],
.cm-champ textarea[aria-invalid="true"] { border-color: #FF7A4D; }
.cm-erreur {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #FFA98B;
}
.cm-erreur::before { content: "▲"; font-size: 9px; }
.cm-champ.is-erreur .cm-erreur { display: flex; }

/* ─── Le sélecteur de secteur ─────────────────────────────────────────── */
.cm-secteurs {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.cm-secteurs > legend {
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--scr-on-night-soft);
}
.cm-secteurs__liste { display: flex; flex-wrap: wrap; gap: 9px; }
.cm-secteur { position: relative; }
/* L'input reste dans le flux mais invisible : le focus clavier se voit
   sur le label grâce à `:focus-visible + label`.                      */
.cm-secteur input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.cm-secteur label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--scr-bord);
  border-radius: 999px;
  font-family: var(--scr-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--scr-on-night-soft);
  cursor: pointer;
  transition: transform .3s var(--scr-ease), border-color .3s ease, color .3s ease, background-color .3s ease;
}
.cm-secteur label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.cm-secteur label:hover { transform: translateY(-2px); border-color: var(--scr-orange); color: var(--scr-paper); }
.cm-secteur input:checked + label {
  border-color: var(--scr-orange);
  background: rgba(233,78,26,.14);
  color: var(--scr-paper);
}
.cm-secteur input:checked + label::before {
  background: var(--scr-orange);
  box-shadow: 0 0 10px rgba(233,78,26,.9);
}
.cm-secteur input:focus-visible + label { outline: 3px solid var(--scr-orange); outline-offset: 3px; }

/* ─── Le panneau sectoriel ────────────────────────────────────────────── */
.cm-panneau {
  margin: 0 0 26px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--scr-bord);
  border-left: 2px solid var(--scr-orange);
  border-radius: 4px 18px 18px 4px;
  background: rgba(23,18,15,.45);
}
.cm-panneau[hidden] { display: none; }
/* Le bloc de coordonnees n'appartient a aucun secteur : il reste
   affiche quel que soit le choix, d'ou le liseré neutre.          */
.cm-panneau--commun { border-left-color: rgba(242,239,234,.2); }
.js .cm-panneau.is-swap { animation: cmBascule .5s var(--scr-ease); transform-origin: 0 50%; }
@keyframes cmBascule {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}
.cm-panneau > legend,
.cm-panneau__titre {
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--scr-orange);
}
.cm-panneau__phrase { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--scr-on-night-soft); }

/* Cases à cocher : de vraies cibles, pas des puces décoratives */
.cm-cases { display: flex; flex-wrap: wrap; gap: 9px; }
.cm-case { position: relative; }
.cm-case input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.cm-case label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(242,239,234,.16);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--scr-on-night-soft);
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.cm-case label::before {
  content: "";
  width: 15px; height: 15px;
  border: 1px solid rgba(242,239,234,.4);
  border-radius: 4px;
  transition: background-color .25s ease, border-color .25s ease;
}
.cm-case label:hover { border-color: rgba(233,78,26,.55); color: var(--scr-paper); }
.cm-case input:checked + label {
  border-color: var(--scr-orange);
  background: rgba(233,78,26,.12);
  color: var(--scr-paper);
}
.cm-case input:checked + label::before {
  background: var(--scr-orange) linear-gradient(transparent, transparent);
  border-color: var(--scr-orange);
  box-shadow: inset 0 0 0 2px rgba(23,18,15,.8);
}
.cm-case input:focus-visible + label { outline: 3px solid var(--scr-orange); outline-offset: 3px; }

/* ─── Consentement, envoi, réponses ───────────────────────────────────── */
.cm-consentement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--scr-on-night-soft);
}
.cm-consentement input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--scr-orange);
}
.cm-consentement a { color: var(--scr-orange); }

/* Pot de miel : invisible pour l'humain, tentant pour le robot. */
.cm-miel {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cm-envoi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--scr-bord);
}
.cm-envoi .scr-btn { flex: 0 0 auto; }
.cm-envoi__rassure {
  margin: 0;
  padding: 8px 18px;
  border: 1px solid var(--scr-bord);
  border-radius: 999px;
  background: var(--scr-verre-1);
  font-family: var(--scr-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(242,239,234,.62);
}

/* ─── Le rail des trois étapes — aide de pointeur, grand écran ────────
   Construit par railDevis() : aria-hidden, boutons hors tabulation,
   libellés lus dans les <legend>. Masqué sous 1100 px.               */
.cm-rail { display: none; }
@media (min-width: 1100px) {
  .js .cm-devis__cadre--rail {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    column-gap: clamp(26px, 3vw, 48px);
    /* `clip` et non `hidden` : un ancêtre en overflow hidden empêche
       position: sticky de suivre le défilement.                      */
    overflow: clip;
  }
  .js .cm-devis__cadre--rail > .cm-pas { grid-column: 1 / -1; }
  .js .cm-rail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: start;
    position: sticky;
    top: calc(var(--scr-header) + 24px);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .cm-rail li { position: relative; }
  .cm-rail button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 2px 10px 16px;
    border: 0;
    border-left: 1px solid var(--scr-bord);
    border-radius: 0;
    background: none;
    color: rgba(242,239,234,.58);
    font-family: var(--scr-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: color .3s ease, border-color .3s ease;
  }
  .cm-rail button::before {
    content: "";
    flex: 0 0 auto;
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1px solid currentColor;
    transition: background-color .3s ease, box-shadow .3s ease;
  }
  .cm-rail button:hover { color: var(--scr-paper); }
  .cm-rail li.is-actif button {
    color: var(--scr-orange);
    border-left-color: var(--scr-orange);
  }
  .cm-rail li.is-actif button::before {
    background: var(--scr-orange);
    box-shadow: 0 0 10px rgba(233,78,26,.9);
  }
}

.cm-bilan {
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid rgba(255,122,77,.5);
  border-radius: 12px;
  background: rgba(255,122,77,.08);
  font-size: 15px;
  line-height: 1.6;
  color: #FFC3AC;
}
.cm-bilan[hidden] { display: none; }
.cm-bilan ul { margin: 8px 0 0; padding-left: 20px; }
.cm-bilan a { color: inherit; }

.cm-merci {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(233,78,26,.45);
  border-radius: 18px;
  background: rgba(233,78,26,.07);
}
.cm-merci[hidden] { display: none; }
.cm-merci h3 { margin: 0 0 10px; color: var(--scr-paper); }
.cm-merci p { color: var(--scr-on-night-soft); }

/* ═══════════════════════════════════════════════════════════════════════
   12. FAQ
   ═══════════════════════════════════════════════════════════════════════ */
.cm-faq { border-top: 1px solid var(--scr-bord); }
.cm-faq details { border-bottom: 1px solid var(--scr-bord); }
.cm-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 46px 24px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 300;
  color: var(--scr-paper);
  cursor: pointer;
  list-style: none;
  transition: color .3s ease;
}
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary:hover { color: var(--scr-orange); }
.cm-faq summary:focus-visible { outline: 3px solid var(--scr-orange); outline-offset: -3px; border-radius: 6px; }
.cm-faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--scr-orange);
  border-bottom: 1.5px solid var(--scr-orange);
  transform: rotate(45deg) translateY(-50%);
  transform-origin: 50% 0;
  transition: transform .35s var(--scr-ease);
}
.cm-faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.cm-faq__rep {
  margin: 0;
  padding: 0 46px 24px 0;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--scr-on-night-soft);
}
.cm-faq__rep + .cm-faq__rep { padding-top: 0; margin-top: -12px; }

/* ═══════════════════════════════════════════════════════════════════════
   13. APPEL FINAL & BARRE COLLANTE
   ═══════════════════════════════════════════════════════════════════════ */
.cm-cta { text-align: center; }
.cm-cta h2 { max-width: 900px; margin-inline: auto; font-size: clamp(26px, 3.6vw, 50px); }
.cm-cta .scr-lede { max-width: 78ch; margin-inline: auto; text-align: center; }
.cm-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

/* Rappel d'action permanent sur petit écran : c'est là que se perd le
   plus de demandes. Il n'apparaît qu'une fois le hero passé, et
   disparaît quand le formulaire est à l'écran.                        */
.cm-barre {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 24px);
  background: rgba(23,18,15,.92);
  border-top: 1px solid var(--scr-bord);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform .45s var(--scr-ease);
}
.cm-barre.is-la { transform: none; }
.cm-barre p {
  margin: 0;
  font-family: var(--scr-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(242,239,234,.68);
}
.cm-barre .scr-btn { padding: 11px 20px; min-height: 44px; }
/* position: fixed est répété ici : page.css pose `position: relative`
   sur tous les enfants directs de .scr-nuit avec une spécificité plus
   forte que .cm-barre seul.                                           */
@media (max-width: 860px) { .js .cm-barre { display: flex; position: fixed; } }
/* Sur grand écran, la barre devient une pastille flottante en bas à
   droite — mêmes contenus, même logique d'apparition que barre() (elle
   ne recouvre jamais le formulaire, qui la fait disparaître).        */
@media (min-width: 861px) {
  .js .cm-barre {
    display: flex;
    position: fixed;
    left: auto;
    right: 24px;
    bottom: 24px;
    width: auto;
    border: 1px solid var(--scr-bord);
    border-radius: 999px;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
    transform: translateY(calc(110% + 24px));
  }
  .js .cm-barre.is-la { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Préférences système
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .js .cm-hero h1 .cm-l > span { transform: none; animation: none; }
  .js .cm-hero .scr-lede, .js .cm-hero__actions, .js .cm-preuve { opacity: 1; animation: none; }
  .js .cm-descendre i, .js .cm-viseur::after, .js .cm-tele span:first-child::before { animation: none; }
  .cm-torche { display: none; }
  .cm-presta::after { display: none; }
  .cm-presta__dessin { transition: none; }
  /* La mise en retrait des pieces du fond n'est pas du mouvement :
     on ne supprime que les transitions.                          */
  .js .cm-anneau, .js .cm-piece { transition: none; }
  .cm-support:hover { transform: none; }
  .cm-etage::before, .cm-calendrier span { transition: none; }
  .js .cm-panneau.is-swap { animation: none; }
  .cm-tel__post { transition: none; }
  .cm-barre { transition: none; }
  /* Les décorations nouvelles : la lueur, la poussière et la tête du
     fil disparaissent ; le fil, lui, reste (c'est du dessin) et le
     script le pose entièrement tracé.                                */
  .cm-presta__lueur, .cm-vitrine__poussiere, .cm-vol__tete { display: none; }
  .cm-vol__fil { transition: none; }
  .js .cm-scene::before { transition: none; }
  .cm-tel { animation: none; transform: none; }
  .cm-tel::after { animation: none; }
}

@media (forced-colors: active) {
  .cm-torche, .cm-viseur, .cm-piece__faisceau, .cm-piece__socle,
  .cm-presta__dessin, .cm-scene::before,
  .cm-drone, .cm-piece__reflet, .cm-vitrine__poussiere,
  .cm-vol__fil, .cm-vol__tete, .cm-presta__lueur, .cm-tel::after { display: none; }
  .js .cm-piece { opacity: 1; filter: none; }
  .cm-secteur input:checked + label,
  .cm-case input:checked + label,
  .cm-collection[aria-selected="true"] { border: 3px solid ButtonText; }
}

@media print {
  .cm-hero { min-height: 0; }
  .cm-torche, .cm-viseur, .cm-descendre, .cm-barre,
  .cm-commandes, .cm-collections, .cm-scene::before,
  .cm-drone, .cm-decor-stop, .cm-tel__pause, .cm-rail,
  .cm-vitrine__poussiere, .cm-piece__reflet,
  .cm-vol__fil, .cm-vol__tete { display: none; }
  .js .cm-anneau { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: none; }
  .js .cm-piece { position: static; width: auto; margin: 0; opacity: 1; filter: none; transform: none; }
  .cm-scene { height: auto; perspective: none; }
  .cm-piece__faisceau { display: none; }
  .cm-presta, .cm-support, .cm-devis__cadre { background: #fff; color: #000; border-color: #999; }
  .cm-presta h3, .cm-support h3, .cm-etape h3 { color: #000; }
  .cm-presta p, .cm-support p, .cm-etape p, .cm-role p { color: #222; }
}
