/*
Theme Name: Stop Éoliennes Nesle-et-Massoult
Theme URI: https://stop-eoliennes-nesle-et-massoult.fr
Author: Association Stop Éoliennes
Author URI: https://stop-eoliennes-nesle-et-massoult.fr
Description: Theme sur mesure pour l'association citoyenne de Nesle-et-Massoult contre les éoliennes industrielles.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stop-eoliennes
*/

/* ——— FONTS ——— */
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/PlayfairDisplay-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/SourceSerif4-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/SourceSerif4-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ——— RESET ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #2d5a27;
  --green-mid: #4a7c42;
  --green-lt:  #c8dfc4;
  --cream:     #f5f0e8;
  --dark:      #1a1a14;
  --rust:      #b84c1e;
  --wheat:     #e8d5a3;
  --white:     #ffffff;
  --paper:     #faf6ed;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ——— SCROLL ANIMATIONS ——— */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— NAV (mobile-first) ——— */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: var(--green);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 3px solid var(--wheat);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px; width: 40px; border-radius: 6px;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 900;
  color: var(--wheat); letter-spacing: 0.03em;
}
.nav-logo-text span { color: #a8d5a0; font-style: italic; }
.nav-links { display: none; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--green-lt); font-size: 0.86rem;
  text-decoration: none; letter-spacing: 0.07em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--wheat); }
.nav-cta {
  background: var(--rust); color: white;
  padding: 9px 22px; border-radius: 2px;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  cursor: pointer; border: none; transition: background 0.2s;
  text-decoration: none;
}
.nav-cta:hover { background: #d05a28; }

/* ——— HERO (mobile-first) ——— */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; padding: 100px 24px 60px;
  position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(transparent, var(--cream));
}
.hero-tag {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--wheat); font-style: italic; margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; max-width: 740px;
}
.hero h1 em { color: var(--wheat); font-style: italic; }
.hero p {
  margin-top: 24px; max-width: 540px;
  font-size: 1.1rem; line-height: 1.75;
  color: rgba(255,255,255,0.88); font-weight: 300;
}
.hero-btns { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--rust); color: #fff;
  padding: 14px 32px; border: none; border-radius: 2px;
  font-family: 'Source Serif 4', serif; font-size: 1rem;
  cursor: pointer; transition: background 0.2s; text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #d05a28; }
.btn-outline {
  background: transparent; color: #fff;
  padding: 14px 32px; border: 2px solid rgba(255,255,255,0.55);
  border-radius: 2px; font-family: 'Source Serif 4', serif; font-size: 1rem;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: fadeUp 0.75s ease both; }
.hero p  { animation: fadeUp 0.75s ease both 0.15s; }
.hero-btns { animation: fadeUp 0.75s ease both 0.28s; }

/* ——— STATS (mobile-first: 2 cols) ——— */
.stats {
  background: var(--green);
  display: grid; grid-template-columns: repeat(2,1fr);
  text-align: center; padding: 34px 0;
}
.stat-item { border-right: 1px solid rgba(255,255,255,0.15); padding: 0 16px; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900; color: var(--wheat);
}
.stat-label { font-size: 0.76rem; color: var(--green-lt); margin-top: 4px;
  letter-spacing: 0.06em; text-transform: uppercase; }

/* ——— SECTIONS (mobile-first) ——— */
section { padding: 56px 24px; }
.section-tag {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rust); font-weight: 700; margin-bottom: 14px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 900;
  line-height: 1.2; color: var(--green);
}
h2 em { color: var(--rust); font-style: italic; }

/* ——— OBJECTIFS ——— */
.objectifs { background: var(--cream); }
.objectifs-intro {
  max-width: 700px; margin-top: 20px;
  font-size: 1.08rem; line-height: 1.8; color: #3a3020; font-weight: 300;
}
.obj-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 28px; margin-top: 52px;
}
.obj-card {
  background: white; border-top: 4px solid var(--green);
  padding: 30px 32px;
  box-shadow: 0 3px 20px rgba(0,0,0,0.06);
  transition: transform 0.22s;
}
.obj-card:hover { transform: translateY(-5px); }
.obj-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900;
  color: var(--green-lt); line-height: 1; margin-bottom: 10px;
}
.obj-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--green); margin-bottom: 10px;
}
.obj-card p { font-size: 0.95rem; line-height: 1.72; color: #444; font-weight: 300; }

/* ——— FULLWIDTH IMAGE BREAK (mobile-first) ——— */
.image-break {
  width: 100vw; height: 250px;
  margin-left: calc(-50vw + 50%);
  background-size: cover; background-position: center;
  background-attachment: scroll;
  position: relative;
}
.image-break::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,90,39,0.3) 0%, rgba(26,26,20,0.4) 100%);
}
.image-break-text {
  position: absolute; bottom: 24px; left: 24px; z-index: 1;
  color: white; font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; font-style: italic;
  max-width: 600px; text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ——— LES PROJETS ——— */
.projets { background: #ede7d4; }
.projets-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 56px; margin-top: 48px; align-items: start;
}
.projets-text p {
  font-size: 1.05rem; line-height: 1.82; color: #3a3020;
  font-weight: 300; margin-bottom: 16px;
}
.projets-text strong { color: var(--green); font-weight: 600; }
.projets-text .alert-quote {
  border-left: 4px solid var(--rust);
  padding: 14px 20px;
  background: white; margin: 24px 0;
  font-style: italic; font-size: 1rem;
  color: var(--rust); line-height: 1.7;
}
.projet-table { background: white; border: 2px solid var(--green-lt); }
.projet-table-header {
  background: var(--green); color: var(--wheat);
  padding: 16px 24px;
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
}
.projet-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 24px; border-bottom: 1px solid #eee; font-size: 0.93rem;
}
.projet-row:last-child { border-bottom: none; }
.proj-label { color: #666; font-style: italic; }
.proj-val { font-weight: 600; color: var(--rust); text-align: right; max-width: 55%; }
.proj-val.ok { color: var(--green); }

.projets-image {
  width: 100%; border-radius: 4px; margin-top: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ——— INFOGRAPHIE ——— */
.infographie-wrap {
  margin-top: 48px;
}
.infographie-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--green);
  text-align: center; margin-bottom: 24px;
}
.infographie-wrap img {
  width: 100%; max-width: 800px;
  margin: 0 auto; display: block;
  border: 1px solid #ddd; border-radius: 4px;
}
.infographie-wrap p {
  text-align: center; font-size: 0.85rem;
  color: #888; margin-top: 12px; font-style: italic;
}

/* ——— PÉTITION EN LIGNE ——— */
.petition-section { background: var(--cream); }
.petition-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 56px; margin-top: 48px; align-items: start;
}
.petition-text p {
  font-size: 1.05rem; line-height: 1.82; color: #3a3020;
  font-weight: 300; margin-bottom: 16px;
}
.petition-demands {
  background: white; border-top: 4px solid var(--rust);
  padding: 28px 32px; margin-top: 24px;
}
.petition-demands h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--green); margin-bottom: 16px;
}
.demand-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem; line-height: 1.65; color: #333;
  font-weight: 300; margin-bottom: 12px;
}
.demand-item:last-child { margin-bottom: 0; }
.demand-bullet {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--rust); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem; font-weight: 700; margin-top: 1px;
}

/* ——— FORMULAIRE PÉTITION ——— */
.petition-form-wrap {
  background: white; padding: 36px;
  border: 2px solid var(--green-lt);
  position: static;
}
.petition-form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; color: var(--green); margin-bottom: 6px;
}
.petition-form-wrap .form-subtitle {
  font-size: 0.86rem; color: #888; font-style: italic;
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.sig-counter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.sig-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 900; color: var(--rust);
}
.sig-text { font-size: 0.82rem; color: #888; font-style: italic; }
.sig-bar-wrap { background: #eee; height: 6px; border-radius: 2px; margin-bottom: 24px; }
.sig-bar { height: 100%; background: var(--rust); border-radius: 2px; width: 42%; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: #888; margin-bottom: 5px;
}
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid #ddd; background: #fafafa;
  font-family: 'Source Serif 4', serif; font-size: 0.95rem;
  color: var(--dark); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--green); }
.form-check-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.84rem; color: #555; font-style: italic;
  margin: 16px 0 20px; line-height: 1.55;
}
.form-check-row input { margin-top: 3px; min-width: 16px; }
.btn-sign {
  width: 100%; background: var(--rust); color: white;
  padding: 15px; border: none; cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  transition: background 0.2s; border-radius: 2px;
}
.btn-sign:hover { background: #d05a28; }
.dl-link {
  display: block; text-align: center; margin-top: 14px;
  font-size: 0.84rem; color: var(--green); font-style: italic;
  text-decoration: underline; cursor: pointer;
}

/* ——— ADHÉSION ——— */
.adhesion-section { background: var(--green); }
.adhesion-section h2 { color: var(--wheat); }
.adhesion-section h2 em { color: #a8d5a0; }
.adhesion-intro {
  max-width: 620px; font-size: 1.06rem; line-height: 1.78;
  color: rgba(255,255,255,0.75); font-weight: 300; margin-top: 16px;
}
.adhesion-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; margin-top: 48px;
}
.adhesion-why { display: flex; flex-direction: column; gap: 18px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(255,255,255,0.1); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.why-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--wheat); margin-bottom: 4px;
}
.why-item p { font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 300; line-height: 1.65; }

.adhesion-form {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 36px;
}
.adhesion-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--wheat); margin-bottom: 22px;
}
.adhesion-form .form-group label { color: rgba(255,255,255,0.5); }
.adhesion-form .form-group input,
.adhesion-form .form-group select {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: white;
}
.adhesion-form .form-group input::placeholder { color: rgba(255,255,255,0.3); }
.adhesion-form .form-group input:focus,
.adhesion-form .form-group select:focus { border-color: var(--wheat); }
.adhesion-form select option { background: var(--green); color: white; }
.cotis-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 20px;
}
.cotis-btn {
  padding: 10px 6px; text-align: center;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: all 0.2s;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: rgba(255,255,255,0.6);
  background: transparent; border-radius: 2px;
}
.cotis-btn.active, .cotis-btn:hover {
  border-color: var(--wheat); color: var(--wheat);
  background: rgba(255,255,255,0.08);
}
.cotis-btn small { display: block; font-size: 0.68rem; font-family: 'Source Serif 4', serif; margin-top: 2px; opacity: 0.7; }
.form-check-row.light { color: rgba(255,255,255,0.5); }
.btn-join {
  width: 100%; background: var(--wheat); color: var(--green);
  padding: 15px; border: none; cursor: pointer;
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-weight: 700; transition: background 0.2s; border-radius: 2px;
}
.btn-join:hover { background: #f0e0b0; }

/* ——— SOCIAL SHARING ——— */
.share-bar {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.share-bar::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.share-bar::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.share-bar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: white; margin-bottom: 8px;
  position: relative; z-index: 1;
}
.share-bar .share-subtitle {
  color: rgba(255,255,255,0.8); font-size: 1rem;
  margin-bottom: 28px; font-weight: 300;
  position: relative; z-index: 1;
}
.share-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px; border: 2px solid rgba(255,255,255,0.3);
  font-family: 'Source Serif 4', serif; font-size: 0.95rem;
  font-weight: 400; cursor: pointer; text-decoration: none;
  transition: all 0.3s; color: white; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.share-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.share-btn.facebook:hover { background: rgba(24,119,242,0.5); }
.share-btn.whatsapp:hover { background: rgba(37,211,102,0.5); }
.share-btn.twitter:hover { background: rgba(29,161,242,0.5); }
.share-btn.email:hover { background: rgba(255,255,255,0.3); }

/* ——— CONTACT ——— */
.contact-bar {
  background: #ede7d4;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 36px 24px; gap: 40px;
}
.contact-bar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; color: var(--green);
}
.contact-bar p { color: #666; font-size: 0.95rem; margin-top: 6px; font-weight: 300; }
.contact-items { display: flex; gap: 36px; flex-wrap: wrap; }
.c-item { text-align: center; }
.c-icon { font-size: 1.6rem; margin-bottom: 5px; }
.c-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #aaa; }
.c-val { font-size: 0.92rem; color: var(--dark); font-weight: 600; margin-top: 3px; }

/* ——— FOOTER ——— */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.45);
  text-align: center; padding: 36px;
  font-size: 0.82rem; line-height: 1.75;
}
.site-footer strong { color: rgba(255,255,255,0.7); }
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.site-footer a:hover { color: var(--wheat); }

/* ——— MENTIONS LÉGALES (Modal) ——— */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65); align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper); max-width: 680px; width: 90%;
  max-height: 85vh; overflow-y: auto;
  padding: 48px; position: relative;
  border-top: 5px solid var(--rust);
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 1.6rem;
  cursor: pointer; color: #888;
}
.modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--green); margin-bottom: 20px;
}
.modal p, .modal li {
  font-size: 0.92rem; line-height: 1.75; color: #444; margin-bottom: 10px;
}
.modal h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--green); margin: 20px 0 8px;
}
.modal ul { padding-left: 20px; margin-bottom: 16px; }

/* ——— ACTUALITÉS ——— */
.actualites { background: var(--cream); }
.actualites-intro {
  max-width: 620px; margin-top: 16px;
  font-size: 1.06rem; line-height: 1.78;
  color: #3a3020; font-weight: 300;
}
.news-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; margin-top: 44px;
}
.news-card {
  background: white;
  border-left: 4px solid var(--green);
  padding: 28px 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-color: var(--rust);
}
.news-card-body { flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--rust);
  font-weight: 700;
}
.news-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--green); margin: 10px 0 12px;
  line-height: 1.35;
}
.news-excerpt {
  font-size: 0.92rem; line-height: 1.72;
  color: #555; font-weight: 300;
}
.news-link {
  display: inline-block; margin-top: auto;
  padding-top: 16px;
  font-size: 0.84rem; font-weight: 600;
  color: var(--rust); text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.news-link:hover { color: #d05a28; }
.news-empty {
  margin-top: 36px; padding: 40px;
  background: white; text-align: center;
  border-left: 4px solid var(--green);
  color: #888; font-style: italic;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* ——— SINGLE POST ——— */
.single-post {
  max-width: 780px; margin: 0 auto;
  padding: 100px 24px 60px;
}
.single-post-header { margin-bottom: 32px; }
.single-back {
  display: inline-block; margin-bottom: 20px;
  font-size: 0.85rem; color: var(--rust);
  text-decoration: none; font-weight: 600;
  transition: color 0.2s;
}
.single-back:hover { color: #d05a28; }
.single-post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900; color: var(--green);
  line-height: 1.25; margin-top: 10px;
}
.single-post-hero {
  width: 100%; height: 300px;
  background-size: cover; background-position: center;
  margin-bottom: 36px;
}
.single-post-content {
  font-size: 1.05rem; line-height: 1.85;
  color: #3a3020; font-weight: 300;
}
.single-post-content p { margin-bottom: 18px; }
.single-post-content h2 {
  font-size: 1.4rem; margin: 32px 0 14px;
}
.single-post-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--green); margin: 28px 0 12px;
}
.single-post-content img {
  max-width: 100%; height: auto;
  margin: 20px 0; border-radius: 2px;
}
.single-post-content blockquote {
  border-left: 4px solid var(--rust);
  padding: 14px 20px; margin: 24px 0;
  background: white; font-style: italic;
  color: var(--rust); line-height: 1.7;
}
.single-post-content ul, .single-post-content ol {
  padding-left: 24px; margin-bottom: 18px;
}
.single-post-content li { margin-bottom: 6px; }
.single-post-content a {
  color: var(--rust); text-decoration: underline;
}
.single-post-footer {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid #ddd;
  display: flex; gap: 14px; flex-wrap: wrap;
}

@media (min-width: 901px) {
  .single-post { padding-top: 120px; }
  .single-post-hero { height: 420px; }
}

/* ——— CF7 FORMULAIRE STYLING ——— */

/* --- Pétition form (light background) --- */
.petition-form-wrap .wpcf7 { width: 100%; }
.petition-form-wrap .wpcf7-form { margin: 0; }

.petition-form-wrap .wpcf7-form label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #888;
  margin-bottom: 14px;
}

.petition-form-wrap .wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}

.petition-form-wrap .wpcf7-form input[type="text"],
.petition-form-wrap .wpcf7-form input[type="email"],
.petition-form-wrap .wpcf7-form input[type="tel"],
.petition-form-wrap .wpcf7-form input[type="number"],
.petition-form-wrap .wpcf7-form textarea,
.petition-form-wrap .wpcf7-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.petition-form-wrap .wpcf7-form input:focus,
.petition-form-wrap .wpcf7-form textarea:focus,
.petition-form-wrap .wpcf7-form select:focus {
  border-color: var(--green);
}

/* Acceptance checkbox */
.petition-form-wrap .wpcf7-acceptance {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: #555;
  font-style: italic;
  margin: 16px 0 20px;
  line-height: 1.55;
}

.petition-form-wrap .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}

.petition-form-wrap .wpcf7-acceptance input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  margin-top: 3px;
}

.petition-form-wrap .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.84rem;
  color: #555;
  font-style: italic;
  line-height: 1.55;
}

/* Submit button */
.petition-form-wrap .wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--rust);
  color: white;
  padding: 15px;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.2s;
  border-radius: 2px;
  -webkit-appearance: none;
}

.petition-form-wrap .wpcf7-form input[type="submit"]:hover {
  background: #d05a28;
}

/* Response message */
.petition-form-wrap .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  border: 2px solid var(--green) !important;
  font-size: 0.9rem;
  font-family: 'Source Serif 4', serif;
  border-radius: 2px;
}

.petition-form-wrap .wpcf7-form.invalid .wpcf7-response-output {
  border-color: var(--rust) !important;
  color: var(--rust);
}

.petition-form-wrap .wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--green) !important;
  color: var(--green);
  background: var(--green-lt);
}

/* Validation errors */
.petition-form-wrap .wpcf7-not-valid-tip {
  color: var(--rust);
  font-size: 0.78rem;
  margin-top: 4px;
  font-style: italic;
}

/* Spinner */
.petition-form-wrap .wpcf7-spinner {
  margin: 12px auto 0;
  display: block;
}

/* --- Adhésion form (dark background) --- */
.adhesion-form .wpcf7 { width: 100%; }
.adhesion-form .wpcf7-form { margin: 0; }

.adhesion-form .wpcf7-form label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.adhesion-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}

.adhesion-form .wpcf7-form input[type="text"],
.adhesion-form .wpcf7-form input[type="email"],
.adhesion-form .wpcf7-form input[type="tel"],
.adhesion-form .wpcf7-form input[type="number"],
.adhesion-form .wpcf7-form textarea,
.adhesion-form .wpcf7-form select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: white;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.adhesion-form .wpcf7-form input::placeholder,
.adhesion-form .wpcf7-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.adhesion-form .wpcf7-form input:focus,
.adhesion-form .wpcf7-form textarea:focus,
.adhesion-form .wpcf7-form select:focus {
  border-color: var(--wheat);
}

.adhesion-form .wpcf7-form textarea {
  min-height: 80px;
  resize: vertical;
}

/* Submit button */
.adhesion-form .wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--wheat);
  color: var(--green);
  padding: 15px;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.2s;
  border-radius: 2px;
  -webkit-appearance: none;
}

.adhesion-form .wpcf7-form input[type="submit"]:hover {
  background: #f0e0b0;
}

/* Response message */
.adhesion-form .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  border: 2px solid var(--wheat) !important;
  font-size: 0.9rem;
  font-family: 'Source Serif 4', serif;
  color: var(--wheat);
  border-radius: 2px;
}

.adhesion-form .wpcf7-form.invalid .wpcf7-response-output {
  border-color: #ff8a65 !important;
  color: #ff8a65;
}

.adhesion-form .wpcf7-form.sent .wpcf7-response-output {
  border-color: #a8d5a0 !important;
  color: #a8d5a0;
  background: rgba(168,213,160,0.1);
}

/* Validation errors */
.adhesion-form .wpcf7-not-valid-tip {
  color: #ff8a65;
  font-size: 0.78rem;
  margin-top: 4px;
  font-style: italic;
}

/* Spinner */
.adhesion-form .wpcf7-spinner {
  margin: 12px auto 0;
  display: block;
}

/* --- Shared CF7 overrides --- */
.wpcf7 br { display: none; }
.wpcf7-form p { margin-bottom: 0; }

/* ——— PRINT ——— */
@media print {
  nav, .modal-close, .modal-actions, .nav-cta, .share-bar { display: none !important; }
  .modal { max-height: none; overflow: visible; }
}

/* ——— DESKTOP ENHANCEMENTS (min-width: 901px) ——— */
@media (min-width: 901px) {
  nav { padding: 12px 48px; }
  .nav-links { display: flex; }
  .hero { padding: 120px 80px 80px; }
  section { padding: 86px 80px; }
  .stats { grid-template-columns: repeat(4,1fr); }
  .obj-grid { grid-template-columns: repeat(2,1fr); }
  .projets-layout { grid-template-columns: 1.1fr 1fr; }
  .petition-layout { grid-template-columns: 1fr 1fr; }
  .petition-form-wrap { position: sticky; top: 100px; }
  .adhesion-layout { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(3,1fr); }
  .image-break { height: 70vh; min-height: 400px; background-attachment: fixed; }
  .image-break-text { font-size: 1.6rem; left: 80px; bottom: 40px; }
  .share-bar { padding: 56px 80px; }
  .contact-bar { flex-direction: row; padding: 44px 80px; }
}
