/*
Theme Name: Revolution France
Theme URI: https://revolution-france.fr
Author: Wokine
Description: Thème WordPress pour le site Révolution France — mouvement citoyen fondé par Christophe Leroy
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: revolution-france
*/

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background: #fff;
}

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

a { color: #002395; text-decoration: underline; }
a:hover { text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-serif, h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.text-center { text-align: center; }
.text-blue { color: #002395; }
.text-red { color: #EF4135; }

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  background-color: #002395;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

#site-header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
#site-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; opacity: 1; transition: opacity .2s; }
#site-logo:hover { opacity: .9; }

#primary-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

#primary-menu a {
  display: block;
  padding: .5rem .75rem;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
#primary-menu a:hover { background: rgba(255,255,255,.2); }
#primary-menu .current-menu-item a,
#primary-menu .current_page_item a { background: rgba(255,255,255,.25); text-decoration: underline; text-underline-offset: 4px; }
#primary-menu .menu-adherer a { background: #EF4135; font-weight: 600; }
#primary-menu .menu-adherer a:hover { background: #d4392e; }
#primary-menu .menu-don a { border: 1px solid rgba(255,255,255,.5); border-radius: 4px; }

/* Mobile nav */
#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: 4px;
  transition: background .2s;
}
#mobile-menu-toggle:hover { background: rgba(255,255,255,.2); }
#mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin-bottom: 5px;
}
#mobile-menu-toggle span:last-child { margin-bottom: 0; }

#mobile-menu {
  display: none;
  background: #001a6e;
  border-top: 1px solid rgba(255,255,255,.1);
}
#mobile-menu ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: .5rem 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
#mobile-menu a {
  display: block;
  padding: .5rem .75rem;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
#mobile-menu a:hover { background: rgba(255,255,255,.2); }
#mobile-menu .menu-adherer a { background: #EF4135; }

@media (max-width: 768px) {
  #primary-menu { display: none; }
  #mobile-menu-toggle { display: block; }
  #mobile-menu.open { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #1A1A1A;
  color: #d1d5db;
  margin-top: 4rem;
}
#site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
#site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  #site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
#site-footer h2.footer-brand { color: #fff; font-family: 'Libre Baskerville', serif; font-size: 1.125rem; margin-bottom: .75rem; }
#site-footer h3.footer-heading { color: #fff; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
#site-footer .footer-nav ul { list-style: none; }
#site-footer .footer-nav li { margin-bottom: .5rem; }
#site-footer .footer-nav a { color: #9ca3af; font-size: .875rem; text-decoration: none; transition: color .2s; }
#site-footer .footer-nav a:hover { color: #fff; }
#site-footer p.footer-desc { font-size: .875rem; color: #9ca3af; line-height: 1.6; }
#site-footer .footer-social { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
#site-footer .footer-social a { color: #9ca3af; font-size: .875rem; text-decoration: none; transition: color .2s; }
#site-footer .footer-social a:hover { color: #fff; }
#site-footer .footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { #site-footer .footer-bottom { flex-direction: row; } }
#site-footer .footer-bottom p { font-size: .75rem; color: #6b7280; }
#site-footer .footer-bottom a { color: #9ca3af; text-decoration: none; transition: color .2s; }
#site-footer .footer-bottom a:hover { color: #d1d5db; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background-color: #002395;
  color: #fff;
  padding: 6rem 1rem;
}
.hero-section .hero-label {
  color: #EF4135;
  font-weight: 600;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.hero-section h1 {
  font-family: 'Libre Baskerville', serif;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-section .hero-desc {
  font-size: 1.125rem;
  color: #bfdbfe;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-section .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-section .hero-ctas a { text-decoration: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: #002395; color: #fff; }
.btn-primary:hover { background: #001a70; color: #fff; }
.btn-secondary { background: #fff; color: #002395; }
.btn-secondary:hover { background: #eff6ff; color: #002395; }
.btn-outline-white { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline-blue { border: 2px solid #002395; color: #002395; background: transparent; }
.btn-outline-blue:hover { background: rgba(0,35,149,.05); color: #002395; }
.btn-red { background: #EF4135; color: #fff; }
.btn-red:hover { background: #d4392e; color: #fff; }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-bg-light { background-color: #F5F5F5; }
.section-bg-blue { background-color: #002395; color: #fff; }
.section-bg-blue h2, .section-bg-blue p { color: #fff; }
.section-bg-blue p.text-muted { color: #bfdbfe; }

.section-label {
  color: #EF4135;
  font-weight: 600;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
  display: block;
}

/* Vision section */
.vision-section p { font-size: 1.125rem; line-height: 1.7; color: #333333; margin-bottom: 1rem; }

/* 3C Cards */
.cards-3c { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .cards-3c { grid-template-columns: repeat(3, 1fr); } }
.card-3c {
  background: #fff;
  border: 2px solid rgba(0,35,149,.1);
  border-radius: .75rem;
  padding: 2rem;
  text-align: center;
  transition: border-color .2s;
}
.card-3c:hover { border-color: rgba(0,35,149,.3); }
.card-3c.red { border-color: rgba(239,65,53,.1); }
.card-3c.red:hover { border-color: rgba(239,65,53,.3); }
.card-3c.green { border-color: rgba(22,163,74,.1); }
.card-3c.green:hover { border-color: rgba(22,163,74,.3); }
.card-3c-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1rem;
}
.card-3c-icon.blue { background: #002395; }
.card-3c-icon.red { background: #EF4135; }
.card-3c-icon.green { background: #16a34a; }
.card-3c h3 { font-family: 'Libre Baskerville', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.card-3c h3.blue { color: #002395; }
.card-3c h3.red { color: #EF4135; }
.card-3c h3.green { color: #16a34a; }
.card-3c p { font-size: .875rem; color: #333333; line-height: 1.6; }

/* Programme cards */
.programme-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .programme-grid { grid-template-columns: 1fr 1fr; } }
.programme-card {
  display: block;
  padding: 1.5rem;
  border: 2px solid rgba(0,35,149,.15);
  border-radius: .75rem;
  text-decoration: none;
  transition: all .2s;
}
.programme-card:hover { border-color: rgba(0,35,149,.4); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.programme-card.constat { border-color: #EF4135; background: rgba(239,65,53,.03); grid-column: 1 / -1; }
.programme-card.constat:hover { border-color: #EF4135; }
.programme-card-inner { display: flex; align-items: flex-start; gap: 1rem; }
.programme-card-label {
  flex-shrink: 0;
  padding: .25rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #002395;
  color: #fff;
}
.programme-card.constat .programme-card-label { background: #EF4135; }
.programme-card h2 { font-family: 'Libre Baskerville', serif; font-size: 1.125rem; color: #002395; margin-bottom: .25rem; }
.programme-card:hover h2 { text-decoration: underline; }
.programme-card p { font-size: .875rem; color: #333333; line-height: 1.5; }

/* Chapter pages */
.chapter-header { margin-bottom: 3rem; }
.chapter-header .chapter-label { color: #EF4135; font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: .75rem; }
.chapter-header h1 { color: #002395; margin-bottom: 1.5rem; }
.chapter-header .chapter-intro { font-size: 1.125rem; color: #333333; line-height: 1.7; }

.blue-box { background: #002395; color: #fff; border-radius: 1rem; padding: 2rem; margin-bottom: 2.5rem; }
.blue-box h2 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.blue-box p { color: #fff; font-size: 1.125rem; line-height: 1.7; }

.propositions h2 { font-size: 1.5rem; color: #002395; margin-bottom: 1.5rem; }
.propositions ul { list-style: none; }
.propositions li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.propositions li::before { content: "→"; color: #EF4135; font-weight: 700; flex-shrink: 0; margin-top: .1rem; }
.propositions li span { color: #333333; line-height: 1.6; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card { background: #F5F5F5; border-radius: 1rem; padding: 1.5rem; }
.info-card h3 { font-size: 1.125rem; color: #002395; margin-bottom: .75rem; }
.info-card p { font-size: .875rem; color: #333333; line-height: 1.6; }

.chapter-nav { border-top: 1px solid #e5e7eb; padding-top: 2rem; margin-top: 3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chapter-nav a { color: #002395; font-weight: 500; text-decoration: none; }
.chapter-nav a:hover { text-decoration: underline; }

/* Blockquote */
blockquote.quote-rf {
  border-left: 4px solid #EF4135;
  padding-left: 1.5rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  margin-bottom: 3rem;
  font-style: italic;
  color: #333333;
  font-size: 1.125rem;
}
blockquote.quote-rf footer { margin-top: .5rem; font-size: .875rem; font-style: normal; color: #6b7280; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-header { margin-bottom: 3rem; }
.page-header h1 { color: #002395; margin-bottom: 1.5rem; }

.content-area { font-size: 1rem; line-height: 1.8; color: #333333; }
.content-area h2 { font-size: 1.75rem; color: #002395; margin-top: 2rem; margin-bottom: 1rem; }
.content-area h3 { font-size: 1.25rem; color: #002395; margin-top: 1.5rem; margin-bottom: .75rem; }
.content-area ul, .content-area ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-area li { margin-bottom: .5rem; }

/* ============================================================
   FORMS
   ============================================================ */
.rf-form .form-group { margin-bottom: 1.5rem; }
.rf-form label { display: block; font-size: .875rem; font-weight: 500; color: #1A1A1A; margin-bottom: .25rem; }
.rf-form input[type=text],
.rf-form input[type=email],
.rf-form select,
.rf-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.rf-form input:focus,
.rf-form select:focus,
.rf-form textarea:focus { border-color: #002395; box-shadow: 0 0 0 3px rgba(0,35,149,.15); }
.rf-form .error-msg { color: #dc2626; font-size: .875rem; margin-top: .25rem; }
.rf-form .checkbox-group { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: .5rem; background: #F5F5F5; }
.rf-form .checkbox-group input { margin-top: .2rem; width: 16px; height: 16px; accent-color: #002395; }
.rf-form .checkbox-group label { font-size: .875rem; color: #333333; line-height: 1.6; }
.rf-form button[type=submit] {
  width: 100%;
  background: #002395;
  color: #fff;
  font-weight: 700;
  padding: 1rem;
  border: none;
  border-radius: .5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
}
.rf-form button[type=submit]:hover { background: #001a70; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.info-box-blue { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: .5rem; padding: 1rem; font-size: .75rem; color: #374151; line-height: 1.6; }
.info-box-blue strong { color: #4b5563; }
.info-box-cotisation { background: #F5F5F5; border-radius: .75rem; padding: 1.25rem; text-align: center; margin-top: 1.5rem; }
.info-box-cotisation .cotisation-price { color: #002395; font-weight: 700; font-size: 1.125rem; }

/* ============================================================
   ACTUALITES / BLOG
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { border: 1px solid #e5e7eb; border-radius: .75rem; overflow: hidden; transition: box-shadow .2s; }
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.post-card-body { padding: 1.5rem; }
.post-card .post-date { font-size: .75rem; color: #6b7280; margin-bottom: .5rem; }
.post-card h2 { font-size: 1.125rem; margin-bottom: .5rem; }
.post-card h2 a { color: #002395; text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card .post-excerpt { font-size: .875rem; color: #4b5563; line-height: 1.6; }
.post-card .read-more { display: inline-block; margin-top: 1rem; font-size: .875rem; font-weight: 600; color: #002395; text-decoration: none; }
.post-card .read-more:hover { text-decoration: underline; }

/* Single post */
.single-post-header { margin-bottom: 2rem; }
.single-post-date { font-size: .875rem; color: #6b7280; margin-bottom: .5rem; display: block; }
.single-post-header h1 { color: #002395; margin-bottom: 1rem; }
.single-post-header .post-chapeau { font-size: 1.125rem; color: #4b5563; line-height: 1.7; padding-bottom: 1.5rem; border-bottom: 2px solid #e5e7eb; }

/* ============================================================
   MOUVEMENT PAGE
   ============================================================ */
.value-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.value-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.value-item h3 { font-family: 'Libre Baskerville', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.value-item p { font-size: 1rem; color: #333333; line-height: 1.7; }

.founder-box { background: #F5F5F5; border-radius: .75rem; padding: 2rem; margin-bottom: 3.5rem; }
.founder-box h2 { color: #002395; font-size: 1.5rem; margin-bottom: 1rem; }
.founder-box p { color: #333333; line-height: 1.7; margin-bottom: 1rem; }
.founder-box p:last-child { margin-bottom: 0; }

/* ============================================================
   DON PAGE
   ============================================================ */
.don-amounts { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.don-amount-btn {
  padding: .75rem 1.5rem;
  border: 2px solid #002395;
  border-radius: 4px;
  color: #002395;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: none;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.don-amount-btn:hover, .don-amount-btn.active { background: #002395; color: #fff; }

/* ============================================================
   SUCCESS / ERROR STATES
   ============================================================ */
.success-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: .75rem; padding: 2rem; text-align: center; }
.success-box .check-icon { font-size: 2rem; margin-bottom: .75rem; }
.success-box h2 { color: #166534; font-size: 1.25rem; margin-bottom: .75rem; }
.success-box p { color: #15803d; margin-bottom: 1rem; }

.error-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: .5rem; padding: .75rem 1rem; color: #dc2626; font-size: .875rem; margin-bottom: 1rem; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content h2 { font-size: 1.5rem; color: #002395; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.125rem; color: #002395; margin-top: 1.5rem; margin-bottom: .75rem; }
.legal-content p, .legal-content li { font-size: .9375rem; line-height: 1.8; color: #333333; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: #002395; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 640px) {
  .hero-section { padding: 4rem 1rem; }
  .hero-section h1 { font-size: 2.5rem; }
  .py-16 { padding-top: 3rem; padding-bottom: 3rem; }
}
