/* Pages éditoriales (conseils, presse) : texte et dessins en alternance.
   Classes préfixées « ed- » pour ne pas croiser celles de l'accueil (style.css). */

.ed { padding: 116px 0 56px; }
.ed-wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.ed-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.ed-hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; margin-top: 14px; }
.ed .ed-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin-top: 20px; max-width: 54ch; }
.ed .ed-meta { color: var(--ink-3); font-size: 14px; margin-top: 14px; }
.ed-hero .btn { margin-top: 26px; }

/* Une section = texte d'un côté, dessin de l'autre ; « ed-flip » inverse les côtés. */
.ed-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-top: 88px;
}
.ed-row.ed-flip > .ed-figure { order: -1; }
.ed-row.ed-wide { grid-template-columns: 1fr; }

.ed h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; }
.ed h3 { font-size: 19px; line-height: 1.3; }
.ed p, .ed li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.ed p { margin-top: 14px; max-width: 62ch; }
.ed ul, .ed ol { margin-top: 14px; padding-left: 22px; max-width: 62ch; }
.ed li { margin-top: 8px; }
.ed a:not(.btn) { color: var(--primary); font-weight: 600; }

.ed-figure { margin: 0; }
.ed-figure img {
  width: 100%; height: auto; border-radius: 24px;
  background: #F7F1E3; box-shadow: 0 0 0 1px var(--hair);
}
.ed-figure.ed-white img { background: #FFFFFF; }
.ed .ed-figure figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

.ed-note {
  background: var(--soft); border: 1px solid var(--hair); border-radius: 18px;
  padding: 18px 20px; margin-top: 22px; max-width: 62ch;
}
.ed-note p:first-child { margin-top: 0; }

/* Cartes illustrées (fonctions, gestes) */
.ed-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px;
}
.ed-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 22px; padding: 22px;
}
.ed-card img { width: 96px; height: 96px; border-radius: 18px; background: #FFFFFF; }
.ed-card h3 { margin-top: 14px; }
.ed .ed-card p { font-size: 15px; margin-top: 8px; color: var(--ink-2); }

/* Chiffres clés */
.ed-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.ed-fact { background: var(--card); border: 1px solid var(--hair); border-radius: 18px; padding: 16px 18px; }
.ed-fact .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ed-fact .v { font-size: 16px; font-weight: 600; margin-top: 6px; line-height: 1.45; }

/* Citation */
.ed-quote {
  background: #F7F1E3; border-radius: 28px; padding: 40px 44px; margin-top: 26px;
}
.ed .ed-quote p {
  font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.7;
  color: var(--ink); max-width: none;
}
.ed .ed-quote .who { font-size: 14px; color: var(--ink-3); margin-top: 18px; font-weight: 600; }

/* Bloc mis en avant (Défi, application) */
.ed-callout {
  background: var(--primary-soft); border-radius: 28px; padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-top: 88px;
}
.ed-callout h2 { margin-top: 8px; }
.ed-callout .btn { margin-top: 20px; }
.ed-callout img { width: 100%; height: auto; border-radius: 20px; }
.ed-callout[hidden] { display: none; }

.ed-sources { margin-top: 88px; border-top: 1px solid var(--hair); padding-top: 22px; }
.ed-sources h2 { font-size: 18px; }
.ed .ed-sources li { font-size: 14px; color: var(--ink-2); }

@media (max-width: 900px) {
  .ed { padding-top: 96px; }
  .ed-wrap { padding: 0 20px; }
  .ed-hero, .ed-row, .ed-callout { grid-template-columns: 1fr; gap: 28px; }
  .ed-row { margin-top: 56px; }
  .ed-row.ed-flip > .ed-figure { order: 0; }
  .ed-facts { grid-template-columns: 1fr 1fr; }
  .ed-quote { padding: 28px 24px; }
  .ed-callout { padding: 24px; margin-top: 56px; }
}
@media (max-width: 520px) {
  .ed-facts { grid-template-columns: 1fr; }
}

/* Bandeau de chiffres clés (fond sombre, gros chiffres, légendes courtes) */
.ed-stats {
  background: var(--ink); color: #F4F6EF; border-radius: 32px;
  padding: 56px 56px 48px; margin-top: 88px; position: relative; overflow: hidden;
}
.ed-stats::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; border: 56px solid rgba(190, 245, 200, .06); pointer-events: none;
}
.ed .ed-stats .ed-statement {
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2; letter-spacing: -0.02em; color: #F4F6EF; max-width: 30ch; margin: 0;
}
.ed-stats .ed-statement span { color: rgba(244, 246, 239, .45); }
.ed-stats-row {
  display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 0; margin-top: 44px; align-items: end;
}
.ed-stats-card { position: relative; margin-right: 28px; }
.ed-stats-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 20px; }
.ed-stats-card .pill {
  position: absolute; left: 12px; bottom: 12px; background: rgba(19, 36, 27, .78); color: #F4F6EF;
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
}
.ed-stat { border-left: 1px solid rgba(244, 246, 239, .16); padding: 0 22px; }
.ed-stat .n {
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1; letter-spacing: -0.03em; color: #F4F6EF;
}
.ed-stat .n small { font-size: .45em; color: var(--primary-hi); margin-left: 4px; letter-spacing: 0; }
.ed .ed-stat p { font-size: 14px; line-height: 1.45; color: rgba(244, 246, 239, .62); margin-top: 12px; }
.ed .ed-stats .ed-stats-meta {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(244, 246, 239, .12);
  font-size: 14px; line-height: 1.7; color: rgba(244, 246, 239, .62); max-width: none;
}
.ed-stats-meta strong { color: #F4F6EF; font-weight: 600; }

@media (max-width: 900px) {
  .ed-stats { padding: 32px 24px; margin-top: 56px; }
  .ed-stats-row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .ed-stats-card { grid-column: 1 / -1; margin-right: 0; }
  .ed-stat:nth-of-type(odd) { border-left: none; padding-left: 0; }
}
