/* =====================================================================
   SWISS SHEARCH — annuaire des entreprises suisses
   Feuille de style principale.

   ▸ Pour personnaliser SANS toucher au code : bouton ⚙ « Personnaliser »
     (en haut à droite) — thème, typo, couleur d'accent, nom du site.
   ▸ Pour changer les valeurs par défaut de façon permanente : modifiez les
     variables ci-dessous (chaque thème = un bloc).

   3 thèmes  : data-theme = "alpin" (clair, défaut) · "laine" · "nuit"
   3 typos   : data-font  = "grotesk" (défaut) · "serif" · "geo"
   ===================================================================== */

/* =====================================================================
   1. JETONS DE BASE — thème « Alpin » (clair, papier, rouge suisse)
   ===================================================================== */
:root {
  /* Typographie (surchargée par data-font) */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-head: -0.02em;

  /* Couleurs */
  --bg:           #f0eadd;   /* fond page (papier) */
  --bg-2:         #e9e2d2;
  --surface:      #fbf8f1;   /* cartes / panneaux */
  --surface-2:    #f3eee2;
  --ink:          #211f1a;   /* texte principal */
  --ink-soft:     #3c382f;
  --muted:        #756f62;   /* texte secondaire */
  --line:         #e1d9c7;   /* bordures */
  --line-strong:  #cdc3ac;
  --accent:       #c4302b;   /* accent (rouge suisse) */
  --accent-ink:   #ffffff;   /* texte posé sur l'accent */
  --accent-soft:  rgba(196, 48, 43, 0.10);
  --accent-2:     #1f6f5c;   /* accent secondaire (sapin) */

  /* Décor de fond */
  --wash-1: rgba(196, 48, 43, 0.12);
  --wash-2: rgba(31, 111, 92, 0.10);
  --grid-color: rgba(120, 108, 84, 0.16);

  /* Profondeur / formes */
  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow-sm:   0 1px 2px rgba(40, 34, 22, 0.05);
  --shadow-card: 0 1px 2px rgba(40, 34, 22, 0.05), 0 14px 30px -18px rgba(40, 34, 22, 0.30);
  --shadow-lg:   0 2px 4px rgba(40, 34, 22, 0.06), 0 34px 64px -26px rgba(40, 34, 22, 0.42);

  --maxw: 1180px;
}

/* ---- Thème « Laine » : clair, sage + ocre, formes chunky ---- */
html[data-theme="laine"] {
  --bg:          #edf0e5;
  --bg-2:        #e4e9d6;
  --surface:     #fbfcf6;
  --surface-2:   #eef2e4;
  --ink:         #24281e;
  --ink-soft:    #3a4030;
  --muted:       #6a7060;
  --line:        #dde3ce;
  --line-strong: #c7cfb1;
  --accent:      #5c7a4f;
  --accent-ink:  #ffffff;
  --accent-soft: rgba(92, 122, 79, 0.13);
  --accent-2:    #c58b3d;
  --wash-1: rgba(92, 122, 79, 0.16);
  --wash-2: rgba(197, 139, 61, 0.13);
  --grid-color: rgba(92, 122, 79, 0.15);
  --radius:    24px;
  --radius-lg: 32px;
  --radius-sm: 16px;
  --shadow-card: 0 2px 4px rgba(40, 50, 30, 0.05), 0 18px 34px -18px rgba(50, 64, 38, 0.32);
  --shadow-lg:   0 3px 6px rgba(40, 50, 30, 0.06), 0 38px 70px -26px rgba(50, 64, 38, 0.42);
}

/* ---- Thème « Nuit » : sombre, encre, accent chaud ---- */
html[data-theme="nuit"] {
  --bg:          #14171d;
  --bg-2:        #0f1218;
  --surface:     #1b1f28;
  --surface-2:   #232835;
  --ink:         #eef1f6;
  --ink-soft:    #d6dbe5;
  --muted:       #99a2b2;
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent:      #e0574c;
  --accent-ink:  #ffffff;
  --accent-soft: rgba(224, 87, 76, 0.16);
  --accent-2:    #e8b04b;
  --wash-1: rgba(224, 87, 76, 0.18);
  --wash-2: rgba(86, 124, 214, 0.14);
  --grid-color: rgba(255, 255, 255, 0.05);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 38px -20px rgba(0, 0, 0, 0.72);
  --shadow-lg:   inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 42px 80px -28px rgba(0, 0, 0, 0.85);
}

/* ---- Presets de typographie ---- */
html[data-font="serif"] {
  --font-display: "Instrument Serif", Georgia, serif;
  --tracking-head: 0;
}
html[data-font="geo"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;
  --tracking-head: -0.025em;
}

/* =====================================================================
   2. BASE
   ===================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  /* clip (et non hidden) : empêche le débordement horizontal SANS créer de
     conteneur de défilement, ce qui casserait le position:sticky du héros. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, .brand__name, .stat__num, .card__title, .company__name {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-head);
  font-weight: 700;
}
html[data-font="serif"] h1,
html[data-font="serif"] h2,
html[data-font="serif"] .stat__num { font-weight: 400; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* =====================================================================
   3. DÉCOR DE FOND (grille en perspective + voiles d'accent)
   ===================================================================== */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-wash { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-wash--1 { width: 60vw; height: 60vw; top: -22vw; left: -14vw; background: var(--wash-1); }
.bg-wash--2 { width: 52vw; height: 52vw; top: -10vw; right: -16vw; background: var(--wash-2); }

.bg-grid {
  position: absolute; left: -30%; right: -30%; bottom: -8%; height: 62%;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(540px) rotateX(72deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 78%);
  mask-image: linear-gradient(to top, #000, transparent 78%);
  opacity: 0.7;
}
.bg-noise {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,0.05) 100%);
}
html[data-theme="nuit"] .bg-noise {
  background: radial-gradient(120% 80% at 50% 0%, transparent 45%, rgba(0,0,0,0.45) 100%);
}

/* =====================================================================
   4. NAVIGATION
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px clamp(18px, 5vw, 48px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.brand__logo svg { width: 42px; height: 42px; display: block; }
.brand__logo--sm { width: 34px; height: 34px; }
.brand__logo--sm svg { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 20px; }
.brand__tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

.nav__links { display: flex; align-items: center; gap: 4px; }
/* Liens « ghost » (style bouton shadcn) : pilule discrète, hover doux */
.nav__links > a:not(.nav__cta) {
  position: relative;
  padding: 9px 15px; border-radius: 999px; color: var(--muted);
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links > a:not(.nav__cta):hover { color: var(--ink); background: var(--surface-2); }
/* petit soulignement animé sous le lien au survol */
.nav__links > a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  opacity: 0; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__links > a:not(.nav__cta):hover::after { transform: scaleX(1); opacity: 0.9; }

/* CTA « primary » accentué : dégradé d'accent + flèche animée + glow */
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  margin-left: 6px; padding: 10px 17px 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  color: var(--accent-ink) !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease, filter 0.2s ease;
}
.nav__cta:hover {
  filter: brightness(1.04); transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px color-mix(in srgb, var(--accent) 85%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.nav__cta:active { transform: translateY(0); }
.nav__cta-arrow { width: 16px; height: 16px; transition: transform 0.25s ease; }
.nav__cta:hover .nav__cta-arrow { transform: translateX(3px); }
.nav__cta-mini { display: none; }
.nav__gear {
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; transition: 0.18s; margin-left: 4px;
}
.nav__gear svg { width: 19px; height: 19px; }
.nav__gear:hover { border-color: var(--line-strong); transform: rotate(35deg); }

/* Sélecteur de langue : pilule compacte (FR / DE / IT / EN) */
.lang-select {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 4px; padding: 7px 9px 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.lang-select:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.lang-select__ico { width: 15px; height: 15px; flex-shrink: 0; }
.lang-select select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 0; background: transparent; outline: none; cursor: pointer;
  color: inherit; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .02em;
  padding: 0 14px 0 2px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 4px top 50%, right 0 top 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lang-select select option { color: #111; background: #fff; font-weight: 600; }

/* =====================================================================
   5. LAYOUT / UTILITAIRES
   ===================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px); }
/* NB : on règle UNIQUEMENT le padding vertical ici. Le raccourci `padding`
   écraserait le padding horizontal de .wrap (sections = .section.wrap) et
   collerait tout le contenu au bord de l'écran sur mobile. */
.section { padding-top: clamp(38px, 6vw, 78px); padding-bottom: 10px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(23px, 3vw, 32px); }
.section__head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.link-all { font-size: 14px; font-weight: 600; color: var(--accent); }
.link-all:hover { text-decoration: underline; }

.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: 0.5; }

/* =====================================================================
   6. HERO + RECHERCHE
   ===================================================================== */
/* ===== Héros « scroll-to-expand » =========================================
   Section haute + scène « collée » (sticky). Tout est piloté par --xp (0 → 1),
   posée en JS selon le scroll. Le scroll n'est jamais verrouillé. */
.xhero { position: relative; height: 180vh; }
.xhero__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-2) 58%, var(--bg));
}
.xhero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: calc(1 - var(--xp, 0)); will-change: opacity;
}
.xhero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.34));
  opacity: calc(1 - var(--xp, 0) * 0.7);
}
.xhero__media {
  position: relative; z-index: 2; overflow: hidden;
  width: calc(320px + var(--xp, 0) * 1180px);
  height: calc(420px + var(--xp, 0) * 360px);
  max-width: 96vw; max-height: 86vh;
  border-radius: clamp(14px, calc(28px - var(--xp, 0) * 14px), 28px);
  box-shadow: 0 36px 90px -24px rgba(0,0,0,.5);
  background: linear-gradient(140deg, var(--accent), var(--accent-2, var(--accent)));
  will-change: width, height;
}
.xhero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhero__media-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: #000; opacity: calc(0.5 - var(--xp, 0) * 0.34);
}
.xhero__title {
  position: absolute; z-index: 3; top: 50%; left: 0; right: 0;
  transform: translateY(-50%); margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.06em;
  pointer-events: none; mix-blend-mode: difference; color: #fff; text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 9vw, 112px); line-height: 0.96; letter-spacing: -0.02em;
}
.xhero__w1 { display: block; transform: translateX(calc(var(--xp, 0) * -54vw)); will-change: transform; }
.xhero__w2 { display: block; transform: translateX(calc(var(--xp, 0) * 54vw)); will-change: transform; }
.xhero__hint {
  position: absolute; z-index: 3; bottom: 6vh; left: 0; right: 0; text-align: center;
  color: #fff; font-weight: 600; letter-spacing: 0.02em; text-shadow: 0 1px 16px rgba(0,0,0,.45);
  opacity: calc(1 - var(--xp, 0) * 1.8); pointer-events: none;
}
.xhero__hint::after {
  content: "\2193"; display: block; margin-top: 6px; font-size: 1.4em;
  animation: xheroBob 1.6s ease-in-out infinite;
}
@keyframes xheroBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

@media (max-width: 768px) {
  .xhero__media { width: calc(280px + var(--xp, 0) * 640px); height: calc(380px + var(--xp, 0) * 220px); }
  .xhero__w1 { transform: translateX(calc(var(--xp, 0) * -72vw)); }
  .xhero__w2 { transform: translateX(calc(var(--xp, 0) * 72vw)); }
}
/* Accessibilité : pas d'animation au scroll → héros statique sur un écran. */
@media (prefers-reduced-motion: reduce) {
  .xhero { height: auto; }
  .xhero__stage { position: relative; height: 86vh; }
  .xhero__bg { opacity: 0.5; }
  .xhero__media { width: min(900px, 92vw); height: min(60vh, 520px); }
  .xhero__media-veil { opacity: 0.2; }
  .xhero__w1, .xhero__w2 { transform: none; }
  .xhero__hint { opacity: 1; }
  .xhero__hint::after { animation: none; }
}
/* Bande recherche placée juste après l'effet cinématique. */
.hero--search { padding-top: clamp(36px, 6vw, 80px); }

.hero { padding-top: clamp(44px, 8vw, 96px); padding-bottom: 18px; text-align: center; position: relative; isolation: isolate; }
.hero > *:not(.hero-globe):not(.hero-veil) { position: relative; z-index: 2; }
.hero-globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, var(--bg) 88%); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(36px, 6.4vw, 72px); line-height: 1.02; margin-bottom: 28px; }
.hero__l1 { display: block; font-weight: 500; color: var(--ink-soft); opacity: 0.82;
  font-size: 0.6em; letter-spacing: -0.01em; margin-bottom: 0.08em; }
html[data-font="serif"] .hero__l1 { font-weight: 400; }
.hero__l2, .hero h1 .grad { display: inline-block; position: relative; padding-bottom: 0.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-font="serif"] .hero__l2 { font-style: italic; }
.hero__ul { position: absolute; left: 0; right: 0; bottom: -0.14em; height: 0.09em; min-height: 5px;
  border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2) 70%, transparent);
  transform: scaleX(1); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .hero__ul { animation: heroUL 1.1s 0.5s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes heroUL { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { font-size: clamp(15px, 1.7vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 32px; text-wrap: pretty; }

/* barre de recherche + autocomplétion */
.search-wrap { position: relative; max-width: 920px; margin: 0 auto; }
.search {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 7px 7px 7px 20px; box-shadow: var(--shadow-card);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-card), 0 0 0 5px var(--accent-soft); }
.search__icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; display: grid; place-items: center; }
.search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--ink); font-size: 16px; font-family: inherit; padding: 12px 0; min-width: 0;
}
.search input::placeholder { color: var(--muted); }
/* filtres intégrés dans la barre (canton / corps de métier) */
.search__sep { width: 1px; height: 26px; background: var(--line); flex-shrink: 0; }
.search__filter { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; color: var(--muted); }
.search__filter svg { width: 17px; height: 17px; flex-shrink: 0; }
.search__filter select {
  border: 0; background: transparent; color: var(--ink); font-family: inherit;
  font-size: 14.5px; font-weight: 600; padding: 8px 2px; border-radius: 10px;
  cursor: pointer; outline: none; max-width: 168px;
}
.search__filter select:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 760px) {
  .search { flex-wrap: wrap; border-radius: 22px; padding: 12px; gap: 9px; }
  .search input { flex: 1 1 60%; }
  .search__sep { display: none; }
  .search__filter { flex: 1 1 140px; background: var(--surface-2); border-radius: 999px; padding: 7px 13px; }
  .search__filter select { max-width: none; flex: 1; min-width: 0; }
  .search button { flex: 1 1 100%; }
}
.search button {
  border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 80%, transparent); transition: 0.18s;
  flex-shrink: 0;
}
.search button:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* dropdown autocomplétion */
.ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 7px; overflow: hidden; text-align: left;
}
.ac__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 9px 12px 4px; }
.ac__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
}
.ac__item:hover, .ac__item.is-active { background: var(--surface-2); }
.ac__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); }
.ac__ic svg { width: 18px; height: 18px; }
.ac__ic .emo { font-size: 17px; }
.ac__main { font-weight: 600; font-size: 15px; }
.ac__sub { font-size: 12.5px; color: var(--muted); }
.ac__type { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ac__empty { padding: 18px 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* filtres rapides sous la recherche */
.quickfilters { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.qf {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 6px 4px 14px; font-size: 13px; color: var(--muted); box-shadow: var(--shadow-sm);
}
.qf select {
  border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 13px;
  font-weight: 600; padding: 6px 8px; border-radius: 999px; cursor: pointer; outline: none;
}

/* boutons CTA du hero (inspirés du DotGlobeHero : primaire dégradé + shimmer,
   secondaire en verre dépoli). Pilotés par l'accent du thème actif. */
.hero__cta {
  margin-top: 30px; display: flex; gap: 16px; justify-content: center;
  align-items: center; flex-wrap: wrap;
}
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 26px; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.3s ease, border-color 0.22s, background 0.22s;
  overflow: hidden; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; transition: transform 0.25s ease; }

/* Primaire : dégradé d'accent + reflet glissant au survol */
.btn--primary {
  color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 75%, #000 8%);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%) 0%,
    var(--accent) 55%,
    color-mix(in srgb, var(--accent) 82%, #000 18%) 100%);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.38) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 0.7s ease;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--accent) 75%, transparent),
              0 0 22px -6px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:hover svg { transform: translateX(4px); }

/* Secondaire : verre dépoli, contour qui s'éclaire vers l'accent */
.btn--ghost {
  color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1.5px solid var(--line-strong); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px); color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-card), 0 0 16px -8px color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn--ghost:hover svg { transform: scale(1.12) rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg, .btn--primary::after { transition: none; }
  .btn:hover { transform: none; }
  .btn:hover svg { transform: none; }
}

.quick { margin-top: 18px; display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.quick a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px;
  transition: 0.18s; box-shadow: var(--shadow-sm);
}
.quick a:hover { color: var(--accent); border-color: var(--line-strong); transform: translateY(-1px); }
.quick a svg { width: 15px; height: 15px; }

/* =====================================================================
   SHOWCASE — carte 3D « scroll reveal » (effet ContainerScroll en vanilla)
   La variable --p (0 → 1, posée par app.js au scroll) pilote rotateX + scale.
   ===================================================================== */
.showcase { padding: clamp(40px, 7vw, 96px) 20px clamp(20px, 4vw, 56px); text-align: center; overflow: hidden; }
.showcase__head {
  max-width: 720px; margin: 0 auto 30px;
  transform: translateY(calc((1 - var(--p, 1)) * 34px));
  will-change: transform;
}
.showcase__title { font-size: clamp(26px, 4vw, 46px); line-height: 1.06; margin: 8px 0 12px; }
.showcase__sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 560px; margin: 0 auto; text-wrap: pretty; }

/* Panneau d'aperçu clair (plus de cadre « device »). Effet zoom au scroll :
   léger scale + fondu piloté par --p (0 → 1, posé par app.js). */
.showcase__panel {
  max-width: 1000px; margin: 0 auto; text-align: left;
  padding: clamp(16px, 2.4vw, 32px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow-lg);
  transform: scale(calc(0.9 + var(--p, 1) * 0.1));
  transform-origin: 50% 50%; will-change: transform, opacity;
  opacity: calc(0.55 + var(--p, 1) * 0.45);
}

.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .pv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pv-grid { grid-template-columns: 1fr; } }
.pv-card {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 13px; box-shadow: var(--shadow-sm); min-width: 0;
}
.pv-card__ico {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent);
}
.pv-card__ico svg { width: 20px; height: 20px; }
.pv-card__ico .emo { font-size: 19px; }
.pv-card__meta { min-width: 0; flex: 1; }
.pv-card__meta strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-card__meta span { font-size: 12px; color: var(--muted); }
.pv-card__tag {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 520px) { .pv-card__tag { display: none; } }

/* === Tableau de bord (bento) dans le panneau « Tout l'annuaire » === */
.ov { display: grid; gap: 16px; }

.ov__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 460px) { .ov__stats { gap: 9px; } }
.ov__stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 10px; text-align: center;
}
.ov__num {
  font-size: clamp(26px, 6vw, 36px); font-weight: 800; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.ov__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}

.ov__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .ov__cols { grid-template-columns: 1fr; } }
.ov__block { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ov__block-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink-soft);
}
.ov__block-head svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.ov__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov__chip {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 8px 6px 10px; box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ov__chip:hover {
  transform: translateY(-2px); border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.ov__chip-ic { display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.ov__chip-ic svg { width: 15px; height: 15px; }
.ov__chip-ic .emo { font-size: 15px; }
.ov__chip-l {
  font-size: 13px; font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ov__chip-n {
  flex-shrink: 0; font-size: 12px; font-weight: 700; line-height: 1;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 8px; font-variant-numeric: tabular-nums;
}
.ov__soon { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .showcase__head, .showcase__panel { transform: none; opacity: 1; }
  .ov__chip { transition: none; }
}

/* === Page CGV / mentions légales === */
.legal { max-width: 760px; }
.legal__updated { font-size: 12.5px; color: var(--muted); margin: 0 0 20px; }
.legal h3 {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 24px 0 6px; line-height: 1.3;
}
.legal h3:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.65; font-size: 14.5px; }
.legal a { color: var(--accent); font-weight: 600; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal__key {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0;
}
.legal__key h3 { margin-top: 0; }
.legal__key p:last-child { margin-bottom: 0; }

/* === Carte entreprise cliquable === */
.tcard-link { display: block; text-decoration: none; color: inherit; border-radius: 20px; outline: none; }
.tcard-link:focus-visible .tcard { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg); }
.tcard__go {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #111;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.tcard__go svg { width: 16px; height: 16px; }
.tcard-link:hover .tcard__go, .tcard-link:focus-visible .tcard__go { opacity: 1; transform: none; }
@media (hover: none) { .tcard__go { opacity: 1; transform: none; } }

/* === Fiche entreprise (détail) === */
.company__hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); margin-top: 6px; color: #fff;
}
.company__hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(150deg, hsl(var(--tc-hue,210) 64% 50%), hsl(calc(var(--tc-hue,210) + 38) 58% 38%));
}
.company__hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.12));
}
.company__hero-in {
  position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(20px, 4vw, 34px);
}
.company__logo {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.55); background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff;
}
.company__name {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(24px, 4vw, 38px); line-height: 1.05; margin: 0; text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.company__loc {
  display: flex; align-items: center; gap: 7px; margin: 10px 0 0;
  font-size: 14px; color: rgba(255,255,255,.9);
}
.company__loc svg { width: 16px; height: 16px; flex-shrink: 0; }
.company__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.company__cat, .company__member {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.company__cat { transition: background .15s ease; }
.company__cat:hover { background: rgba(255,255,255,.3); }
.company__cat svg, .company__member svg { width: 15px; height: 15px; }

.company__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 720px) { .company__grid { grid-template-columns: 1fr; } }
.company__panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.company__h {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.company__desc { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.company__row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.company__row + .company__row { border-top: 1px solid var(--line); }
.company__row-ic {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}
.company__row-ic svg { width: 17px; height: 17px; }
.company__row-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.company__row-l { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.company__row-tx a, .company__row-tx span { font-size: 14.5px; color: var(--ink); word-break: break-word; }
.company__row-tx a { color: var(--accent); font-weight: 600; text-decoration: none; }
.company__row-tx a:hover { text-decoration: underline; }
.company__back { margin-top: 20px; }
.company__back a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.company__back a:hover { color: var(--accent); }
.company__back svg { width: 17px; height: 17px; }

/* stats */
.stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 28px; min-width: 140px; box-shadow: var(--shadow-sm); }
.stat__num { font-size: 32px; color: var(--accent); }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* =====================================================================
   7. CARTES (cantons / catégories / entreprises) — profondeur 3D
   ===================================================================== */
.grid { display: grid; gap: 16px; }
.grid--cantons  { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.grid--cats     { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.grid--companies{ grid-template-columns: repeat(auto-fill, minmax(304px, 1fr)); }

/* ===== Carrousels horizontaux (accueil) ======================================
   Défilement gauche→droite ; chaque carte chevauche (superpose) la précédente
   grâce à un margin négatif. Au survol, la carte passe au premier plan. */
/* Le carrousel déborde jusqu'aux bords de la section (effet pleine largeur),
   tandis que .hstack ré-applique le padding pour aligner la 1re carte sur le
   titre de la section. Les marges négatives = padding horizontal de .wrap. */
.hscroll { position: relative; margin-left: calc(-1 * clamp(18px, 5vw, 48px)); margin-right: calc(-1 * clamp(18px, 5vw, 48px)); }
/* dégradés de bord pour signaler qu'il reste de la course à gauche/droite */
.hscroll::before, .hscroll::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 4;
  pointer-events: none; opacity: 1; transition: opacity 0.25s;
}
.hscroll::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.hscroll::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.hscroll[data-start="1"]::before { opacity: 0; }
.hscroll[data-end="1"]::after    { opacity: 0; }

.hstack {
  display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  padding: 10px clamp(18px, 5vw, 48px) 30px; scroll-behavior: smooth;
  /* barre de défilement masquée (toujours scrollable au doigt / molette) */
  scrollbar-width: none; -ms-overflow-style: none;
}
.hstack::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* Au REPOS : cartes bien espacées (propre, façon local.ch), aucune superposition.
   On chevauche via translateX (PAS de margin) : le transform ne modifie pas la
   largeur de défilement, donc on atteint toujours la dernière carte.
   --ov (ampleur du chevauchement) est posé sur le conteneur, lu en JS. */
.hstack--cats    { --ov: 48px; }
.hstack--cantons { --ov: 56px; }
.hstack > .tcard { flex: 0 0 auto; margin-left: 18px; }
.hstack > .tcard:first-child { margin-left: 0; }
/* PENDANT le défilement : la carte qui entre par la droite glisse sur sa voisine
   de gauche (chevauchement avec la suivante UNIQUEMENT). --tuck est piloté en JS
   selon la position de chaque carte ; transition courte pour coller au scroll.
   À l'arrêt, --tuck repasse à 0 et tout se ré-espace en douceur. */
.hstack.is-turning > .tcard { transition: transform 0.12s linear, box-shadow 0.35s, border-color 0.25s; }
.hstack > .tcard:hover { z-index: 30; }
.hstack--cats    > .tcard { width: 230px; }
.hstack--cantons > .tcard { width: 256px; }

/* ===== Carte « TravelCard » unifiée ==========================================
   Image (ou dégradé thématique) plein cadre + dégradé d'ombre pour la lisibilité.
   Au repos : logo + titre + lieu. Au survol : l'aperçu, la métrique et le bouton
   glissent et apparaissent. Sur tactile / mouvement réduit : tout est montré. */
.tcard {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  height: var(--tc-height, 390px); border-radius: 20px; color: #fff; text-decoration: none;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  background: linear-gradient(150deg, var(--accent), var(--accent-2, var(--accent)));
  transform: translateX(var(--tuck, 0px)) translateY(var(--lift, 0px));
  transition: transform 0.4s cubic-bezier(.22, .61, .36, 1), box-shadow 0.35s, border-color 0.25s;
  will-change: transform;
}
.tcard:hover { --lift: -8px; box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
/* cantons sans entreprise : pleinement colorés (pas d'estompage grisâtre) */
.tcard--soft { opacity: 1; }
/* entrée en opacité SEULE : ne touche pas à transform (sinon écraserait --tuck/--lift) */
@keyframes tcardIn { from { opacity: 0; } }
.tcard { animation: tcardIn 0.5s ease both; }

/* fond : image (zoom au survol) ou dégradé thématique (--tc-hue = teinte) */
.tcard__img {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  transition: transform 0.6s cubic-bezier(.22, .61, .36, 1);
}
.tcard:hover .tcard__img { transform: scale(1.1); }
.tcard--grad .tcard__img {
  background-image: linear-gradient(150deg,
    hsl(var(--tc-hue, 210) 64% 50%), hsl(calc(var(--tc-hue, 210) + 38) 58% 38%));
}
.tcard__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.40) 46%, rgba(0,0,0,.06));
}

.tcard__body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 20px; }
.tcard__logo {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.5); background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff;
}
.tcard__logo svg { width: 24px; height: 24px; }
.tcard__logo .emo { font-size: 22px; line-height: 1; }
.tcard__logo--initial { font-family: var(--font-display); font-weight: 800; font-size: 20px; }

.tcard__mid { margin-top: auto; transition: transform 0.5s cubic-bezier(.22, .61, .36, 1); }
.tcard:hover .tcard__mid { transform: translateY(-66px); }
.tcard__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(21px, 2.3vw, 28px); line-height: 1.02; color: #fff; text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
html[data-font="serif"] .tcard__title { font-weight: 600; }
.tcard__loc {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 13px; color: rgba(255,255,255,.85);
}
.tcard__loc svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .9; }
.tcard__ov {
  margin-top: 12px; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.tcard:hover .tcard__ov { max-height: 150px; opacity: 1; }
.tcard__ov p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.82); }
.tcard__ov p + p { margin-top: 3px; }
.tcard__uid { color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }

.tcard__foot {
  position: absolute; left: 0; right: 0; bottom: -76px; padding: 0 20px 20px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  opacity: 0; transition: bottom 0.5s cubic-bezier(.22, .61, .36, 1), opacity 0.4s ease;
}
.tcard:hover .tcard__foot { bottom: 0; opacity: 1; }
.tcard__metric { display: flex; flex-direction: column; line-height: 1; }
.tcard__num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #fff; }
.tcard__unit { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 4px; }
.tcard__btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: #fff; color: #0b0b0b; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5);
  transition: transform 0.18s, filter 0.18s;
}
.tcard:hover .tcard__btn { transform: translateY(-1px); }
.tcard__btn svg { width: 16px; height: 16px; }
/* pied entreprise : tag métier + badge « Membre » (pas de bouton) */
.tcard__foot--company { align-items: center; }
.tcard__tag, .tcard__verified {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); white-space: nowrap;
}
.tcard__tag { min-width: 0; }
.tcard__tag svg, .tcard__verified svg { width: 13px; height: 13px; flex-shrink: 0; }
.tcard__tag .emo { font-size: 13px; }
.tcard__verified { background: rgba(255,255,255,.92); color: #0b0b0b; flex-shrink: 0; }

/* tactile (pas de survol) : tout est montré en permanence */
@media (hover: none) {
  .tcard__mid { transform: translateY(-66px); }
  .tcard__ov { max-height: 150px; opacity: 1; }
  .tcard__foot { bottom: 0; opacity: 1; }
}

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
  transform-style: preserve-3d; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card.tilt > * { transform: translateZ(26px); }

/* carte canton — façon « showcase » (icône + bouton ↗, titre, image, légende) */
.card--canton { cursor: pointer; display: flex; flex-direction: column; gap: 12px; padding: 13px; }
.ccard__head { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 0; }
.ccard__badge {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 6px 13px; border-radius: 999px;
}
.ccard__go {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: 0.18s;
}
.ccard__go svg { width: 18px; height: 18px; }
.card--canton:hover .ccard__go { transform: scale(1.08); }
.ccard__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-head);
  font-size: clamp(20px, 2vw, 26px); line-height: 1.04; padding: 0 4px; text-wrap: balance;
  background: linear-gradient(118deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-font="serif"] .ccard__title { font-weight: 400; }
.ccard__media {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--surface-2); border: 1px solid var(--line);
}
.ccard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent-soft), transparent 72%); }
.ccard__ph-code { font-family: var(--font-display); font-weight: 800; font-size: 56px; letter-spacing: 0.04em; color: var(--accent); opacity: 0.16; }
.ccard__ph svg { position: absolute; right: 12px; bottom: 12px; width: 24px; height: 24px; color: var(--accent); opacity: 0.5; }
.ccard__meta { padding: 0 4px 3px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.card__title { font-size: 18px; }
.card__meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card--muted { opacity: 0.55; }

.card--cat { cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.card--cat .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.card--cat .ic svg { width: 26px; height: 26px; }
.card--cat .ic .emo { font-size: 26px; }
.card--cat .card__arrow { position: absolute; top: 20px; right: 20px; color: var(--muted); opacity: 0; transition: 0.2s; }
.card--cat:hover .card__arrow { opacity: 1; transform: translateX(2px); }

/* entreprise */
.company { display: flex; flex-direction: column; gap: 10px; }
.company__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.company__name { font-size: 17px; }
.company__badge {
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 11px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.company__badge svg { width: 13px; height: 13px; }
.company__badge .emo { font-size: 12px; }
.company__row { display: flex; gap: 9px; color: var(--muted); font-size: 14px; align-items: flex-start; }
.company__row svg { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; opacity: 0.8; }
.company__foot {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.verified { color: var(--accent-2); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.verified svg { width: 14px; height: 14px; }

/* =====================================================================
   8. PILLS DE FILTRE
   ===================================================================== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px;
  transition: 0.16s; display: inline-flex; align-items: center; gap: 7px;
}
.pill:hover { color: var(--ink); border-color: var(--line-strong); }
.pill.is-active { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.pill .n { opacity: 0.7; font-size: 12px; }
.pill.is-active .n { opacity: 0.85; }

/* =====================================================================
   9. ÉTATS VIDES + BANNIÈRE DÉMO
   ===================================================================== */
.empty {
  text-align: center; padding: 58px 20px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--muted);
}
.empty .ic { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--muted); display: grid; place-items: center; }
.empty .ic svg { width: 44px; height: 44px; opacity: 0.7; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

.demo-banner {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px; padding: 13px 18px; font-size: 14px; color: var(--ink-soft); text-align: left;
}
.demo-banner .ic { flex-shrink: 0; color: var(--accent); display: grid; place-items: center; }
.demo-banner .ic svg { width: 20px; height: 20px; }

/* =====================================================================
   10. PAGE INSCRIPTION (opt-in)
   ===================================================================== */
.optin { max-width: 720px; margin: 0 auto; }
.optin .card { padding: 30px; }
.optin .card:hover { box-shadow: var(--shadow-card); border-color: var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; color: var(--ink); font-family: inherit; font-size: 15px; outline: none; transition: 0.16s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field__opt { font-weight: 500; color: var(--muted); }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  color: #b3261e; background: color-mix(in srgb, #b3261e 10%, var(--surface)); border: 1px solid color-mix(in srgb, #b3261e 24%, transparent); }
.form-error a { color: inherit; text-decoration: underline; }
.contact-line { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--ink); }
.contact-line svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }
.contact-line a { color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--accent); }

/* Pages Prix / Contact : 2 colonnes (offre + formulaire) */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; max-width: 920px; margin: 0 auto; }
.price-grid .card { padding: 28px; }
.price-card { position: relative; overflow: hidden; }
.price-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.price-card__amount { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0 18px; }
.price-card__num { font-size: 58px; font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; color: var(--ink); }
.price-card__side { display: flex; flex-direction: column; line-height: 1.1; padding-bottom: 6px; }
.price-card__cur { font-size: 18px; font-weight: 700; color: var(--ink); }
.price-card__per { font-size: 14px; color: var(--muted); }
.price-card__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.price-card__list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.price-card__list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft);
}
.price-card__list li::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__note { max-width: none; }
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-primary {
  width: 100%; border: 0; cursor: pointer; margin-top: 8px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; padding: 15px; border-radius: 12px; transition: 0.18s;
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.optin__note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* =====================================================================
   11. FOOTER
   ===================================================================== */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { padding: 44px clamp(18px, 5vw, 48px); display: grid; gap: 22px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 48px; align-items: start; }
.footer__brandcol { display: grid; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand strong { font-family: 'Arial Black', 'Arial Black', Gadget, sans-serif; font-size: 28px; font-weight: 900; letter-spacing: 2px; }
.footer__note { color: var(--muted); font-size: 13.5px; max-width: 460px; text-wrap: pretty; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 2px; }
.footer__col a { color: var(--muted); font-size: 14px; text-decoration: none; width: fit-content; transition: color 0.18s; }
.footer__col a:hover { color: var(--accent); }
.footer__copy { color: var(--muted); opacity: 0.75; font-size: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer__credits { color: var(--muted); font-size: 11.5px; max-width: 760px; }
.footer__credits > summary { cursor: pointer; opacity: 0.7; font-size: 12px; list-style: none; width: fit-content; }
.footer__credits > summary::-webkit-details-marker { display: none; }
.footer__credits > summary::before { content: "▸ "; }
.footer__credits[open] > summary::before { content: "▾ "; }
.footer__credits > summary:hover { opacity: 1; }
.footer__credits p { margin: 8px 0 0; line-height: 1.7; opacity: 0.6; text-wrap: pretty; }
.footer__credits a { color: inherit; text-decoration: underline; }

/* =====================================================================
   12. PANNEAU « PERSONNALISER »
   ===================================================================== */
.sps { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.32); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.sps.is-open { opacity: 1; pointer-events: auto; }
.sp {
  position: fixed; top: 0; right: 0; z-index: 101; height: 100%; width: min(380px, 92vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.sp.is-open { transform: none; }
.sp__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.sp__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.sp__title svg { width: 19px; height: 19px; color: var(--accent); }
.sp__close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sp__close:hover { border-color: var(--line-strong); }
.sp__close svg { width: 16px; height: 16px; }
.sp__body { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
.sp__group { display: flex; flex-direction: column; gap: 10px; }
.sp__label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.seg { display: grid; grid-auto-flow: column; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 5px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px;
  padding: 9px 6px; border-radius: 8px; cursor: pointer; transition: 0.15s;
}
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: 0.15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

.sp__text { display: flex; flex-direction: column; gap: 8px; }
.sp__text input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--ink); font-family: inherit; font-size: 14px; outline: none;
}
.sp__text input:focus { border-color: var(--accent); }
.sp__hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.sp__actions { margin-top: 4px; }
.btn-ghost {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font-weight: 600; font-size: 14px; padding: 11px; border-radius: 11px; cursor: pointer; transition: 0.16s;
}
.btn-ghost:hover { border-color: var(--line-strong); }

/* =====================================================================
   13. ANIMATIONS + RESPONSIVE
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.5s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .nav__links > a:not(.nav__cta) { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .card.tilt > * { transform: none; }
  .brand__tag { display: none; }
  .nav__cta { margin-left: 0; padding: 9px 14px; gap: 6px; }
}
@media (max-width: 560px) {
  /* Plus de place pour le libellé long : on bascule sur « Référencer » */
  .nav__cta-full { display: none; }
  .nav__cta-mini { display: inline; }
}
@media (max-width: 480px) {
  .nav__cta-arrow { display: none; }
  .nav__cta { font-size: 13px; padding: 9px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .card, .nav__gear { transition: none; }
  .nav__cta, .nav__cta-arrow, .nav__links > a::after { transition: none; }
  html { scroll-behavior: auto; }
  /* cartes TravelCard : aucune animation, contenu montré en entier */
  .tcard { animation: none; }
  .tcard, .tcard__img, .tcard__mid, .tcard__ov, .tcard__foot, .tcard__btn { transition: none; }
  .tcard:hover .tcard__img { transform: none; }
  .tcard__mid { transform: translateY(-66px); }
  .tcard__ov { max-height: 150px; opacity: 1; }
  .tcard__foot { bottom: 0; opacity: 1; }
}
