:root {
  --ink: #111111;
  --ink-2: #333333;
  --muted: #4A4A4A;
  --muted-2: #5F5F5F;
  --line: #E6E6E2;
  --line-2: #D9D9D4;
  --soft: #F7F7F5;
  --chip: #F2F2EF;
  --accent: #3D3BF3;
  --accent-ink: #2A28B8;
  --accent-soft: #ECECFE;
  --danger: #B42318;
  --ok: #0B7A5A;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau bêta */
.beta-bar { background: var(--ink); color: #fff; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; padding: 9px 16px; text-align: center; }
.beta-bar a { color: #fff; font-weight: 700; }
.beta-bar a:hover { color: #C9C8FF; }
.scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale label { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.scale label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header / footer */
.site-header { border-bottom: 1px solid #ECECE8; background: #fff; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.logo { text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.logo span { color: var(--accent); }
.byline { font-size: 12px; color: var(--muted-2); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.site-footer { border-top: 1px solid #ECECE8; margin-top: 64px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--muted-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #2a2a2a; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 12px; }
.btn-accent:hover { background: #2f2de0; color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted-2); text-decoration: underline; cursor: pointer; }

/* Forms */
label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input[type=text], input[type=email], input[type=password], input[type=url], select { height: 50px; padding-top: 0; padding-bottom: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.check input { margin-top: 3px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.hint { font-size: 13px; color: var(--muted-2); margin: 0; }
.alert { border-radius: 14px; padding: 14px 18px; font-size: 15px; font-weight: 600; }
.alert-error { background: #FDECEA; color: var(--danger); }
.alert-ok { background: #E7F6EF; color: var(--ok); }
.alert-info { background: #F0F0FE; color: #1E1C8A; }

/* Cards / tags */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tag { display: inline-block; font-size: 13px; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 5px 11px; }
.tag-role { font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar { border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.pcard { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pcard-head { display: flex; align-items: center; gap: 14px; }
.pcard-name { font-size: 17px; font-weight: 700; }
.pcard-meta { font-size: 14px; color: var(--muted-2); }
.pcard p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pcard .btn { margin-top: auto; border-radius: 10px; min-height: 44px; font-size: 14px; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Home */
.hero { padding: 88px 0 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -2px; max-width: 900px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0; }
.search-box { margin-top: 24px; width: 100%; max-width: 1040px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 12px 40px rgba(17,17,17,.06); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: end; text-align: left; }
.search-box .btn-accent { height: 50px; }
.section-soft { background: var(--soft); }
.section { padding: 80px 0; display: flex; flex-direction: column; gap: 40px; }
.section h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.step-n { font-size: 48px; font-weight: 800; color: var(--accent); }
.steps h3 { font-size: 22px; margin: 8px 0; }
.steps p { margin: 0; color: var(--muted); }
.cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.cta p { margin: 0; color: #CFCFCF; font-size: 18px; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* Results */
.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 320px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.filters .check { font-size: 15px; color: var(--ink); }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.results-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }

/* Profile */
.profile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.profile-top h1 { font-size: 44px; font-weight: 800; letter-spacing: -1.2px; }
.profile-photo { width: 160px; height: 160px; border-radius: 28px; font-size: 52px; }
.psection { display: flex; flex-direction: column; gap: 12px; }
.psection h2 { font-size: 20px; font-weight: 800; }
.psection p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 680px; white-space: pre-line; }
.embed { width: 100%; max-width: 680px; border: 0; border-radius: 14px; display: block; }
.embed-video { aspect-ratio: 16 / 9; height: auto; }
.contact-box { flex: 1 1 340px; max-width: 420px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 40px rgba(17,17,17,.06); }

/* Auth / forms pages */
.page-soft { background: var(--soft); }
.form-card { padding: 36px; display: flex; flex-direction: column; gap: 32px; }
.form-card section { display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { font-size: 18px; font-weight: 800; }
.page-title { text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 56px 0 28px; }
.page-title h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.page-title p { margin: 0; font-size: 17px; color: var(--muted); }
.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); }

@media (max-width: 640px) {
  .form-card { padding: 22px; }
  .profile-top h1 { font-size: 34px; }
  .profile-photo { width: 120px; height: 120px; font-size: 40px; }
  .cta { padding: 48px 24px; }
  .cta h2, .section h2 { font-size: 30px; }
  .filters { max-width: none; }
}

/* Likes, toasts, alertes */
.like-btn { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #BDBDB8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.like-btn svg { fill: none; }
.like-btn:hover { color: var(--accent); border-color: var(--accent); }
.like-btn.is-liked { color: #fff; background: var(--accent); border-color: var(--accent); }
.like-btn.is-liked svg { fill: currentColor; }
.like-btn-big { width: auto; height: 48px; padding: 0 20px; gap: 10px; border-radius: 999px; border-color: var(--ink); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; }
.like-btn-big.is-liked { color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 700; box-shadow: 0 12px 40px rgba(0,0,0,.2); z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.alert-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; }
.alert-box p { margin: 0; color: var(--accent-ink); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #ECECE8; padding-bottom: 12px; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.match-banner { background: var(--ink); color: #fff; border-radius: 24px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }

/* Ce que la personne recherche : mis en évidence */
.seek { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: #FFF3DC; color: #7A4300; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.seek strong { font-weight: 800; }
.seek-big { font-size: 17px; padding: 14px 18px; border-radius: 16px; align-self: flex-start; }
.vis-options { display: flex; flex-direction: column; gap: 10px; }
.vis-options label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.vis-options label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.vis-options input { margin-top: 4px; }
.vis-options span { display: flex; flex-direction: column; }
.vis-options small { color: var(--muted-2); font-size: 13px; }
