/* =========================================================
   Raw to Pro — Design system
   Polices : Outfit (titres) + DM Sans (texte) — aucune police étirée
   Thèmes : clair (par défaut) / sombre via [data-theme]
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f5f8;
  --text: #1d1a24;
  --muted: #625d6e;
  --border: #e8e6ec;
  --primary: #5b3df5;
  --primary-ink: #ffffff;
  --primary-soft: #ece8ff;
  --accent: #ff6b3d;
  --accent-soft: #ffe7de;
  --green: #00a372;
  --green-soft: #dcf6ec;
  --sun: #ffb800;
  --danger: #d92d20;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 24px 60px rgba(26, 21, 35, .14);
  --scrim: rgba(16, 12, 26, .58);

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 20px;
  --radius-lg: 32px;
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #100e17;
  --surface: #1a1724;
  --surface-2: #242032;
  --text: #f4f1fa;
  --muted: #aba3bc;
  --border: #2f2a40;
  --primary: #8c78ff;
  --primary-ink: #120d2b;
  --primary-soft: #2a2350;
  --accent: #ff8a5c;
  --accent-soft: #3a2219;
  --green: #2dd4a0;
  --green-soft: #12352a;
  --sun: #ffc94d;
  --danger: #ff6b5e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --scrim: rgba(4, 3, 8, .72);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--surface-2); }
.stack > * + * { margin-top: 20px; }
.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 56ch; }

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8125rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 8px 14px; border-radius: 999px;
}
.eyebrow [data-lucide], .eyebrow .lucide { width: 16px; height: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font: 600 .8125rem/1.2 var(--font-body); background: var(--surface-2); color: var(--text);
}
.badge .lucide { width: 14px; height: 14px; }
.badge--primary { background: var(--primary-soft); color: var(--primary); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge--green { background: var(--green-soft); color: var(--green); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); white-space: nowrap; touch-action: manipulation;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 20px -8px var(--primary); }
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 12px 26px -8px var(--primary); }
.btn--accent { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn--accent { color: #1a0d07; }
.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--soft { background: var(--primary-soft); color: var(--primary); }
.btn--soft:hover { filter: brightness(.97); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.icon-btn.is-on .lucide { fill: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); }
.link-arrow .lucide { transition: transform .2s var(--ease); }
.link-arrow:hover .lucide { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--font-head); letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.brand b { color: var(--primary); font-weight: 700; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .nav-ico { display: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .btn--ghost, .header-actions .btn--primary { display: none; }
.menu-btn { display: inline-grid; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .header-actions .btn--ghost, .header-actions .btn--primary { display: inline-flex; }
  .menu-btn { display: none; }
}

/* theme toggle (switch) */
.theme-toggle {
  position: relative; width: 64px; height: 36px; border-radius: 999px; padding: 0;
  border: 1.5px solid var(--border); background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: space-between; padding-inline: 9px; color: var(--muted);
}
.theme-toggle .lucide { width: 16px; height: 16px; position: relative; z-index: 1; }
.theme-toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(28px); }
.theme-toggle .t-sun { color: var(--sun); }
[data-theme="dark"] .theme-toggle .t-moon { color: var(--primary); }
.theme-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }

/* drawer mobile */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer__panel nav a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 14px; font-weight: 600; font-size: 1.0625rem; }
.drawer__panel nav a[aria-current="page"] { background: var(--surface-2); color: var(--primary); }
.drawer__panel hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 8px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h4 { font: 600 .875rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text); opacity: .85; }
.footer-grid ul a:hover { color: var(--primary); opacity: 1; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: .875rem; }

/* ---------- Layout : deux colonnes ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: 1.1fr .9fr; }
}
.split__text { display: grid; gap: 22px; justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Compositions d'images + formes géométriques ---------- */
.compo { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1.04; }
.compo img { width: 100%; height: 100%; object-fit: cover; }
.compo__main {
  position: absolute; inset: 6% 8% 3% 16%; z-index: 2; overflow: hidden;
  border-radius: 999px 999px 32px 32px; box-shadow: var(--shadow-lg); background: var(--surface-2);
}
.compo--blob .compo__main { border-radius: 58% 42% 48% 52% / 46% 54% 46% 54%; inset: 8% 6% 6% 10%; }
.compo--cut .compo__main { border-radius: 28px; clip-path: polygon(0 10%, 100% 0, 94% 100%, 4% 92%); inset: 4% 6% 6% 10%; }
.compo--leaf .compo__main { border-radius: 200px 24px 200px 24px; inset: 6% 10% 6% 12%; }
.compo__sub {
  position: absolute; z-index: 3; width: 38%; aspect-ratio: 1; left: 0; bottom: 4%;
  border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow-md); background: var(--surface-2);
}
.compo__tile {
  position: absolute; z-index: 3; width: 30%; aspect-ratio: 1; right: 0; top: 2%;
  border-radius: 28px 28px 28px 6px; overflow: hidden; border: 6px solid var(--bg);
  box-shadow: var(--shadow-md); transform: rotate(6deg); background: var(--surface-2);
}
.section--alt .compo__sub, .section--alt .compo__tile { border-color: var(--surface-2); }
.compo__chip {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--text); padding: 12px 16px 12px 12px; border-radius: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); font-weight: 600; font-size: .9375rem;
  text-align: left; line-height: 1.25;
}
.compo__chip small { display: block; font-weight: 500; color: var(--muted); font-size: .8125rem; }
.compo__chip .chip-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
button.compo__chip { border: 1px solid var(--border); transition: transform .25s var(--ease); }
button.compo__chip:hover { transform: translateY(-3px); }

.shape { position: absolute; z-index: 1; pointer-events: none; }
.shape--blob { inset: 14% 0 2% 22%; background: var(--primary); opacity: .14; border-radius: 62% 38% 46% 54% / 55% 45% 55% 45%; }
.shape--ring { width: 26%; aspect-ratio: 1; border: 12px solid var(--accent); border-radius: 50%; left: 4%; top: 2%; }
.shape--half { width: 24%; aspect-ratio: 2 / 1; background: var(--sun); border-radius: 999px 999px 0 0; right: 0; bottom: 12%; z-index: 4; }
.shape--quarter { width: 22%; aspect-ratio: 1; background: var(--green); border-radius: 0 0 0 100%; right: 4%; top: 0; }
.shape--tri { width: 15%; aspect-ratio: 1; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); left: 2%; top: 40%; z-index: 4; }
.shape--dots {
  width: 34%; aspect-ratio: 1; right: -2%; bottom: -2%; opacity: .3;
  background-image: radial-gradient(var(--text) 1.6px, transparent 1.8px); background-size: 16px 16px;
}
.shape--pill { width: 14%; aspect-ratio: 1 / 2.4; background: var(--primary); border-radius: 999px; right: 6%; top: 34%; z-index: 4; opacity: .9; }
.shape--squiggle { width: 30%; left: 0; bottom: 0; color: var(--primary); z-index: 4; }
.shape--star { width: 13%; aspect-ratio: 1; background: var(--sun); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); right: 10%; top: 6%; z-index: 4; }
@media (prefers-reduced-motion: no-preference) {
  .shape--ring, .shape--star { animation: float 7s ease-in-out infinite; }
  .shape--half, .shape--pill { animation: float 9s ease-in-out infinite reverse; }
}
@keyframes float { 50% { transform: translateY(-10px) rotate(4deg); } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--primary); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .18em; z-index: -1;
  background: var(--sun); opacity: .55; border-radius: 99px;
}
.proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.proof p { font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.proof strong { color: var(--text); }

.page-hero { padding-block: clamp(32px, 5vw, 64px); }

/* ---------- Domaines ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: .9375rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .lucide { width: 18px; height: 18px; }
.chip small { font-weight: 500; opacity: .7; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: -20px; padding-inline: 20px; }
.chips--scroll::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips--scroll { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }

/* ---------- Section head ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head > div { display: grid; gap: 14px; max-width: 640px; justify-items: start; }

/* ---------- Talent cards (style Airbnb : photo d'abord) ---------- */
.grid-cards { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tcard { position: relative; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.tcard__media { position: relative; aspect-ratio: 1 / 1.05; border-radius: 20px; overflow: hidden; background: var(--surface-2); isolation: isolate; }
.tcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tcard:hover .tcard__media img { transform: scale(1.04); }
.tcard__badge {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .94); color: #1d1a24; padding: 6px 11px; border-radius: 999px;
  font: 600 .8125rem/1 var(--font-body); box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.tcard__badge .lucide { width: 14px; height: 14px; color: var(--dom, #5b3df5); }
.tcard__fav {
  position: absolute; right: 6px; top: 6px; z-index: 2; width: 44px; height: 44px; border: 0; background: transparent;
  display: grid; place-items: center; color: #fff; transition: transform .2s var(--ease);
}
.tcard__fav .lucide { width: 26px; height: 26px; fill: rgba(0, 0, 0, .45); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.tcard__fav:hover { transform: scale(1.1); }
.tcard__fav.is-on .lucide { fill: var(--accent); }
.tcard__play {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .94); color: #1d1a24;
  font: 600 .8125rem/1 var(--font-body); box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .25s var(--ease), background-color .2s;
}
.tcard__play .lucide { width: 16px; height: 16px; }
.tcard__play:hover { transform: translateY(-2px); background: #fff; }
.tcard__media::after { /* petite forme géométrique de la couleur du domaine */
  content: ""; position: absolute; left: -22px; bottom: -22px; width: 64px; height: 64px; border-radius: 50%;
  border: 9px solid var(--dom, var(--accent)); z-index: 1; opacity: .95;
}
.tcard__body { display: grid; gap: 2px; padding-inline: 2px; }
.tcard__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tcard__name { font: 600 1.0625rem/1.3 var(--font-body); letter-spacing: 0; }
.tcard__score { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tcard__score .lucide { width: 14px; height: 14px; fill: currentColor; }
.tcard__meta { color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.tcard__dom { font: 600 .8125rem/1.6 var(--font-body); color: var(--dom, var(--primary)); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; white-space: nowrap; }

/* couleurs par domaine */
[data-dom="sport"] { --dom: #ff6b3d; }
[data-dom="mode"] { --dom: #e0479e; }
[data-dom="tech"] { --dom: #5b3df5; }
[data-dom="musique"] { --dom: #00a372; }
[data-dom="cinema"] { --dom: #e8a100; }
[data-dom="danse"] { --dom: #ff4f6d; }
[data-dom="science"] { --dom: #0e9bb5; }
[data-theme="dark"] [data-dom="tech"] { --dom: #8c78ff; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; width: 100%; }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature-list .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feature-list li:nth-child(2) .ico { background: var(--accent-soft); color: var(--accent); }
.feature-list li:nth-child(3) .ico { background: var(--green-soft); color: var(--green); }
.feature-list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: .9375rem; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; width: 100%; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
}
.steps li::before {
  content: counter(s, decimal-leading-zero); width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px 16px 16px 4px; background: var(--text); color: var(--bg); font: 700 1.125rem/1 var(--font-head);
}
.steps h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .9375rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 14px; width: 100%; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; }
.stat b { display: block; font: 700 1.75rem/1.1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .875rem; }

/* duo cards (recruteurs / partenaires) */
.duo { display: grid; gap: 20px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 16px; align-content: start; min-height: 340px; isolation: isolate;
  background: var(--text); color: var(--bg);
}
.duo-card--light { background: var(--primary); color: var(--primary-ink); }
.duo-card p { opacity: .85; max-width: 38ch; }
.duo-card .btn { justify-self: start; margin-top: 8px; }
.duo-card__img {
  position: absolute; right: -40px; bottom: -40px; width: 52%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; z-index: -1;
  border: 8px solid color-mix(in srgb, currentColor 18%, transparent);
}
.duo-card__img img { width: 100%; height: 100%; object-fit: cover; }
.duo-card .shape--ring { left: auto; right: 44%; top: 10%; bottom: auto; width: 56px; border-width: 8px; z-index: -1; }
@media (min-width: 641px) { .duo-card > :not(.duo-card__img):not(.shape) { max-width: 54%; } .duo-card__img { width: 44%; right: -24px; bottom: -24px; } }
@media (max-width: 640px) { .duo-card { padding-bottom: 46%; } .duo-card__img { width: 62%; right: -24px; bottom: -36px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; width: 100%; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--surface); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.help { font-size: .8125rem; color: var(--muted); }
.error-msg { font-size: .8125rem; color: var(--danger); display: none; align-items: center; gap: 6px; }
.field.has-error .error-msg { display: flex; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); gap: 4px; flex-wrap: wrap; }
.seg button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.search { position: relative; width: 100%; }
.search .lucide { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 48px; min-height: 56px; border-radius: 999px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-sm); }

/* ---------- Toolbar / filtres ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-block: 20px 28px; }
.toolbar .select { width: auto; min-height: 44px; border-radius: 999px; padding-block: 8px; }
.count { color: var(--muted); font-size: .9375rem; }
.empty { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--border); border-radius: var(--radius-lg); display: grid; gap: 12px; justify-items: center; }
.empty .lucide { width: 36px; height: 36px; color: var(--muted); }

/* ---------- Skills / timeline ---------- */
.skills { display: grid; gap: 16px; width: 100%; }
.skill-top { display: flex; justify-content: space-between; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.skill-top span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--dom, var(--primary)); transform-origin: left; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 4px solid var(--dom, var(--primary)); }
.timeline time { font-size: .8125rem; font-weight: 600; color: var(--dom, var(--primary)); text-transform: uppercase; letter-spacing: .04em; }
.timeline h3 { font-size: 1.0625rem; margin: 2px 0 4px; }
.timeline p { color: var(--muted); font-size: .9375rem; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: 1.5fr 1fr; } .gallery > :first-child { grid-row: span 2; } }
.gallery figure { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.gallery > :first-child { aspect-ratio: auto; border-radius: 22px 22px 22px 96px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* inline 3D viewer (profil) */
.viewer-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 10%, var(--surface) 0%, var(--surface-2) 70%); border: 1px solid var(--border); aspect-ratio: 1 / 1; width: 100%; }
.viewer-card model-viewer, .viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.viewer-card .viewer-overlay { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.viewer-card .viewer-overlay > * { pointer-events: auto; }

/* ---------- Modal 3D ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.modal::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
.modal[open] { display: grid; place-items: end center; }
@media (min-width: 900px) { .modal[open] { place-items: center; padding: 24px; } }
.modal__box {
  position: relative; width: 100%; max-height: 94dvh; overflow-y: auto; background: var(--bg);
  border-radius: 28px 28px 0 0; display: grid; box-shadow: var(--shadow-lg);
  animation: sheetIn .35s var(--ease);
}
@media (min-width: 900px) {
  .modal__box { max-width: 1100px; border-radius: 32px; grid-template-columns: 1.25fr 1fr; max-height: min(720px, 92dvh); overflow: hidden; animation: popIn .3s var(--ease); }
}
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@keyframes popIn { from { transform: scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal__box { animation: none; } }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 5; }
.viewer { position: relative; min-height: 52dvh; background: radial-gradient(110% 80% at 50% 0%, var(--surface) 0%, var(--surface-2) 75%); overflow: hidden; }
@media (min-width: 900px) { .viewer { min-height: 0; } }
.viewer model-viewer { position: absolute; inset: 0; }
.viewer .shape--ring { left: -30px; top: auto; bottom: -30px; width: 140px; opacity: .25; z-index: 0; }
.viewer .shape--dots { right: 10px; bottom: auto; top: 10px; width: 120px; opacity: .2; z-index: 0; }
.viewer__label {
  position: absolute; left: 16px; top: 16px; z-index: 3; display: inline-flex; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .875rem;
}
.viewer__label .lucide { width: 16px; height: 16px; color: var(--primary); }
.viewer__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: inline-flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--muted); background: var(--surface); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.viewer__hint .lucide { width: 15px; height: 15px; }
.viewer__progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 4; background: transparent; }
.viewer__progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: var(--muted); font-weight: 600; gap: 10px; align-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; margin-inline: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal__info { padding: 28px 22px 24px; display: grid; gap: 18px; align-content: start; overflow-y: auto; }
@media (min-width: 900px) { .modal__info { padding: 44px 36px 32px; } }
.modal__info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ctrl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ctrl-row .chip { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.mini-skills { display: grid; gap: 12px; }
.modal__cta { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.modal__cta .btn--primary { flex: 1 1 200px; }
.ar-btn { position: absolute; right: 16px; bottom: 16px; z-index: 3; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px; display: grid; gap: 8px; }
.kpi .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi:nth-child(2) .ico { background: var(--accent-soft); color: var(--accent); }
.kpi:nth-child(3) .ico { background: var(--green-soft); color: var(--green); }
.kpi:nth-child(4) .ico { background: color-mix(in srgb, var(--sun) 22%, transparent); color: #a66f00; }
[data-theme="dark"] .kpi:nth-child(4) .ico { color: var(--sun); }
.kpi b { font: 700 1.9rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .875rem; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
.tcard__dom { white-space: nowrap; }
.page-hero--dash { padding-bottom: 8px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9375rem; vertical-align: middle; }
th { font: 600 .8125rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; gap: 4px; align-items: center; }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; object-fit: cover; }
.person b { display: block; }
.person small { color: var(--muted); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: nowrap; }
.score { font: 700 1rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.status { white-space: nowrap; font-weight: 600; font-size: .8125rem; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.status--pending { background: color-mix(in srgb, var(--sun) 22%, transparent); color: #8a5a00; }
[data-theme="dark"] .status--pending { color: var(--sun); }
.status--approved { background: var(--green-soft); color: var(--green); }
.status--rejected { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.dash-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.dash-hello { display: flex; align-items: center; gap: 16px; }
.dash-hello .av { width: 64px; height: 64px; border-radius: 22px 22px 22px 6px; overflow: hidden; flex-shrink: 0; }
.dash-hello .av img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; width: 100%; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 4px 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .lucide { transition: transform .25s var(--ease); }
.faq details[open] summary .lucide { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* programmes */
.program { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 10px 10px 22px; }
.program__img { aspect-ratio: 16 / 10; border-radius: 18px 18px 72px 18px; overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; }
.program > :not(.program__img) { padding-inline: 12px; }
.program .price { font: 700 1.25rem/1 var(--font-head); color: var(--primary); }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-weight: 500; max-width: calc(100vw - 32px);
  transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 26px; min-height: 380px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* tableaux -> cartes empilées sur mobile */
@media (max-width: 700px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table { min-width: 0; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
  td { border: 0; padding: 0; max-width: none !important; }
  .row-actions { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 640px) { .viewer__hint { display: none; } }

/* =========================================================
   v3 — composants inspirés d'Airbnb / Dribbble
   ========================================================= */
.site-header { border-bottom-color: var(--border); }

/* barre de recherche en pilule */
.searchbar {
  display: flex; align-items: center; width: 100%; max-width: 760px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .09), 0 1px 2px rgba(0, 0, 0, .05);
}
.searchbar__field { position: relative; flex: 1 1 0; min-width: 0; display: grid; gap: 2px; padding: 10px 18px; border-radius: 999px; cursor: text; transition: background-color .2s; }
.searchbar__field:hover, .searchbar__field:focus-within { background: var(--surface-2); }
.searchbar__field + .searchbar__field::before { content: ""; position: absolute; left: 0; top: 28%; height: 44%; width: 1px; background: var(--border); }
.searchbar__field:hover::before, .searchbar__field:hover + .searchbar__field::before { opacity: 0; }
.searchbar__field label { font: 700 .75rem/1.2 var(--font-body); letter-spacing: .01em; cursor: inherit; }
.searchbar__field input, .searchbar__field select {
  border: 0; background: transparent; padding: 0; margin: 0; width: 100%; font-size: .9375rem; color: var(--text);
  outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.searchbar__field input::placeholder { color: var(--muted); }
.searchbar__field select option { color: #1d1a24; }
.searchbar__field--grow { flex-grow: 1.6; }
.searchbar__btn {
  flex-shrink: 0; height: 52px; min-width: 52px; padding: 0 18px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; transition: filter .2s, transform .2s var(--ease);
}
[data-theme="dark"] .searchbar__btn { color: #1a0d07; }
.searchbar__btn:hover { filter: brightness(1.06); }
.searchbar__btn:active { transform: scale(.96); }
@media (max-width: 760px) {
  .searchbar { flex-direction: column; align-items: stretch; border-radius: 26px; padding: 8px; }
  .searchbar__field { border-radius: 18px; padding: 12px 16px; }
  .searchbar__field + .searchbar__field::before { left: 16px; right: 16px; top: 0; height: 1px; width: auto; }
  .searchbar__btn { margin-top: 6px; height: 50px; }
}

/* barre de catégories (icône + libellé, soulignement actif) */
.catbar {
  display: flex; gap: clamp(20px, 3.4vw, 40px); overflow-x: auto; scrollbar-width: none;
  margin-inline: -20px; padding: 4px 20px 0; border-bottom: 1px solid var(--border);
}
.catbar::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .catbar { margin-inline: 0; padding-inline: 0; } }
.catbar button {
  flex-shrink: 0; display: grid; justify-items: center; gap: 8px; padding: 10px 2px 12px; border: 0; background: transparent;
  color: var(--muted); font: 600 .8125rem/1 var(--font-body); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s; min-height: 44px;
}
.catbar button .lucide { width: 24px; height: 24px; stroke-width: 1.75; }
.catbar button:hover { color: var(--text); border-bottom-color: var(--border); }
.catbar button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }
.catbar small { font-weight: 500; opacity: .7; margin-left: 2px; }
.filters-sticky { position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); padding-top: 8px; }

/* bento des domaines */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .bento > :first-child { grid-column: span 2; grid-row: span 2; }
  .bento > :nth-child(6), .bento > :nth-child(7) { grid-column: span 2; }
}
@media (max-width: 899px) { .bento > :first-child { grid-column: span 2; } }
.tile { position: relative; overflow: hidden; border-radius: 24px; isolation: isolate; color: #fff; display: flex; align-items: flex-end; padding: 18px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; transition: transform .7s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,8,18,.78) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile__ico { position: absolute; left: 16px; top: 16px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--dom, #5b3df5); }
.tile__label { display: grid; gap: 2px; padding-right: 48px; }
.tile__label b { font: 700 1.25rem/1.15 var(--font-head); }
.bento > :first-child .tile__label b { font-size: 1.75rem; }
.tile__label span { font-size: .875rem; opacity: .85; }
.tile__arrow { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: transform .25s var(--ease), background-color .2s; }
.tile:hover .tile__arrow { background: #fff; color: #1d1a24; transform: rotate(-45deg); }
.tile:focus-visible { outline-offset: 4px; }

/* fond "Dribbble" : halos doux derrière le hero */
.hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -140px; background: color-mix(in srgb, var(--primary) 45%, transparent); }
.hero::after { width: 380px; height: 380px; left: -160px; bottom: -160px; background: color-mix(in srgb, var(--sun) 50%, transparent); }
[data-theme="dark"] .hero::before, [data-theme="dark"] .hero::after { opacity: .25; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .lucide { width: 16px; height: 16px; color: var(--green); }

/* ---------- Profil façon annonce Airbnb ---------- */
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 20px; }
.p-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-weight: 500; margin-top: 8px; }
.p-meta strong { color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.p-meta strong .lucide { width: 15px; height: 15px; fill: currentColor; }
.p-actions { display: flex; gap: 4px; }
.text-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { background: var(--surface-2); }
.text-btn .lucide { width: 18px; height: 18px; }
.text-btn.is-on .lucide { fill: var(--accent); color: var(--accent); }

.pgrid { display: grid; gap: 8px; border-radius: 24px; overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 230px)); }
.pgrid > * { position: relative; overflow: hidden; background: var(--surface-2); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.pgrid > figure { margin: 0; }
.pgrid > figure:hover img { filter: brightness(.9); }
.pgrid > :first-child { grid-row: span 2; }
.pgrid--3 .pgrid__3d { grid-column: span 2; }
.pgrid--2 { grid-template-columns: 2fr 1fr; }
.pgrid__3d {
  border: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #fff; text-align: center; padding: 16px;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--dom) 85%, #fff 0%) 0%, #1d1a24 85%); font-weight: 600;
}
.pgrid__3d .ring { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 14px solid rgba(255,255,255,.14); right: -40px; top: -40px; }
.pgrid__3d .tri { position: absolute; width: 60px; height: 60px; background: var(--sun); clip-path: polygon(50% 0, 100% 100%, 0 100%); left: 14px; bottom: 14px; opacity: .9; }
.pgrid__3d .ico3d { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #1d1a24; position: relative; z-index: 1; transition: transform .3s var(--ease); }
.pgrid__3d:hover .ico3d { transform: rotate(-8deg) scale(1.06); }
.pgrid__3d span { position: relative; z-index: 1; }
.pgrid__3d small { display: block; font-weight: 500; opacity: .8; }
@media (max-width: 760px) {
  .pgrid, .pgrid--2, .pgrid--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 150px; }
  .pgrid > :first-child { grid-column: span 2; grid-row: auto; }
  .pgrid > figure:not(:first-child) { display: none; }
  .pgrid > figure:nth-child(2) { display: block; }
  .pgrid__3d, .pgrid--3 .pgrid__3d { grid-column: auto; }
}

.pdetail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 40px; align-items: start; }
.pdetail > * { min-width: 0; }
@media (min-width: 1000px) { .pdetail { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; } }
.pdetail > aside { align-self: stretch; }
.pdetail__main > section { padding-block: 32px; border-top: 1px solid var(--border); }
.pdetail__main > section:first-child { border-top: 0; padding-top: 0; }
.pdetail__main h2 { font-size: 1.5rem; margin-bottom: 18px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.highlights li { display: grid; grid-template-columns: 32px 1fr; gap: 18px; align-items: start; }
.highlights .lucide { width: 26px; height: 26px; stroke-width: 1.6; }
.highlights b { display: block; font-weight: 600; }
.highlights span { color: var(--muted); font-size: .9375rem; }

.side-card {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; padding: 24px; border-radius: 24px;
  border: 1px solid var(--border); background: var(--surface); box-shadow: 0 10px 34px rgba(0, 0, 0, .09);
}
.side-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.side-card__score { font: 700 2.1rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.side-card__score small { font: 500 1rem/1 var(--font-body); color: var(--muted); }
.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.side-stats div { padding: 10px 12px; display: grid; gap: 2px; }
.side-stats div + div { border-left: 1px solid var(--border); }
.side-stats b { font-size: .9375rem; }
.side-stats span { font: 700 .6875rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.side-card .note { text-align: center; color: var(--muted); font-size: .8125rem; }
@media (max-width: 999px) { .side-card { position: static; } }

/* barre d'action collante en bas sur mobile (profil) */
.mobile-cta { display: none; }
@media (max-width: 999px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border);
  }
  .mobile-cta b { display: block; }
  .mobile-cta small { color: var(--muted); }
  body[data-page="profil"] .site-footer { padding-bottom: 110px; }
}

.sb-label { display: none; }
@media (max-width: 760px) { .sb-label { display: inline; } }
.hero .searchbar { margin-top: 4px; }
@media (min-width: 900px) { .hero .split { grid-template-columns: 1.08fr .92fr; } }

/* =========================================================
   Robustesse petits écrans
   ========================================================= */
html { overflow-x: clip; }
.split > *, .duo > *, .grid-2 > *, .pdetail > *, .p-head > *, .section-head > *, .toolbar > * { min-width: 0; }
h1, h2, h3, p, li { overflow-wrap: break-word; }

/* les boutons passent à la ligne au lieu d'élargir la page */
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; height: auto; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .modal__cta .btn--primary { flex-basis: 100%; }
  .section-head .link-arrow { white-space: normal; }
}
@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .catbar { margin-inline: -16px; padding-inline: 16px; }
  .grid-cards { gap: 28px 16px; }
  .tcard__play { padding: 0 12px; }
}

/* Aucun contenu ne doit dépendre d'une animation d'apparition : sur écran tactile / étroit, tout est visible d'emblée */
@media (max-width: 900px), (hover: none) {
  .reveal, .reveal:not(.is-in) { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* bento : légendes courtes sur mobile (sinon le texte chevauche l'icône) */
@media (max-width: 899px) {
  .bento { grid-auto-rows: 168px; }
  .tile { padding: 14px; }
  .tile__label { padding-right: 38px; }
  .tile__label b { font-size: 1.05rem; }
  .bento > :first-child .tile__label b { font-size: 1.4rem; }
  .tile__label span { display: none; }
  .bento > :first-child .tile__label span { display: block; }
  .tile__arrow { width: 34px; height: 34px; right: 12px; bottom: 12px; }
  .tile__ico { left: 12px; top: 12px; width: 38px; height: 38px; }
}
