/* ================================================================
   HEAR THE LIGHT — Page Collab (collab.html)
   Mise en page (refonte du 29/11) :
   1. En-tête : titre à gauche ; à droite, l'accroche + les villes en
      pastilles cliquables (ouvertes / bientôt), « Choisis ta ville ».
   2. Deux portes côte à côte : celle qu'on survole s'élargit (flex-grow)
      et son mot s'étire (axe wdth d'Anybody), l'autre s'éteint. Chaque
      porte porte un bouton plein ; le mot est borné en cqi (jamais coupé).
   3. Zone créateur : colonne d'infos et d'offres à gauche, carte
      collante à droite (le clic sur une pastille fait défiler la liste).
   4. « Comment ça se passe » : deux parcours alignés (rangées partagées
      en subgrid), vraies étapes.
   5. Appel final : un grand titre sur UNE ligne (taille calculée en JS,
      fitEndTitle), traversé par un balayage de lumière.
   Couleurs : uniquement les jetons des palettes (htl.css).
   Règles projet : animations toujours actives, mobile uniquement dans
   @media (max-width: 768px).
   ================================================================ */

.cl { position: relative; z-index: 2; }

/* ── 1. En-tête ───────────────────────────────────────────────── */
.cl-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8.5vw, 140px));
  padding-bottom: clamp(48px, 6vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 40px clamp(32px, 5vw, 96px);
}
.cl-hero::before {
  content: '';
  position: absolute; z-index: -1; pointer-events: none;
  left: -12%; top: 8%; width: min(1100px, 90vw); height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--light) 10%, transparent), transparent);
}
.cl-title { --tune-to: 84; max-width: 11ch; margin-left: -.03em; }
.cl-hero__side { display: grid; gap: clamp(28px, 3vw, 44px); padding-bottom: .3em; }
.cl-lead { color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); max-width: 26em; }

/* Villes : pastilles cliquables sur deux colonnes.
   Ouverte = point allumé + petite flèche (ouvre la carte) ;
   à venir = point creux + « Bientôt », qui devient « Me prévenir » au survol. */
.cl-cities__cap { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cl-cities__cap strong { color: var(--fg); font-weight: 600; }
.cl-cities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cl-cities__list li { margin: 0; min-width: 0; }
.cl-city {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; margin: 0; padding: 0 16px 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), transform .4s var(--ease-out);
}
.cl-city:hover, .cl-city:focus-visible { background: var(--bg-2); border-color: var(--light); }
/* le focus global (htl.css) arrondit à 4px : on garde la forme de pastille */
.cl-cities .cl-city:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: var(--r-pill); }
.cl-city:active { transform: scale(.98); }
.cl-city__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px var(--light); animation: cl-pulse 2.8s var(--ease-in-out) infinite; }
.cl-cities__list li:nth-child(2n) .cl-city__dot { animation-delay: -.9s; }
.cl-cities__list li:nth-child(3n) .cl-city__dot { animation-delay: -1.7s; }
@keyframes cl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.cl-city__name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.5vw, 22px); line-height: 1;
  font-variation-settings: 'wdth' 80;
  transition: font-variation-settings .6s var(--ease-out), color .3s;
}
.cl-city:hover .cl-city__name, .cl-city:focus-visible .cl-city__name { font-variation-settings: 'wdth' 96; }
/* Flèche discrète des villes ouvertes */
.cl-city__go { display: inline-flex; flex-shrink: 0; width: 16px; height: 16px; color: var(--muted); transition: color .3s, transform .5s var(--ease-out); }
.cl-city__go svg { width: 100%; height: 100%; }
.cl-city:hover .cl-city__go, .cl-city:focus-visible .cl-city__go { color: var(--light); transform: translate(2px, -2px); }
/* Villes à venir : « Bientôt » ↔ « Me prévenir » (les deux mots occupent la même case) */
.cl-city__st { display: grid; flex-shrink: 0; font-size: 12px; color: var(--muted); text-align: right; }
.cl-city__soon, .cl-city__notify { grid-area: 1 / 1; white-space: nowrap; transition: opacity .3s, transform .4s var(--ease-out); }
.cl-city__notify { opacity: 0; transform: translateY(4px); color: var(--fg); font-weight: 500; }
.cl-city.is-soon:hover .cl-city__soon, .cl-city.is-soon:focus-visible .cl-city__soon { opacity: 0; transform: translateY(-4px); }
.cl-city.is-soon:hover .cl-city__notify, .cl-city.is-soon:focus-visible .cl-city__notify { opacity: 1; transform: none; }
.cl-city.is-soon { border-style: dashed; }
.cl-city.is-soon:hover, .cl-city.is-soon:focus-visible { border-style: solid; }
.cl-city.is-soon .cl-city__dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); animation: none; }
.cl-city.is-soon .cl-city__name { color: color-mix(in srgb, var(--fg) 55%, var(--bg)); }
.cl-city.is-soon:hover .cl-city__name, .cl-city.is-soon:focus-visible .cl-city__name { color: var(--fg); }

/* ── 2. Les deux portes (côte à côte) ─────────────────────────── */
/* container-type : la taille du mot de chaque porte est bornée par la largeur
   de la rangée (cqi), pour que « Entreprise » tienne même sur la porte survolée. */
.cl-doors { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); container-type: inline-size; }
.cl-door {
  --door-light: var(--light);
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(340px, 31vw, 500px);
  margin: 0; padding: clamp(32px, 3.4vw, 52px) clamp(24px, 3vw, 48px) clamp(32px, 3.4vw, 52px) 0;
  border: 0;
  background: none; color: var(--fg);
  font: inherit; text-align: left; cursor: pointer;
  transition: flex-grow .9s var(--ease-out);
}
.cl-door--company { --door-light: var(--light-2); padding-left: clamp(24px, 3vw, 48px); padding-right: 0; border-left: 1px solid var(--line); }
.cl-doors:hover .cl-door:hover, .cl-door:focus-visible { flex-grow: 1.42; }
/* Halo qui monte du bas de la porte */
.cl-door::before {
  content: '';
  position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background: radial-gradient(70% 90% at 22% 105%, color-mix(in srgb, var(--door-light) 20%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity .9s var(--ease-out);
}
/* Fil de lumière qui court sur le haut de la porte */
.cl-door::after {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--light), var(--light-2));
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
}
.cl-door:hover::before, .cl-door:focus-visible::before { opacity: 1; }
.cl-door:hover::after, .cl-door:focus-visible::after { transform: scaleX(1); }
.cl-door:focus-visible { outline-offset: -2px; }
/* Taille : min(taille d'origine, 8.2cqi). Porte survolée ≈ 58 % de la rangée,
   « Entreprise » à wdth 92 ≈ 5,6 em → ~46cqi : ça tient avec de la marge,
   et même sans l'axe wdth (≈ 6,1 em à wdth 100) la porte au repos ne coupe pas. */
.cl-door__word {
  display: block; max-width: 100%;
  font-family: var(--font-display); font-weight: 800;
  font-size: min(clamp(52px, 7.2vw, 124px), 8.2cqi); line-height: .86; letter-spacing: -.015em;
  font-variation-settings: 'wdth' 62;
  transition: font-variation-settings 1s var(--ease-out), color .5s var(--ease-out);
}
.cl-door:hover .cl-door__word, .cl-door:focus-visible .cl-door__word { font-variation-settings: 'wdth' 92; }
.cl-doors:hover .cl-door:not(:hover) .cl-door__word { color: color-mix(in srgb, var(--fg) 32%, var(--bg)); font-variation-settings: 'wdth' 54; }
.cl-door__side { display: grid; gap: 24px; justify-items: start; max-width: 380px; }
.cl-door__text { color: var(--muted); font-size: 16px; line-height: 1.55; }
.cl-door__text strong { color: var(--fg); font-weight: 600; }
/* L'appel à l'action est un vrai bouton plein (couleur de la porte) : c'est lui
   qu'on doit voir en premier. La porte entière reste cliquable. */
.cl-door__cta { height: 56px; padding: 0 30px; font-size: 16px; transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.cl-door:hover .cl-door__cta, .cl-door:focus-visible .cl-door__cta { transform: translateX(4px); }
.cl-door:hover .cl-door__cta::before { opacity: .55; }
.cl-doors:hover .cl-door:not(:hover) .cl-door__cta { --b-bg: transparent; --b-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }

/* ── 3. Zone créateur : infos à gauche, carte collante à droite ─ */
.cl-zone {
  margin-top: clamp(24px, 3vw, 48px);
  scroll-margin-top: calc(var(--nav-h) + 12px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "bar bar" "side map";
  align-items: start;
  gap: clamp(24px, 3vw, 40px) clamp(28px, 3.6vw, 64px);
}
.cl-zone__bar { grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 56px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cl-back { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 0; cursor: pointer; font: inherit; font-size: 15px; color: var(--muted); transition: color .25s; }
.cl-back::before { content: ''; width: 8px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .4s var(--ease-out); }
.cl-back:hover { color: var(--fg); }
.cl-back:hover::before { transform: translateX(-4px) rotate(45deg); }
.cl-contract-cta { display: flex; }

.cl-side { grid-area: side; min-width: 0; }
.cl-side__head { padding-bottom: clamp(22px, 2.4vw, 32px); margin-bottom: clamp(26px, 2.8vw, 40px); border-bottom: 1px solid var(--line); }
.cl-side__city {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 5.4vw, 92px); line-height: .88; letter-spacing: -.01em;
  font-variation-settings: 'wdth' 74;
  overflow-wrap: anywhere;
  animation: cl-city-in 1.1s var(--ease-out) both;
}
@keyframes cl-city-in { from { opacity: 0; font-variation-settings: 'wdth' 50; } to { opacity: 1; font-variation-settings: 'wdth' 74; } }
.cl-side__count { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.cl-side__count::before { content: ''; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px var(--light); }

/* ── Carte ────────────────────────────────────────────────────── */
.map-wrap {
  grid-area: map;
  position: sticky; top: calc(var(--nav-h) + 16px);
  border-radius: var(--r-media); overflow: hidden; background: var(--bg-2);
  box-shadow: 0 50px 140px -70px color-mix(in srgb, var(--light) 40%, transparent);
}
.map-wrap::after { content: ''; position: absolute; inset: 0; z-index: 800; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
#collab-map { height: clamp(540px, calc(100vh - var(--nav-h) - 110px), 780px); width: 100%; background: var(--bg-2); z-index: 1; transition: filter .4s, transform .4s; }
#collab-map.blurred { filter: blur(7px) saturate(.6) brightness(.8); transform: scale(1.06); pointer-events: none; }
.map-wrap .leaflet-container { font-family: var(--font-body); background: var(--bg-2); }
/* Tuiles OpenStreetMap (claires d'origine) : assombries pour les palettes sombres,
   adoucies pour les palettes claires (classe posée par le script, suit 'themechange'). */
#collab-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.92) saturate(.4); transition: filter .5s var(--ease-out); }
#collab-map.tiles-light .leaflet-tile-pane { filter: grayscale(.85) contrast(.94) brightness(1.03); }
.map-wrap .leaflet-bar { border: 0; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.map-wrap .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--fg); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-wrap .leaflet-bar a:last-child { border-bottom: 0; }
.map-wrap .leaflet-bar a:hover { background: var(--bg-2); color: var(--fg); }
.map-wrap .leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 72%, transparent); color: var(--muted); font-size: 11px; border-radius: 8px 0 0 0; }
.map-wrap .leaflet-control-attribution a { color: var(--fg); }

.map-city-badge {
  position: absolute; left: 16px; top: 16px; z-index: 600;
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 18px; font-variation-settings: 'wdth' 82;
  color: var(--fg);
}
.map-city-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px var(--light); }
.city-switch { position: absolute; right: 16px; top: 16px; z-index: 600; }
.city-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 14px; font-weight: 500; color: var(--fg);
  transition: box-shadow .25s;
}
.city-btn:hover { box-shadow: inset 0 0 0 1px var(--fg); }
/* Menu déroulant des villes (gardé pour compatibilité, le bouton ouvre l'écran de choix) */
.city-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s; }
.city-switch.open .city-menu { opacity: 1; transform: none; pointer-events: auto; }
.city-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.city-item:hover:not(.locked) { background: var(--bg-3); }
.city-item.active { background: var(--fg); color: var(--bg); }
.city-item.locked { color: var(--muted); cursor: not-allowed; }
.city-item .ci-lock { display: inline-flex; flex-shrink: 0; }
.city-item .ci-lock svg { width: 14px; height: 14px; }
.city-item .ci-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-item .lock-tag { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.map-wrap.no-city .map-city-badge, .map-wrap.no-city .city-switch { display: none; }

/* ── Écran « Choisis ta ville » (posé sur la carte floutée) ───── */
.city-chooser {
  position: absolute; inset: 0; z-index: 700;
  display: flex; align-items: flex-end;
  padding: clamp(28px, 3.4vw, 52px);
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent) 35%, color-mix(in srgb, var(--bg) 62%, transparent));
  transition: opacity .4s var(--ease-out);
}
.city-chooser.hidden { opacity: 0; pointer-events: none; }
.city-chooser-inner { width: 100%; animation: cc-in .7s var(--ease-out) both; }
@keyframes cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cc-title { margin: 0 0 10px; font-size: clamp(36px, 3.8vw, 60px); }
.cc-sub { margin: 0 0 clamp(20px, 2.4vw, 32px); color: var(--muted); font-size: 16px; max-width: 34em; }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); border-top: 1px solid var(--line); }
.cc-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-width: 0; margin: 0; padding: 16px 0 18px;
  border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--fg); font: inherit; text-align: left;
  cursor: pointer;
}
.cc-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--light), var(--light-2));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.cc-card:not(.locked):hover::after, .cc-card:not(.locked):focus-visible::after { transform: scaleX(1); }
.cc-card .cc-name {
  display: block; max-width: 100%; white-space: nowrap; overflow: hidden;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 3.2vw, 52px); line-height: .95; letter-spacing: -.01em;
  font-variation-settings: 'wdth' 70;
  transition: font-variation-settings .8s var(--ease-out), color .4s;
}
.cc-card:not(.locked):hover .cc-name, .cc-card:not(.locked):focus-visible .cc-name { font-variation-settings: 'wdth' 90; }
.cc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); min-height: 24px; }
.cc-code { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 600; color: var(--muted); }
.cc-go { transition: color .3s; }
.cc-card:not(.locked):hover .cc-go { color: var(--fg); }
.cc-card.locked { cursor: default; }
.cc-card.locked .cc-name { color: color-mix(in srgb, var(--fg) 34%, var(--bg)); }
.cc-tag { color: var(--muted); }
.cc-notify {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: box-shadow .25s, background-color .25s;
}
.cc-notify:hover { box-shadow: inset 0 0 0 1px var(--fg); }

/* Marqueur numéroté sur la carte */
.km-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; background: var(--light); color: var(--on-light); border: 2px solid var(--bg); box-shadow: 0 0 18px color-mix(in srgb, var(--light) 55%, transparent); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.km-pin span { transform: rotate(45deg); }
/* Bulle d'une pastille pour un visiteur non validé (Leaflet .leaflet-popup, habillée aux jetons) */
.cl-popup .leaflet-popup-content-wrapper { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .6); }
.cl-popup .leaflet-popup-tip { background: var(--bg-2); border: 1px solid var(--line); }
.cl-popup .leaflet-popup-content { margin: 16px 18px; font-family: var(--font-body); }
.cl-popup a.leaflet-popup-close-button { color: var(--muted); }
.cl-pop { display: grid; gap: 12px; justify-items: start; }
.cl-pop__t { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg); }

/* ── Vue normale / vue complète (colonne de gauche) ───────────── */
.cl-view { display: grid; gap: 28px; }
.cl-view__text .htl-h3 { margin-bottom: 14px; max-width: 18ch; }
.cl-view__text .htl-body { margin: 0; max-width: 40ch; }
.cl-view__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-full__head { display: grid; gap: 12px; margin-bottom: 26px; }
.cl-full__head .htl-body { margin: 0; max-width: 44ch; }

/* Filtres */
.cl-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.cl-filter { display: grid; gap: 8px; min-width: 0; }
.cl-filter label { font-size: 13px; color: var(--muted); }
.cl-select { position: relative; display: block; }
.cl-select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.cl-filter select, .cf-field select {
  width: 100%; height: 48px; padding: 0 44px 0 16px;
  -webkit-appearance: none; appearance: none;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; cursor: pointer; outline: none;
  text-overflow: ellipsis;
  transition: border-color .2s;
}
.cl-filter select:focus, .cf-field select:focus { border-color: var(--fg); }
.cl-filter select option, .cf-field select option { background: var(--bg-2); color: var(--fg); }

/* Liste des offres : grille compacte pensée pour la colonne de gauche
   num | photo | nom + service        | flèche
   num | photo | abonnés  rémunération| flèche */
.cl-collab-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cl-collab-empty { padding: 32px 0; color: var(--muted); font-size: 16px; }
.collab-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.4ch 92px minmax(0, 1fr) auto 20px;
  grid-template-areas: "num img main main arrow" "num img subs remun arrow";
  align-items: center;
  gap: 8px 16px;
  padding: 18px 10px;
  border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background-color .35s var(--ease-out);
}
.collab-card:not(:has(> img)) { grid-template-columns: 2.4ch minmax(0, 1fr) auto 20px; grid-template-areas: "num main main arrow" "num subs remun arrow"; }
.collab-card:hover { background: color-mix(in srgb, var(--light) 6%, transparent); }
.collab-card.cc-flash { animation: cc-flash 1.2s var(--ease-out); }
@keyframes cc-flash { 0% { background: color-mix(in srgb, var(--light) 26%, transparent); } 100% { background: transparent; } }
.collab-card .num { grid-area: num; align-self: start; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; font-variation-settings: 'wdth' 76; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.collab-card:hover .num { color: var(--light); }
.collab-card > img { grid-area: img; width: 92px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.collab-card .cc-main { grid-area: main; min-width: 0; }
.collab-card .cc-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.05; font-variation-settings: 'wdth' 90; transition: font-variation-settings .6s var(--ease-out); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collab-card:hover .cc-name { font-variation-settings: 'wdth' 104; }
.collab-card .cc-service { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.collab-card .cc-subs-wrap { grid-area: subs; justify-self: start; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.collab-card .cc-remun-wrap { grid-area: remun; justify-self: end; display: flex; align-items: baseline; gap: 6px; flex-direction: row-reverse; }
.collab-card .cc-subs, .collab-card .cc-remun { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.1; font-variation-settings: 'wdth' 86; white-space: nowrap; }
.collab-card .cc-remun { color: var(--light); }
.collab-card .cc-subs-lbl, .collab-card .cc-remun-lbl { font-size: 12px; color: var(--muted); white-space: nowrap; }
.collab-card .cc-arrow { grid-area: arrow; display: inline-flex; color: var(--muted); transition: transform .4s var(--ease-out), color .3s; }
.collab-card .cc-arrow svg { width: 20px; height: 20px; }
.collab-card:hover .cc-arrow { color: var(--fg); transform: translateX(4px); }

/* ── 4. Comment ça se passe ───────────────────────────────────── */
.cl-how { padding-top: clamp(104px, 12vw, 200px); padding-bottom: clamp(80px, 9vw, 150px); }
/* En-tête et colonnes sur la MÊME grille (deux moitiés, même gouttière) :
   l'accroche démarre pile au-dessus de la colonne « Côté établissement ». */
.cl-how__head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 20px clamp(32px, 5vw, 96px); margin-bottom: clamp(44px, 5.4vw, 88px); }
.cl-how__head .htl-h2 { max-width: 12ch; }
.cl-how__head .htl-body { margin: 0; padding-bottom: .4em; font-size: clamp(16px, 1.2vw, 18px); }
/* Les deux parcours partent de la même ligne. Rangées partagées (subgrid) :
   titre sur la rangée 1, étape n sur la rangée n+1 des deux côtés,
   donc les filets et les numéros s'alignent même si un texte est plus long. */
.cl-how__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(4, auto);
  column-gap: clamp(32px, 5vw, 96px); row-gap: 0;
}
.cl-path { display: grid; grid-row: 1 / span 5; grid-template-rows: subgrid; min-width: 0; }
.cl-path .cl-steps { grid-row: 2 / span 4; display: grid; grid-template-rows: subgrid; align-content: start; }
.cl-path__who {
  margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 2.4vw, 38px); line-height: 1; letter-spacing: -.005em;
  font-variation-settings: 'wdth' 84;
}
.cl-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cl-steps li {
  position: relative;
  display: grid; grid-template-columns: 3.4ch minmax(0, 1fr); gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cl-steps li::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--light), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
.cl-steps li:hover::after { transform: scaleX(1); }
.cl-steps__n {
  font-family: var(--font-display); font-weight: 800;
  font-size: 30px; line-height: .9;
  font-variation-settings: 'wdth' 64;
  color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color .4s, font-variation-settings .7s var(--ease-out);
}
.cl-steps li:hover .cl-steps__n { color: var(--light); font-variation-settings: 'wdth' 100; }
.cl-steps__t { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--fg); }
.cl-steps__d { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 42ch; }

/* ── 5. Appel final : grand titre sur une ligne ───────────────── */
.cl-end { position: relative; z-index: 2; overflow: hidden; padding: clamp(80px, 9vw, 150px) 0 clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); }
.cl-end::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; bottom: -30%; width: min(1400px, 120vw); height: 90%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 100%, color-mix(in srgb, var(--light) 14%, transparent), transparent 75%);
}
.cl-end__fit { width: 100%; overflow: hidden; padding: .04em 0 .08em; }
.cl-end__title {
  display: block; width: max-content; max-width: none; margin: 0;
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 800;
  font-size: 11vw; /* valeur de départ, recalculée par fitEndTitle() */
  line-height: .88; letter-spacing: -.02em;
  font-variation-settings: 'wdth' 78;
  /* Balayage de lumière (ne change pas la largeur du texte) */
  color: var(--fg);
  background: linear-gradient(100deg, var(--fg) 0 40%, var(--light) 48%, var(--light-2) 52%, var(--fg) 60% 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cl-sweep 7s var(--ease-in-out) infinite;
}
@keyframes cl-sweep { 0%, 15% { background-position: 100% 0; } 65%, 100% { background-position: 0% 0; } }
.cl-end__row {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: clamp(28px, 3vw, 48px); padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}
.cl-end__lead { margin: 0; max-width: 30em; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; }
.cl-end__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Modales ──────────────────────────────────────────────────── */
.cf-overlay { position: fixed; inset: 0; z-index: 9000; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
.cf-overlay.show { opacity: 1; pointer-events: auto; }
.cf-modal {
  position: fixed; z-index: 9001; left: 50%; top: 50%;
  width: min(580px, 92vw); max-height: 88vh; overflow: auto; overscroll-behavior: contain;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-2); color: var(--fg);
  border-radius: var(--r-media);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -40px color-mix(in srgb, var(--light) 30%, transparent);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -46%);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out);
}
.cf-modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.cf-modal--wide { width: min(760px, 92vw); }
.cf-modal--sm { width: min(440px, 92vw); }
.cf-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .25s; }
.cf-close:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.cf-close svg { width: 16px; height: 16px; }
.cf-eyebrow { font-size: 14px; color: var(--muted); margin: 0 48px 6px 0; }
.cf-title { margin: 0 48px 10px 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.01em; font-variation-settings: 'wdth' 84; text-wrap: balance; }
.cf-sub { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.cf-sub strong { color: var(--fg); font-weight: 600; }
.cf-field { margin-bottom: 16px; }
.cf-field > label, .cf-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--fg); }
.cf-field label .req { color: var(--light); }
.cf-field .cf-note { color: var(--muted); font-weight: 400; }
.cf-field input:not([type=checkbox]):not([type=radio]), .cf-field textarea {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 16px; outline: none;
  transition: border-color .2s;
}
.cf-field textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--fg); }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: color-mix(in srgb, var(--fg) 38%, transparent); }
.cf-field input.is-error { border-color: var(--light); }
.cf-count { margin-top: 6px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cf-send { width: 100%; margin-top: 8px; }
.cf-msg { margin: 12px 0 0; font-size: 14px; color: var(--light); min-height: 1.2em; }
.cf-msg:empty { min-height: 0; margin: 0; }
.cf-legal { margin: 0 0 14px; max-height: 200px; overflow: auto; padding: 16px 18px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.65; color: var(--muted); }
.cf-legal h4 { margin: 14px 0 6px; font-size: 14px; color: var(--fg); }
.cf-legal strong { color: var(--fg); }
.cf-accept { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; font-size: 14px; color: var(--fg); cursor: pointer; }
.cf-accept input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--light); }
#cf-conditions-zone.is-error .cf-accept { color: var(--light); }
.ct-lang { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }

/* Succès */
.cf-success { padding: 12px 0 4px; }
.cf-success .ok { width: 56px; height: 56px; margin: 0 0 22px; border-radius: 50%; display: grid; place-items: center; background: var(--light); color: var(--on-light); box-shadow: 0 0 40px color-mix(in srgb, var(--light) 45%, transparent); }
.cf-success .ok svg { width: 24px; height: 24px; }
.cf-success h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; font-variation-settings: 'wdth' 84; }
.cf-success p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; max-width: 36ch; }
.cf-success p strong { color: var(--fg); font-weight: 600; }

/* Fiche détail d'une offre */
#cd-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; margin-bottom: 22px; display: none; }
#cd-name { margin-bottom: 20px; }
.cd-row { padding: 14px 0; border-top: 1px solid var(--line); }
.cd-row h4 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cd-row p { margin: 0; color: var(--fg); font-size: 15px; line-height: 1.6; white-space: pre-line; }
.cd-row p.cd-remun { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; font-variation-settings: 'wdth' 86; color: var(--light); }

/* Contrat */
.ct-scroll { max-height: 48vh; overflow: auto; overscroll-behavior: contain; margin: 18px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.7; color: var(--muted); }
.ct-scroll h4 { margin: 18px 0 6px; font-size: 15px; color: var(--fg); }
.ct-scroll p { margin: 0 0 10px; }
.ct-scroll ul { margin: 4px 0 10px; padding-left: 18px; }
.ct-scroll li { margin-bottom: 6px; }
.ct-scroll strong { color: var(--fg); }
.ct-progress { height: 2px; margin: 0 0 18px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ct-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--light), var(--light-2)); transform: scaleX(var(--ct-p, 0)); transform-origin: left; transition: transform .15s linear; }
.ct-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
#ct-sign:disabled { opacity: .45; cursor: not-allowed; }
#ct-sign.ct-done { opacity: .6; cursor: default; }

/* Questionnaire entreprise */
.co-yesno { display: flex; gap: 24px; }
.co-radio { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; color: var(--fg); cursor: pointer; }
.co-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--light); cursor: pointer; }
.co-content { display: grid; gap: 8px; }
.co-content-row { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.co-content-row label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 44px; margin: 0; font-size: 15px; font-weight: 400; color: var(--fg); cursor: pointer; }
.co-content-row input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--light); cursor: pointer; }
.cf-field .co-content-row input.co-qty { width: 84px; height: 40px; flex-shrink: 0; padding: 0 8px; text-align: center; background: var(--bg-2); }

/* ================================================================
   MOBILE (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* En-tête */
  .cl-hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; gap: 22px; }
  .cl-title { max-width: none; }
  .cl-hero__side { gap: 28px; }
  .cl-lead { font-size: 17px; }
  .cl-cities__cap { font-size: 13.5px; margin-bottom: 12px; }
  .cl-cities__list { gap: 8px; }
  .cl-city { min-height: 48px; gap: 9px; padding: 0 12px 0 14px; }
  .cl-city__name { font-size: 16px; font-variation-settings: 'wdth' 72; }
  .cl-city:hover .cl-city__name, .cl-city:focus-visible .cl-city__name { font-variation-settings: 'wdth' 80; }
  .cl-city__st { font-size: 11px; }

  /* Portes empilées */
  .cl-doors { flex-direction: column; }
  .cl-door, .cl-door--company { flex: none; min-height: 0; gap: 22px; padding: 32px 0; border-left: 0; }
  .cl-door--company { border-top: 1px solid var(--line); }
  .cl-doors:hover .cl-door:hover, .cl-door:focus-visible { flex-grow: 1; }
  .cl-door__word { font-size: min(clamp(48px, 15vw, 76px), 17cqi); font-variation-settings: 'wdth' 74; }
  .cl-door:hover .cl-door__word, .cl-door:focus-visible .cl-door__word { font-variation-settings: 'wdth' 84; }
  .cl-doors:hover .cl-door:not(:hover) .cl-door__word { color: var(--fg); font-variation-settings: 'wdth' 74; }
  .cl-door:active::before { opacity: 1; }
  .cl-door__side { gap: 18px; max-width: none; }
  .cl-door__cta { height: 52px; padding: 0 26px; font-size: 15px; }
  .cl-door:hover .cl-door__cta, .cl-door:focus-visible .cl-door__cta { transform: none; }
  .cl-doors:hover .cl-door:not(:hover) .cl-door__cta { --b-bg: var(--fg); --b-fg: var(--bg); box-shadow: none; }
  .cl-doors:hover .cl-door--creator:not(:hover) .cl-door__cta { --b-bg: var(--light); --b-fg: var(--on-light); }
  .cl-door__text { font-size: 15px; }

  /* Zone créateur : barre, carte, puis colonne d'infos */
  .cl-zone { margin-top: 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "map" "side"; gap: 18px; }
  .cl-zone__bar { padding-bottom: 10px; }
  .cl-contract-cta, .cl-contract-cta .htl-btn { width: 100%; }
  .map-wrap { position: relative; top: auto; }
  .cl-side { padding-top: 14px; }
  .cl-side__city { font-size: clamp(44px, 14vw, 64px); }

  #collab-map { height: 420px; }
  /* L'écran « Choisis ta ville » est plus haut que la carte : tant qu'aucune ville
     n'est choisie, la zone grandit pour ne rien couper (overflow:hidden de .map-wrap). */
  .map-wrap.no-city { min-height: 640px; }
  .map-wrap.no-city #collab-map { height: 640px; }
  .city-chooser { align-items: flex-start; padding: 24px 18px; background: color-mix(in srgb, var(--bg) 82%, transparent); }
  .cc-title { font-size: clamp(34px, 10vw, 44px); }
  .cc-sub { font-size: 15px; }
  .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .cc-card { padding: 14px 0 16px; gap: 6px; }
  .cc-card .cc-name { font-size: clamp(26px, 8.4vw, 38px); }
  .cc-meta { font-size: 13px; gap: 6px 10px; }
  .map-city-badge { left: 12px; top: 12px; font-size: 16px; padding: 0 14px; }
  .city-switch { right: 12px; top: 12px; }
  .city-btn { padding: 0 14px; font-size: 13px; }

  .cl-view__actions { flex-direction: column; align-items: stretch; }
  .cl-view__actions .htl-btn { width: 100%; }
  .cl-filters { grid-template-columns: 1fr; }

  .collab-card { grid-template-columns: 2.2ch 64px minmax(0, 1fr) auto; grid-template-areas: "num img main main" "num img subs remun"; gap: 6px 12px; padding: 16px 4px; }
  .collab-card:not(:has(> img)) { grid-template-columns: 2.2ch minmax(0, 1fr) auto; grid-template-areas: "num main main" "num subs remun"; }
  .collab-card .num { font-size: 22px; }
  .collab-card > img { width: 64px; height: 52px; border-radius: 10px; }
  .collab-card .cc-name { font-size: 19px; }
  .collab-card .cc-service { -webkit-line-clamp: 1; font-size: 13px; }
  .collab-card .cc-subs, .collab-card .cc-remun { font-size: 16px; }
  .collab-card .cc-subs-lbl, .collab-card .cc-remun-lbl { font-size: 11px; }
  .collab-card .cc-arrow { display: none; }

  /* Comment ça se passe */
  .cl-how { padding-top: 88px; padding-bottom: 72px; }
  .cl-how__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .cl-how__cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 48px; }
  .cl-path { display: block; grid-row: auto; }
  .cl-path .cl-steps { display: block; grid-row: auto; }
  .cl-steps li { padding: 20px 0; gap: 14px; }
  .cl-steps__n { font-size: 26px; }
  .cl-steps__t { font-size: 17px; }

  /* Appel final */
  .cl-end { padding: 72px 0 80px; }
  .cl-end__row { flex-direction: column; align-items: stretch; }
  .cl-end__actions { flex-direction: column; }
  .cl-end__actions .htl-btn { width: 100%; }

  /* Modales en feuille qui monte du bas */
  .cf-modal, .cf-modal--wide, .cf-modal--sm {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-height: 92vh;
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: var(--r-media) var(--r-media) 0 0;
    transform: translateY(32px);
  }
  .cf-modal.show { transform: none; }
  .cf-close { right: 12px; top: 12px; }
  .cf-grid2 { grid-template-columns: 1fr; }
  .ct-scroll { max-height: 46vh; padding: 16px; font-size: 13.5px; }

  /* Très petits écrans : la liste garde l'essentiel */
  @media (max-width: 430px) {
    /* pastilles de villes : un peu plus serrées pour que « Nancy » + « Bientôt » tiennent à 360 px */
    .cl-city { gap: 7px; padding: 0 10px 0 12px; }
    .cl-city__name { font-variation-settings: 'wdth' 66; }
    .cl-city__st { font-size: 10.5px; }
    @media (max-width: 340px) { .cl-cities__list { grid-template-columns: minmax(0, 1fr); } }
    .collab-card, .collab-card:not(:has(> img)) { grid-template-columns: 2.2ch minmax(0, 1fr) auto; grid-template-areas: "num main main" "num subs remun"; }
    .collab-card > img { display: none; }
    .collab-card .cc-service { display: none; }
  }
}

/* ================================================================
   CORRECTEUR MOBILE M2 (≤ 768 px) — rien ne change sur PC
   ================================================================ */
/* Bouton « Explorer la carte » : n'existe que sur écran tactile (créé par le script) */
@media (max-width: 768px), (pointer: coarse) {
  .cl-map-explore {
    position: absolute; left: 12px; bottom: 12px; z-index: 810;
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: var(--r-pill); cursor: pointer;
    background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--fg);
    box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font: inherit; font-size: 15px; font-weight: 600;
  }
  .map-wrap.is-exploring .cl-map-explore { background: var(--light); color: var(--on-light); box-shadow: none; }
  .map-wrap.no-city .cl-map-explore { display: none; }
}
@media (max-width: 768px) {
  /* Carte : jamais plus haute que ~la moitié de l'écran */
  #collab-map { height: min(420px, 56svh); }
  .map-wrap .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }

  /* « Choisis ta ville » dans la carte : la grille définit la hauteur (plus de boîte de 640 px) */
  .map-wrap.no-city { min-height: 0; }
  .map-wrap.no-city #collab-map { position: absolute; inset: 0; height: auto; }
  .map-wrap.no-city .city-chooser { position: relative; inset: auto; }
  .cc-card .cc-name { font-size: clamp(24px, 7.4vw, 34px); }
  .cc-notify { min-height: 44px; height: auto; padding-inline: 16px; font-size: 14px; }
  .cc-meta { font-size: 14px; }

  /* Bulle d'une pastille : bouton Fermer de 44 px */
  .cl-pop__close { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; cursor: pointer; }
  .cl-pop { justify-items: stretch; }
  .cl-pop .htl-btn { width: 100%; }
  .cl-pop__t, .cl-popup .cl-pop__t { margin: 0; font-size: 15px; }
  .cl-popup a.leaflet-popup-close-button { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }

  /* Portes : boutons pleine largeur, comme l'appel final */
  .cl-door__cta { width: 100%; }
  .cl-cities__cap { font-size: 15px; }
  .cl-city__st { font-size: 12px; }

  /* Filtres et formulaire entreprise : 16 px (pas de zoom iOS), Oui/Non en grosses pastilles */
  .cl-filter select, .cf-field select { font-size: 16px; min-height: 48px; }
  .cl-filter label { font-size: 14px; }
  .co-yesno { gap: 12px; }
  .co-radio { flex: 1; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
  .co-radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--light); }
  .cf-field .co-content-row input.co-qty { height: 44px; font-size: 16px; }
  .ct-hint { font-size: 14px; }
  .ct-scroll { font-size: 15px; }

  /* Fenêtres en feuille du bas : poignée, croix collante toujours au pouce, hauteur dynamique */
  .cf-modal, .cf-modal--wide, .cf-modal--sm { max-height: 92vh; max-height: 92dvh; padding-top: 0; }
  .cf-modal::before { content: ''; display: block; width: 40px; height: 4px; margin: 10px auto 10px; border-radius: 2px; background: var(--line); }
  .cf-close { position: sticky; top: 8px; right: auto; float: right; z-index: 3; width: 44px; height: 44px; margin: 0 -8px 0 12px; background: var(--bg-2); }

  /* « Comment ça se passe » : un seul parcours à la fois (onglets Créateur / Établissement) */
  .cl-how__tabs { display: flex; padding: 4px; margin-bottom: 24px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
  .cl-how__tabs button { flex: 1; min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s; }
  .cl-how__tabs [aria-selected="true"] { background: var(--fg); color: var(--bg); }
  .cl-how__cols[data-show="creator"] .cl-path--company,
  .cl-how__cols[data-show="company"] .cl-path:not(.cl-path--company) { display: none; }
  .cl-how__head { margin-bottom: 24px; }
}
@media (max-width: 430px) {
  .cl-city__st { font-size: 12px; }
}
@media (min-width: 769px) {
  .cl-how__tabs { display: none; }
}

/* ================================================================
   TÉLÉPHONE COUCHÉ (vérification finale 30/11) — (pointer: coarse) et
   hauteur ≤ 520 px : aucun PC à souris n'est concerné.
   En-tête sur une colonne, villes en entier sur 3 colonnes, carte à la
   hauteur de l'écran (sous la nav).
   ================================================================ */
@media (pointer: coarse) and (max-height: 520px) {
  .cl-hero { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 36px; gap: 22px; }
  .cl-title { max-width: none; }
  .cl-cities__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-city__name { overflow: visible; text-overflow: clip; }
  #collab-map { height: calc(100svh - var(--nav-h) - 32px); min-height: 0; }
}
