:root {
  --ink: #17332d;
  --ink-soft: #52645f;
  --cream: #f7f1e7;
  --paper: #fffdf9;
  --green: #2f6556;
  --green-dark: #214a3f;
  --mint: #d9e9df;
  --sand: #ead9b7;
  --terra: #d46f4d;
  --terra-dark: #a94e33;
  --white: #ffffff;
  --line: rgba(23, 51, 45, .12);
  --shadow: 0 22px 60px rgba(34, 58, 50, .11);
  --shadow-soft: 0 12px 34px rgba(34, 58, 50, .08);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* HEADER */
.site-header {
  background: rgba(247, 241, 231, .94);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: clamp(190px, 25vw, 285px);
  height: auto;
  object-fit: contain;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
}

/* NAVIGATION */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 20px;
  background: rgba(255,253,249,.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav ul {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
nav a,
nav li.has-submenu > .submenu-toggle {
  display: block;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}
nav a:hover,
nav li.has-submenu > .submenu-toggle:hover { background: var(--mint); }
nav li.active > a { background: var(--green); color: #fff; }
nav li.has-submenu { position: relative; }
nav li.has-submenu > .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 220px;
  margin: 0;
  padding: 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
nav li.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}
@media (min-width: 701px) {
  nav li.has-submenu:hover > .submenu { display: block; }
}

/* HOME HERO */
.home-hero {
  width: min(1220px, calc(100% - 48px));
  margin: 44px auto 0;
  min-height: 590px;
  padding: clamp(38px, 7vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 50px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.home-hero::before { width: 460px; height: 460px; right: -190px; top: -210px; }
.home-hero::after { width: 300px; height: 300px; left: 42%; bottom: -240px; }
.home-hero__content { position: relative; z-index: 2; }
.home-hero__eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.home-hero__eyebrow { color: #dceee5; }
.home-hero h1 {
  margin: 0;
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 7vw, 6.9rem);
  line-height: .91;
  letter-spacing: -.055em;
  font-weight: 500;
}
.home-hero h1 em { color: #f0c89e; font-weight: 500; }
.home-hero__text {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}
.home-hero__text strong { color: #fff; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  min-height: 48px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--green-dark); }
.btn-secondary { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.09); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }

.hero-visual {
  min-height: 370px;
  position: relative;
  z-index: 2;
}
.hero-house {
  width: 230px;
  height: 210px;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-45%);
}
.hero-house__body {
  position: absolute;
  left: 25px; right: 25px; bottom: 0;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 20px 20px 34px 34px;
  background: #f3d3aa;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 6rem;
  font-weight: 800;
  box-shadow: 0 30px 60px rgba(17,44,37,.26);
}
.hero-house__roof {
  position: absolute;
  z-index: 2;
  width: 150px; height: 150px;
  left: 40px; top: -1px;
  background: #e98661;
  transform: rotate(45deg);
  border-radius: 22px 8px 22px 8px;
}
.hero-word {
  position: absolute;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: .86rem;
}
.hero-word--1 { left: 0; top: 40px; }
.hero-word--2 { right: -5px; top: 135px; }
.hero-word--3 { left: 15px; bottom: 25px; }

/* HOME CONTENT */
.home-manifesto {
  width: min(1040px, calc(100% - 48px));
  margin: 105px auto 70px;
  text-align: center;
}
.section-kicker { color: var(--terra-dark); }
.home-manifesto h2,
.home-cta h2,
.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.04em;
}
.home-manifesto h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: .98;
}
.home-manifesto > p:last-child {
  max-width: 780px;
  margin: 25px auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.home-actions {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.action-card {
  min-height: 390px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease;
}
.action-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.action-card--green { background: var(--mint); }
.action-card--sand { background: var(--sand); }
.action-card--terracotta { background: var(--terra); color: #fff; }
.action-card__number {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 850;
  opacity: .65;
}
.action-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(2rem,3vw,3rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.action-card p { margin: 0 0 26px; opacity: .82; }
.action-link { font-weight: 850; }

.home-cta {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto 90px;
  padding: clamp(32px,5vw,60px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid var(--line);
}
.home-cta h2 { margin: 0; font-size: clamp(2.25rem,4vw,4rem); line-height: 1; }
.home-cta p:not(.section-kicker) { max-width: 730px; margin: 18px 0 0; color: var(--ink-soft); }

/* MAIN + NEWS */
main,
main.cols-1,
.cols-1 {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto 80px;
  padding: 0;
  display: block;
  flex: 1;
}
.home-news {
  padding-top: 4px;
}
.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2 { margin: 0; font-size: clamp(2.5rem,4vw,4rem); line-height: 1; }
.text-link { font-weight: 800; text-decoration: none; }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.news-card {
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.news-card--featured { background: var(--ink); color: #fff; }
.news-card__meta {
  margin-bottom: auto;
  color: var(--terra-dark);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.news-card--featured .news-card__meta { color: #f0c89e; }
.news-card h3 {
  margin: 26px 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem,2.3vw,2.3rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.news-card p { margin: 0 0 22px; color: var(--ink-soft); }
.news-card--featured p { color: rgba(255,255,255,.72); }
.news-card a { margin-top: auto; font-weight: 800; text-decoration: none; }

/* GENERIC LEGACY CONTENT */
article:not(.news-card) {
  border-radius: var(--radius-lg);
}
article h1, article h2 { font-family: Georgia, serif; }
.un { width: min(1220px, calc(100% - 48px)); margin: 40px auto; }
.centre { text-align: center; }
.cols-1 img { max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }

/* FOOTER */
footer {
  margin-top: auto;
  padding: 42px 22px;
  background: #132a25;
  color: rgba(255,255,255,.78);
  text-align: center;
  font-size: .9rem;
}
footer p { margin: 7px 0; }
footer a { color: #fff; font-weight: 700; text-decoration: none; }

@media (max-width: 1000px) {
  .home-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 340px; }
  .home-actions { grid-template-columns: 1fr 1fr; }
  .action-card:last-child { grid-column: 1 / -1; min-height: 300px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--featured { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .header-inner { padding: 16px 14px; }
  .brand-logo { width: 185px; }
  .menu-toggle { display: grid; place-items: center; }
  nav { position: static; padding: 0 14px 14px; background: var(--cream); }
  nav > ul { display: none; padding: 10px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-soft); }
  nav.open > ul { display: flex; flex-direction: column; align-items: stretch; }
  nav ul li { width: 100%; }
  nav a, nav li.has-submenu > .submenu-toggle { width: 100%; text-align: left; padding: 12px 14px; }
  nav li.has-submenu > .submenu { display: block; position: static; min-width: 0; margin: 4px 0 8px; padding: 6px; box-shadow: none; background: #f5efe5; }

  .home-hero,
  .home-manifesto,
  .home-actions,
  .home-cta,
  main,
  main.cols-1,
  .cols-1 { width: calc(100% - 28px); }
  .home-hero { margin-top: 18px; padding: 34px 24px; border-radius: 28px; gap: 20px; }
  .home-hero h1 { font-size: clamp(3rem,16vw,5rem); }
  .home-hero__actions { flex-direction: column; }
  .home-hero__actions .btn { width: 100%; }
  .hero-visual { min-height: 290px; transform: scale(.85); margin: -20px -20px -35px; }
  .home-manifesto { margin-top: 72px; margin-bottom: 48px; }
  .home-actions, .news-grid { grid-template-columns: 1fr; }
  .action-card, .action-card:last-child { grid-column: auto; min-height: 320px; }
  .home-cta { margin-bottom: 65px; flex-direction: column; align-items: stretch; }
  .home-cta .btn { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .news-card--featured { grid-column: auto; }
}

/* Accueil V2 : actions réelles de l'association */
.home-actions--six { grid-template-columns: repeat(3, minmax(0,1fr)); }
.home-actions--six .action-card { min-height: 340px; }
.home-actions--six .action-card h2 { font-size: clamp(1.8rem,2.5vw,2.65rem); }
@media (max-width:1000px) {
  .home-actions--six { grid-template-columns: 1fr 1fr; }
  .home-actions--six .action-card:last-child { grid-column:auto; min-height:340px; }
}
@media (max-width:700px) {
  .home-actions--six { grid-template-columns:1fr; }
  .home-actions--six .action-card, .home-actions--six .action-card:last-child { min-height:300px; }
}

/* ===== Accueil V3 : direction visuelle validée ===== */
.topbar{background:#245b49;color:#fff;font-size:.82rem;font-weight:700}
.topbar__inner{max-width:1220px;margin:auto;padding:7px 24px;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.site-header{background:var(--cream);border-bottom:0}
.header-inner{justify-content:center;padding:10px 24px 4px;min-height:122px;position:relative}
.brand{display:flex;justify-content:center;width:100%}
.brand-logo{width:clamp(250px,24vw,350px);max-height:112px;object-fit:contain}
.menu-toggle{position:absolute;right:18px;top:50%;transform:translateY(-50%)}
nav{position:sticky;top:0;background:rgba(247,241,231,.96);padding:7px 20px 11px}
nav ul{gap:14px}
nav a,nav li.has-submenu>.submenu-toggle{padding:8px 17px;font-size:.88rem}

.home-hero{width:100%;max-width:none;margin:0;min-height:470px;padding:0;display:grid;grid-template-columns:1.05fr .95fr;gap:0;border-radius:0;background:#245b49;box-shadow:none}
.home-hero::before,.home-hero::after{display:none}
.home-hero__content{padding:clamp(42px,6vw,78px) max(32px,calc((100vw - 1220px)/2));padding-right:clamp(40px,6vw,90px);align-self:center}
.home-hero__eyebrow{margin-bottom:14px;letter-spacing:.18em}
.home-hero h1{font-size:clamp(3.6rem,6vw,6.1rem);line-height:.92}
.home-hero__text{font-size:clamp(1.05rem,1.5vw,1.28rem);max-width:690px}
.hero-photo{min-height:470px;overflow:hidden;position:relative}
.hero-photo:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(36,91,73,.24),transparent 25%);pointer-events:none}
.hero-photo img{width:100%;height:100%;min-height:470px;object-fit:cover;object-position:center;transform:scale(1.02)}

.home-manifesto{margin:72px auto 50px}
.home-manifesto h2{font-size:clamp(2.35rem,4.2vw,4.2rem)}
.home-actions--six{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:54px}
.home-actions--six .action-card{min-height:300px;padding:22px 18px;border:1px solid rgba(23,51,45,.11);background:rgba(255,253,249,.58);color:var(--ink);box-shadow:none}
.home-actions--six .action-card:hover{background:var(--paper);transform:translateY(-5px)}
.home-actions--six .action-card__number{width:42px;height:42px;margin-bottom:24px;color:var(--green);background:#eef4ef;border-color:#b9cec5}
.home-actions--six .action-card h2{font-family:Georgia,serif;font-size:1.22rem;line-height:1.12;color:var(--green-dark)}
.home-actions--six .action-card p{font-size:.9rem;line-height:1.55;color:#263b35}
.home-actions--six .action-link{font-size:.86rem;color:var(--green-dark)}
.home-cta{margin-top:20px}

@media(max-width:1100px){.home-actions--six{grid-template-columns:repeat(3,1fr)}.home-hero{grid-template-columns:1fr 1fr}.topbar__inner{justify-content:center}}
@media(max-width:800px){.home-hero{grid-template-columns:1fr}.hero-photo{min-height:340px}.hero-photo img{min-height:340px}.home-hero__content{padding:46px 28px}.home-actions--six{grid-template-columns:1fr 1fr}.topbar__inner span:nth-child(1){display:none}}
@media(max-width:700px){.header-inner{min-height:95px;padding:8px 14px}.brand-logo{width:230px;max-height:88px}nav{padding:0 14px 14px}.home-hero{width:100%;margin:0;border-radius:0}.home-actions--six{grid-template-columns:1fr}.home-actions--six .action-card{min-height:240px}.topbar__inner{font-size:.74rem;gap:7px 14px;padding:6px 12px}.topbar__inner span:nth-child(3),.topbar__inner span:nth-child(4){display:none}}

/* ===== Correction contraste : carte Cours de français =====
   La première carte d'actualité est sur fond sombre (.news-card--featured).
   On force tous ses textes en clair pour éviter l'héritage de couleurs sombres.
*/
.news-card--featured,
.news-card--featured h1,
.news-card--featured h2,
.news-card--featured h3,
.news-card--featured h4,
.news-card--featured p,
.news-card--featured a {
  color: #ffffff;
}

.news-card--featured .news-card__meta {
  color: #f0c89e;
}

.news-card--featured p {
  color: rgba(255, 255, 255, .78);
}

.news-card--featured a {
  color: #ffffff;
}

