/* autrerive — feuille de style. Aucune police externe (RGPD) : polices système. */
:root {
  --ink: #1d2a2e;
  --ink-soft: #4a5a5f;
  --muted: #7a8a8e;
  --paper: #f7f3ec;
  --card: #fffdf9;
  --line: #e4ddd0;
  --river: #24525c;
  --river-deep: #173a42;
  --river-light: #dbe8e8;
  --rive-h: #e3ecef;   /* colonne hommes */
  --rive-f: #f4e7de;   /* colonne femmes */
  --accent: #b95f3b;
  --accent-soft: #f6e1d6;
  --ok: #2f6b4f;
  --ok-soft: #e1efe6;
  --warn: #9a5a00;
  --warn-soft: #fbeccb;
  --err: #a23a32;
  --err-soft: #f7dfdc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding-top: 2rem; padding-bottom: 4rem; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 680px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--river-deep); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* En-tête */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--river-deep); font-family: var(--serif); font-size: 1.4rem; }
.logo svg path { fill: none; stroke: var(--river); stroke-width: 2.4; stroke-linecap: round; }
.logo svg path + path { stroke: var(--accent); }
.logo b { color: var(--accent); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: .2rem 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.main-nav a { text-decoration: none; color: var(--ink-soft); padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a[aria-current] { color: var(--river-deep); border-bottom-color: var(--accent); }
.main-nav a.btn { color: #fff; border: 0; }
.nav-me { font-weight: 600; }
.pill { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 99px; background: var(--river); color: #fff; font-size: .75rem; text-align: center; line-height: 1.5; }
.pill-warn { background: var(--accent); }

/* Pied de page */
.site-footer { background: var(--river-deep); color: #cfdcdc; padding: 2rem 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: #e9f0f0; margin-right: 1.1rem; }
.footer-tag { font-family: var(--serif); font-style: italic; margin: 0; }

/* Boutons et formulaires */
.btn, button.btn {
  display: inline-block; background: var(--river); color: #fff; border: 0; border-radius: 99px;
  padding: .7rem 1.4rem; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--river-deep); color: #fff; }
.btn-accent { background: var(--accent); } .btn-accent:hover { background: #9b4c2d; }
.btn-ghost { background: transparent; color: var(--river); box-shadow: inset 0 0 0 1.5px var(--river); }
.btn-ghost:hover { background: var(--river-light); color: var(--river-deep); }
.btn-small { padding: .4rem 1rem; font-size: .9rem; }
.btn-danger { background: var(--err); } .btn-danger:hover { background: #7e2a24; }
.linklike { background: none; border: 0; padding: 0; color: var(--river); text-decoration: underline; cursor: pointer; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.actions form { margin: 0; }

form.stack { display: grid; gap: 1.1rem; }
label { font-weight: 600; display: block; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; display: block; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--river); outline-offset: 1px; border-color: var(--river); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .35rem; width: 1.05rem; height: 1.05rem; accent-color: var(--river); flex: none; }
.check strong { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0; }
legend { font-weight: 600; padding: 0 .4rem; }
.counter { font-size: .8rem; color: var(--muted); text-align: right; }

/* Messages flash et encadrés */
.flash, .note { border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: 1.2rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-info, .note { background: var(--river-light); color: var(--river-deep); }
.flash-error, .note-err { background: var(--err-soft); color: var(--err); }
.note-warn { background: var(--warn-soft); color: #5e3a00; }
.note-accent { background: var(--accent-soft); color: #6d3018; }
.devbox { background: #fff7d6; border: 1px dashed #c9a400; padding: .8rem 1rem; border-radius: 8px; white-space: pre-wrap; font-size: .85rem; }

/* Cartes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.2rem; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--river); }
.stat { font-family: var(--serif); font-size: 2rem; color: var(--river-deep); line-height: 1; }

.badge { display: inline-block; font-size: .78rem; padding: .1rem .6rem; border-radius: 99px; background: var(--river-light); color: var(--river-deep); white-space: nowrap; }
.badge-rencontre { background: var(--accent-soft); color: #7a3417; }
.badge-comprendre { background: #e6e3f2; color: #3f3570; }
.badge-sex-h { background: var(--rive-h); } .badge-sex-f { background: var(--rive-f); color: #6d3018; }
.jokers { letter-spacing: .15em; font-size: 1.2rem; color: var(--accent); }
.jokers .off { color: var(--line); }

/* Accueil public */
.hero { padding: 2.5rem 0 1rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.hero-art { aspect-ratio: 1; border-radius: 50%; background: linear-gradient(90deg, var(--rive-h) 0 50%, var(--rive-f) 50% 100%); position: relative; overflow: hidden; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art path { fill: none; stroke-width: 3; stroke-linecap: round; }
.principles { counter-reset: p; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding: 0; list-style: none; }
.principles li { counter-increment: p; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem 1.1rem 3.4rem; position: relative; }
.principles li::before { content: counter(p); position: absolute; left: 1.1rem; top: 1rem; font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.steps { padding-left: 1.3rem; } .steps li { margin-bottom: .5rem; }
table.simple { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.simple th, table.simple td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.simple th { background: var(--river-light); color: var(--river-deep); font-size: .9rem; }

/* Deux rives : question de la semaine */
.question-box { background: var(--river-deep); color: #fff; border-radius: 14px; padding: 2rem 2.2rem; margin-bottom: 1.5rem; }
.question-box h1 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: .3rem 0 .8rem; }
.question-box .muted { color: #b9cfd2; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); }
.question-box .eyebrow { color: #f0b89c; }
.rives { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.rive { padding: 1.4rem; }
.rive-h { background: var(--rive-h); } .rive-f { background: var(--rive-f); }
.rive h2 { margin-top: 0; font-size: 1.25rem; display: flex; justify-content: space-between; align-items: baseline; }
.answer { background: rgba(255,255,255,.75); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: .9rem; }
.answer p { margin-bottom: .6rem; }
.answer-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.react { background: none; border: 1.5px solid var(--line); border-radius: 99px; padding: .2rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink-soft); }
.react[aria-pressed=true] { background: var(--river); border-color: var(--river); color: #fff; }

/* Messagerie */
.inbox { list-style: none; padding: 0; margin: 0; }
.inbox li a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem 1.2rem; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
.inbox li a:hover { border-color: var(--river); }
.inbox .who { font-weight: 600; }
.inbox .excerpt { color: var(--ink-soft); grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .unread .who::after { content: ' •'; color: var(--accent); }
.thread { display: flex; flex-direction: column; gap: .7rem; margin: 1.5rem 0; }
.bubble { max-width: 78%; padding: .8rem 1.05rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.bubble.mine { align-self: flex-end; background: var(--river-light); border-color: transparent; }
.bubble.system { align-self: center; background: transparent; border: 1px dashed var(--line); color: var(--ink-soft); font-size: .9rem; text-align: center; max-width: 90%; }
.bubble .meta { font-size: .76rem; color: var(--muted); margin-top: .3rem; display: flex; gap: .8rem; justify-content: space-between; }
.bubble img { max-width: 100%; border-radius: 8px; display: block; }
.deadline { font-weight: 600; color: var(--accent); }
.composer textarea { min-height: 6rem; }
details.menu summary { cursor: pointer; color: var(--river); }
details.menu[open] { margin-bottom: 1rem; }

/* Cercles */
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.post .replies { border-left: 3px solid var(--line); margin: .8rem 0 0 .3rem; padding-left: 1rem; }
.post .reply { margin-top: .8rem; }
.reformulation { background: var(--accent-soft); border-radius: 8px; padding: .7rem .9rem; margin: .5rem 0; font-size: .95rem; }
.parity { display: flex; gap: .4rem; align-items: center; }
.seat { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--river); }
.seat.f { border-color: var(--accent); }
.seat.full { background: var(--river); } .seat.f.full { background: var(--accent); }

/* Profil */
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.prompt { font-family: var(--serif); font-style: italic; color: var(--river); margin-bottom: .2rem; }
.avatar-none { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; color: #fff; background: var(--river); flex: none; }
.avatar-none.f { background: var(--accent); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1rem; }
  .hero-art { width: 60%; margin: 0 auto; }
  .rives, .row2 { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .main-nav { font-size: .9rem; gap: .1rem .8rem; }
  .question-box { padding: 1.4rem; }
}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.main-nav a.btn { padding: .4rem 1rem; border-bottom: 0; }
.answer-meta > span:last-child { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; justify-content: flex-end; }
.answer-meta form { margin: 0; }
