/* ===== BAITA — styles (palette reprise de l'appli d'origine) ===== */
:root {
  --canvas: #F6F3ED; --surface: #FFFFFF; --surface-muted: #FBF9F5;
  --ink: #1F1B1E; --ink-soft: #5F5A5E; --ink-muted: #948D91;
  --line: #E7E1D6; --line-strong: #D8CFC0;
  --plum: #5E3350; --plum-hover: #4B2840; --plum-deep: #3E1F35; --plum-light: #F3EAF0;
  --sage: #7A9A6C; --sage-hover: #64825A; --sage-deep: #4F6B43; --sage-light: #EAF0E5;
  --gold: #B8974E; --gold-deep: #7A6230; --gold-light: #F4ECD8;
  --danger: #B5484A; --danger-deep: #9A3B3D; --danger-light: #F8E7E7;
  --stone-100: #F5F5F4; --stone-300: #D6D3D1; --stone-600: #57534D;
  --sh-card: 0 1px 2px #1F1B1E0A, 0 1px 3px #1F1B1E08;
  --sh-hover: 0 2px 6px #1F1B1E0F, 0 8px 24px #1F1B1E0F;
  --sh-float: 0 12px 40px #1F1B1E24, 0 2px 8px #1F1B1E0F;
  --display: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; touch-action: manipulation; }
html, body { margin: 0; height: 100%; background: var(--canvas); }
body { font: 14.5px/1.5 Inter, system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.small { font-size: 12.5px; }
.boot { display: grid; place-items: center; height: 100vh; }

/* ---------- structure ---------- */
.shell { display: flex; height: 100vh; }
.side { width: 264px; flex-shrink: 0; background: var(--plum-deep); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid #ffffff1a; margin-bottom: 14px; }
.brand img { width: 60px; height: 60px; border-radius: 12px; }
.brand b { font: 600 22px/1 var(--display); display: block; }
.brand small { font-size: 10.5px; color: #ffffff80; }
.navgrp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: #ffffff59; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: #ffffffa6; position: relative; margin-bottom: 2px; }
.nav a:hover { background: #ffffff0f; color: #fff; }
.nav a.on { background: #ffffff1f; color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.nav a .ic { width: 18px; text-align: center; opacity: .7; }
.nav a.on .ic { opacity: 1; color: var(--gold); }
.side .foot { margin-top: auto; background: #ffffff0f; border-radius: 12px; padding: 10px; display: flex; align-items: center; gap: 10px; }
.side .foot .ini { width: 34px; height: 34px; border-radius: 50%; background: #B8974Ee6; color: var(--plum-deep); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.side .foot div { min-width: 0; flex: 1; }
.side .foot b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .foot small { color: #ffffff80; font-size: 11.5px; }
.side .foot button { background: none; border: 0; color: #ffffff80; cursor: pointer; font-size: 16px; padding: 4px; }
.main { flex: 1; overflow-y: auto; }
.page { max-width: 1440px; margin: 0 auto; padding: 32px 40px 48px; }
.burger { display: none; }
.scrim { display: none; }
@media (max-width: 1023px) {
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 288px; transform: translateX(-100%); transition: transform .25s; }
  .shell.open .side { transform: none; }
  .shell.open .scrim { display: block; position: fixed; inset: 0; background: #1F1B1E73; z-index: 39; }
  .burger { display: grid; place-items: center; position: fixed; top: 12px; left: 12px; z-index: 30; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-card); font-size: 18px; cursor: pointer; }
  .page { padding: 64px 16px 40px; }
}

/* ---------- composants ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head p { margin: 6px 0 0; color: var(--ink-soft); }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-soft); font-size: 13.5px; margin-bottom: 14px; }
.back:hover { color: var(--plum); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 1px solid transparent; cursor: pointer; white-space: nowrap; background: var(--plum); color: #fff; box-shadow: inset 0 1px 0 #ffffff1f; }
.btn:hover { background: var(--plum-hover); }
.btn.sec { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-card); }
.btn.sec:hover { background: var(--surface-muted); }
.btn.acc { background: var(--sage); }
.btn.acc:hover { background: var(--sage-hover); }
.btn.dan { background: var(--danger); }
.btn.dan:hover { background: var(--danger-deep); }
.btn.ghost { background: transparent; color: var(--ink-soft); box-shadow: none; }
.btn.ghost:hover { background: #1F1B1E0d; }
.btn.ghost.red { color: var(--danger); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-card); }
.card > .ch { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card > .ch h2 { font-size: 21px; display: flex; gap: 8px; align-items: center; }
.card > .cb { padding: 18px 22px; }
.card > .cf { padding: 14px 22px; border-top: 1px solid var(--line); background: #FBF9F599; border-radius: 0 0 14px 14px; }
.hov { transition: all .15s; cursor: pointer; }
.hov:hover { box-shadow: var(--sh-hover); border-color: var(--line-strong); transform: translateY(-1px); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1279px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .g3, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5 { grid-template-columns: minmax(0, 1fr); } .g5:has(.kpi), .g4:has(.kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi { padding: 12px 14px; } .kpi .num { font-size: 28px; } .kpi .tile { width: 30px; height: 30px; font-size: 14px; } }

label.f { display: block; }
label.f > span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.in, select.in, textarea.in { width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; outline: none; }
textarea.in { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; }
.in:hover { border-color: var(--line-strong); }
.in:focus { border-color: var(--plum); box-shadow: 0 0 0 3px #5E335014; }
.in.bad { border-color: var(--danger); }
.ferr { color: var(--danger); font-size: 12.5px; margin-top: 4px; }
.help { color: var(--ink-muted); font-size: 12.5px; margin-top: 4px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--plum); }

.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; border: 1px solid; padding: 2px 10px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-stone { background: var(--stone-100); color: var(--stone-600); border-color: #E7E5E4; }
.b-gold { background: var(--gold-light); color: var(--gold-deep); border-color: #B8974E4d; }
.b-sage { background: var(--sage-light); color: var(--sage-deep); border-color: #7A9A6C4d; }
.b-plum { background: var(--plum-light); color: var(--plum); border-color: #5E335033; }
.b-danger { background: var(--danger-light); color: var(--danger-deep); border-color: #B5484A40; }
.b-pink { background: #FDF2F8; color: #BE185D; border-color: #FBCFE8; }
.b-blue { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }

.av { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; flex-shrink: 0; box-shadow: 0 0 0 2px #fff; object-fit: cover; }
.empty { text-align: center; padding: 36px 16px; }
.empty .eic { width: 56px; height: 56px; border-radius: 50%; background: var(--plum-light); color: var(--plum); display: inline-grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 6px #F3EAF080; margin-bottom: 12px; }
.empty h3 { font-size: 21px; margin-bottom: 4px; }
.empty p { color: var(--ink-soft); margin: 0 0 12px; font-size: 14px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--plum-light); border-top-color: var(--plum); animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid; }
.al-gold { background: var(--gold-light); border-color: #B8974E4d; color: var(--gold-deep); }
.al-sage { background: var(--sage-light); border-color: #7A9A6C4d; color: var(--sage-deep); }
.al-danger { background: var(--danger-light); border-color: #B5484A40; color: var(--danger-deep); }
.al-plum { background: var(--plum-light); border-color: #5E335033; color: var(--plum); }

/* tableau de bord */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kpi .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 600; }
.kpi .num { font: 600 34px/1.1 var(--display); font-variant-numeric: lining-nums; }
.kpi .tile { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.kpi .more { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.t-sage { background: var(--sage-light); color: var(--sage-deep); }
.t-plum { background: var(--plum-light); color: var(--plum); }
.t-gold { background: var(--gold-light); color: var(--gold-deep); }
.t-danger { background: var(--danger-light); color: var(--danger-deep); }
.match { padding: 16px; }
.matches { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.match .pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.match .pair b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .pair .r { text-align: right; }
.bar { height: 4px; border-radius: 4px; background: var(--stone-100); overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.dim { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 5px; }
.dim .dl { width: 112px; color: var(--ink-soft); flex-shrink: 0; }
.dim .dv { width: 36px; text-align: right; color: var(--ink-muted); }
.pill { display: inline-flex; gap: 4px; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lv-excellent { background: #7A9A6C33; color: var(--sage-deep); }
.lv-bon { background: var(--plum-light); color: var(--plum); }
.lv-moyen { background: #B8974E33; color: var(--gold-deep); }
.lv-faible { background: #B5484A1a; color: var(--danger-deep); }
.lv-incompatible { background: var(--danger-light); color: var(--danger-deep); }
.lv-inconnu { background: var(--stone-100); color: var(--stone-600); }
.list-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.cnt { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--stone-100); font-size: 12px; font-weight: 600; color: var(--ink-soft); }

/* listes shidoukhim */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sh-card); }
.split > section + section { border-left: 2px solid #5E335033; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } .split > section + section { border-left: 0; border-top: 2px solid #5E335033; } }
.half-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.half-h h2 { font-size: 22px; }
.half-f { background: #FDF2F880; } .half-f h2 { color: #BE185D; }
.half-g { background: #EFF6FF80; } .half-g h2 { color: #1D4ED8; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; background: var(--surface-muted); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.clk { cursor: pointer; }
.tbl tr.clk:hover td { background: var(--surface-muted); }
.tblwrap { overflow: auto; max-height: calc(100vh - 260px); }
.photo-cell { position: relative; width: 36px; height: 36px; }
.photo-cell label { position: absolute; inset: 0; border-radius: 50%; background: #1F1B1E80; color: #fff; display: grid; place-items: center; opacity: 0; cursor: pointer; font-size: 13px; }
.photo-cell:hover label { opacity: 1; }
.photo-cell input { display: none; }

/* fiche */
.dl { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 0; font-size: 14px; }
.dl > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.dl .k { color: var(--ink-soft); padding-right: 12px; }
.dl .v { white-space: pre-wrap; word-break: break-word; }
.nr { color: var(--ink-muted); font-style: italic; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos .ph { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photos .ph .acts { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; background: #1F1B1E99; padding: 2px 4px; }
.photos .ph .acts button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 12px; }
.photos .add { width: 96px; height: 96px; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; color: var(--ink-muted); cursor: pointer; font-size: 12px; text-align: center; }
.photos .add input { display: none; }

/* assistant pas à pas */
.steps { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; }
.steps button { flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--ink-muted); font-size: 12px; padding: 4px; }
.steps .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--stone-100); color: var(--stone-600); font-weight: 600; }
.steps .on .c { background: var(--plum); color: #fff; }
.steps .on { color: var(--plum); font-weight: 600; }
.steps .done .c { background: var(--sage); color: #fff; }
.secttl { font: 600 22px/1.2 var(--display); color: var(--plum); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin: 8px 0 2px; grid-column: 1 / -1; }

/* propositions */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.duo .box { background: var(--plum-light); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.duo .box b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heart { color: var(--danger); font-size: 16px; }
.nextact { background: var(--gold-light); color: var(--gold-deep); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-top: 10px; }
.pick { max-height: 256px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.pick > div { padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.pick > div:hover { background: var(--surface-muted); }
.pick > div.sel { background: var(--plum-light); }
.compat { display: flex; flex-direction: column; gap: 10px; }
.compat .it { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.compat .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.ic-ok { background: #7A9A6C26; color: var(--sage-deep); }
.ic-warn { background: var(--gold-light); color: var(--gold-deep); }
.ic-na { background: var(--stone-100); color: var(--stone-600); }
.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 18px; }
.timeline .ev { position: relative; padding-bottom: 14px; }
.timeline .ev::before { content: ''; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--stone-300)); box-shadow: 0 0 0 3px #fff; }
.meet { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.fb { background: var(--surface-muted); border-radius: 10px; padding: 10px; margin-top: 6px; font-size: 13px; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 10px 2px; font-weight: 500; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--plum); border-color: var(--plum); }

/* modale, toast */
.mbg { position: fixed; inset: 0; background: #1F1B1E73; backdrop-filter: blur(2px); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fi .2s; }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--sh-float); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; animation: up .3s; }
.modal.lg { max-width: 680px; }
.modal .mh { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal .mh button { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink-muted); }
.modal .mb { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal .mf { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fi { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(4px); } }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast div { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--sh-float); animation: up .25s; }
#toast div.err { background: var(--danger-deep); }
.lightbox { position: fixed; inset: 0; background: #000d; z-index: 90; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 94vh; border-radius: 8px; }

/* connexion */
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login aside { background: var(--plum-deep); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login aside::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; background: radial-gradient(circle, #B8974E4d, transparent 65%); }
.login aside::after { content: ''; position: absolute; width: 520px; height: 520px; left: -180px; bottom: -200px; background: radial-gradient(circle, #7A9A6C40, transparent 65%); }
.login aside > * { position: relative; z-index: 1; }
.login aside .lg { display: flex; align-items: center; gap: 14px; }
.login aside .lg img { width: 90px; height: 90px; border-radius: 16px; }
.login aside .lg b { font: 600 36px/1 var(--display); }
.login blockquote { font: italic 500 34px/1.2 var(--display); margin: 0; max-width: 460px; }
.login blockquote small { display: block; font: 500 13px Inter; color: var(--gold); margin-top: 14px; font-style: normal; letter-spacing: .06em; }
.login aside .ft { color: #ffffff80; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.login .frm { display: grid; place-items: center; padding: 32px 20px; }
.login .frm > div { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.login .frm h1 { font-size: 34px; }
.login .cap { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); margin-top: 18px; }
@media (max-width: 1023px) { .login { grid-template-columns: 1fr; } .login aside { display: none; } }
.hide-m { }
@media (max-width: 640px) { .hide-m { display: none; } }

/* liste des profils : vignettes photo avec nom, prénom, âge, ville */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 12px; }
.tuile { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--stone-100); cursor: pointer; box-shadow: 0 1px 2px #1f1b1e14; transition: transform .15s, box-shadow .15s; }
.tuile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px #1f1b1e24; }
.tuile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tuile-ini { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 600 40px var(--display); }
.tuile-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 9px; background: linear-gradient(transparent, #1f1b1ee0); color: #fff; display: flex; flex-direction: column; gap: 1px; }
.tuile-txt b { font-size: 14px; line-height: 1.2; }
.tuile-txt span { font-size: 12px; opacity: .9; }
.tuile-txt small { font-size: 10.5px; opacity: .75; margin-top: 2px; }
.tuile-haut { position: absolute; top: 7px; left: 7px; right: 34px; display: flex; flex-wrap: wrap; gap: 4px; }
.tuile-photo { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: #1f1b1e99; color: #fff; display: grid; place-items: center; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.tuile:hover .tuile-photo { opacity: 1; }
@media (hover: none) { .tuile-photo { opacity: 1; } }
.tuile-photo input { display: none; }
/* fiche : intertitres, lignes répétées (frères et sœurs, références) */
.fsub { grid-column: 1 / -1; font: 600 15px var(--display); color: var(--plum); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-top: 6px; }
.dl .dlh { grid-column: 1 / -1; font-weight: 600; color: var(--plum); padding-top: 14px; }
.rep { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rep [data-rows] { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rep-row { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-muted); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.rep-row .form { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
@media (max-width: 640px) { .rep-row .form { grid-template-columns: minmax(0, 1fr); } }
.ftabs { overflow-x: auto; gap: 16px; }
.ftabs a { white-space: nowrap; }
/* préparation de la présentation PDF */
.pres-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.pres-l { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 6px; margin-top: 6px; align-items: start; }
.pres-l textarea { min-height: 38px; resize: vertical; }
@media (max-width: 640px) { .pres-l { grid-template-columns: minmax(0, 1fr) auto; } .pres-l textarea { grid-column: 1 / -1; grid-row: 2; } }/* photo bien visible : en-tête de fiche et création */
.fphoto { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fphoto-new { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 16px; background: var(--surface-muted); }
.fphoto-new img, .fphoto-new .vide { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fphoto-new .vide { display: grid; place-items: center; background: var(--stone-100); font-size: 26px; }
.tuile-haut .badge { max-width: 100%; white-space: normal; line-height: 1.25; }

/* éditeur du PDF : intitulé fixe (non modifiable) */
.pres-k { padding: 9px 2px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* page du jeune (profil.html) : présentation personnelle à compléter */
.pub { min-height: 100vh; background: var(--canvas); }
.pub-h { background: var(--plum-deep); color: #fff; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px; }
.pub-h img { height: 64px; width: auto; border-radius: 12px; background: #fff; }
.pub-h b { font: 600 30px/1 var(--display); letter-spacing: .04em; }
.pub-m { max-width: 820px; margin: 0 auto; padding: 22px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.pub-m h1 { font-size: 30px; }
.pub-intro { border-top: 3px solid var(--gold); }
@media (max-width: 640px) { .pub-h img { height: 48px; } .pub-h b { font-size: 24px; } .pub-m { padding: 14px 12px 32px; } }
