/* PêcherEnsemble — feuille de style maison, sans framework. */

:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #1c2428;
  --muted: #56666b;
  --accent: #177e7a;
  --accent-strong: #0f5f5c;
  --accent-soft: #e1f1ef;
  --on-accent: #ffffff;
  --border: #dde4e3;
  --warn-bg: #fff3d1;
  --warn-text: #5c4300;
  --warn-border: #f0d68a;
  --radius: 12px;
  --maxw: 68rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1516;
    --surface: #171f21;
    --text: #e6ebeb;
    --muted: #9fb0b2;
    --accent: #4cc4bd;
    --accent-strong: #86dcd6;
    --accent-soft: #163331;
    --on-accent: #06201f;
    --border: #283537;
    --warn-bg: #362c0b;
    --warn-text: #ffd97a;
    --warn-border: #6a5313;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
small, .muted { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand .logo-mark { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 0.25rem 1.1rem; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 0.3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* Boutons */
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent) !important;
  padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.3;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-secondary { background: transparent; color: var(--accent) !important; }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-strong) !important; }
.btn-small { padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Sections */
main { padding: 2rem 0 4rem; }
section { margin: 3.5rem 0; }
section:first-child { margin-top: 0; }
.hero { padding: 2rem 0 1rem; max-width: 46rem; }
.hero h1 { margin-bottom: 0.6rem; }
.hero .lead { font-size: 1.25rem; color: var(--muted); }
.lead { font-size: 1.2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 0.4rem; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.3rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; margin-bottom: 0.6rem; }

.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.draft { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); border-radius: var(--radius); padding: 0.8rem 1.1rem; margin: 0 0 1.5rem; }
.draft strong { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85em; }

.notlist { list-style: none; padding: 0; }
.notlist li { padding-left: 1.6em; position: relative; }
.notlist li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; margin: 0.5rem 0 1rem; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.9rem; font-weight: 600; }
.tag.neutral { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }

/* Formulaires */
form.stack { display: grid; gap: 1rem; max-width: 34rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.75rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
fieldset label { font-weight: 400; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.25rem 1rem 0.25rem 0; }
fieldset input { width: auto; }

/* Fiche sortie / communauté */
.sheet { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); align-items: start; }
@media (max-width: 48rem) { .sheet { grid-template-columns: 1fr; } }
.facts { display: grid; gap: 0.6rem 1rem; grid-template-columns: max-content 1fr; margin: 1rem 0; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; }
.status { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-strong); }
.status.off { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.author { display: flex; gap: 0.9rem; align-items: flex-start; }
.author img, .author .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); flex: none; display: grid; place-items: center; color: var(--accent-strong); font-weight: 700; font-size: 1.3rem; }
.author p { margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.map img { display: block; width: 100%; }
.map figcaption { padding: 0.6rem 0.9rem; font-size: 0.92rem; color: var(--muted); }
.outing-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.outing-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.outing-list a { font-weight: 700; text-decoration: none; }
.outing-list a:hover { text-decoration: underline; }
.outing-list .meta { color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0; }
.photos { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.stat { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }

/* Blog */
.post-list { list-style: none; padding: 0; }
.post-list li { border-top: 1px solid var(--border); padding: 1.25rem 0; }
.post-list h2 { margin-bottom: 0.25rem; }
.post-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
article.post { max-width: 42rem; }
article.post p { font-size: 1.1rem; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2rem 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.75rem 0; }
.footer-inner nav a { color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0; color: var(--text); }
.footer-brand .logo-mark { color: var(--accent); }
.footer-brand span { font-weight: 700; }
.footer-note { margin: 0; }

.legal ol, .legal ul { margin-bottom: 1em; }
.legal h2 { font-size: 1.35rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--border); padding: 0.5rem 0.4rem; vertical-align: top; }
.table-wrap { overflow-x: auto; }
.todo { background: var(--warn-bg); color: var(--warn-text); padding: 0 0.3em; border-radius: 4px; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .header-inner { padding: 0.6rem 0; }
  .site-nav { gap: 0.2rem 0.8rem; font-size: 0.92rem; }
  .site-nav .btn-small { padding: 0.35rem 0.8rem; font-size: 0.88rem; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dt { margin-top: 0.5rem; }
}
