*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:        #1a6eb5;
  --blue-dark:   #0f4c82;
  --blue-light:  #e8f2fb;
  --blue-mid:    #2980c4;
  --grey:        #f4f6f9;
  --grey-mid:    #e2e8f0;
  --text:        #1a2535;
  --text-muted:  #64748b;
  --white:       #ffffff;
  --radius:      10px;
  --sidebar-w:   220px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-mid);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
}

.nav-logo { width: 32px; height: 32px; object-fit: contain; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

nav ul li a:hover { color: var(--blue); }

.btn-urgence {
  background: var(--blue);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-urgence:hover { background: var(--blue-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, rgba(15,76,130,0.88) 0%, rgba(26,110,181,0.80) 100%),
              url('assets/fond.jpg') center center / cover no-repeat;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2.5rem 5rem;
  text-align: center;
}

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  color: white;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero p strong { color: white; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: white;
  color: var(--blue-dark);
  padding: 15px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-primary.large { font-size: 17px; padding: 16px 32px; }

.btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  padding: 15px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--blue-dark);
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 22px; color: white; font-weight: 700; }
.stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2.5rem; }
.section-alt { background: var(--grey); }
.section-dark { background: var(--blue-dark); }

.container { max-width: 1100px; margin: 0 auto; }

.eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eyebrow.light { color: rgba(255,255,255,0.6); }

.section h2 {
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3rem;
}

.section h2.light { color: white; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: white;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26,110,181,0.1);
}

.service-card.featured {
  border-color: var(--blue);
  border-width: 2px;
}

.service-icon { font-size: 32px; display: block; margin-bottom: 1rem; }

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== ABOUT ===== */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(26,110,181,0.1);
}

.about-visual img { width: 150px; height: 150px; object-fit: contain; }

.about-text .eyebrow { text-align: left; }

.about-text h2 {
  text-align: left;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 1.5rem;
}

.point {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

/* ===== ZONE ===== */
.zone-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.map-note-overlay {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.map-placeholder {
  background: var(--blue-light);
  border: 2px dashed var(--blue-mid);
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-icon { font-size: 48px; }
.map-placeholder p { font-size: 16px; font-weight: 700; color: var(--blue-dark); }
.map-sub { font-size: 13px; color: var(--text-muted); font-weight: 400 !important; }

.zone-list h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.communes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}

.commune {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--grey);
  border-radius: 6px;
}

.zone-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-icon { font-size: 28px; display: block; margin-bottom: 10px; }

.contact-card h3 {
  color: white;
  font-size: 15px;
  margin-bottom: 8px;
}

.contact-card p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; }

.contact-link {
  display: block;
  color: #7ec8f7;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 4px;
}

.cta-box {
  text-align: center;
  padding: 2.5rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
}

.cta-box p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 1.5rem;
}

.btn-primary.large { display: inline-block; }

/* ===== FOOTER ===== */
footer {
  background: #0a3357;
  padding: 2rem 2.5rem;
  text-align: center;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

footer p { color: rgba(255,255,255,0.5); font-size: 13px; }
footer a { color: #7ec8f7; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== VYV ===== */
.vyv-block {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vyv-block p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.vyv-logo {
  height: 55px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid var(--grey-mid);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ÉQUIPE ===== */
.team-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(26,110,181,0.07);
}

.team-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid var(--blue-light);
}

.team-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== BOUTON FLOTTANT MOBILE ===== */
.btn-float {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(26,110,181,0.4);
  z-index: 999;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-float:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 6px 25px rgba(26,110,181,0.5); }

/* ===== FORMULAIRE DE CONTACT ===== */
.contact-form-wrapper {
  margin-top: 3rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-alert--success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #86efac;
}

.form-alert--error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: white;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }

.form-group select option { background: #0f4c82; color: white; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  align-self: flex-end;
  background: white;
  color: var(--blue-dark);
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.btn-submit:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== FOOTER LEGAL ===== */
.footer-legal {
  font-size: 12px;
  margin-top: 4px;
}

.footer-legal a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; gap: 1rem; background: white; position: absolute; top: 65px; left: 0; right: 0; padding: 1.5rem 2rem; border-bottom: 1px solid var(--grey-mid); }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .btn-urgence { display: none; }
  .btn-float { display: block; }
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-photo img { width: 160px; margin: 0 auto; display: block; }
  .stats-bar { flex-wrap: wrap; }
  .about-wrapper { grid-template-columns: 1fr; }
  .zone-wrapper { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { align-self: stretch; text-align: center; }
  .contact-form-wrapper { padding: 1.5rem; }
}