/* ==========================================================================
   Talia10ma — Les professionnels du Maroc
   Design system : vert profond + or (issus du logo), surfaces crème, typographie Outfit / Inter
   ========================================================================== */

:root {
  --green-950: #04231A;
  --green-900: #072E1D;
  --green-800: #0A3A26;
  --green-700: #0F4C35;
  --green-600: #176443;
  --green-500: #1F7D55;
  --green-200: #BFD9CB;
  --green-100: #E3EFE8;
  --green-50: #F1F7F3;
  --gold-700: #8F6A20;
  --gold-600: #A8822A;
  --gold-500: #C6A24F;
  --gold-400: #D9BC6B;
  --gold-200: #EEDFB4;
  --gold-100: #F7EFD9;

  --bg: #F8F6F1;
  --bg-2: #F1EEE6;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #15241D;
  --ink-2: #2E3E36;
  --muted: #5F6E66;
  --line: #E4E6E0;
  --line-2: #D5D9D2;
  --primary: var(--green-700);
  --primary-ink: #FFFFFF;
  --accent: var(--gold-500);
  --accent-ink: #2B2208;
  --focus: #C6A24F;
  --success: #1F7D55;
  --warning: #B8862B;
  --danger: #B3402F;

  --shadow-1: 0 1px 2px rgba(21, 36, 29, .06), 0 1px 3px rgba(21, 36, 29, .04);
  --shadow-2: 0 8px 24px -12px rgba(21, 36, 29, .22), 0 2px 6px rgba(21, 36, 29, .05);
  --shadow-3: 0 24px 60px -24px rgba(8, 51, 31, .35);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --fs-base: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B1711;
  --bg-2: #0F1F17;
  --surface: #13241B;
  --surface-2: #172B21;
  --ink: #EEF3EF;
  --ink-2: #D2DCD6;
  --muted: #9FB0A7;
  --line: #23362C;
  --line-2: #2E4538;
  --primary: #1F7D55;
  --green-50: #122219;
  --green-100: #16301F;
  --gold-100: #2C2510;
  --gold-200: #4A3C14;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

:root[data-size="large"] { --fs-base: 18px; }
:root[data-size="xlarge"] { --fs-base: 20px; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .btn, html[lang="ar"] .brand-text { font-family: var(--font-ar); }
img, video { display: block; max-width: 100%; }
svg { display: block; max-width: 100%; }
svg:not([width]) { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.2em; flex: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--gold-600); margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold-500); border-radius: 2px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 1000; background: var(--primary); color: #fff; padding: .75rem 1rem; border-radius: 8px; transform: translateY(-200%); opacity: 0; pointer-events: none; }
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; max-width: 28ch; }
.section-head p { margin: .5rem 0 0; max-width: 60ch; }
.center { text-align: center; }
.center .section-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none !important; min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(15, 76, 53, .6); }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--accent-ink); box-shadow: 0 6px 16px -8px rgba(168, 130, 42, .6); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--green-50); color: var(--primary); }
.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { background: var(--gold-100); }
.btn-sm { padding: .55rem .95rem; font-size: .85rem; min-height: 36px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.btn-whatsapp { background: #25D366; color: #06301b; }
.btn-whatsapp:hover { background: #1fbd5a; color: #06301b; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-1); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-inline-end: auto; flex: none; }
.brand img { height: 46px; width: auto; }
.brand:hover { text-decoration: none; }
:root[data-theme="dark"] .brand img.logo-full { filter: brightness(0) invert(1) sepia(.2) saturate(.6); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .6rem .85rem; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--green-50); color: var(--primary); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.lang-switch { position: relative; }
.lang-switch select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: .5rem 1.9rem .5rem .8rem; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; min-height: 40px;
}
.lang-switch::after { content: ""; position: absolute; right: .85rem; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
html[dir="rtl"] .lang-switch::after { right: auto; left: .85rem; }
html[dir="rtl"] .lang-switch select { padding: .5rem .8rem .5rem 1.9rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--green-50); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; }
.mobile-drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-drawer.open { display: block; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(6, 39, 26, .5); backdrop-filter: blur(2px); }
.mobile-drawer .panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(360px, 88vw); background: var(--surface); padding: 1.25rem; overflow: auto; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--shadow-3); animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
html[dir="rtl"] .mobile-drawer .panel { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
.mobile-drawer .panel a { padding: .85rem 1rem; border-radius: 12px; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.mobile-drawer .panel a:hover { background: var(--green-50); text-decoration: none; }
.mobile-drawer .panel .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-drawer .panel .drawer-head img { height: 40px; }
.mobile-drawer .drawer-tools { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

@media (max-width: 1240px) { .header-actions .btn-pro, .header-actions .size-btn { display: none; } }
@media (max-width: 1060px) { .nav { display: none; } .burger { display: inline-grid; } }

/* Bottom tab bar (mobile) */
.tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); padding: .35rem .25rem; border-radius: 12px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"], .tabbar a:hover { color: var(--primary); text-decoration: none; background: var(--green-50); }
@media (max-width: 760px) {
  .tabbar { display: flex; }
  body { padding-bottom: 68px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-900); color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 39, 26, .96) 0%, rgba(8, 51, 31, .82) 45%, rgba(8, 51, 31, .35) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-inner { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero .lead { color: rgba(255, 255, 255, .86); max-width: 52ch; }
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold-400); line-height: 1; }
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.hero-aside { display: grid; gap: 1rem; }
.trust-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); border-radius: var(--r-lg); padding: 1.25rem 1.4rem; display: flex; gap: 1rem; align-items: center; }
.trust-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-500); color: var(--green-900); display: grid; place-items: center; flex: none; }
.trust-card .ico svg { width: 22px; height: 22px; }
.trust-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.trust-card span { color: rgba(255, 255, 255, .78); font-size: .9rem; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-aside { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- Search bar ---------- */
.searchbar { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: .6rem; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: .5rem; position: relative; z-index: 5; border: 1px solid var(--line); }
.searchbar .field { position: relative; display: flex; align-items: center; gap: .6rem; padding: .35rem .9rem; border-radius: 18px; background: var(--surface-2); border: 1px solid transparent; min-height: 64px; }
.searchbar .field:focus-within { border-color: var(--gold-500); background: var(--surface); box-shadow: 0 0 0 4px rgba(198, 162, 79, .18); }
.searchbar .field svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.searchbar .field label { position: absolute; top: 9px; inset-inline-start: 44px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.searchbar input, .searchbar select { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; padding: 1.3rem 0 .15rem; outline: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar select { padding-inline-end: 2.6rem; }
.searchbar select { appearance: none; cursor: pointer; }
.searchbar .btn { height: 100%; border-radius: 18px; padding-inline: 1.6rem; }
.searchbar .geo { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); }
.hero .searchbar { margin-top: 2rem; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); max-height: 360px; overflow: auto; z-index: 50; padding: .4rem; display: none; }
.suggest.open { display: block; }
.suggest .grp { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .55rem .75rem .25rem; }
.suggest button { width: 100%; text-align: start; display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--ink); }
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--green-50); color: var(--primary); }
.suggest button .thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; background: var(--green-100); }
.suggest button small { color: var(--muted); margin-inline-start: auto; font-size: .78rem; white-space: nowrap; }
.quick-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: center; }
.quick-tags span { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-inline-end: .25rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .85rem; font-weight: 500; cursor: pointer; transition: background .2s; }
.chip:hover { background: rgba(255, 255, 255, .2); text-decoration: none; color: #fff; }
@media (max-width: 760px) {
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .btn { min-height: 54px; }
}

/* ---------- Orientation (wizard) ---------- */
.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-2); }
.wizard-steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.wizard-steps span { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--muted); padding: .4rem .8rem; border-radius: 999px; background: var(--bg-2); }
.wizard-steps span.active { background: var(--green-100); color: var(--primary); }
.wizard-steps span.done { color: var(--success); }
.wizard-steps i { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: .7rem; background: currentColor; color: #fff; }
.wizard-steps i b { color: #fff; }
.wizard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.wizard-opt { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 1rem; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s, transform .15s, box-shadow .2s; }
.wizard-opt:hover, .wizard-opt[aria-pressed="true"] { border-color: var(--primary); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.wizard-opt[aria-pressed="true"] { background: var(--green-50); }
.wizard-opt .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--green-100); color: var(--primary); display: grid; place-items: center; }
.wizard-opt .ico svg { width: 20px; height: 20px; }
.wizard-opt strong { font-size: .95rem; line-height: 1.2; }
.wizard-opt small { color: var(--muted); }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.wizard-opt.ville { background-size: cover; background-position: center; color: #fff; min-height: 110px; justify-content: end; position: relative; overflow: hidden; border: 0; }
.wizard-opt.ville::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 39, 26, .85), rgba(6, 39, 26, .1)); }
.wizard-opt.ville strong, .wizard-opt.ville small { position: relative; color: #fff; }
.wizard-opt.ville[aria-pressed="true"] { outline: 3px solid var(--gold-500); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-4.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, border-color .2s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card a.cover { position: absolute; inset: 0; z-index: 2; }
.card .media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--green-100); position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .media img { transform: scale(1.04); }
.card .body { padding: 1.1rem 1.2rem 1.25rem; }
.card h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.card .meta { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.card .count { position: absolute; top: .85rem; inset-inline-start: .85rem; background: rgba(255, 255, 255, .92); color: var(--green-800); font-weight: 700; font-size: .78rem; padding: .35rem .7rem; border-radius: 999px; z-index: 1; backdrop-filter: blur(6px); }
:root[data-theme="dark"] .card .count { background: rgba(19, 36, 27, .9); color: var(--gold-400); }
.card .arrow { position: absolute; bottom: 1.1rem; inset-inline-end: 1.1rem; width: 36px; height: 36px; border-radius: 50%; background: var(--green-50); color: var(--primary); display: grid; place-items: center; transition: background .2s, color .2s; }
.card:hover .arrow { background: var(--primary); color: #fff; }
.card .arrow svg { width: 18px; height: 18px; }
html[dir="rtl"] .card .arrow svg { transform: scaleX(-1); }

/* Famille card */
.famille-card .media { aspect-ratio: 4 / 3; }
.famille-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 39, 26, .78) 0%, rgba(6, 39, 26, 0) 55%); }
.famille-card .over { position: absolute; bottom: 1rem; inset-inline: 1.1rem; z-index: 1; color: #fff; }
.famille-card .over h3 { color: #fff; margin: 0; font-size: 1.2rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.famille-card .over span { font-size: .8rem; color: var(--gold-400); font-weight: 600; }
.famille-card .body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.famille-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.famille-card .tags span { font-size: .75rem; padding: .25rem .6rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }

/* Ville card */
.ville-card .media { aspect-ratio: 4 / 3; }
.ville-card .media.placeholder { background: linear-gradient(135deg, var(--green-700), var(--green-900)); display: grid; place-items: center; color: var(--gold-400); font-family: var(--font-display); font-size: 3rem; font-weight: 700; }
.ville-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 39, 26, .8) 0%, rgba(6, 39, 26, 0) 55%); }
.ville-card .over { position: absolute; bottom: .9rem; inset-inline: 1rem; z-index: 1; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: .5rem; }
.ville-card .over h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.ville-card .over small { color: rgba(255, 255, 255, .8); display: block; }
.ville-card .over b { background: var(--gold-500); color: var(--green-900); font-size: .75rem; padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; }

/* Métier card (compact) */
.metier-card { display: flex; align-items: center; gap: .9rem; padding: .7rem; border-radius: var(--r-md); }
.metier-card .media { width: 72px; height: 72px; aspect-ratio: 1; border-radius: 12px; flex: none; }
.metier-card h3 { font-size: 1rem; margin: 0 0 .15rem; }
.metier-card p { font-size: .8rem; }

/* Pro card */
.pro-card { display: flex; flex-direction: column; }
.pro-card .top { display: flex; gap: .9rem; padding: 1.1rem 1.1rem 0; align-items: flex-start; }
.avatar { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--green-600), var(--green-900)); flex: none; position: relative; overflow: hidden; }
.avatar.gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-700)); color: var(--green-900); }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; border-radius: 24px; }
.avatar .verif { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.avatar .verif svg { width: 16px; height: 16px; color: var(--primary); }
.pro-card .who { min-width: 0; flex: 1; }
.pro-card .who h3 { font-size: 1.05rem; margin: 0 0 .1rem; display: flex; align-items: center; gap: .4rem; }
.pro-card .who .job { color: var(--primary); font-weight: 600; font-size: .9rem; display: block; }
.pro-card .who .loc { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; }
.pro-card .who .loc svg { width: 14px; height: 14px; }
.pro-card .fav { position: relative; z-index: 3; }
.pro-card .mid { padding: .75rem 1.1rem 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.pro-card .bottom { margin-top: auto; padding: .9rem 1.1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); margin-top: .9rem; }
.pro-card .bottom .btn { position: relative; z-index: 3; }
.pro-card .pro-bio { padding: .75rem 1.1rem 0; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.pro-card.list { flex-direction: row; align-items: stretch; }
.pro-card.list .top { flex: 1.4; padding: 1.1rem; }
.pro-card.list .mid { flex: 1; padding: 1.1rem 0; align-content: start; }
.pro-card.list .bottom { border-top: 0; border-inline-start: 1px solid var(--line); margin-top: 0; flex-direction: column; align-items: stretch; justify-content: center; min-width: 190px; }
.pro-card.list .pro-bio { display: none; }
@media (max-width: 700px) { .pro-card.list { flex-direction: column; } .pro-card.list .bottom { border-inline-start: 0; border-top: 1px solid var(--line); flex-direction: row; } .pro-card.list .mid { padding: .5rem 1.1rem 0; } }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge-verif { background: var(--green-100); color: var(--green-700); }
.badge-premium { background: linear-gradient(135deg, var(--gold-200), var(--gold-400)); color: var(--gold-700); }
.badge-dispo { background: #E6F4EC; color: #1F7D55; }
.badge-semaine { background: var(--gold-100); color: var(--gold-700); }
.badge-occupe { background: #F4E8E6; color: #B3402F; }
.badge-soft { background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.badge-urgence { background: #FDEBE7; color: #B3402F; }
:root[data-theme="dark"] .badge-dispo { background: #163A28; color: #7FD3A3; }
:root[data-theme="dark"] .badge-occupe, :root[data-theme="dark"] .badge-urgence { background: #3B1F1A; color: #F0A090; }
.rating { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .9rem; color: var(--ink); }
.rating svg { width: 15px; height: 15px; color: var(--gold-500); }
.rating small { color: var(--muted); font-weight: 500; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 14px; height: 14px; color: var(--gold-500); }
.stars svg.off { color: var(--line-2); }
.lang-dots { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.lang-dots span { font-size: .72rem; font-weight: 700; padding: .2rem .45rem; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; color: var(--gold-200); position: absolute; top: .6rem; inset-inline-end: 1rem; line-height: 1; }
:root[data-theme="dark"] .step::before { color: var(--gold-200); opacity: .7; }
.step .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--primary); display: grid; place-items: center; margin-bottom: 1rem; }
.step .ico svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust band ---------- */
.band { background: var(--green-900); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 162, 79, .35), transparent 65%); inset-inline-end: -160px; top: -200px; pointer-events: none; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .8); }
.band ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .8rem; }
.band li { display: flex; gap: .8rem; align-items: flex-start; }
.band li svg { width: 22px; height: 22px; color: var(--gold-400); flex: none; margin-top: 2px; }
.band li strong { display: block; }
.band li span { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.band .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.band .kpi { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: 1.25rem; }
.band .kpi strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold-400); line-height: 1.1; }
.band .kpi span { font-size: .85rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.testi q { font-size: 1rem; color: var(--ink-2); quotes: "« " " »"; }
.testi .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testi .who strong { display: block; font-size: .95rem; }
.testi .who span { font-size: .82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 0 1.25rem; margin-bottom: .75rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-600); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.1rem; margin: 0; }

/* ---------- CTA ---------- */
.cta { border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(135deg, var(--gold-100), #fff 60%); border: 1px solid var(--gold-200); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
:root[data-theme="dark"] .cta { background: linear-gradient(135deg, var(--gold-100), var(--surface) 60%); }
.cta h2 { margin-bottom: .4rem; }
.cta p { margin: 0; color: var(--ink-2); }
.cta .actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .8); margin-top: clamp(3rem, 7vw, 5rem); }
.footer-top { padding: 3.5rem 0 2.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: .95rem; margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .brand img { height: 44px; filter: brightness(0) invert(1); }
.site-footer .brand-desc { font-size: .9rem; margin-top: 1rem; max-width: 36ch; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.social a:hover { background: rgba(255, 255, 255, .1); }
.social svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: .5rem; margin-top: .5rem; }
.newsletter input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; padding: .7rem 1rem; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.footer-bottom .legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.demo-note { background: var(--gold-100); color: var(--gold-700); font-size: .8rem; text-align: center; padding: .5rem var(--gutter); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Page header / breadcrumbs ---------- */
.page-head { padding: 2rem 0 1.5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.page-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: var(--green-900); isolation: isolate; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 39, 26, .92) 10%, rgba(6, 39, 26, .25) 70%); z-index: -1; }
.page-hero .inner { padding: clamp(1.5rem, 4vw, 2.75rem); width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.page-hero h1 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255, 255, 255, .85); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero .eyebrow::before { background: var(--gold-400); }
.page-hero .stats { display: flex; gap: 1.5rem; }
.page-hero .stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-400); line-height: 1; }
.page-hero .stats span { font-size: .8rem; color: rgba(255, 255, 255, .75); }

/* ---------- Annuaire layout ---------- */
.annuaire { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; align-items: start; padding-top: 1.5rem; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; }
.filters h2 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filters h2 button { border: 0; background: none; color: var(--primary); font-weight: 600; font-size: .82rem; cursor: pointer; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.filters legend { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.filters select, .filters input[type="search"], .filters input[type="text"] { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: .65rem .8rem; background: var(--surface-2); color: var(--ink); font: inherit; min-height: 44px; }
.filters .check { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; cursor: pointer; font-size: .92rem; }
.filters .check input { width: 18px; height: 18px; accent-color: var(--primary); }
.filters .lang-grid { display: grid; grid-template-columns: 1fr 1fr; }
.filters-toggle { display: none; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-head h1 { font-size: 1.5rem; margin: 0; }
.results-head .tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.results-head select { border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem 2rem .5rem 1rem; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; appearance: none; min-height: 40px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: .5rem .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.seg button svg { width: 16px; height: 16px; }
.active-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-chips .chip { background: var(--green-100); border-color: transparent; color: var(--green-800); }
.active-chips .chip:hover { background: var(--green-200); color: var(--green-900); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.results.list { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .results { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty svg { width: 48px; height: 48px; color: var(--gold-500); margin: 0 auto 1rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin: 2rem 0; flex-wrap: wrap; }
.pagination button { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; }
.pagination button[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: default; }
#map { height: 560px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.map-wrap { display: none; }
.map-wrap.show { display: block; }
.leaflet-popup-content-wrapper { border-radius: 14px; font-family: var(--font-body); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content strong { display: block; font-family: var(--font-display); }
.leaflet-popup-content a { font-weight: 600; }
.marker-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--green-700); border: 2px solid #fff; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); display: grid; place-items: center; }
.marker-pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-400); }
.marker-pin.premium { background: var(--gold-600); }
@media (max-width: 900px) {
  .annuaire { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; top: auto; max-height: 85vh; border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: 150; transform: translateY(105%); transition: transform .3s ease; box-shadow: var(--shadow-3); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .filters .close-filters { display: inline-flex; }
}
.filters .close-filters { display: none; }
.filters .apply { display: none; margin-top: .5rem; width: 100%; }
@media (max-width: 900px) { .filters .apply { display: inline-flex; } }

/* ---------- Profil pro ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; padding-top: 1.5rem; }
.profile-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2rem); display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; position: relative; overflow: hidden; }
.profile-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(135deg, var(--green-100), var(--gold-100)); z-index: 0; }
:root[data-theme="dark"] .profile-head::before { background: linear-gradient(135deg, var(--green-100), var(--gold-100)); }
.profile-head > * { position: relative; z-index: 1; }
.profile-head .avatar.lg { margin-top: 1.5rem; border: 4px solid var(--surface); box-shadow: var(--shadow-2); }
.profile-head .info { flex: 1; min-width: 240px; padding-top: 3.5rem; }
.profile-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .25rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.profile-head .job { color: var(--primary); font-weight: 600; font-size: 1.05rem; }
.profile-head .loc { color: var(--muted); display: flex; align-items: center; gap: .35rem; margin-top: .25rem; }
.profile-head .loc svg { width: 16px; height: 16px; }
.profile-head .badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; }
.profile-head .head-actions { display: flex; gap: .5rem; padding-top: 3.5rem; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; margin-top: 1.25rem; }
.panel h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.kv div { padding: .9rem 1rem; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--line); }
.kv dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.kv dd { margin: 0; font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list span { padding: .45rem .85rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .88rem; font-weight: 600; border: 1px solid var(--green-100); }
.review { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review .rh { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.review .rh strong { font-size: .95rem; }
.review .rh small { color: var(--muted); }
.review p { margin: 0; color: var(--ink-2); }
.contact-card { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-2); display: grid; gap: .65rem; }
.contact-card h2 { font-size: 1.15rem; margin-bottom: .25rem; }
.contact-card .resp { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.contact-card .resp svg { width: 16px; height: 16px; color: var(--success); }
.contact-card .btn { width: 100%; }
.contact-card .tel { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; text-align: center; padding: .6rem; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.contact-card .note { font-size: .78rem; color: var(--muted); text-align: center; margin: 0; }
#mini-map { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: .5rem; z-index: 0; }
@media (max-width: 960px) { .profile { grid-template-columns: 1fr; } .contact-card { position: static; } }
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 95; padding: .6rem var(--gutter); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); gap: .5rem; }
.mobile-cta .btn { flex: 1; }
@media (max-width: 760px) { .mobile-cta { display: flex; } .page-pro { padding-bottom: 70px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label, .field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: .8rem .95rem; background: var(--surface); color: var(--ink); font: inherit; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(198, 162, 79, .18); }
.form .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.form .error { color: var(--danger); font-size: .82rem; margin-top: .3rem; display: none; }
.form .is-invalid { border-color: var(--danger) !important; }
.form .is-invalid + .error, .form .is-invalid ~ .error { display: block; }
.success-box { background: var(--green-50); border: 1px solid var(--green-200); border-radius: var(--r-lg); padding: 2rem; text-align: center; }
.success-box svg { width: 56px; height: 56px; color: var(--success); margin: 0 auto 1rem; }

/* Steps form (rejoindre) */
.stepper { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.stepper span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.stepper span.on { background: var(--primary); }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; background: var(--surface); position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--gold-500); box-shadow: var(--shadow-2); }
.plan .tag { position: absolute; top: -12px; inset-inline-start: 1.5rem; background: var(--gold-500); color: var(--green-900); font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.plan .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: .5rem 0; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; font-size: .92rem; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(6, 39, 26, .55); backdrop-filter: blur(3px); }
.modal .dialog { position: relative; background: var(--surface); border-radius: var(--r-xl); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-3); animation: pop .22s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .dialog h2 { font-size: 1.35rem; padding-inline-end: 2.5rem; }
.modal .close { position: absolute; top: 1rem; inset-inline-end: 1rem; }
.toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--green-900); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 400; font-size: .92rem; display: flex; gap: .5rem; align-items: center; max-width: calc(100vw - 2rem); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast svg { width: 18px; height: 18px; color: var(--gold-400); }

/* ---------- Guides ---------- */
.guide-card { display: flex; flex-direction: column; }
.guide-card .body { display: flex; flex-direction: column; flex: 1; }
.guide-card .cat { font-size: .72rem; font-weight: 700; color: var(--gold-600); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.guide-card .read { margin-top: auto; padding-top: 1rem; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; }
.article { max-width: 760px; }
.article h2 { font-size: 1.5rem; margin-top: 2rem; }
.article ol, .article ul { padding-inline-start: 1.25rem; color: var(--ink-2); }
.article li { margin-bottom: .4rem; }
.callout { border-inline-start: 4px solid var(--gold-500); background: var(--gold-100); padding: 1rem 1.25rem; border-radius: 0 14px 14px 0; margin: 1.25rem 0; color: var(--ink-2); }
html[dir="rtl"] .callout { border-radius: 14px 0 0 14px; }

/* ---------- Misc ---------- */
.marquee { display: flex; gap: 2.5rem; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); padding: 1rem 0; }
.marquee ul { display: flex; gap: 2.5rem; list-style: none; padding: 0; margin: 0; flex: none; animation: scroll 40s linear infinite; }
.marquee li { font-family: var(--font-display); font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; }
.marquee li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
@keyframes scroll { to { transform: translateX(-100%); } }
.marquee:hover ul { animation-play-state: paused; }
.alpha-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.5rem; }
.alpha-nav a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: .85rem; color: var(--ink-2); background: var(--surface); }
.alpha-nav a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.sr-only-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--green-50); border: 1px solid var(--green-100); color: var(--ink-2); font-size: .92rem; }
.notice svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.img-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 4 / 3; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.value { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.value .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; margin-bottom: 1rem; }
.value .ico svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.05rem; }
.value p { color: var(--muted); font-size: .92rem; margin: 0; }
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .tabbar, .mobile-cta, .contact-card .btn, .filters, .demo-note { display: none !important; }
  body { background: #fff; color: #000; }
  .print-only { display: block; }
}

/* Icônes inline dans le texte */
.pill-list span svg, .note svg, .contact-card .note svg, .review svg, .kv svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.contact-card .note { display: flex; gap: .4rem; align-items: flex-start; text-align: start; }

/* ==========================================================================
   2026 — logos, aperçus, comparateur, assistant, carte, transitions
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.avatar { position: relative; overflow: hidden; }
.avatar img.logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; background: #fff; border-radius: inherit; }
.avatar.lg img.logo { padding: 10%; }
.card-actions { display: flex; gap: .35rem; position: relative; z-index: 3; }
.js-cmp.on { background: var(--gold-100); color: var(--gold-700); border-color: var(--gold-400); }
.site-preview { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.site-preview a { display: block; color: inherit; text-decoration: none; }
.site-preview img { width: 100%; aspect-ratio: 900 / 620; object-fit: cover; object-position: top; display: block; }
.site-preview-cap { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
.presence { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.presence-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.presence-score { font-family: var(--font-display); font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.presence-score.mid { background: var(--gold-100); color: var(--gold-700); }
.presence-score.good { background: var(--green-100); color: var(--green-700); }
.presence ul { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .35rem .9rem; }
.presence li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); }
.presence li svg { width: 16px; height: 16px; color: var(--line-2); }
.presence li.ok { color: var(--ink); }
.presence li.ok svg { color: var(--success); }
.localtime { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; margin-bottom: .9rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: .85rem; }
.localtime svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.localtime strong { display: block; font-size: .92rem; }
.localtime span { color: var(--muted); }
.localtime.open { background: var(--green-50); border-color: var(--green-100); }
.localtime.open svg { color: var(--success); }
.mic-btn { flex: none; }
.mic-btn.rec { background: #FDEBE7; color: #B3402F; border-color: #B3402F; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 64, 47, .35); } 50% { box-shadow: 0 0 0 8px rgba(179, 64, 47, 0); } }
.searchbar .field { position: relative; }
.searchbar .field .field-mic { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; z-index: 2; }
.searchbar .field:has(.field-mic) input { padding-inline-end: 2.8rem; }
.home-map { height: 520px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); z-index: 0; background: var(--surface); }
.map-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.map-legend i { display: inline-block; border-radius: 50%; background: var(--gold-500); border: 1.5px solid var(--green-700); }
.leaflet-tooltip { border-radius: 10px; font-family: var(--font-body); padding: .4rem .7rem; }
@media (max-width: 700px) { .home-map { height: 380px; } }

/* Comparateur */
.cmp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 120; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); border-radius: 999px; padding: .5rem .6rem .5rem 1rem; display: flex; gap: .75rem; align-items: center; max-width: calc(100vw - 2rem); animation: pop .22s ease; }
@media (min-width: 761px) { .cmp-bar { bottom: 24px; } }
.cmp-items { display: flex; gap: .4rem; flex-wrap: wrap; }
.cmp-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--green-50); color: var(--green-800); font-size: .8rem; font-weight: 600; padding: .3rem .4rem .3rem .7rem; border-radius: 999px; }
.cmp-chip button { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: inherit; padding: 0; }
.cmp-chip button svg { width: 14px; height: 14px; }
.cmp-table-wrap { overflow: auto; margin-inline: -.5rem; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.cmp-table th, .cmp-table td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.cmp-table thead th { font-family: var(--font-display); font-size: .95rem; }
.cmp-table thead th .avatar { width: 44px; height: 44px; font-size: .9rem; margin-bottom: .4rem; border-radius: 12px; }
.cmp-table tbody th { color: var(--muted); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; width: 130px; }
.cmp-yes { color: var(--success); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); }
.cmp-yes svg { width: 14px; height: 14px; }
.cmp-no { color: var(--line-2); }
.modal .dialog:has(.cmp-table) { width: min(960px, 100%); max-width: 960px; }

/* Assistant */
.assist-fab { position: fixed; inset-inline-end: 20px; bottom: 84px; z-index: 130; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem .7rem .8rem; border-radius: 999px; border: 0; cursor: pointer; background: var(--green-800); color: #fff; font-weight: 600; font-family: var(--font-display); box-shadow: 0 12px 30px -10px rgba(7, 46, 29, .6); transition: transform .2s, background .2s; }
.assist-fab svg { width: 22px; height: 22px; color: var(--gold-400); }
.assist-fab:hover { transform: translateY(-2px); background: var(--green-700); }
.assist-fab.open { background: var(--gold-500); color: var(--green-900); }
.assist-fab.open svg { color: var(--green-900); }
@media (min-width: 761px) { .assist-fab { bottom: 24px; } }
.assist-panel { position: fixed; inset-inline-end: 20px; bottom: 148px; z-index: 130; width: min(400px, calc(100vw - 40px)); max-height: min(640px, calc(100vh - 180px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; animation: pop .22s ease; }
.assist-panel[hidden] { display: none; }
@media (min-width: 761px) { .assist-panel { bottom: 88px; } }
.assist-panel header { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; background: var(--green-900); color: #fff; }
.assist-id { display: flex; gap: .7rem; align-items: center; }
.assist-id small { display: block; color: rgba(255, 255, 255, .7); font-size: .75rem; }
.assist-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-500); color: var(--green-900); display: grid; place-items: center; }
.assist-avatar svg { width: 22px; height: 22px; }
.assist-panel header .icon-btn { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.assist-log { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--bg); min-height: 240px; }
.msg { max-width: 92%; padding: .7rem .9rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.msg p { margin: 0 0 .5rem; }
.msg p:last-child { margin-bottom: 0; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-start-start-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--green-700); color: #fff; border-end-end-radius: 4px; align-self: flex-end; }
.msg.typing { display: flex; gap: 4px; padding: .8rem 1rem; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.assist-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.assist-chips .chip { background: var(--green-50); border-color: var(--green-100); color: var(--green-800); font-size: .8rem; padding: .35rem .7rem; cursor: pointer; }
.assist-chips .chip:hover { background: var(--green-100); color: var(--green-900); }
.assist-list { display: grid; gap: .4rem; margin: .5rem 0 .6rem; }
.assist-item { display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .15s; }
.assist-item:hover { border-color: var(--primary); transform: translateX(2px); text-decoration: none; }
.assist-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.assist-item span { flex: 1; min-width: 0; }
.assist-item strong { display: block; font-size: .9rem; }
.assist-item small { color: var(--muted); }
.assist-item svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.assist-form { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--surface); }
.assist-form input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: .6rem .95rem; background: var(--surface-2); color: var(--ink); font: inherit; }
.assist-form .send { background: var(--primary); color: #fff; border-color: transparent; }
.assist-foot { margin: 0; padding: 0 .9rem .6rem; font-size: .7rem; color: var(--muted); background: var(--surface); }
body[data-page="pro"] .assist-fab, body[data-page="pro"] .cmp-bar { bottom: 140px; }
@media (min-width: 761px) { body[data-page="pro"] .assist-fab, body[data-page="pro"] .cmp-bar { bottom: 24px; } }
body[data-page="pro"] .assist-panel { bottom: 204px; }
@media (min-width: 761px) { body[data-page="pro"] .assist-panel { bottom: 88px; } }
@media print { .assist-fab, .assist-panel, .cmp-bar { display: none !important; } }
.avatar img.logo { opacity: 0; transition: opacity .25s; }
.avatar img.logo.ok { opacity: 1; }
.site-shot { display: block; position: relative; aspect-ratio: 900 / 675; background: linear-gradient(110deg, var(--surface-2) 30%, var(--bg-2) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.site-preview.ready .site-shot { animation: none; background: var(--surface-2); }
.site-shot img { display: none; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-preview.ready .site-shot img { display: block; }
.site-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.site-wait svg { width: 28px; height: 28px; opacity: .5; }
.site-preview.ready .site-wait { display: none; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .site-shot { animation: none; } }
