/* =========================================
   PRESQUE CHEZ VOUS — PcN Stylesheet
   ========================================= */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary: #2c5f2e;
    --color-primary-light: #3d7a3e;
    --color-accent: #e67e22;
    --color-bg: #faf8f5;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666;
    --color-border: #e0dcd4;
    --color-pub-bg: #f0ede8;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Courier New', monospace;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* =========================================
   HEADER — 5W + 2H
   ========================================= */

.site-header {
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-icon { font-size: 1.5rem; }
.brand-name { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); }
.brand-commune { font-size: 1.1rem; font-weight: 400; color: var(--color-text-muted); }

.header-nav { display: flex; gap: 20px; }
.header-nav a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.header-nav a:hover { background: #e8f0e8; }

/* Editorial Block */
.editorial-block {
    background: var(--color-primary);
    color: white;
    padding: 24px;
}

.w2h-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.w2h-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

.w2h-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a8d5a2;
    min-width: 70px;
    padding-top: 2px;
}

.w2h-value { font-size: 0.9rem; line-height: 1.4; }

/* Commune Nav */
.commune-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 24px;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.commune-label { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 500; }

.commune-nav a {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: #e8f0e8;
    color: var(--color-primary);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.commune-nav a:hover { background: #d0e6d0; }

/* =========================================
   MAIN CONTENT
   ========================================= */

.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

/* Pub Banners */
.pub-banner {
    background: var(--color-pub-bg);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.pub-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pub-tag {
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pub-inner strong { font-size: 0.95rem; }
.pub-inner span { font-size: 0.85rem; color: var(--color-text-muted); flex: 1; }

.pub-inner a {
    margin-left: auto;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.pub-inline { margin: 16px 0; }

/* Feed */
.feed-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
}

/* Message Cards */
.message-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 12px 0;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-primary);
}

.message-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.message-activity {
    font-size: 0.75rem;
    background: #e8f0e8;
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.message-author { font-weight: 600; font-size: 0.9rem; color: var(--color-text); }
.message-date { font-size: 0.8rem; color: var(--color-text-muted); margin-left: auto; }

.message-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.message-body {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.message-footer { margin-top: 8px; }
.message-meta { font-size: 0.8rem; color: var(--color-text-muted); }

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: var(--color-text);
    color: #ccc;
    padding: 30px 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-brand { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 8px; }
.footer-tagline { font-size: 0.8rem; color: #888; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: white; }

.footer-legal { font-size: 0.75rem; color: #666; margin-top: 20px; border-top: 1px solid #333; padding-top: 16px; }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
    .header-inner { flex-direction: column; gap: 12px; text-align: center; }
    .header-nav { justify-content: center; flex-wrap: wrap; }
    .w2h-grid { grid-template-columns: 1fr; }
    .message-header { flex-direction: column; align-items: flex-start; }
    .message-date { margin-left: 0; }
    .pub-inner { flex-direction: column; align-items: flex-start; }
    .pub-inner a { margin-left: 0; margin-top: 8px; }
    .footer-inner { flex-direction: column; gap: 20px; }
}/* ================================================================
   ADDITIONS style.css — Près de chez nous
   À COLLER À LA FIN du style.css existant sur le serveur
   ================================================================ */

/* ── Feed / pages BLOC ─────────────────────────────────────────── */
.feed-header {
  background: var(--color-primary);
  color: #fff;
  padding: 28px 24px 22px;
}
.feed-meta { max-width: 800px; margin: 0 auto; }
.feed-type {
  display: inline-block;
  background: rgba(255,255,255,.2);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.feed-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  border-bottom: none;
  padding-bottom: 0;
}
.feed-localisation {
  font-size: .87rem;
  opacity: .85;
  margin-bottom: 6px;
}
.feed-objet {
  font-size: .87rem;
  opacity: .8;
  font-style: italic;
  line-height: 1.5;
}

.feed-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

/* ── Message cards ─────────────────────────────────────────────── */
.message-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow, 0 1px 4px rgba(0,0,0,.08));
}
.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.message-author {
  font-weight: 700;
  font-size: .85rem;
  color: var(--color-primary);
}
.message-date {
  font-size: .78rem;
  color: var(--color-text-muted, #888);
  margin-left: auto;
}
.message-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text, #222);
  margin-bottom: 12px;
  line-height: 1.3;
}
.message-body {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--color-text, #333);
}
.message-body p { margin-bottom: .8em; }
.message-body p:last-child { margin-bottom: 0; }
.message-body strong { font-weight: 700; }
.message-body em { font-style: italic; }

/* ── Pièces jointes ────────────────────────────────────────────── */
.pj-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.pj-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.pj-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pj-doc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f7f0;
  border: 1px solid var(--color-border, #ddd);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.pj-doc:hover { background: #dff0df; }

/* ── État vide ─────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted, #888);
  background: #fafafa;
  border-radius: 8px;
  border: 1px dashed var(--color-border, #ddd);
}
.empty p { font-size: .92rem; }

/* ── BLOC suspendu ─────────────────────────────────────────────── */
.suspension-notice {
  text-align: center;
  max-width: 480px;
  margin: 80px auto;
  padding: 40px 32px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.suspension-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.suspension-notice h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text, #222);
  margin-bottom: 12px;
}
.suspension-notice p {
  font-size: .92rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}
.btn-retour {
  display: inline-block;
  margin-top: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
}
.btn-retour:hover { opacity: .9; }

/* ── Formulaire d'inscription (classes partagées) ─────────────── */
.main-content { min-height: 60vh; }
