/*
Theme Name: Mairie RCA
Theme URI: https://mairie-bimbo.cf
Author: Mairie de Bimbo
Author URI: https://mairie-bimbo.cf
Description: Thème WordPress officiel pour une mairie de République Centrafricaine. Design mobile-first, accessible, aux couleurs du drapeau centrafricain.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: mairie-rca
Tags: government, municipal, africa, french, accessibility-ready, custom-menu, translation-ready
*/

/* === Reset & Base === */
:root {
  --car-blue: #003DA5;
  --car-white: #FFFFFF;
  --car-green: #1B7340;
  --car-yellow: #F5C518;
  --car-red: #C8102E;
  --bg-light: #F7F8FA;
  --text-dark: #1A1F36;
  --text-muted: #5A6178;
  --border-color: #DDE1EA;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--car-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.3;
  font-weight: 700;
}

a { color: var(--car-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* === Flag Stripe === */
.car-stripe {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--car-blue) 0% 20%,
    var(--car-white) 20% 40%,
    var(--car-green) 40% 60%,
    var(--car-yellow) 60% 80%,
    var(--car-red) 80% 100%
  );
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--car-yellow); color: var(--text-dark); }
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn-blue { background: var(--car-blue); color: #fff; }
.btn-blue:hover { filter: brightness(1.15); text-decoration: none; }

/* === Section Utilities === */
.section-padding { padding: 48px 0; }
@media (min-width: 768px) { .section-padding { padding: 72px 0; } }
.section-alt { background: var(--bg-light); }
.section-title {
  font-size: 1.75rem;
  margin-bottom: 32px;
  text-align: center;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* === Grid System === */
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,61,165,0.1);
  color: var(--car-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.card:hover .card-icon { background: var(--car-blue); color: #fff; }

/* === Badge === */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-green { background: var(--car-green); color: #fff; }
.badge-yellow { background: var(--car-yellow); color: var(--text-dark); }
.badge-muted { background: var(--bg-light); color: var(--text-muted); }

/* === Progress Bar === */
.progress-bar { height: 10px; background: var(--bg-light); border-radius: 5px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--car-blue); border-radius: 5px; transition: width 0.6s; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--car-blue); box-shadow: 0 0 0 3px rgba(0,61,165,0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
