/* Blog / mur d'actualités — La Guilde du Partage */

:root {
  --green-950: #0b1f14;
  --green-900: #102a1b;
  --green-800: #173b27;
  --green-700: #24523a;
  --green-600: #356c4c;
  --sand-50: #fffaf0;
  --sand-100: #f8edd8;
  --sand-200: #ead7b4;
  --gold-500: #c89537;
  --gold-400: #ddb35b;
  --ink: #1d1d1b;
  --muted: #665a48;
  --line: rgba(29, 29, 27, .12);
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(11, 31, 20, .12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 6%, rgba(53, 108, 76, .14), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(200, 149, 55, .13), transparent 26rem),
    var(--sand-50);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-950);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.brand-mini img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(53, 108, 76, .18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .88rem;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
  opacity: .78;
}

.nav a:hover,
.nav .active {
  opacity: 1;
  color: var(--green-700);
}

.don-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold-500);
  color: #171006 !important;
  opacity: 1 !important;
}

.page-hero {
  padding-bottom: 42px;
  background: linear-gradient(to bottom, var(--sand-100), var(--sand-50));
  border-bottom: 1px solid var(--line);
}

.cover {
  width: 100%;
  background: #e7d6af;
  overflow: hidden;
  max-height: 460px;
}

.cover img {
  width: 100%;
  height: clamp(220px, 31vw, 430px);
  object-fit: cover;
  object-position: center;
}

.profile-row {
  margin-top: -54px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.profile-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 6px;
  background: var(--sand-50);
  box-shadow: var(--shadow);
}

.profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.profile-text {
  padding-top: 62px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-700);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .05em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green-950);
  line-height: 1.05;
  letter-spacing: -.035em;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 4rem);
  max-width: 760px;
}

.profile-text p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.profile-actions {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.btn-primary {
  background: var(--gold-500);
  color: #171006;
  box-shadow: 0 12px 26px rgba(200, 149, 55, .22);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-950);
  border: 1px solid var(--line);
}

.intro-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro-strip > div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.intro-strip > div:last-child {
  border-right: 0;
}

.intro-strip strong {
  color: var(--green-950);
  display: block;
  margin-bottom: 8px;
}

.intro-strip p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

code {
  padding: 2px 5px;
  background: var(--sand-100);
  border-radius: 6px;
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 48px 0 72px;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(11, 31, 20, .08);
}

.side-card.about {
  text-align: center;
}

.side-card.about img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.side-card h2,
.side-card h3 {
  margin-bottom: 12px;
}

.side-card p {
  color: var(--muted);
  margin: 0;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.clean-list a {
  display: block;
  padding: 10px 0;
  color: var(--green-900);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(29,29,27,.08);
}

.clean-list li:last-child a {
  border-bottom: 0;
}

.side-card.highlight {
  background: var(--green-900);
  color: var(--sand-50);
}

.side-card.highlight h3 {
  color: var(--sand-50);
}

.side-card.highlight p {
  color: rgba(255, 250, 240, .78);
}

.side-card.highlight a {
  display: inline-flex;
  margin-top: 16px;
  color: #171006;
  background: var(--gold-500);
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 900;
}

.feed {
  display: grid;
  gap: 22px;
}

.post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(11, 31, 20, .09);
  overflow: hidden;
}

.post-header {
  padding: 20px 22px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-header img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.post-header strong {
  display: block;
  color: var(--green-950);
}

.post-header span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.post-body {
  padding: 20px 22px;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(53, 108, 76, .10);
  color: var(--green-800);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-body h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.post-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.photo-large,
.photo-grid {
  margin: 0 22px 22px;
}

.photo-large {
  height: 420px;
  border-radius: 22px;
}

.photo-grid {
  display: grid;
  gap: 8px;
}

.photo-grid.three {
  grid-template-columns: 1.2fr .9fr .9fr;
}

.photo-grid.two {
  grid-template-columns: 1fr 1fr;
}

.photo-grid .placeholder-photo {
  min-height: 250px;
  border-radius: 18px;
}

.placeholder-photo {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(16, 42, 27, .18), rgba(16, 42, 27, .48)),
    linear-gradient(135deg, #d8bf7b, #6f915a);
  color: rgba(255, 250, 240, .94);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  overflow: hidden;
}

.placeholder-photo.warm {
  background:
    linear-gradient(135deg, rgba(200, 149, 55, .20), rgba(16, 42, 27, .42)),
    linear-gradient(135deg, #f0d18a, #7a9a63);
}

.post-footer {
  display: flex;
  gap: 22px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  color: var(--green-900);
  font-weight: 900;
}

.dark-post {
  background: var(--green-950);
}

.dark-post .post-body h2,
.dark-post .post-header strong {
  color: var(--sand-50);
}

.dark-post .post-header span,
.dark-post .post-body p {
  color: rgba(255, 250, 240, .72);
}

.footer {
  padding: 42px 0;
  background: var(--green-950);
  color: rgba(255, 250, 240, .74);
  text-align: center;
}

.footer strong {
  color: var(--sand-50);
}

.footer p {
  margin: 8px 0 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 250, 240, .80);
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
}

.real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

@media (max-width: 980px) {
  .nav a:not(.don-link) {
    display: none;
  }

  .profile-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .profile-logo {
    width: 110px;
    height: 110px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    padding-left: 132px;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .intro-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip > div:last-child {
    border-bottom: 0;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .photo-grid.three .placeholder-photo:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .topbar-inner {
    min-height: 66px;
  }

  .brand-mini span {
    font-size: .82rem;
  }

  .cover img {
    height: 210px;
  }

  .profile-row {
    margin-top: -44px;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .profile-logo {
    width: 84px;
    height: 84px;
  }

  .profile-text {
    padding-top: 48px;
  }

  .profile-text p:last-child {
    font-size: .98rem;
  }

  .profile-actions {
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .layout {
    padding-top: 30px;
  }

  .photo-large {
    height: 280px;
  }

  .photo-grid.three,
  .photo-grid.two {
    grid-template-columns: 1fr;
  }

  .photo-grid.three .placeholder-photo,
  .photo-grid.two .placeholder-photo {
    min-height: 210px;
  }

  .post-footer {
    gap: 12px;
    flex-wrap: wrap;
    font-size: .9rem;
  }
}


/* Version sans colonne gauche */
.layout {
  display: block;
  max-width: 920px;
  padding: 48px 0 72px;
}

.feed {
  width: 100%;
}

.post {
  border-radius: 30px;
}

.photo-large {
  height: clamp(300px, 45vw, 520px);
}

.sidebar {
  display: none !important;
}

@media (max-width: 980px) {
  .layout {
    display: block;
    max-width: 920px;
  }
}

@media (max-width: 680px) {
  .layout {
    padding-top: 30px;
  }
}


/* Version harmonisée : corps central plus large + blocs plus équilibrés */
:root {
  --max: 1320px;
}

.layout {
  max-width: 1120px !important;
  width: min(1120px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
  padding-top: 54px;
}

.feed {
  display: grid;
  gap: 28px;
  width: 100%;
}

.post {
  width: 100%;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
}

.post-header {
  padding: 24px 28px 0;
}

.post-body {
  padding: 24px 28px;
  min-height: 150px;
}

.post-body h2 {
  max-width: 900px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.post-body p {
  max-width: 920px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.photo-large,
.photo-grid {
  margin-left: 28px;
  margin-right: 28px;
  margin-bottom: 28px;
}

.photo-large {
  height: clamp(420px, 46vw, 620px);
  border-radius: 26px;
}

.photo-grid {
  gap: 12px;
}

.photo-grid .placeholder-photo {
  min-height: 330px;
  border-radius: 22px;
}

.photo-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.post-footer {
  margin-top: auto;
  padding: 17px 28px 22px;
  font-size: .96rem;
}

.dark-post {
  min-height: 270px;
  justify-content: center;
}

.dark-post .post-body {
  min-height: auto;
  padding-top: 34px;
  padding-bottom: 34px;
}

.dark-post .post-body h2 {
  font-size: clamp(2rem, 3.1vw, 2.8rem);
}

.intro-strip {
  width: min(1120px, calc(100% - 36px));
}

.page-hero .container {
  width: min(1120px, calc(100% - 36px));
}

/* Resserre légèrement le header de profil pour donner plus de place au contenu */
.profile-row {
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.profile-logo {
  width: 120px;
  height: 120px;
}

/* Les placeholders photos deviennent moins ternes et plus nobles */
.placeholder-photo {
  background:
    linear-gradient(135deg, rgba(16, 42, 27, .10), rgba(16, 42, 27, .36)),
    linear-gradient(135deg, #dac17b, #78945d 54%, #426a45);
}

.placeholder-photo span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 31, 20, .28);
  backdrop-filter: blur(4px);
}

@media (max-width: 980px) {
  .layout,
  .intro-strip,
  .page-hero .container {
    width: min(100% - 28px, 920px);
  }

  .photo-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .photo-grid.three .placeholder-photo:first-child {
    grid-column: 1 / -1;
  }

  .post-body {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .layout,
  .intro-strip,
  .page-hero .container {
    width: min(100% - 24px, 100%);
  }

  .post {
    border-radius: 24px;
  }

  .post-header {
    padding: 20px 20px 0;
  }

  .post-body {
    padding: 20px;
  }

  .post-body h2 {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .post-body p {
    font-size: 1rem;
  }

  .photo-large,
  .photo-grid {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
  }

  .photo-large {
    height: 330px;
  }

  .photo-grid.three,
  .photo-grid.two {
    grid-template-columns: 1fr;
  }

  .photo-grid .placeholder-photo {
    min-height: 250px;
  }

  .profile-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .profile-logo {
    width: 84px;
    height: 84px;
  }
}
