/* Q DEAL — feuille de style unique.
   Épuré : une typo, deux tons (clair / sombre), un accent, du verre.
   Le verre « liquide » WebGL (ybouane/liquidglass) n’est utilisé que sur l’accueil (hero) ;
   partout ailleurs le verre est en CSS (backdrop-filter) et sert de secours. */

/* ---------- Police : Inter (variable, alphabet latin) servie par le site — un seul fichier au lieu de 28 chez Google ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght.woff2") format("woff2"); }

/* ---------- Jetons ---------- */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --bg: #f6f7f8;
  --bg-2: #eef1f2;
  --surface: #ffffff;
  --text: #15181c;
  --text-2: #5d646b;
  --text-3: #9aa1a7;
  --line: rgba(21, 24, 28, 0.08);
  --line-2: rgba(21, 24, 28, 0.15);
  --accent: #2f8a72;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 138, 114, 0.11);
  --danger: #c2410c;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --map-filter: none;
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { color-scheme: dark; } }

/* Les jetons sombres : appliqués explicitement, ou par défaut si le système est sombre. */
html[data-theme="dark"] {
  --bg: #0c0d0f; --bg-2: #111316; --surface: #171a1e; --text: #eef0f2; --text-2: #9ea4ab; --text-3: #666c73;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15);
  --accent: #86b9a6; --accent-ink: #0b1a15; --accent-soft: rgba(134, 185, 166, 0.14);
  --danger: #fb923c;
  --glass: rgba(24, 27, 31, 0.58); --glass-strong: rgba(24, 27, 31, 0.8); --glass-line: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --map-filter: invert(1) hue-rotate(180deg) brightness(0.86) contrast(0.9) saturate(0.7);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0c0d0f; --bg-2: #111316; --surface: #171a1e; --text: #eef0f2; --text-2: #9ea4ab; --text-3: #666c73;
    --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15);
    --accent: #86b9a6; --accent-ink: #0b1a15; --accent-soft: rgba(134, 185, 166, 0.14);
    --danger: #fb923c;
    --glass: rgba(24, 27, 31, 0.58); --glass-strong: rgba(24, 27, 31, 0.8); --glass-line: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --map-filter: invert(1) hue-rotate(180deg) brightness(0.86) contrast(0.9) saturate(0.7);
  }
}

/* ---------- Curseur : une éponge en verre liquide qui suit le pointeur (souris uniquement) ----------
   Le curseur natif est masqué ; un élément fixe avec flou d’arrière-plan prend sa place (main.js). Les champs de saisie gardent le curseur texte. */
html.has-glass-cursor, html.has-glass-cursor body, html.has-glass-cursor a, html.has-glass-cursor button, html.has-glass-cursor label, html.has-glass-cursor summary, html.has-glass-cursor select, html.has-glass-cursor [role="button"] { cursor: none; }
html.has-glass-cursor input, html.has-glass-cursor textarea, html.has-glass-cursor [contenteditable] { cursor: text; }
.glass-cursor { --gc-line: rgba(255, 255, 255, 0.78); --gc-fill: rgba(255, 255, 255, 0.3); --gc-fill-2: rgba(255, 255, 255, 0.08); --gc-pore: rgba(0, 0, 0, 0.22);
  position: fixed; left: 0; top: 0; width: 34px; height: 22px; margin: -11px 0 0 -8px; border-radius: 9px; pointer-events: none; z-index: 10000; opacity: 0; will-change: transform;
  background: linear-gradient(160deg, var(--gc-fill), var(--gc-fill-2)); border: 1px solid var(--gc-line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 -4px 8px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(5px) saturate(1.5) brightness(1.08); backdrop-filter: blur(5px) saturate(1.5) brightness(1.08);
  transition: opacity 0.2s, width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.2s; }
html[data-theme="light"] .glass-cursor { --gc-line: rgba(21, 24, 28, 0.42); --gc-fill: rgba(255, 255, 255, 0.55); --gc-fill-2: rgba(255, 255, 255, 0.12); --gc-pore: rgba(21, 24, 28, 0.22); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14), inset 0 -4px 8px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) .glass-cursor { --gc-line: rgba(21, 24, 28, 0.42); --gc-fill: rgba(255, 255, 255, 0.55); --gc-fill-2: rgba(255, 255, 255, 0.12); --gc-pore: rgba(21, 24, 28, 0.22); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14), inset 0 -4px 8px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9); } }
.glass-cursor.is-on { opacity: 1; }
.glass-cursor.is-hidden { opacity: 0; }
.glass-cursor .gc-band { position: absolute; left: 0; right: 0; top: 0; height: 36%; border-radius: 8px 8px 3px 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)); border-bottom: 1px solid var(--gc-line); opacity: 0.9; }
.glass-cursor .gc-pores { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; }
.glass-cursor .gc-pores i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gc-pore); }
.glass-cursor .gc-pores i:nth-child(1) { left: 18%; top: 30%; } .glass-cursor .gc-pores i:nth-child(2) { left: 42%; top: 55%; width: 3.5px; height: 3.5px; } .glass-cursor .gc-pores i:nth-child(3) { left: 64%; top: 28%; } .glass-cursor .gc-pores i:nth-child(4) { left: 82%; top: 58%; width: 2.5px; height: 2.5px; }
.glass-cursor .gc-shine { position: absolute; left: 10%; top: 8%; width: 36%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); transform: rotate(-10deg); }
.glass-cursor.is-hover { width: 38px; height: 25px; border-color: rgba(255, 255, 255, 0.95); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(255, 255, 255, 0.12), inset 0 -4px 8px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
html[data-theme="light"] .glass-cursor.is-hover { border-color: rgba(21, 24, 28, 0.6); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16), 0 0 0 4px rgba(47, 138, 114, 0.12), inset 0 -4px 8px rgba(255, 255, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.95); }
.glass-cursor.is-down { width: 30px; height: 19px; }
@media (hover: none), (pointer: coarse) { .glass-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .glass-cursor { transition: opacity 0.2s; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.2vw, 92px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--text-2); max-width: 46ch; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0; margin-bottom: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; background: var(--surface); border-radius: 999px; transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p:not(.eyebrow) { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- Verre (CSS) ---------- */
.glass {
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
html[data-theme="dark"] .glass { box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: 0.9; }
.btn-outline { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); border-color: transparent; }
.btn-ghost { color: var(--text-2); padding: 0 12px; height: 40px; }
.btn-ghost:hover { color: var(--text); background: var(--accent-soft); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn-glass { background: var(--glass-strong); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.text-link { color: var(--accent); font-weight: 500; }
.text-link::after { content: " ›"; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; inset: 14px 0 auto; z-index: 100; display: flex; justify-content: center; padding: 0 14px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 6px; height: var(--nav-h); padding: 0 10px 0 18px;
  border-radius: 999px; width: min(1020px, 100%);
  transition: transform 0.5s var(--ease), box-shadow 0.3s;
}
.nav-logo { display: flex; align-items: center; height: 100%; padding-right: 10px; }
.nav-logo svg { height: 20px; width: auto; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav .btn-primary { height: 40px; padding: 0 18px; font-size: 14.5px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background 0.2s, color 0.2s, transform 0.4s var(--ease); }
.theme-toggle:hover { color: var(--text); background: var(--accent-soft); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  html:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: var(--text); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-sheet { position: fixed; inset: 92px 14px auto; z-index: 99; border-radius: 28px; padding: 14px; display: none; flex-direction: column; gap: 2px; }
.menu-sheet.is-open { display: flex; animation: rise 0.45s var(--ease); }
.menu-sheet a { padding: 14px 16px; border-radius: 16px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.menu-sheet a:hover { background: var(--accent-soft); }
.menu-sheet .menu-cta { display: flex; gap: 10px; padding: 12px 6px 4px; flex-wrap: wrap; }
.menu-sheet .menu-cta .btn { flex: 1; }
.menu-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(0, 0, 0, 0.25); display: none; }
.menu-backdrop.is-open { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .nav-links, .nav .btn-primary { display: none; }
  .menu-toggle { display: grid; }
  .nav { padding-left: 16px; width: 100%; justify-content: space-between; }
  .nav-actions { margin-left: auto; }
}

/* ---------- Hero (racine LiquidGlass) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; overflow: hidden; isolation: isolate;
  grid-template-columns: 1fr auto auto 1fr; grid-template-rows: 1fr auto auto auto auto auto 1fr; column-gap: 24px;
  grid-template-areas: ". . . ." "copy copy copy copy" ". cta1 cta2 ." ". c1 c2 ." ". c3 c4 ." "caption caption caption caption" ". . . .";
  padding: calc(var(--nav-h) + 88px) 20px 36px; align-items: center; justify-items: center;
}
@media (min-width: 1280px) {
  .hero { grid-template-columns: 1fr repeat(4, 282px) 1fr; grid-template-rows: 1.15fr auto auto auto auto 0.85fr; grid-template-areas: ". . . . . ." "copy copy copy copy copy copy" ". . cta1 cta2 . ." ". c1 c2 c3 c4 ." "caption caption caption caption caption caption" ". . . . . ."; }
  .hero .hero-card.lg { min-width: 0; width: 100%; padding: 15px 18px; align-self: stretch; }
  .hero .hero-card .label { height: 100%; }
  .hero .hero-card-1, .hero .hero-card-2, .hero .hero-card-3, .hero .hero-card-4 { margin-top: 44px; }
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero-copy { grid-area: copy; position: relative; z-index: 2; text-align: center; max-width: 960px; pointer-events: none; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy h1 { color: var(--text); font-size: clamp(38px, 5.6vw, 80px); }
/* Mot « étudiants » : un surlignage turquoise se dessine à l’arrivée, puis reste ; légère lueur. Texte lisible dès la première image. */
.hero-title .hl { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.hero-title .hl::before { content: ""; position: absolute; z-index: -1; left: -0.04em; right: -0.04em; bottom: 0.07em; height: 0.36em; border-radius: 0.14em; background: linear-gradient(90deg, rgba(134, 185, 166, 0.42), rgba(134, 185, 166, 0.18)); transform: scaleX(0); transform-origin: 0 50%; animation: hl-draw 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards; }
.hero-title .hl::after { content: ""; position: absolute; z-index: 1; top: -0.1em; bottom: -0.05em; width: 0.5em; left: -0.6em; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); opacity: 0; filter: blur(6px); pointer-events: none; animation: hl-sweep 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards; }
.hero-title .hl-text { position: relative; z-index: 2; animation: hl-glow 1.2s ease 0.8s forwards; }
.hero-title .hl-2::before { animation-delay: 1.05s; }
.hero-title .hl-2::after { animation-delay: 1.05s; }
.hero-title .hl-2 .hl-text { animation-delay: 1.3s; }
html[data-theme="light"] .hero-title .hl::before { background: linear-gradient(90deg, rgba(47, 138, 114, 0.26), rgba(47, 138, 114, 0.12)); }
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) .hero-title .hl::before { background: linear-gradient(90deg, rgba(47, 138, 114, 0.26), rgba(47, 138, 114, 0.12)); } }
@keyframes hl-draw { to { transform: scaleX(1); } }
@keyframes hl-sweep { 0% { opacity: 0; left: -0.6em; } 20% { opacity: 0.9; } 100% { opacity: 0; left: 100%; } }
.hero-title { --hl-glow: 0 0 18px rgba(134, 185, 166, 0.28); }
html[data-theme="light"] .hero-title { --hl-glow: none; }
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) .hero-title { --hl-glow: none; } }
@keyframes hl-glow { to { text-shadow: var(--hl-glow); } }
.hero-copy .lead { animation: lead-in 0.9s var(--ease) 0.2s both; }
@keyframes lead-in { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-title .hl::before { animation: none; transform: scaleX(1); } .hero-title .hl::after { display: none; } .hero-title .hl-text { animation: none; text-shadow: var(--hl-glow); } .hero-copy .lead { animation: none; } }
.hero-copy .lead { margin: 24px auto 0; max-width: 54ch; color: var(--text-2); }
.hero-cta-1 { grid-area: cta1; justify-self: end; }
.hero-cta-2 { grid-area: cta2; justify-self: start; }
.hero-cta-1, .hero-cta-2 { position: relative; z-index: 3; margin-top: 34px; }
/* Éléments en verre : secours CSS tant que WebGL n’est pas prêt ; une fois prêt (.lg-on) le canvas prend le relais. */
.lg {
  position: relative; border-radius: 999px; color: var(--text);
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.lg { transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease; }
.hero.lg-on .lg { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Passage du verre CSS au verre WebGL : fondu, pas de saut. */
.hero .lg > canvas { opacity: 0; transition: opacity 0.45s ease; }
.hero.lg-on .lg > canvas { opacity: 1; }
.lg > .label { position: relative; z-index: 2; pointer-events: none; display: inline-flex; align-items: center; gap: 10px; }
.lg > canvas { border-radius: inherit; }
a.lg, button.lg { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.lg.is-primary > .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-card { position: relative; z-index: 3; margin-top: 22px; width: 100%; }
.hero-card-1 { grid-area: c1; margin-top: 56px; }
.hero-card-2 { grid-area: c2; margin-top: 56px; }
.hero-card-3 { grid-area: c3; }
.hero-card-4 { grid-area: c4; }
.hero-caption { grid-area: caption; z-index: 2; margin-top: 22px; font-size: 12.5px; color: var(--text-3); letter-spacing: 0.02em; }
.hero-card.lg { border-radius: 24px; padding: 18px 22px; min-width: 330px; }
.hero-card .label { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-align: left; }
.hero-card .card-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-card .card-icon svg { width: 18px; height: 18px; }
.hero-card b { display: block; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }
.hero-card small { display: block; font-size: 13px; color: var(--text-2); margin-top: 3px; }
canvas.hero-bg { image-rendering: auto; }
.hero-q { position: absolute; right: clamp(16px, 6vw, 110px); top: 36%; width: 156px; height: 156px; border-radius: 50%; z-index: 3; cursor: pointer; will-change: transform; transition: none; }
.hero-q > .label { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-q .q-mark { width: 82px; height: 86px; color: var(--text); opacity: 0.94; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.14)); overflow: visible; }
.hero-q .q-broom { color: var(--accent); transform-origin: 188px 284px; transition: transform 0.4s var(--ease); }
.hero-q:hover .q-broom { animation: broom-sweep 1.1s var(--ease) infinite; }
@keyframes broom-sweep { 0%, 100% { transform: translateX(0) rotate(0); } 35% { transform: translateX(-16px) rotate(-3deg); } 70% { transform: translateX(12px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-q:hover .q-broom { animation: none; } }
/* Bulles de savon décoratives : verre WebGL (dôme) + secours CSS translucide ; un fin film irisé par-dessus. */
.hero-bubble { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none; will-change: transform; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.02) 100%); border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.12); }
.hero.lg-on .hero-bubble { background: transparent; border-color: transparent; box-shadow: none; }
.hero-bubble::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px; background: conic-gradient(from 210deg, rgba(134, 185, 166, 0.45), rgba(207, 214, 212, 0.5), rgba(134, 185, 166, 0.45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.42; pointer-events: none; }
.hero-bubble::before { content: ""; position: absolute; left: 22%; top: 14%; width: 28%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); transform: rotate(-20deg); pointer-events: none; z-index: 3; }
.hero-bubble > .label { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-bubble .b-icon { color: var(--text); opacity: 0.8; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.14)); }
.hero-bubble-1 { width: 112px; height: 112px; left: clamp(16px, 6vw, 110px); top: 30%; }
.hero-bubble-1 .b-icon { width: 52px; height: 52px; }
.hero-bubble-2 { width: 54px; height: 54px; left: clamp(70px, 12vw, 200px); top: 60%; }
.hero-bubble-3 { width: 78px; height: 78px; right: clamp(24px, 4vw, 70px); top: 60%; }
.hero-bubble-3 .b-icon { width: 34px; height: 34px; }
.hero-bubble-4 { width: 40px; height: 40px; right: clamp(10px, 3.5vw, 60px); top: 12%; }
.hero-bubble-5 { width: 30px; height: 30px; left: clamp(40px, 9.5vw, 165px); top: 20%; }
html[data-theme="light"] .hero-bubble::after { background: conic-gradient(from 210deg, rgba(47, 138, 114, 0.3), rgba(200, 214, 210, 0.6), rgba(47, 138, 114, 0.3)); }
html[data-theme="light"] .hero-bubble { border-color: rgba(255, 255, 255, 0.7); background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0.06) 100%); }
@media (max-width: 1100px) { .hero-q, .hero-bubble { display: none; } }
@media (max-width: 500px) { .hero-copy h1 { font-size: 33px; } .hero-copy .lead { font-size: 16px; margin-top: 18px; } }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--text-3); font-size: 12.5px; letter-spacing: 0.02em; }

/* ---------- Blocs de contenu ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-height: 380px;
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.tile p { color: var(--text-2); max-width: 40ch; }
.tile .btn { margin-top: auto; align-self: flex-start; }
.tile-photo { padding: 0; min-height: 380px; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile-photo .tile-caption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 16px 20px; border-radius: 20px; font-size: 15px; }
.tile-photo .tile-caption b { display: block; }
.tile-dark { background: var(--text); color: var(--bg); border-color: transparent; }
.tile-accent { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tile-accent .eyebrow { color: var(--accent); }
.tile-dark p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.tile-dark .btn-primary { background: var(--bg); color: var(--text); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 32px 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 36px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 16px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-group { padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.service-group .group-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.service-group .group-icon svg { width: 22px; height: 22px; }
.service-group h3 { font-size: 20px; margin-bottom: 14px; }
.service-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.service-group li a { display: block; padding: 6px 0; font-size: 15px; color: var(--text-2); border-radius: 6px; transition: color 0.2s; }
.service-group li a:hover { color: var(--accent); }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.feature { padding: 34px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; position: relative; }
.feature .f-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); margin-bottom: 14px; }
.feature .f-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--text-2); font-size: 15.5px; }
.feature .soon { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--text-3); }

.audience { display: flex; flex-wrap: wrap; gap: 10px; }
.audience span { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; color: var(--text-2); }

.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; color: var(--text-3); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--text-2); max-width: 64ch; }

.cta-final { text-align: center; padding: clamp(80px, 12vw, 160px) 20px; border-top: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(36px, 6vw, 72px); }
.cta-final .lead { margin: 20px auto 36px; }
.cta-final .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.page-hero { padding: calc(var(--nav-h) + clamp(60px, 10vw, 120px)) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 72px); }
.page-hero .lead { margin-top: 20px; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 44px; }
.footer-brand svg { height: 18px; width: auto; color: var(--text); margin-bottom: 14px; }
.footer-brand p { max-width: 32ch; }
.footer h4 { font-size: 13px; color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.footer-bottom a { margin-left: 16px; }

/* ---------- Recherche (service + lieu) ---------- */
.search-dialog { border: 0; padding: 0; width: min(560px, calc(100% - 28px)); border-radius: 28px; background: transparent; color: var(--text); }
.search-dialog::backdrop { background: rgba(0, 0, 0, 0.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-dialog .glass { border-radius: 28px; padding: 22px 22px 18px; background: var(--glass-strong); }
.search-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search-dialog-head h2 { font-size: 20px; }
.search-dialog-input, .search-dialog-where input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.search-dialog-input:focus, .search-dialog-where input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-dialog-crumbs { display: flex; align-items: center; gap: 6px; margin: 14px 2px 8px; font-size: 13px; color: var(--text-2); }
.search-dialog-crumbs button { color: var(--accent); font-weight: 600; }
.search-dialog-crumb::before { content: "›"; margin-right: 6px; color: var(--text-3); }
.search-dialog-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.search-dialog-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; text-align: left; font-size: 15.5px; }
.search-dialog-row:hover, .search-dialog-row:focus-visible { background: var(--accent-soft); }
.search-dialog-row small { display: block; font-size: 12.5px; color: var(--text-2); }
.search-dialog-row .chev, .search-dialog-row .check { margin-left: auto; width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.search-dialog-row .check { color: var(--accent); }
.search-dialog-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); flex-shrink: 0; }
.search-dialog-icon svg { width: 18px; height: 18px; }
.search-empty { padding: 14px 10px; color: var(--text-2); font-size: 15px; }
.search-dialog-where { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.search-dialog-where label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.search-dialog-where-row { display: flex; gap: 8px; }
.search-dialog-where-row .btn { flex-shrink: 0; height: 50px; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, fieldset legend { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field label small { font-weight: 400; color: var(--text-3); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice-row label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.choice-row label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.form-status { font-size: 14px; color: var(--text-2); }
.form-status.is-error { color: var(--danger); }

/* ---------- Page missions ---------- */
.loc-place-form { display: flex; gap: 8px; max-width: 560px; margin-top: 28px; }
.loc-place-form input { flex: 1; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.loc-place-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.loc-place-form .btn { height: 52px; }
.loc-place-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.loc-place-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.loc-place-chips button:hover { background: var(--accent-soft); color: var(--text); }
.loc-results { padding-bottom: clamp(72px, 10vw, 120px); }
.loc-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.loc-summary { font-weight: 600; letter-spacing: -0.01em; }
.loc-keyword { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; margin-left: 8px; }
.loc-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.loc-map { height: 560px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); position: sticky; top: calc(var(--nav-h) + 28px); }
.loc-map .leaflet-tile-pane { filter: var(--map-filter); }
/* Carte vectorielle (MapLibre) : contrôles et bulles dans le style du site. */
.loc-map.is-vector .maplibregl-canvas { border-radius: inherit; }
.loc-map .maplibregl-ctrl-group { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--glass-shadow); overflow: hidden; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.loc-map .maplibregl-ctrl-group button { width: 34px; height: 34px; background: transparent; }
.loc-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.loc-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: var(--ctrl-icon-filter, none); }
html[data-theme="dark"] .loc-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .loc-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); } }
.loc-map .maplibregl-ctrl-attrib { background: var(--glass); color: var(--text-2); font-size: 10px; border-radius: 8px 0 0 0; }
.loc-map .maplibregl-ctrl-attrib a { color: var(--text); }
.loc-map .maplibregl-popup-content { background: var(--glass-strong); color: var(--text); border: 1px solid var(--glass-line); border-radius: 12px; box-shadow: var(--glass-shadow); padding: 10px 12px; font: 13px/1.4 var(--font); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.loc-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--glass-line); }
.loc-map .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--glass-line); }
.loc-map .maplibregl-marker.pin, .loc-map .maplibregl-marker.pin-me { position: absolute; }
.loc-map .leaflet-container { background: var(--bg-2); font-family: var(--font); }
.loc-map .leaflet-control-attribution { background: var(--glass); color: var(--text-2); font-size: 10px; }
.loc-map .leaflet-control-attribution a { color: var(--text); }
.loc-map .leaflet-bar { border: 1px solid var(--line); box-shadow: var(--glass-shadow); border-radius: 12px; overflow: hidden; }
.loc-map .leaflet-bar a { background: var(--glass-strong); color: var(--text); border-bottom-color: var(--line); }
.loc-map .leaflet-tooltip { background: var(--glass-strong); color: var(--text); border: 1px solid var(--glass-line); border-radius: 10px; box-shadow: var(--glass-shadow); font-family: var(--font); font-size: 13px; padding: 6px 10px; }
.loc-map .leaflet-tooltip-top::before { border-top-color: var(--glass-line); }
.loc-map-label { font-weight: 600; }
.loc-missions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.loc-mission { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.3s; }
.loc-mission.is-highlighted { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.loc-mission.is-example { background: transparent; border-style: dashed; }
.loc-mission-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.loc-badge { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.is-example .loc-badge { color: var(--text-2); background: var(--bg-2); }
.is-accepted .loc-badge { color: var(--accent-ink); background: var(--accent); }
.loc-distance { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.loc-mission-title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; text-align: left; line-height: 1.25; }
.loc-mission-title:hover { color: var(--accent); }
.loc-mission-meta { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.loc-skills { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.loc-skill { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.loc-skill.is-match { border-color: var(--accent); color: var(--accent); }
.loc-mission-place, .loc-mission-note { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.loc-mission-actions { display: flex; gap: 8px; margin-top: 16px; }
.loc-mission-actions .btn { height: 40px; padding: 0 18px; font-size: 14.5px; }
.loc-legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-2); }
.loc-legend li { display: flex; align-items: center; gap: 8px; }
.loc-legend span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend-place { background: var(--text); }
.legend-approx { background: var(--accent-soft); border: 1.5px solid var(--accent); }
.legend-exact { background: var(--accent); }
.legend-example { border: 1.5px dashed var(--text-3); }

/* ---------- Page publier une mission ---------- */
.loc-post-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
.loc-post-form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.loc-service-groups { display: grid; gap: 14px; margin-top: 8px; }
.loc-service-group > span { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.loc-service-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.loc-service-group label { display: inline-flex; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; color: var(--text-2); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.loc-service-group label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.loc-service-group input { position: absolute; opacity: 0; pointer-events: none; }
.photo-field { display: flex; flex-direction: column; gap: 10px; }
.photo-drop { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 15px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.photo-drop:hover { background: var(--accent-soft); border-color: var(--accent); }
.photo-drop svg { width: 20px; height: 20px; }
.photo-drop input { display: none; }
.photo-list { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-list figure { position: relative; margin: 0; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photo-list img { width: 100%; height: 100%; object-fit: cover; }
.photo-list button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 14px; line-height: 1; }
.loc-post-side { position: sticky; top: calc(var(--nav-h) + 28px); display: flex; flex-direction: column; gap: 14px; }
.loc-counter { padding: 26px 26px 24px; border-radius: var(--radius-lg); background: var(--text); color: var(--bg); }
.loc-counter strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.loc-counter span { display: block; margin-top: 8px; font-size: 14.5px; opacity: 0.7; }
.loc-counter.is-pending { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.loc-counter.is-low strong { color: inherit; }
.estimate { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.estimate-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.estimate-head b { font-size: 15px; }
.estimate-value { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.estimate-value small { font-size: 14px; color: var(--text-2); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.estimate ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }
.estimate .risks li { color: var(--danger); }
.estimate .btn { align-self: flex-start; }
.loc-post-note { font-size: 13.5px; color: var(--text-3); padding: 0 6px; }
.loc-result { padding: 24px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent-soft); }
.loc-result-title { font-weight: 600; letter-spacing: -0.01em; }
.loc-applicants-status { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.loc-applicants { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.loc-applicant { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); animation: rise 0.5s var(--ease); }
.loc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }
.loc-applicant-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.loc-applicant-head span { color: var(--text-2); font-size: 13.5px; }
.loc-applicant-rating { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.loc-reset { margin-top: 14px; display: inline-block; }

/* ---------- Page contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
.contact-cards { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--nav-h) + 28px); }
.contact-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.contact-card .eyebrow { margin-bottom: 6px; font-size: 13px; }
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card p { font-size: 15px; color: var(--text-2); margin-bottom: 10px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.field-full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Page à propos ---------- */
.about-story { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-figure { position: relative; margin: 0; max-width: 460px; justify-self: end; width: 100%; }
.about-figure img { aspect-ratio: 4 / 5; max-height: 520px; border-radius: var(--radius-lg); }
.team-figure { max-width: 420px; }
.team-card { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 36px 32px 72px; gap: 10px; background: radial-gradient(120% 90% at 20% 10%, rgba(52, 211, 189, 0.16), transparent 60%), radial-gradient(90% 80% at 90% 90%, rgba(124, 108, 242, 0.14), transparent 60%), var(--surface); }
.team-avatars { display: flex; justify-content: center; margin-bottom: 18px; }
.team-avatars span { width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--bg); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 45%, var(--surface)), color-mix(in srgb, var(--accent) 12%, var(--surface))); margin-left: -16px; position: relative; display: grid; place-items: center; }
.team-avatars span:first-child { margin-left: 0; }
.team-avatars span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); opacity: 0.85; transform: translateY(-9px); }
.team-avatars span::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 38px; height: 20px; border-radius: 19px 19px 0 0; background: var(--bg); opacity: 0.85; transform: translateX(-50%); }
.team-avatars span:nth-child(2) { background: linear-gradient(160deg, color-mix(in srgb, #7c6cf2 45%, var(--surface)), color-mix(in srgb, #7c6cf2 12%, var(--surface))); }
.team-avatars span:nth-child(3) { background: linear-gradient(160deg, color-mix(in srgb, #f59e0b 42%, var(--surface)), color-mix(in srgb, #f59e0b 12%, var(--surface))); }
.team-avatars span:nth-child(4) { background: linear-gradient(160deg, color-mix(in srgb, #3b82f6 45%, var(--surface)), color-mix(in srgb, #3b82f6 12%, var(--surface))); }
.team-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.team-sub { font-size: 15px; color: var(--text-2); max-width: 30ch; }
.team-note { margin-top: 10px; font-size: 12.5px; color: var(--text-3); padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 999px; }
.about-figure figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 16px; font-size: 14px; }
.about-story .lead { max-width: none; }
.about-story img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.principle { padding: 32px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--text-2); font-size: 16px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.team-card b { display: block; font-size: 17px; }
.team-card span { font-size: 14.5px; color: var(--text-2); }

/* ---------- Assistant (chatbot) ---------- */
.coach-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text); transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
.coach-fab:hover { transform: translateY(-2px); }
.coach-fab svg { width: 18px; height: 18px; color: var(--accent); }
.coach-fab .ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.coach-fab.is-off .ai-dot { background: var(--text-3); box-shadow: none; }
body.coach-open .coach-fab { display: none; }
.coach-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(0, 0, 0, 0.18); display: none; }
.coach-backdrop.is-open { display: block; }
.coach {
  position: fixed; right: 18px; bottom: 18px; z-index: 95; width: min(420px, calc(100% - 36px)); height: min(640px, calc(100% - 36px));
  border-radius: 28px; display: flex; flex-direction: column; overflow: hidden; animation: rise 0.45s var(--ease);
}
.coach[hidden] { display: none; }
.coach-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.coach-title { display: flex; flex-direction: column; gap: 3px; }
.coach-title b { font-size: 16px; letter-spacing: -0.01em; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.ai-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.ai-badge.is-on::before { background: var(--accent); }
.coach-body { flex: 1; overflow: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; min-width: 0; padding: 12px 15px; border-radius: 20px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; animation: rise 0.35s var(--ease); }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 8px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 8px; }
.bubble small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); text-align: left; transition: background 0.2s, color 0.2s; }
.chip:hover { background: var(--accent-soft); color: var(--text); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.coach-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.coach-form input { flex: 1; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.coach-form input:focus { border-color: var(--accent); }
.coach-form .btn-primary { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.coach-form svg { width: 18px; height: 18px; }

/* ---------- Mouvement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services, .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loc-layout, .loc-post-layout, .contact-grid, .about-story { grid-template-columns: 1fr; }
  .loc-map { position: relative; height: 420px; }
  .loc-post-side, .contact-cards { position: static; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .tiles, .steps, .services, .features, .principles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile-photo { min-height: 320px; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 110px; grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto auto auto auto 1fr; grid-template-areas: "." "copy" "cta1" "cta2" "c1" "c2" "caption" "."; }
  .hero-card-1, .hero-card-2 { justify-self: center; width: 100%; max-width: 360px; min-width: 0; }
  .hero-card-1 { margin-top: 36px; }
  .hero-card-2 { margin-top: 12px; }
  .hero-card-3, .hero-card-4 { display: none; }
  .hero-caption { margin-top: 20px; }
  a.lg, button.lg { width: 100%; max-width: 360px; }
  .hero-cta-1, .hero-cta-2 { justify-self: center; width: 100%; max-width: 360px; }
  .hero-cta-2 { margin-top: 12px; }
  .coach { right: 10px; bottom: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 24px; }
  .coach-fab { right: 12px; bottom: 12px; }
  .loc-place-form { flex-direction: column; }
}

/* ======================================================================
   V2 — parcours, assistant, carte, comptes, espaces
   ====================================================================== */

/* ---------- Halo IA : fin liseré en dégradé multicolore et lueur très légère, en rotation lente ---------- */
@property --halo { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.is-ai { position: relative; border-color: transparent !important; }
/* Liseré multicolore (1 px, sur la bordure) et lueur extérieure : deux pseudo-éléments masqués pour ne peindre que l’anneau,
   donc jamais l’intérieur de la carte, quel que soit le contexte d’empilement (animation d’apparition comprise). */
.is-ai::before, .is-ai::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; z-index: 1; background: conic-gradient(from var(--halo), #34d3bd, #7c6cf2, #f59e0b, #3b82f6, #e879a9, #34d3bd); animation: halo-spin 9s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.is-ai::before { inset: 0; padding: 1px; opacity: 0.8; }
html[data-theme="dark"] .is-ai::before { opacity: 0.9; }
.is-ai::after { inset: -9px; padding: 9px; border-radius: calc(var(--radius) + 9px); filter: blur(8px); opacity: 0.16; }
html[data-theme="dark"] .is-ai::after { opacity: 0.3; }
@media (prefers-reduced-motion: reduce) { .is-ai::before, .is-ai::after { animation: none; } }

/* ---------- Navigation : compte ---------- */
.nav-account { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.nav-account:hover { color: var(--text); background: var(--accent-soft); }
@media (max-width: 900px) { .nav-account { display: none; } }

/* ---------- Accueil : services compacts, publics ---------- */
.services-compact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.service-mini { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.3s, border-color 0.2s; }
.service-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-mini .group-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.service-mini .group-icon svg { width: 22px; height: 22px; }
.service-mini h3 { font-size: 20px; letter-spacing: -0.015em; }
.service-mini p { font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.service-mini .service-more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.service-mini .service-more::after { content: " ›"; }
.aud-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.aud-card { flex: 0 1 calc((100% - 66px) / 4); min-width: 230px; }
.aud-card { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.3s; }
.aud-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.aud-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--text); color: var(--bg); display: grid; place-items: center; margin-bottom: 18px; }
.aud-icon svg { width: 22px; height: 22px; }
.aud-card h3 { font-size: 19px; margin-bottom: 6px; }
.aud-card p { font-size: 15px; color: var(--text-2); }
.step-num { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.page-hero.compact { padding-bottom: 28px; }
.page-hero.compact h1 { font-size: clamp(34px, 4.6vw, 56px); }

/* ---------- Mise en page à deux colonnes (Entreprises, Missions) ---------- */
.split { padding-bottom: clamp(64px, 8vw, 110px); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.split-grid > * { min-width: 0; }
.split-main { min-width: 0; position: relative; z-index: 1; }
.split-side { position: relative; z-index: 2; min-width: 0; }
@media (min-width: 1101px) { .split-side { position: sticky; top: calc(var(--nav-h) + 28px); } }
.loc-gate { margin-top: 18px; padding: 26px 28px; border-radius: var(--radius-lg); text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.loc-gate b { font-size: 19px; letter-spacing: -0.015em; }
.loc-gate .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.loc-missions.is-gated .loc-mission:nth-child(n+5) { filter: blur(5px); opacity: 0.5; pointer-events: none; user-select: none; }
.loc-missions.is-gated .loc-mission:nth-child(n+7) { display: none; }
.panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.panel-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.panel-head b { font-size: 17px; letter-spacing: -0.01em; }
.conv-shell { border-radius: var(--radius-lg); display: flex; flex-direction: column; height: min(720px, calc(100vh - var(--nav-h) - 56px)); min-height: 520px; overflow: hidden; }
.conv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.conv-head b { font-size: 17px; letter-spacing: -0.01em; }
.conv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.conv-body { flex: 1; min-height: 0; overflow: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 10px; }
.conv-widget { padding: 10px 14px 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.conv-widget .qw { margin-bottom: 8px; }
.conv-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.conv-photo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); cursor: pointer; flex-shrink: 0; transition: background 0.2s, color 0.2s; }
.conv-photo:hover { background: var(--accent-soft); color: var(--accent); }
.conv-photo svg { width: 20px; height: 20px; }
.conv-attach { display: flex; gap: 8px; padding: 8px 14px 0; }
.conv-attach figure { position: relative; margin: 0; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.conv-attach img { width: 100%; height: 100%; object-fit: cover; }
.conv-attach button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; line-height: 1; }
.bubble.me small { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.bubble.sys { background: transparent; border: 0; padding: 0; max-width: 92%; }
.synced { margin-top: 10px; }
.conv-input { flex: 1; min-width: 0; width: 100%; min-height: 46px; max-height: 150px; padding: 12px 16px; border-radius: 23px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: none; resize: none; font: inherit; font-size: 15px; line-height: 1.45; overflow-y: auto; overflow-wrap: anywhere; word-break: break-word; box-sizing: border-box; display: block; }
.conv-input.is-tall { border-radius: 18px; }
.conv-form .btn, .conv-form .conv-photo { flex-shrink: 0; }
.conv-photo.is-hint { color: var(--accent); animation: photo-hint 1.2s ease-in-out 3; }
@keyframes photo-hint { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-soft); } 50% { transform: scale(1.12); box-shadow: 0 0 0 6px var(--accent-soft); } }
.conv-input:focus { border-color: var(--accent); }
.conv-input:disabled { opacity: 0.6; }
.conv-send { width: 46px; height: 46px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.conv-send svg { width: 18px; height: 18px; }
.conv-missions { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.conv-mission { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 14px; transition: border-color 0.2s; }
.conv-mission:hover { border-color: var(--accent); }
.conv-mission b { font-size: 14.5px; }
.conv-mission span { font-size: 13px; color: var(--text-2); }
.bubble .recap { margin: 10px 0 0; }
.bubble .quick { margin-top: 8px; }

/* ---------- Widgets de question ---------- */
.qw { display: flex; flex-direction: column; gap: 10px; }
.qw-input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-size: 16px; }
.qw-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.qw-input { resize: vertical; min-height: 92px; }
.qw-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.qw-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chip.is-on span { color: var(--text-3); margin-left: 4px; }
.qw-list { max-height: 240px; overflow: auto; padding: 4px 2px; display: flex; flex-direction: column; gap: 10px; }
.qw-group-title { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.qw-group-items { display: flex; flex-wrap: wrap; gap: 6px; }
.qw-opt { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); background: var(--surface); transition: background 0.2s, border-color 0.2s, color 0.2s; text-align: left; }
.qw-opt:hover { border-color: var(--accent); color: var(--text); }
.qw-opt.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qw-opt-lg { padding: 14px 18px; font-size: 15.5px; border-radius: 16px; flex: 1; }
.qw-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.qw-range { width: 100%; accent-color: var(--accent); }
.qw-range-value { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.qw-actions { display: flex; gap: 8px; padding: 2px 0 12px; }
.addr-wrap, .addr-field { position: relative; }
.addr-field.grow { flex: 1; }
.addr-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: var(--glass-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.addr-list li { padding: 10px 12px; border-radius: 10px; font-size: 14.5px; cursor: pointer; }
.addr-list li:hover { background: var(--accent-soft); }

/* ---------- Formulaire pas à pas ---------- */
.stepper { position: relative; }
.stepper-progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 22px; }
.stepper-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.5s var(--ease); }
.stepper-track { position: relative; min-height: 260px; overflow: hidden; }
.stepper-panel { position: relative; transition: transform 0.45s var(--ease), opacity 0.35s; }
.stepper-panel.is-entering-right { transform: translateX(40px); opacity: 0; }
.stepper-panel.is-entering-left { transform: translateX(-40px); opacity: 0; }
.stepper-panel.is-leaving-left, .stepper-panel.is-leaving-right { position: absolute; inset: 0 0 auto; opacity: 0; pointer-events: none; }
.stepper-panel.is-leaving-left { transform: translateX(-40px); }
.stepper-panel.is-leaving-right { transform: translateX(40px); }
.stepper-count { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }
.stepper-q { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.stepper-hint { font-size: 14.5px; color: var(--text-2); margin-bottom: 16px; }
.stepper-panel .qw { margin-top: 14px; }
.stepper-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.stepper-nav .form-status { flex: 1; text-align: center; }
.recap { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; }
.recap dt { color: var(--text-3); font-weight: 500; }
.recap dd { margin: 0; }
.stepper .estimate { margin-top: 14px; }
.stepper > .stepper-track .btn-outline { margin-top: 14px; }

/* ---------- Carte ---------- */
.map-tools { border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; position: relative; z-index: 5; }
.map-tools-row { display: flex; gap: 10px; align-items: center; }
.map-tools .qw-input { height: 46px; padding: 0 14px; font-size: 15px; }
.range-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; display: flex; gap: 8px; }
.range-label output { color: var(--text); }
.loc-map { height: 520px; position: relative; top: auto; }
/* Fond de carte épuré : tuiles OpenStreetMap désaturées (clair) ou inversées (sombre) */
.loc-map .leaflet-tile-pane { filter: grayscale(1) contrast(0.92) brightness(1.04); }
html[data-theme="dark"] .loc-map .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(0.86) brightness(0.9); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .loc-map .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(0.86) brightness(0.9); } }
.split-main .loc-missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.split-main .loc-mission { min-width: 0; }
.split-main .loc-mission-actions { flex-wrap: wrap; }
.split-main .loc-mission-title { overflow-wrap: anywhere; }
.ai-badge { white-space: nowrap; }
.loc-map .leaflet-popup-content-wrapper { background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text); border-radius: 14px; border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); font-family: var(--font); font-size: 13.5px; }
.loc-map .leaflet-popup-tip { background: var(--glass-strong); }
.loc-map .leaflet-control-attribution { font-size: 9.5px; }
.pin { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease); cursor: pointer; }
.pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: var(--accent); opacity: 0.18; z-index: -1; }
.pin.is-active { transform: scale(1.35); }
.pin-textile { background: #7c6cf2; } .pin-textile::after { background: #7c6cf2; }
.pin-voiture { background: #3b82f6; } .pin-voiture::after { background: #3b82f6; }
.pin-electromenager { background: #f59e0b; } .pin-electromenager::after { background: #f59e0b; }
.pin-me { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 3px solid var(--surface); box-shadow: 0 0 0 6px color-mix(in srgb, var(--text) 15%, transparent); }
.loc-results-head { margin: 16px 0 12px; }
.loc-mission-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Assistant : bouton flottant ---------- */
.coach-fab { height: 54px; padding: 0 20px 0 16px; gap: 10px; animation: fab-in 0.8s var(--ease) both; }
.coach-fab:hover { transform: translateY(-2px); }
@keyframes fab-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.coach { height: min(680px, calc(100% - 36px)); width: min(440px, calc(100% - 36px)); }
.coach-conv { flex: 1; min-height: 0; display: flex; flex-direction: column; }


/* ---------- Comptes ---------- */
.auth { padding-bottom: clamp(64px, 8vw, 110px); }
.auth-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.demo-panel { display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.demo-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.2s, transform 0.3s var(--ease); }
.demo-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.demo-btn b { font-size: 16px; }
.demo-btn span { font-size: 13.5px; color: var(--text-2); }
.tile-choice { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.tile-choice .btn { pointer-events: none; }
.auth-stepper { max-width: 720px; margin-inline: auto; }
.solicit { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.solicit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.solicit-form .form-actions { grid-column: 1 / -1; }

/* ---------- Espaces connectés ---------- */
.dash { padding: calc(var(--nav-h) + 40px) 0 clamp(90px, 8vw, 120px); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(30px, 4vw, 48px); }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow: auto; margin-bottom: 28px; }
.tab { padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.tab.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.dash-view .section-head { margin-bottom: 20px; max-width: none; }
.dash-view .section-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }
.pill.is-ok { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.stars { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; }
.stars b { color: #e8a317; font-weight: 600; }
.stars small { color: var(--text-3); font-size: 12.5px; }
.stars.is-new { color: var(--text-3); font-size: 12.5px; }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pv-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.3s; }
.pv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pv-head { display: flex; align-items: center; gap: 12px; }
.pv-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pv-head b { font-size: 17px; letter-spacing: -0.01em; }
.pv-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 17px; flex-shrink: 0; }
.pv-avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.like { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; color: var(--text-3); transition: all 0.25s var(--ease); }
.like:hover { color: #e0245e; border-color: #e0245e; }
.like.is-on { color: #fff; background: #e0245e; border-color: #e0245e; transform: scale(1.06); }
.pv-summary { font-size: 15px; color: var(--text); }
.pv-sectors { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-sectors span { display: inline-flex; flex-direction: column; padding: 7px 11px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pv-sectors small { font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.pv-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.pv-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.pv-actions .btn { flex: 1; height: 42px; font-size: 14.5px; padding: 0 12px; }
.ms-list, .ms-grid { display: grid; gap: 16px; }
.ms-grid { grid-template-columns: repeat(2, 1fr); }
.ms-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.3s; }
.ms-card.is-highlighted { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ms-card.is-closed { opacity: 0.6; }
.ms-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-head .co { display: flex; align-items: center; gap: 10px; }
.ms-head .co b { display: block; font-size: 15px; }
.ms-card h3 { font-size: 20px; }
.ms-when { font-size: 15px; }
.ms-desc { font-size: 14.5px; color: var(--text-2); }
.price-box { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px dashed var(--accent); }
.price-label { grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; align-self: center; }
.price-label::before { content: "✦"; }
.price-value { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.price-note { font-size: 12.5px; color: var(--text-2); }
.ms-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.ms-actions .btn { height: 42px; font-size: 14.5px; }
.offers { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; }
.offer-amount { font-size: 18px; letter-spacing: -0.02em; }
.dash-block { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.dash-block h2 { font-size: 22px; }
.avail-row { display: flex; gap: 8px; align-items: center; }
.avail-row .qw-input { max-width: 220px; }
.avail-list { display: flex; flex-wrap: wrap; gap: 6px; }
.alerts-form { display: flex; flex-direction: column; gap: 12px; }
.alerts-form .field span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.msg-list { display: flex; flex-direction: column; gap: 6px; }
.msg-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color 0.2s; }
.msg-item.is-on { border-color: var(--accent); background: var(--accent-soft); }
.msg-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg-item b { font-size: 15px; }
.msg-item span { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-pane { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; height: 520px; overflow: hidden; }
.msg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.msg-head b { font-size: 16px; }
.msg-body { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(520px, 100%); border-radius: 24px; padding: 22px; animation: rise 0.4s var(--ease); background: var(--glass-strong); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { font-size: 20px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form .field span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.modal-form select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300; padding: 14px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease); max-width: calc(100% - 40px); text-align: center; }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .services-compact { grid-template-columns: repeat(2, 1fr); }
  .aud-card { flex-basis: calc((100% - 22px) / 2); }
  .split-grid, .auth-grid { grid-template-columns: 1fr; }
  .conv-shell { height: 600px; }
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
  .ms-grid { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-pane { height: 460px; }
}
@media (max-width: 700px) {
  .services-compact, .pv-grid { grid-template-columns: 1fr; }
  .aud-card { flex-basis: 100%; min-width: 0; }
  .loc-map { height: 380px; }
  .map-tools-row { flex-wrap: wrap; }
  .solicit-form { grid-template-columns: 1fr; }
  .offer { grid-template-columns: auto 1fr; }
  .offer-amount, .offer .btn { grid-column: 2; justify-self: start; }
  .stepper-nav { flex-wrap: wrap; }
  .stepper-nav .form-status { order: 3; width: 100%; }
  .tabs { width: 100%; }
  .dash { padding-top: calc(var(--nav-h) + 28px); }
}

/* ---------- Dossier administratif (prestataire) ---------- */
.doc-progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.doc-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.5s var(--ease); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); align-items: center; }
.doc.is-missing { border-style: dashed; }
.doc b { font-size: 15.5px; }
.doc p { grid-column: 1; font-size: 13.5px; color: var(--text-2); }
.doc .doc-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-status { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.doc-status.is-missing { background: var(--bg); border: 1px dashed var(--line-2); color: var(--text-2); }
.doc-status.is-prepared { background: var(--accent-soft); color: var(--accent); }
.doc-status.is-pending { background: rgba(245, 158, 11, 0.14); color: #b45309; }
html[data-theme="dark"] .doc-status.is-pending { color: #fbbf24; }
.doc-status.is-validated { background: var(--accent); color: var(--accent-ink); }
.doc-status.is-rejected { background: rgba(224, 36, 94, 0.12); color: #e0245e; }
.doc-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.doc-legend li { display: flex; gap: 10px; align-items: center; }
.file-btn input { display: none; }
/* ---------- Formation sur mesure ---------- */
.tuto { display: flex; flex-direction: column; gap: 12px; }
.tuto .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.tuto details { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.tuto summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.tuto ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-2); display: grid; gap: 4px; }
.tuto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.tuto-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.tuto-steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 3px; }
.tuto-steps b { display: block; font-size: 14.5px; }
.tuto-steps span { font-size: 13.5px; color: var(--text-2); }
.tuto-steps small { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.modal.is-wide { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; }


/* ---------- Mode léger (téléphone, tablette, petit processeur) : même rendu, beaucoup moins de calcul ----------
   Flous d’arrière-plan raccourcis (le coût d’un backdrop-filter croît avec son rayon et se paie à chaque image de défilement),
   halos IA fixes, pas de transitions sur le verre. */
html.is-lite .glass, html.is-lite .lg, html.is-lite .btn-glass { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.is-lite .hero-card.lg { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--surface) 72%, transparent); }
html.is-lite .is-ai::before, html.is-lite .is-ai::after { animation: none; }
html.is-lite .is-ai::after { filter: blur(6px); }
html.is-lite .lg { transition: none; }
@media (max-width: 700px) {
  .nav.glass { -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
}
html.is-lite .hero.lg-on .hero-card.lg { background: transparent; }

/* ---------- Corrections de l’audit du 11 octobre 2026 ---------- */
/* Statuts, badges, bandeaux */
.pill.is-demo { color: #7c5a00; background: rgba(245, 158, 11, 0.16); border-color: transparent; font-size: 11.5px; padding: 3px 8px; vertical-align: middle; }
html[data-theme="dark"] .pill.is-demo { color: #fbbf24; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .pill.is-demo { color: #fbbf24; } }
.pill.is-warn { color: #b45309; background: rgba(245, 158, 11, 0.14); border-color: transparent; text-decoration: none; }
html[data-theme="dark"] .pill.is-warn { color: #fbbf24; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .pill.is-warn { color: #fbbf24; } }
.pill.is-muted { opacity: 0.75; }
.is-ok-text { color: var(--accent); font-weight: 600; }
.form-status.is-ok { color: var(--accent); }
.form-status.small, p.small.form-status { font-size: 13px; }
.dash-block.is-warn { border-color: rgba(245, 158, 11, 0.45); background: color-mix(in srgb, #f59e0b 7%, var(--surface)); }
.dash-block.is-warn ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.dash-block .row, .dash-view .row { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-banner { margin: -6px 0 16px; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; color: var(--text-2); background: rgba(245, 158, 11, 0.1); border: 1px dashed rgba(245, 158, 11, 0.45); }
.dash-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-danger { background: var(--danger); color: #fff; border: 0; }
.btn-danger:hover { filter: brightness(1.08); }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.toast.is-error { border: 1px solid var(--danger); }
.choice-row label.is-disabled { opacity: 0.55; cursor: not-allowed; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: 14px; font-weight: 600; color: var(--text-2); padding: 0; margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.modal-form input:not([type=checkbox]):not([type=radio]), .alerts-form input:not([type=checkbox]):not([type=radio]):not([type=range]), .modal-form textarea, .alerts-form textarea, .alerts-form select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; min-width: 0; }
.modal { max-height: calc(100vh - 40px); overflow: auto; }

/* Notifications */
.notif-btn { position: relative; width: 44px; padding: 0; }
.notif-btn svg { width: 20px; height: 20px; }
.notif-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.notif-btn .notif-count { position: absolute; top: -4px; right: -4px; }
.dash-head { position: relative; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--glass-strong, var(--surface)); box-shadow: var(--shadow); }
.notif-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notif-panel li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; }
.notif-panel li.is-unread { border-color: var(--accent); background: var(--accent-soft); }
.notif-panel li a { color: var(--text); text-decoration: none; }
.notif-panel li small { color: var(--text-3); font-size: 12px; }

/* Cycle de mission */
.offers.is-chosen { border-color: var(--accent); }
.offer-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.offer { grid-template-columns: auto minmax(0, 1fr) auto; }
.offer > div { min-width: 0; }
.ms-card { min-width: 0; }
.ms-card .small b { font-weight: 600; }
.ms-grid.is-focus { margin-bottom: 20px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #e8a317; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Brouillon repris */
.stepper-resume { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; }
.stepper-resume[hidden] { display: none; }
.qw-consent .consent, .qw .consent { font-size: 15px; color: var(--text); }

/* Messagerie : contenue dans l’écran sur téléphone (M11) */
.msg-layout { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.msg-layout > *, .msg-list, .msg-pane, .msg-item, .msg-body { min-width: 0; }
.msg-item { width: 100%; }
.msg-body .bubble { max-width: 85%; overflow-wrap: anywhere; word-break: break-word; }
.msg-head { min-width: 0; }
.msg-head .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-pane { position: relative; }
.msg-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.msg-form textarea { flex: 1 1 0; min-width: 0; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
.msg-form .btn { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; }
.msg-form .form-status { flex-basis: 100%; }
.msg-form .form-status:empty { display: none; }
.msg-new { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
@media (max-width: 1100px) { .msg-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .msg-pane { height: min(70vh, 520px); }
  .msg-head { padding: 12px 14px; gap: 8px; }
  .msg-body { padding: 12px; }
  .dash-head { flex-direction: column; align-items: stretch; }
  .dash-actions { flex-wrap: wrap; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .offer { grid-template-columns: auto minmax(0, 1fr); }
  .offer-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .avail-row { flex-wrap: wrap; }
  .admin-table { font-size: 13px; }
}

/* Accueil à 320 px : boutons du hero contenus (m6) */
@media (max-width: 400px) {
  a.lg, button.lg { padding: 0 18px; font-size: 16px; max-width: 100%; }
  .hero-cta-1, .hero-cta-2 { max-width: 100%; min-width: 0; }
  .hero .label { min-width: 0; }
  .lg .label { white-space: normal; text-align: center; }
}

/* À propos : équipe */
.team-figure .team-card { aspect-ratio: auto; min-height: 420px; padding-bottom: 80px; }
.team-avatars span:nth-child(5) { background: linear-gradient(160deg, color-mix(in srgb, #e0245e 40%, var(--surface)), color-mix(in srgb, #e0245e 12%, var(--surface))); }
.team-poles { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; text-align: left; font-size: 14.5px; }
.team-poles dt { font-weight: 600; color: var(--text-2); }
.team-poles dd { margin: 0; }

/* Pages légales */
.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.legal-body h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 18px; }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.legal-body ul, .legal-body ol { padding-left: 20px; display: grid; gap: 6px; }
.todo { background: rgba(245, 158, 11, 0.16); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Espace équipe */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.admin-table .pre { white-space: pre-wrap; max-width: 420px; }
.admin-reason { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-reason .qw-input { min-width: 200px; }
[data-admin-view] > p.muted { margin-bottom: 14px; }
.about-story > *, .team-card { min-width: 0; }
.team-poles dd { overflow-wrap: anywhere; }
@media (max-width: 400px) { .team-figure .team-card { padding: 28px 18px 80px; } .team-poles { grid-template-columns: 1fr; gap: 2px; } .team-poles dd { margin-bottom: 6px; } }
.choice-row label { position: relative; }
.choice-row input { width: 1px; height: 1px; left: 0; top: 0; }
.ms-group-head { margin: 26px 0 12px; }
.ms-group-head h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
