/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b1730;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, 1120px);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.simple-header {
  background: #030c1d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.simple-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
}

.header-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: #ef4444;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease;
}

.header-phone:hover {
  background: #dc2626;
}

/* =========================
   HERO
========================= */
.hero-simple {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #030c1d 0%, #0b1730 55%, #102246 100%);
  text-align: center;
  padding: 72px 20px;
}

.hero-simple::before,
.hero-simple::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.hero-simple::before {
  top: -160px;
  left: -130px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.95) 0%, rgba(250, 204, 21, 0.16) 42%, rgba(250, 204, 21, 0) 72%);
  animation: gyroYellowAlt 2.9s infinite;
}

.hero-simple::after {
  top: -160px;
  right: -130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0) 72%);
  animation: gyroWhiteAlt 3.4s infinite;
}

@keyframes gyroYellowAlt {
  0%   { opacity: 0.03; }
  4%   { opacity: 0.72; }
  7%   { opacity: 0.08; }
  11%  { opacity: 0.92; }
  15%  { opacity: 0.04; }
  28%  { opacity: 0.03; }
  33%  { opacity: 0.52; }
  36%  { opacity: 0.06; }
  40%  { opacity: 0.82; }
  44%  { opacity: 0.04; }
  63%  { opacity: 0.03; }
  68%  { opacity: 0.66; }
  71%  { opacity: 0.10; }
  74%  { opacity: 0.88; }
  78%  { opacity: 0.03; }
  100% { opacity: 0.03; }
}

@keyframes gyroWhiteAlt {
  0%   { opacity: 0.03; }
  18%  { opacity: 0.03; }
  22%  { opacity: 0.64; }
  25%  { opacity: 0.09; }
  29%  { opacity: 0.90; }
  33%  { opacity: 0.04; }
  47%  { opacity: 0.03; }
  52%  { opacity: 0.58; }
  55%  { opacity: 0.07; }
  59%  { opacity: 0.84; }
  63%  { opacity: 0.03; }
  79%  { opacity: 0.03; }
  84%  { opacity: 0.70; }
  87%  { opacity: 0.10; }
  91%  { opacity: 0.94; }
  95%  { opacity: 0.04; }
  100% { opacity: 0.03; }
}

.hero-simple-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.hero-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 18px;
}

.hero-simple h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto 20px;
  color: #d4deee;
  font-size: 15px;
}

.hero-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease;
}

.hero-call-btn:hover {
  background: #dc2626;
}

.hero-mini-text {
  margin-top: 14px;
  color: #d4deee;
  font-size: 14px;
}

/* =========================
   INDEX CARDS
========================= */
.municipalites-section {
  padding: 56px 0 70px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 28px;
}

/* ancien nom */
.cards-municipalites,
/* nouveau nom toléré pour index */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* carte commune */
.municipalite-card {
  background: #1d2a43;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.municipalite-card:hover {
  transform: translateY(-4px);
  background: #22314d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

/* version avec wrapper logo */
.municipalite-card-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.municipalite-card-logo img {
  max-height: 90px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* version sans wrapper logo, pour index tolérant */
.municipalite-card > img {
  height: 90px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 18px;
}

.municipalite-card h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.municipalite-card p {
  color: #c7d3e5;
  font-size: 15px;
  margin-bottom: 20px;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #ef4444;
  color: #fff;
  font-weight: 700;
}

.btn-primary:hover {
  background: #dc2626;
}

.btn-secondary {
  border: 1px solid #4b5d7c;
  color: #d4deee;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* =========================
   FORM
========================= */
.simple-form-section {
  padding: 54px 0 70px;
}

.simple-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: #1d2a43;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
}

.simple-form-head {
  margin-bottom: 22px;
}

.simple-form-head h2 {
  font-size: 30px;
  margin-bottom: 6px;
}

.simple-form-head p {
  color: #c7d3e5;
  font-size: 15px;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-block {
  background: rgba(11, 23, 48, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
}

.form-group-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-check-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
}

.form-check-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #ef4444;
  flex-shrink: 0;
}

.form-check-text {
  flex: 1;
}

.form-check-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.form-check-text span {
  display: block;
  color: #c7d3e5;
  font-size: 14px;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-row-full {
  grid-column: 1 / -1;
}

.simple-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.simple-form input:not([type="checkbox"]),
.simple-form select,
.simple-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #0b1730;
  color: #fff;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

.simple-form textarea {
  resize: vertical;
  min-height: 112px;
}

.simple-form input::placeholder,
.simple-form textarea::placeholder {
  color: #94a3b8;
}

.simple-form input:focus,
.simple-form select:focus,
.simple-form textarea:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.identity-fields.is-hidden {
  display: none !important;
}

#identityFields.form-grid,
#identityFields {
  width: 100%;
}

.form-helper {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.simple-note {
  color: #c7d3e5;
  font-size: 14px;
  line-height: 1.45;
}

.simple-submit-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.simple-submit-btn:hover {
  background: #dc2626;
}

/* =========================
   FOOTER
========================= */
.simple-footer {
  background: #030c1d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  margin-top: auto;
}

.simple-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .cards-municipalites,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .municipalite-card {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .simple-header-inner,
  .simple-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-phone {
    width: 100%;
  }

  .hero-simple {
    padding: 56px 20px;
  }

  .hero-simple h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .simple-form-wrap {
    padding: 20px;
  }

  .simple-form-head h2 {
    font-size: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-actions {
    flex-direction: column;
  }

  .municipalite-card h3 {
    font-size: 22px;
  }

  .hero-simple::before,
  .hero-simple::after {
    width: 320px;
    height: 320px;
    filter: blur(85px);
  }
}/* GRID MUNICIPALITÉS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ALERTES HERO */
.hero-alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ROUGE */
.hero-alert-red {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  animation: pulseRed 2s infinite;
}

/* ORANGE */
.hero-alert-orange {
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.5);
  color: #fdba74;
}

/* ANIMATION URGENCE */
@keyframes pulseRed {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}