/* ============================================================
   STYLES ÉDITORIAL — version alternative de styles.css
   Direction : blanc épuré + vert émeraude profond
   Même classes HTML, ambiance complètement différente.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,700;1,9..144,300;1,9..144,400&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg:             #F8F8F5;
  --bg-soft:        #F0F0EB;
  --surface:        #FFFFFF;
  --surface-strong: #FFFFFF;
  --text:           #111110;
  --muted:          #6B6B65;
  --line:           rgba(17, 17, 16, 0.10);

  /* L'unique accent — vert émeraude profond */
  --accent:         #0A6647;
  --accent-dark:    #064D35;
  --accent-light:   rgba(10, 102, 71, 0.08);
  --accent-mid:     rgba(10, 102, 71, 0.18);

  --forest:         #0A6647;
  --shadow:         0 2px 16px rgba(17, 17, 16, 0.07), 0 1px 3px rgba(17, 17, 16, 0.05);
  --shadow-strong:  0 8px 32px rgba(17, 17, 16, 0.10), 0 2px 8px rgba(17, 17, 16, 0.06);
  --radius-xl:      20px;
  --radius-lg:      14px;
  --radius-md:      10px;
  --container:      1180px;
}

/* ─── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before { display: none; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Shell ─────────────────────────────────────────────────── */
.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 20px auto 40px;
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 12px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent);
}

.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em; }
.brand-copy small { color: var(--muted); font-size: 0.8rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--accent);
}

/* ─── Boutons ───────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  border: none;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.button-dark {
  color: #fff;
  background: var(--text);
}

.button-dark:hover {
  background: #222;
}

.button-accent {
  color: #fff;
  background: var(--accent);
}

.button-accent:hover {
  background: var(--accent-dark);
}

.button-light {
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(17, 17, 16, 0.1);
}

/* ─── Animations ─────────────────────────────────────────────── */
.hero,
.newsletter-section,
.comments-section,
.section-soft,
.callout-section {
  animation: reveal 0.6s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 56px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
}

/* Trait vertical vert à gauche — l'élément fort */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}

.hero::after {
  display: none;
}

.eyebrow,
.panel-label,
.article-meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.article-main h1 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(3.4rem, 6vw, 6rem);
  color: var(--text);
}

/* Italique sur le dernier mot — effet éditorial */
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero-lead,
.section-heading p,
.callout-copy p,
.newsletter-copy p,
.article-intro,
.article-body p,
.conversation-item p,
.feature-card p,
.member-card p,
.article-card p,
.panel-card p,
.callout-card p,
.side-card li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
  font-weight: 400;
}

.hero-actions,
.hero-points,
.cards-grid,
.member-grid,
.articles-grid {
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--muted);
}

.hero-points li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  flex: none;
}

/* ─── Surfaces / cards ───────────────────────────────────────── */
.hero-panel,
.callout-card,
.side-card,
.newsletter-form,
.conversation-box,
.feature-card,
.member-card,
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
}

.panel-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  margin-top: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.panel-card:hover {
  border-color: var(--accent);
}

.panel-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  border-radius: 12px;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-light);
}

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 80px 0 0; }

.section-soft,
.newsletter-section,
.comments-section {
  padding: 40px;
  border-radius: var(--radius-xl);
}

.section-soft {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-heading { max-width: 760px; }

.section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.article-main h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.cards-grid,
.member-grid,
.articles-grid {
  display: grid;
  gap: 16px;
}

.cards-grid,
.member-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.member-card,
.article-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover,
.member-card:hover,
.article-card:hover {
  box-shadow: var(--shadow-strong);
  border-color: rgba(10, 102, 71, 0.2);
  transform: translateY(-2px);
}

/* Trait vert en haut de chaque feature card */
.feature-card {
  border-top: 3px solid var(--accent);
}

.feature-card h3,
.member-card h3,
.article-card h3,
.callout-card strong,
.panel-card strong {
  margin: 0 0 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ─── Callout ────────────────────────────────────────────────── */
.callout-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: 24px;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #fff;
}

.callout-copy p,
.callout-card p { color: rgba(255, 255, 255, 0.82); }

.callout-section .eyebrow { color: rgba(255, 255, 255, 0.6); }
.callout-section h2 { color: #fff; }

.callout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* ─── Blog toolbar ───────────────────────────────────────────── */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 24px;
}

.search-field,
.newsletter-form label,
.comment-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.search-field { min-width: min(100%, 420px); }

input, textarea {
  width: 100%;
  padding: 13px 16px;
  color: var(--text);
  font: inherit;
  background: var(--surface);
  border: 1px solid rgba(17, 17, 16, 0.14);
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ─── Tags ───────────────────────────────────────────────────── */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-button,
.lock-chip,
.article-tags span {
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.tag-button {
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag-button:hover { border-color: var(--accent); color: var(--accent); }

.tag-button.active {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}

/* ─── Articles ───────────────────────────────────────────────── */
.articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.article-tags span,
.lock-chip {
  color: var(--accent);
  background: var(--accent-light);
}

.article-card a,
.link-arrow {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing 0.2s ease;
}

.article-card a:hover,
.link-arrow:hover {
  letter-spacing: 0.07em;
}

/* ─── Divers ─────────────────────────────────────────────────── */
.content-note { margin-top: 14px; color: var(--muted); font-weight: 600; }
.page-intro   { margin-top: 4px; }

.template-note {
  padding: 20px 24px;
  margin-top: 18px;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-lg);
}

.template-note strong { display: block; margin-bottom: 6px; font-family: 'Fraunces', serif; }
.template-note p { margin: 0; line-height: 1.7; }
.empty-state { margin-top: 18px; font-weight: 600; color: var(--muted); }

/* ─── Newsletter ─────────────────────────────────────────────── */
.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.newsletter-form,
.comment-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.form-message {
  min-height: 1.4em;
  margin: 0;
  font-weight: 600;
  color: var(--accent);
}

/* ─── Comments ───────────────────────────────────────────────── */
.comments-preview { padding-bottom: 36px; }

.conversation-box {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.conversation-item {
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.conversation-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--accent);
}

.conversation-item.muted {
  border: 1px dashed rgba(17, 17, 16, 0.16);
}

/* ─── Article ────────────────────────────────────────────────── */
.article-shell { padding-bottom: 40px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
  padding-top: 28px;
}

.article-main,
.side-card {
  padding: 36px;
  border-radius: var(--radius-xl);
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  border-top: 4px solid var(--accent);
}

.article-top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.86rem;
  color: var(--accent-dark);
  background: var(--accent-light);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.article-intro {
  max-width: 58ch;
  font-size: 1.15rem;
  margin-top: 18px;
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  color: var(--muted);
}

.article-tags-large { margin-top: 18px; }
.article-body { max-width: 68ch; margin-top: 32px; }

.side-card { border-left: 3px solid var(--accent); }
.side-card ul { margin: 0; padding-left: 18px; }
.side-card-links { display: grid; gap: 12px; margin-top: 18px; }

.member-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.side-card-links .member-link { margin-top: 0; }
.article-conversation { margin-bottom: 18px; }
.comment-form textarea { resize: vertical; }
.hidden { display: none !important; }

/* ─── Comment form ───────────────────────────────────────────── */
.comment-form input,
.comment-form textarea {
  background: var(--surface);
  border: 1px solid rgba(17, 17, 16, 0.14);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
  margin-top: 0.4rem;
  transition: border-color 0.18s ease;
  display: block;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.comment-form label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  font-weight: 600;
}

.no-comments { color: var(--muted); font-style: italic; font-size: 0.9rem; }

/* ─── Menu burger ────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-header,
  .hero,
  .callout-section,
  .newsletter-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .site-header { border-radius: 32px; }
  .site-nav { flex-wrap: wrap; }

  .cards-grid,
  .member-grid,
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-strong);
    border-radius: 0 0 20px 20px;
    z-index: 100;
  }

  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .site-header .member-link { display: none; }
  .site-header { flex-wrap: wrap; }
  .site-header .button-dark { order: 3; width: 100%; text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    margin-top: 10px;
  }

  .site-header,
  .hero,
  .section-soft,
  .callout-section,
  .newsletter-section,
  .comments-section,
  .article-main,
  .side-card {
    padding: 24px;
  }

  .site-header { align-items: flex-start; border-radius: 26px; }

  .site-nav,
  .section-heading-inline,
  .callout-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid,
  .member-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }
}

body::before {
  content: none !important;
  display: none !important;
  background-image: none !important;
}
