/* ==========================================================================
   CARexplorer — composants du design « La Nuit », version 1
   Dépend de tokens.css (variables) et de motion.css (animations).
   Référence : design/reference/accueil.html et menu-etats.html.
   Les dimensions de mise en page sans variable (124, 368, 420…) viennent de la maquette.
   La version téléphone n'est pas dessinée : les règles sous 1024 px suivent la base de travail
   de design/specs/ACCUEIL.md (« Adaptation aux écrans ») et restent à faire valider.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cx-nuit); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.cx {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cx-nuit);
  color: var(--cx-lune);
  font: var(--cx-t-texte-s);
  -webkit-font-smoothing: antialiased;
}
.cx main { flex: 1 0 auto; }
.cx a { color: inherit; text-decoration: none; }
.cx img { display: block; max-width: 100%; }
.cx h1, .cx h2, .cx h3, .cx p { margin: 0; }
.cx button { font: inherit; color: inherit; }
.cx :focus-visible { outline: var(--cx-trait-selection) solid var(--cx-bleu); outline-offset: 2px; }
.cx [hidden] { display: none !important; }
/* Le champ de recherche montre déjà la saisie par son contour : pas de second cadre autour du texte. */
.cx .cx-champ__saisie:focus-visible, .cx .cx-compacte__recherche input:focus-visible { outline: 0; }

.cx-conteneur { width: 100%; max-width: calc(var(--cx-l-page) + 2 * var(--cx-e-6)); margin: 0 auto; padding: 0 var(--cx-e-6); }
.cx-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cx-legende { font: var(--cx-t-legende); color: var(--cx-legende); }
.cx-evitement {
  position: absolute; left: var(--cx-e-4); top: -100px; z-index: 30;
  padding: var(--cx-e-3) var(--cx-e-4); border-radius: var(--cx-r-puce);
  background: var(--cx-lune); color: var(--cx-nuit) !important; font: var(--cx-t-interface);
}
.cx-evitement:focus { top: var(--cx-e-2); }

/* ---------- Boutons ---------- */
.cx-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cx-e-2);
  height: var(--cx-h-bouton); padding: 0 20px; border: 0; border-radius: var(--cx-r-pilule);
  font: var(--cx-t-interface); white-space: nowrap; cursor: pointer;
  transition: background var(--cx-d-etat);
}
/* « .cx button » fait hériter police et couleur : un bouton de formulaire doit retrouver celles du composant. */
.cx button.cx-bouton { font: var(--cx-t-interface); }
.cx button.cx-bouton--clair { color: var(--cx-nuit); }
.cx-bouton svg { transition: transform var(--cx-d-icone) var(--cx-courbe); }
.cx a.cx-bouton--clair, .cx-bouton--clair { background: var(--cx-lune); color: var(--cx-nuit); }
.cx-bouton--clair:hover, a:hover > * > .cx-bouton--clair { background: var(--cx-blanc); }
.cx-bouton--clair:hover svg { transform: rotate(90deg); }
.cx-bouton--discret { box-shadow: inset 0 0 0 var(--cx-trait) var(--cx-contour); color: var(--cx-lune); }
.cx-bouton--discret:hover { background: var(--cx-surface); }
.cx-bouton-texte {
  display: flex; align-items: center; gap: var(--cx-e-2); height: var(--cx-cible); padding: 0 var(--cx-e-3);
  border-radius: var(--cx-r-puce); font: var(--cx-t-interface); color: var(--cx-lune); white-space: nowrap;
}
.cx-bouton-icone {
  position: relative; display: flex; align-items: center; justify-content: center;
  flex: 0 0 var(--cx-cible); width: var(--cx-cible); height: var(--cx-cible);
  border-radius: var(--cx-r-puce); color: var(--cx-brume); cursor: pointer;
}
.cx-bouton-texte:hover, .cx-bouton-icone:hover { background: var(--cx-surface); }

/* Bouton d'envoi : gris tant que le champ est vide, bleu dès qu'il y a du texte. Le seul bleu de l'écran. */
.cx-envoi {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 var(--cx-cible); width: var(--cx-cible); height: var(--cx-cible); padding: 0; border: 0; border-radius: 50%;
  background: var(--cx-surface-haute); color: var(--cx-gris-icone); cursor: pointer;
  transition: background var(--cx-d-etat), color var(--cx-d-etat);
}
.cx-envoi--petit { flex-basis: var(--cx-h-pastille); width: var(--cx-h-pastille); height: var(--cx-h-pastille); }
.cx-champ__saisie:not(:placeholder-shown) ~ .cx-champ__barre .cx-envoi,
.cx-compacte__recherche input:not(:placeholder-shown) ~ .cx-envoi { background: var(--cx-bleu); color: var(--cx-sur-bleu); }
.cx-champ__saisie:not(:placeholder-shown) ~ .cx-champ__barre .cx-envoi:hover,
.cx-compacte__recherche input:not(:placeholder-shown) ~ .cx-envoi:hover { background: var(--cx-bleu-survol); }

/* Pastille : idées de départ. 36 px de haut, zone tactile de 44. */
.cx-pastille {
  position: relative; display: flex; align-items: center; height: var(--cx-h-pastille); padding: 0 14px;
  border-radius: var(--cx-r-pilule); box-shadow: inset 0 0 0 var(--cx-trait) var(--cx-contour);
  font: 500 14px/20px var(--cx-police-texte); color: var(--cx-lune); white-space: nowrap;
}
.cx-pastille::before { content: ""; position: absolute; inset: -4px 0; }
.cx-pastille:hover { background: var(--cx-surface-haute); }

/* Bascule France / Europe : un rectangle arrondi, pour ne pas la confondre avec un bouton. */
.cx-bascule { display: flex; padding: 2px; border-radius: var(--cx-r-bascule); background: var(--cx-surface-haute); font: var(--cx-t-interface); }
.cx-bascule label { position: relative; display: block; cursor: pointer; }
.cx-bascule input { position: absolute; opacity: 0; pointer-events: none; }
.cx-bascule span { display: flex; align-items: center; height: var(--cx-h-pastille); padding: 0 14px; border-radius: var(--cx-r-puce); color: var(--cx-brume); }
.cx-bascule input:checked + span { background: var(--cx-lune); color: var(--cx-nuit); }
.cx-bascule input:focus-visible + span { box-shadow: 0 0 0 var(--cx-trait-selection) var(--cx-bleu); }

/* Étiquette : 22 px de haut, une seule par annonce. La couleur ne dit jamais seule l'information. */
.cx-etiquette {
  display: inline-flex; align-items: center; align-self: flex-start; height: var(--cx-h-etiquette); padding: 0 7px;
  border-radius: var(--cx-r-etiquette); font: var(--cx-t-etiquette); white-space: nowrap;
}
.cx-etiquette--ia { background: var(--cx-bleu-doux); color: var(--cx-bleu-doux-texte); }
.cx-etiquette--atout { background: var(--cx-atout-fond); color: var(--cx-atout); }
.cx-etiquette--vigilance { background: var(--cx-vigilance-fond); color: var(--cx-vigilance); }

/* Pastille de l'IA : le symbole nuit dans un rond clair, devant un avis. */
.cx-pastille-ia { display: flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--cx-lune); }
.cx-pastille-ia .cx-symbole { background: var(--cx-nuit); }
.cx-pastille-ia--moyenne { flex-basis: 24px; width: 24px; height: 24px; }
.cx-pastille-ia--grande { flex-basis: 36px; width: 36px; height: 36px; }

.cx-touche {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--cx-r-etiquette); box-shadow: inset 0 0 0 var(--cx-trait) var(--cx-contour);
  font: var(--cx-t-etiquette); color: var(--cx-brume);
}
.cx-prix { font: var(--cx-t-prix); color: var(--cx-lune); }
.cx-prix-grand { font: var(--cx-t-prix-grand); color: var(--cx-lune); }

/* Colonne de liens : annuaire, panneau du menu, pied de page. */
.cx-liens h3 { margin: 0 0 var(--cx-e-2); font: var(--cx-t-interface); color: var(--cx-lune); }
.cx-liens a { display: flex; align-items: center; min-height: 32px; font: var(--cx-t-texte-s); color: var(--cx-brume); }
.cx-liens a:hover { color: var(--cx-lune); }

/* ---------- Menu ---------- */
.cx-entete { position: relative; z-index: 10; background: var(--cx-nuit); border-bottom: var(--cx-trait) solid var(--cx-filet); }
.cx-entete__ligne { display: flex; align-items: center; height: var(--cx-h-entete); padding: 0 var(--cx-e-6); }
.cx-entete__logo { display: flex; align-items: center; height: var(--cx-cible); color: var(--cx-lune); }
.cx-entete__nav { display: flex; align-self: stretch; margin-left: 26px; }
.cx-entete__espace { flex: 1 1 auto; }
.cx-entete__actions { display: flex; align-items: center; gap: var(--cx-e-2); }
.cx-entete__filet { flex: 0 0 var(--cx-trait); width: var(--cx-trait); height: 24px; margin: 0 var(--cx-e-2); background: var(--cx-filet); }
.cx-entete__filet--court { height: 16px; }
.cx-entete__compte { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 48px; width: 48px; height: var(--cx-cible); }
.cx-entete__compte span {
  display: flex; align-items: center; justify-content: center; width: var(--cx-h-pastille); height: var(--cx-h-pastille);
  border-radius: 50%; background: var(--cx-relief); color: var(--cx-lune); font: 600 13px/18px var(--cx-police-texte);
}

/* Entrée de navigation : du texte, souligné d'un trait (motion.css, .cx-entree). Jamais une pilule. */
.cx-entree {
  display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; background: none;
  font: var(--cx-t-interface); color: var(--cx-brume); white-space: nowrap; cursor: pointer;
  transition: color var(--cx-d-etat);
}
.cx button.cx-entree { font: var(--cx-t-interface); color: var(--cx-brume); }
.cx-entree:hover, .cx .cx-entree[aria-current] { color: var(--cx-lune); }
.cx-entree svg { transition: transform var(--cx-d-survol) var(--cx-courbe); }
.cx-entree:hover svg, .cx-entree[aria-expanded="true"] svg { transform: rotate(180deg); }
.cx-entree__pastilles { display: flex; align-items: center; margin-left: 2px; }
.cx-entree__pastilles img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-left: -6px;
  box-shadow: 0 0 0 2px var(--cx-nuit);   /* anneau de séparation, pas une ombre */
  transition: margin var(--cx-d-survol) var(--cx-courbe);
}
.cx-entree__pastilles img:first-child { margin-left: 0; }
.cx-entree:hover .cx-entree__pastilles img { margin-left: -2px; }
.cx-entree:hover .cx-entree__pastilles img:first-child { margin-left: 0; }

.cx-entete__categories {
  display: flex; align-items: center; height: var(--cx-h-entete-categories); padding: 0 var(--cx-e-6);
  border-top: var(--cx-trait) solid var(--cx-filet); overflow-x: auto; scrollbar-width: none;
}
.cx-entete__categories::-webkit-scrollbar, .cx-entete__nav::-webkit-scrollbar { display: none; }
.cx-categorie {
  position: relative; display: flex; align-items: center; gap: var(--cx-e-2); flex: 0 0 auto; height: 28px; padding: 0 10px;
  border-radius: var(--cx-r-photo); font: 500 13px/18px var(--cx-police-texte); color: var(--cx-brume); white-space: nowrap;
}
.cx-categorie::before { content: ""; position: absolute; inset: -8px 0; }
.cx-categorie:hover { background: var(--cx-surface); color: var(--cx-lune); }
.cx-categorie--premiere { margin-left: -10px; color: var(--cx-lune); }

.cx-panneau {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: repeat(3, 200px) minmax(0, 1fr) 360px; gap: var(--cx-e-6);
  padding: var(--cx-e-6) var(--cx-e-6) 36px; background: var(--cx-surface-basse);
  border-top: var(--cx-trait) solid var(--cx-filet); border-bottom: var(--cx-trait) solid var(--cx-filet);
  animation: cx-fondu var(--cx-d-fondu) linear both;
}
.cx-panneau__ia { display: flex; flex-direction: column; gap: var(--cx-e-2); }
.cx-panneau__demander { display: flex; align-items: center; gap: 14px; padding: var(--cx-e-4); border-radius: var(--cx-r-carte); background: var(--cx-surface-haute); transition: background var(--cx-d-etat); }
.cx-panneau__demander b { display: block; font: var(--cx-t-titre-carte-s); color: var(--cx-lune); }
.cx-panneau__tuile { display: flex; align-items: center; gap: 14px; height: 56px; border-radius: var(--cx-r-photo); overflow: hidden; background: var(--cx-surface-haute); font: var(--cx-t-interface); color: var(--cx-lune); transition: background var(--cx-d-etat); }
.cx-panneau__tuile img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; }
.cx-panneau__demander:hover, .cx-panneau__tuile:hover { background: var(--cx-relief); }

.cx-entete__tel { display: none; }
.cx-entete__tel summary { list-style: none; }
.cx-entete__tel summary::-webkit-details-marker { display: none; }
.cx-entete__tel-panneau {
  position: absolute; left: 0; right: 0; top: var(--cx-h-entete-compact); z-index: 2;
  display: flex; flex-direction: column; padding: var(--cx-e-2) var(--cx-e-4) var(--cx-e-4);
  background: var(--cx-surface-basse); border-top: var(--cx-trait) solid var(--cx-filet); border-bottom: var(--cx-trait) solid var(--cx-filet);
}
.cx-entete__tel-panneau a { display: flex; align-items: center; min-height: var(--cx-cible); font: var(--cx-t-texte); color: var(--cx-lune); }

/* Après défilement : une ligne de 56 px, le symbole seul, la recherche au centre exact de la page. */
.cx-compacte {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center;
  height: var(--cx-h-entete-compact); padding: 0 var(--cx-e-6);
  background: var(--cx-nuit); border-bottom: var(--cx-trait) solid var(--cx-filet);
  transform: translateY(-100%); visibility: hidden;
  transition: transform var(--cx-d-survol) var(--cx-courbe), visibility 0s linear var(--cx-d-survol);
}
.cx-compacte--visible { transform: none; visibility: visible; transition-delay: 0s; }
.cx-compacte__symbole { display: flex; align-items: center; justify-content: center; width: var(--cx-cible); height: var(--cx-cible); margin-left: -10px; }
.cx-compacte__recherche {
  display: flex; align-items: center; gap: var(--cx-e-3); height: var(--cx-cible); padding: 0 var(--cx-e-1) 0 var(--cx-e-4);
  border-radius: var(--cx-r-pilule); background: var(--cx-surface); box-shadow: inset 0 0 0 var(--cx-trait) var(--cx-contour);
}
.cx-compacte__recherche:focus-within { box-shadow: inset 0 0 0 var(--cx-trait-selection) var(--cx-bleu); }
.cx-compacte__etoile { background: var(--cx-brume); }
.cx-compacte__recherche input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--cx-lune); font: 400 15px/20px var(--cx-police-texte); }
.cx-compacte__recherche input::placeholder { color: var(--cx-legende); opacity: 1; }
.cx-compacte__recherche input:not(:placeholder-shown) + .cx-touche { display: none; }
.cx-compacte__actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--cx-e-2); }

/* ---------- 1. Recherche : le premier écran ---------- */
.cx-recherche { position: relative; overflow: hidden; min-height: clamp(640px, calc(100svh - var(--cx-h-entete) - var(--cx-h-entete-categories) - 2px), 960px); display: flex; }
.cx-ciel { position: absolute; inset: 0; pointer-events: none; }
.cx-recherche__contenu { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; padding: clamp(64px, 13.8vh, 124px) var(--cx-e-6) 0; }
.cx-recherche__titre { margin-top: 28px !important; max-width: 860px; text-align: center; text-wrap: balance; font: var(--cx-t-accueil); letter-spacing: var(--cx-interlettrage-grand-titre); }

/* Champ de recherche complet : contour ciel de 2 px (l'IA écoute), en aplat dégradé, sans halo. */
.cx-champ { width: 100%; max-width: var(--cx-l-conversation); margin-top: 36px; padding: var(--cx-trait-selection); border-radius: var(--cx-r-champ); background: var(--cx-degrade-ciel); }
.cx-champ__boite { display: flex; flex-direction: column; gap: 10px; padding: var(--cx-e-4) 10px 10px 18px; border-radius: calc(var(--cx-r-champ) - var(--cx-trait-selection)); background: var(--cx-surface); }
.cx-champ__saisie { display: block; width: 100%; min-height: 52px; padding: 0 var(--cx-e-2) 0 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--cx-lune); font: var(--cx-t-saisie); }
.cx-champ__saisie::placeholder { color: var(--cx-legende); opacity: 1; }
.cx-champ__barre { display: flex; align-items: center; gap: var(--cx-e-1); }
.cx-champ__espace { flex: 1 1 auto; }
.cx-idees { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cx-e-2); margin-top: var(--cx-e-4); }
.cx-recherche__phrase { margin-top: var(--cx-e-5) !important; text-align: center; font: var(--cx-t-detail); color: var(--cx-legende); }
.cx-recherche__suite { display: flex; align-items: center; gap: var(--cx-e-2); min-height: var(--cx-cible); margin-top: auto; margin-bottom: 20px; padding-top: var(--cx-e-5); font: 600 13px/18px var(--cx-police-texte); color: var(--cx-brume); }
.cx-recherche__suite:hover { color: var(--cx-lune); }

/* ---------- Modules ---------- */
.cx-module { padding-bottom: var(--cx-e-module); scroll-margin-top: var(--cx-h-entete-compact); }
.cx-module--premier { padding-top: 72px; border-top: var(--cx-trait) solid var(--cx-filet); }
.cx-module__entete { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--cx-e-5); margin-bottom: var(--cx-e-5); }
.cx-module h2 { text-wrap: balance; font: var(--cx-t-titre); letter-spacing: var(--cx-interlettrage-titre); }
.cx-module__phrase { margin-top: 6px !important; font: var(--cx-t-texte-s); color: var(--cx-brume); }
.cx-lien-suite { display: flex; align-items: center; gap: 6px; height: var(--cx-cible); margin-bottom: -12px; font: var(--cx-t-interface); color: var(--cx-bleu-doux-texte) !important; white-space: nowrap; }
.cx-lien-suite svg { transition: transform var(--cx-d-survol) var(--cx-courbe); }
.cx-lien-suite:hover svg { transform: translateX(3px); }

/* ---------- 2. Sélections ---------- */
.cx-selections { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--cx-e-4); }
.cx-couverture { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--cx-r-puce); background: var(--cx-relief); }
.cx-couverture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--cx-d-zoom-photo) var(--cx-courbe); }
.cx-selection:hover .cx-couverture img { transform: scale(1.04); }
.cx-couverture__etiquette { position: absolute; left: 0; bottom: 0; max-width: 88%; padding: var(--cx-e-2) var(--cx-e-3) 9px 10px; border-radius: 0 var(--cx-r-photo) 0 0; font: 600 12px/16px var(--cx-police-titre); color: var(--cx-blanc); }
.cx-couverture__etiquette--sombre { color: var(--cx-sur-clair); }
.cx-couverture__symbole { position: absolute; right: var(--cx-e-4); top: var(--cx-e-4); background: var(--cx-sable); }
.cx-couverture__nom { position: absolute; left: var(--cx-e-3); right: var(--cx-e-3); bottom: var(--cx-e-3); font: 600 16px/20px var(--cx-police-titre); color: var(--cx-blanc); }
.cx-selection__texte { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.cx-selection__texte b { font: var(--cx-t-interface); color: var(--cx-lune); }

/* ---------- 3. La trouvaille de la semaine ---------- */
.cx-trouvaille { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: var(--cx-e-7); align-items: start; }
.cx-panneau-teinte { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--cx-e-6); padding: var(--cx-e-3); border-radius: var(--cx-r-champ); background: var(--cx-teinte-cuivre); }
.cx-panneau-teinte img { width: 100%; height: 336px; border-radius: var(--cx-r-puce); object-fit: cover; }
.cx-panneau-teinte__contenu { display: flex; flex-direction: column; padding: 20px var(--cx-e-5) var(--cx-e-4) 0; }
.cx-panneau-teinte__detail { font: var(--cx-t-detail); color: var(--cx-teinte-cuivre-texte); }
.cx-panneau-teinte__modele { margin-top: 6px !important; font: var(--cx-t-titre); letter-spacing: var(--cx-interlettrage-titre); color: var(--cx-lune); }
.cx-panneau-teinte__avis { display: flex; gap: var(--cx-e-3); align-items: flex-start; margin-top: 20px; padding-top: 18px; border-top: var(--cx-trait) solid var(--cx-teinte-cuivre-filet); font: var(--cx-t-texte); color: var(--cx-lune); }
.cx-panneau-teinte__bas { display: flex; align-items: center; justify-content: space-between; gap: var(--cx-e-4); margin-top: auto; padding-top: 20px; }
.cx-panneau-teinte:hover .cx-bouton--clair { background: var(--cx-blanc); }
.cx-articles__titre { padding-bottom: 14px; font: 600 13px/18px var(--cx-police-texte); color: var(--cx-legende); }
.cx-article { display: block; padding: var(--cx-e-4) 0; border-top: var(--cx-trait) solid var(--cx-filet); }
.cx-article b { display: block; margin-top: var(--cx-e-1); font: var(--cx-t-titre-carte); color: var(--cx-lune); }
.cx-article:hover b { text-decoration: underline; text-decoration-color: var(--cx-gris-repere); text-underline-offset: 3px; }

/* ---------- 4. Annonces repérées par l'IA ---------- */
.cx-annonces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cx-e-4); }
.cx-carte { display: flex; flex-direction: column; padding: var(--cx-e-2); border-radius: var(--cx-r-carte); background: var(--cx-surface); transition: background var(--cx-d-etat); }
.cx-carte:hover { background: var(--cx-surface-haute); }
.cx-carte__photo { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--cx-r-photo); background: var(--cx-relief); }
.cx-carte__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-carte__corps { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px var(--cx-e-2) var(--cx-e-2); }
.cx-carte h3 { margin-top: 10px; font: var(--cx-t-titre-carte); color: var(--cx-lune); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-carte__detail { margin-top: 2px; font: var(--cx-t-detail); color: var(--cx-brume); }
.cx-carte__avis { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: var(--cx-trait) solid var(--cx-filet); font: var(--cx-t-texte-s); color: var(--cx-lune); transition: border-color var(--cx-d-etat); }
.cx-carte:hover .cx-carte__avis { border-top-color: var(--cx-contour); }
.cx-carte__bas { display: flex; align-items: baseline; justify-content: space-between; gap: var(--cx-e-2); margin-top: auto; padding-top: 14px; }

/* ---------- 5. Comment fonctionne la recherche ---------- */
.cx-fonctionnement { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 112px; align-items: start; }
.cx-prose h3 { margin-top: 28px; font: 600 16px/24px var(--cx-police-texte); }
.cx-prose p { margin-top: var(--cx-e-1); font: var(--cx-t-texte); color: var(--cx-brume); }
.cx-prose .cx-prose__chapeau { margin-top: var(--cx-e-3); }
.cx-demo { display: flex; flex-direction: column; padding: var(--cx-e-5); border-radius: var(--cx-r-champ); background: var(--cx-surface); }
.cx-demo__demande { align-self: flex-end; max-width: 84%; padding: var(--cx-e-3) var(--cx-e-4); border-radius: 18px 18px var(--cx-r-etiquette) 18px; background: var(--cx-surface-haute); font: var(--cx-t-texte); }
.cx-demo__etat { display: flex; align-items: center; gap: var(--cx-e-3); height: 28px; margin-top: var(--cx-e-5); font: 500 16px/24px var(--cx-police-texte); }
.cx-demo__etapes { margin: 10px 0 0 34px; }
.cx-etape { display: flex; align-items: center; gap: 10px; min-height: 32px; font: var(--cx-t-texte-s); }
.cx-etape svg { flex: 0 0 16px; }
.cx-etape--faite svg { color: var(--cx-atout); }
.cx-etape--a-venir { color: var(--cx-legende); }
.cx-etape--a-venir svg { color: var(--cx-gris-repere); }
.cx-demo__progression { max-width: 280px; margin: 2px 0 6px 26px; }
.cx-demo__lignes { display: flex; flex-direction: column; gap: 6px; margin: var(--cx-e-4) 0 0 34px; }
.cx-demo__ligne { display: flex; align-items: center; gap: var(--cx-e-3); height: 56px; padding: 0 var(--cx-e-3) 0 var(--cx-e-2); border-radius: var(--cx-r-puce); background: var(--cx-surface-haute); animation: cx-demo-cascade 4.2s var(--cx-courbe) infinite both; }
.cx-demo__ligne:nth-child(2) { animation-delay: var(--cx-d-cascade-decalage); }
.cx-demo__ligne:nth-child(3) { animation-delay: calc(var(--cx-d-cascade-decalage) * 2); }
.cx-demo__ligne > span:first-child { flex: 0 0 56px; height: 40px; border-radius: var(--cx-r-photo); background: var(--cx-relief); }
.cx-demo__ligne > span:nth-child(2) { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--cx-e-2); }
.cx-demo__ligne i { display: block; width: 62%; height: 8px; border-radius: var(--cx-r-etiquette); background: var(--cx-gris-contexte); }
.cx-demo__ligne i + i { width: 40%; background: var(--cx-relief); }
.cx-demo__ligne > span:last-child { flex: 0 0 64px; height: 10px; border-radius: 5px; background: var(--cx-gris-contexte); }
.cx-demo__legende { margin: var(--cx-e-3) 0 0 var(--cx-e-5) !important; }
@keyframes cx-demo-cascade { 0%, 10% { opacity: 0; transform: translateY(8px); } 20%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* ---------- 6. Déposer une annonce ---------- */
.cx-bandeau { display: flex; align-items: center; justify-content: space-between; gap: var(--cx-e-8); padding: 40px 0; border-top: var(--cx-trait) solid var(--cx-filet); border-bottom: var(--cx-trait) solid var(--cx-filet); }
.cx-bandeau__phrase { max-width: 640px; margin-top: 6px !important; font: var(--cx-t-texte); color: var(--cx-brume); }
.cx-bandeau__boutons { display: flex; align-items: center; gap: var(--cx-e-2); flex: 0 0 auto; }

/* ---------- 7. Annuaire ---------- */
.cx-annuaire { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cx-e-5); }

/* ---------- 8. Questions fréquentes ---------- */
.cx-questions { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 112px; align-items: start; }
.cx-faq details { border-top: var(--cx-trait) solid var(--cx-filet); }
.cx-faq details:last-child { border-bottom: var(--cx-trait) solid var(--cx-filet); }
.cx-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--cx-e-5); min-height: 64px; padding: var(--cx-e-3) 0; cursor: pointer; list-style: none; font: var(--cx-t-question); }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary svg { flex: 0 0 auto; color: var(--cx-brume); transition: transform var(--cx-d-survol) var(--cx-courbe); }
.cx-faq details[open] summary svg { transform: rotate(45deg); }
.cx-faq p { max-width: 720px; padding: 0 80px var(--cx-e-5) 0; font: var(--cx-t-texte); color: var(--cx-brume); }

/* ---------- 9. Pied de page ---------- */
.cx-pied { border-top: var(--cx-trait) solid var(--cx-filet); padding: 56px 0 var(--cx-e-5); }
.cx-pied__grille { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--cx-e-5); }
.cx-pied__logo { display: inline-flex; color: var(--cx-lune); }
.cx-pied__phrase { max-width: 320px; margin-top: var(--cx-e-4) !important; font: var(--cx-t-texte-s); color: var(--cx-brume); }
.cx-pied__signature { margin-top: var(--cx-e-5) !important; font: 500 15px/22px var(--cx-police-titre); color: var(--cx-lune); }
.cx-pied__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cx-e-2) var(--cx-e-5); min-height: var(--cx-cible); margin-top: 40px; padding-top: var(--cx-e-3); border-top: var(--cx-trait) solid var(--cx-filet); font: var(--cx-t-detail); color: var(--cx-legende); }

/* ==========================================================================
   Adaptation aux écrans (base de travail, à faire valider — seul 1440 px est dessiné)
   ========================================================================== */
@media (max-width: 1279px) {
  .cx-entree { padding: 0 10px; }
  .cx-entree::after { left: 10px; right: 10px; }
  .cx-entete__nav { margin-left: var(--cx-e-4); }
  .cx-selections { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 200px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--cx-e-6) * -1); padding: 0 var(--cx-e-6); }
  .cx-selections::-webkit-scrollbar { display: none; }
  .cx-fonctionnement, .cx-questions { gap: var(--cx-e-8); }
  .cx-fonctionnement { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
  .cx-panneau { grid-template-columns: repeat(3, minmax(0, 1fr)) 320px; }
  .cx-panneau > span { display: none; }
  .cx-panneau-teinte { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .cx-trouvaille, .cx-fonctionnement, .cx-questions { grid-template-columns: minmax(0, 1fr); gap: var(--cx-e-6); }
  .cx-annonces { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(360px, 84vw); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--cx-e-6) * -1); padding: 0 var(--cx-e-6); }
  .cx-annuaire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-bandeau { flex-direction: column; align-items: flex-start; gap: var(--cx-e-5); }
  .cx-pied__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-pied__grille > :first-child { grid-column: 1 / -1; }
  .cx-ciel { display: none; }   /* sur un écran étroit, les points passeraient derrière la recherche */

  /* Menu « téléphone » (seule esquisse existante) : barre de 56, puis les rubriques qui défilent. */
  .cx-entete__ligne { flex-wrap: wrap; height: auto; padding: 0 var(--cx-e-2) 0 var(--cx-e-4); }
  .cx-entete__logo { height: var(--cx-h-entete-compact); }
  .cx-entete__logo svg { width: 152px; height: 20px; }
  .cx-entete__actions, .cx-entete__categories, .cx-panneau { display: none !important; }
  .cx-entete__tel { display: block; }
  .cx-entete__nav { order: 3; flex: 0 0 calc(100% + var(--cx-e-2) + var(--cx-e-4)); height: var(--cx-h-entete-categories); margin: 0 calc(var(--cx-e-2) * -1) 0 calc(var(--cx-e-4) * -1); padding: 0 2px; border-top: var(--cx-trait) solid var(--cx-filet); overflow-x: auto; scrollbar-width: none; }
  .cx-entree { padding: 0 14px; flex: 0 0 auto; }
  .cx-entree::after { left: 14px; right: 14px; }
  .cx-entree svg { display: none; }
  .cx-compacte { grid-template-columns: auto minmax(0, 1fr); gap: var(--cx-e-2); padding: 0 var(--cx-e-4); }
  .cx-compacte__actions, .cx-compacte .cx-touche { display: none; }
}
@media (max-width: 767px) {
  .cx-conteneur { padding: 0 var(--cx-e-4); }
  .cx-recherche { min-height: 0; }
  .cx-recherche__contenu { padding: var(--cx-e-7) var(--cx-e-4) 0; }
  .cx-recherche__titre { font-size: 28px; line-height: 36px; }
  .cx-recherche__suite { margin-top: var(--cx-e-6); }
  .cx-module { padding-bottom: var(--cx-e-8); }
  .cx-module--premier { padding-top: var(--cx-e-7); }
  .cx-module__entete { flex-direction: column; align-items: flex-start; gap: 0; }
  .cx-lien-suite { margin-bottom: 0; }
  .cx-selections, .cx-annonces { margin: 0 calc(var(--cx-e-4) * -1); padding: 0 var(--cx-e-4); grid-auto-columns: 168px; }
  .cx-annonces { grid-auto-columns: 84vw; }
  .cx-panneau-teinte { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cx-panneau-teinte img { height: auto; aspect-ratio: 16 / 10; }
  .cx-panneau-teinte__contenu { padding: var(--cx-e-4) var(--cx-e-2) var(--cx-e-2); }
  .cx-demo { padding: var(--cx-e-4); }
  .cx-demo__etapes, .cx-demo__lignes { margin-left: 0; }
  .cx-annuaire { grid-template-columns: minmax(0, 1fr); }
  .cx-liens a { min-height: var(--cx-cible); }
  .cx-bandeau__boutons { flex-wrap: wrap; }
  .cx-faq p { padding-right: 0; }
  .cx-pied__grille { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mouvement réduit : plus de boucle ni de déplacement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cx-demo__ligne { animation: none !important; }
  .cx *, .cx *::before, .cx *::after { transition: none !important; }
  .cx-panneau { animation: none; }
}
