/* ============================================================
   assets/css/contact.css — Page contact BONDEKO (2 sites)
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.contact-hero {
  background: linear-gradient(135deg, #0D3D20, #1B6B3A);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  color: #fff;
}
.contact-hero-inner { max-width: 600px; margin: 0 auto; }
.contact-hero h1 { font-family: var(--font-titre); font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0.5rem 0; color: #fff; }
.contact-hero p  { color: rgba(255,255,255,0.8); font-size: 1rem; }
.contact-hero .section-tag { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.25); }

/* ── SWITCHER SITES ─────────────────────────────────────────── */
.site-switcher-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--blanc);
  border-bottom: 2px solid var(--bordure);
  position: sticky;
  top: 68px;
  z-index: 99;
}
.site-btn {
  flex: 1;
  max-width: 300px;
  padding: 1rem 2rem;
  border: none;
  background: none;
  font-family: var(--font-corps);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texte-m);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.site-btn:hover { color: var(--vert); }
.site-btn.active { color: var(--vert); border-bottom-color: var(--vert); }
#btnUcams.active { color: #1A4A7A; border-bottom-color: #1A4A7A; }

/* ── MAIN ───────────────────────────────────────────────────── */
.contact-main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }

/* ── BLOC SITE ──────────────────────────────────────────────── */
.site-block.hidden { display: none; }
.site-block { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.site-header { text-align: center; margin-bottom: 2.5rem; }
.site-badge {
  display: inline-block;
  padding: 0.3rem 1rem; border-radius: 99px;
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.bondeko-badge { background: #E8F5EE; color: #1B6B3A; }
.ucams-badge   { background: #EEF2FA; color: #1A4A7A; }
.site-header h2 { font-family: var(--font-titre); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.site-header p  { color: var(--texte-m); font-size: 0.95rem; }

/* ── GRILLE CONTACT ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* ── BLOCS INFO ─────────────────────────────────────────────── */
.contact-infos { display: flex; flex-direction: column; gap: 1.25rem; }
.info-block {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.info-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.bondeko-icon { background: #E8F5EE; }
.ucams-icon   { background: #EEF2FA; }
.info-block h4 { font-size: 0.82rem; font-weight: 500; color: var(--texte-m); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.info-block p  { font-size: 0.9rem; color: var(--texte); line-height: 1.65; margin: 0; }
.info-block a  { color: var(--vert); }
.info-block a:hover { color: var(--vert-mid); }

/* Tableau horaires */
.horaires-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.horaires-table td { padding: 3px 8px 3px 0; color: var(--texte-m); }
.horaires-table td:last-child { text-align: right; color: var(--texte); }
.horaires-table .urgence-row td { color: var(--vert); }
.ferme { color: var(--rouge, #C0392B); }
.text-vert  { color: var(--vert); }
.text-ucams { color: #1A4A7A; }

/* Bouton UCAMS */
.btn-ucams-full {
  display: flex; align-items: center; justify-content: center;
  background: #1A4A7A; color: #fff;
  padding: 0.75rem 1.75rem; border-radius: 99px;
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none; margin-top: 0.5rem;
  transition: background 0.2s;
}
.btn-ucams-full:hover { background: #24619F; color: #fff; }

/* ── CARTE ──────────────────────────────────────────────────── */
.carte-wrap {
  display: flex; flex-direction: column; gap: 0.75rem;
  position: sticky; top: 130px;
}
.carte-label {
  font-size: 0.82rem; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: 99px;
  width: fit-content;
}
.bondeko-label { background: #E8F5EE; color: #1B6B3A; }
.ucams-label   { background: #EEF2FA; color: #1A4A7A; }

.map-container {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--bordure);
  background: var(--gris-clair, #F2F4F0);
}
.map-container iframe { display: block; }

.map-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--bordure);
  background: var(--blanc);
  transition: all 0.15s;
}
.bondeko-link { color: #1B6B3A; border-color: rgba(27,107,58,0.2); }
.bondeko-link:hover { background: #E8F5EE; }
.ucams-link { color: #1A4A7A; border-color: rgba(26,74,122,0.2); }
.ucams-link:hover { background: #EEF2FA; }
.waze-link { color: #333; }
.waze-link:hover { background: var(--gris-clair, #F2F4F0); }

/* Box assurances */
.assurance-box {
  background: var(--gris-clair, #F2F4F0);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.assurance-box h4 { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--texte); }
.assurance-box p  { font-size: 0.78rem; color: var(--texte-m); line-height: 1.6; margin: 0; }

/* ── FORMULAIRE ─────────────────────────────────────────────── */
.form-section {
  border-top: 2px solid var(--bordure);
  padding-top: 3rem;
}
.form-section-header { text-align: center; margin-bottom: 2rem; }
.form-section-header h2 { font-family: var(--font-titre); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.form-section-header p  { color: var(--texte-m); font-size: 0.95rem; }

.contact-form { max-width: 680px; margin: 0 auto; }

/* Sélecteur site dans le formulaire */
.site-radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.site-radio {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--bordure);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--blanc);
}
.site-radio input[type="radio"] { display: none; }
.site-radio:hover { border-color: var(--vert); background: var(--vert-clair); }
.site-radio.selected { border-color: var(--vert); background: var(--vert-clair); }
.radio-icon { font-size: 1.4rem; flex-shrink: 0; }
.site-radio strong { display: block; font-size: 0.88rem; }
.site-radio small  { font-size: 0.76rem; color: var(--texte-m); }

/* ── SUCCÈS CONTACT ─────────────────────────────────────────── */
.succes-contact {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 0;
}
.succes-icon-small {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--vert); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 1.25rem;
}
.succes-contact h3 { font-family: var(--font-titre); font-size: 1.5rem; color: var(--vert); margin-bottom: 0.5rem; }
.succes-contact p  { color: var(--texte-m); margin-bottom: 1.5rem; }

/* ── BANNIÈRE URGENCES ──────────────────────────────────────── */
.urgences-banner {
  background: #0D1F0F;
  padding: 2.5rem 2rem;
}
.urgences-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 900px; margin: 0 auto;
  flex-wrap: wrap;
}
.urgence-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0 2.5rem; flex: 1; min-width: 220px;
}
.urgence-sep {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.urg-icon { font-size: 1.8rem; flex-shrink: 0; }
.urgence-item h4 { color: #fff; font-size: 0.9rem; margin-bottom: 2px; font-weight: 500; }
.urgence-item p  { color: rgba(255,255,255,0.5); font-size: 0.78rem; margin: 0; }
.urg-tel {
  margin-left: auto;
  background: var(--vert); color: #fff;
  padding: 0.45rem 1rem; border-radius: 99px;
  font-size: 0.82rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  flex-shrink: 0;
}
.urg-tel:hover { background: var(--vert-mid); color: #fff; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .carte-wrap { position: static; }
}
@media (max-width: 600px) {
  .site-radio-group { grid-template-columns: 1fr; }
  .urgence-item { padding: 1rem 0; }
  .urgence-sep  { display: none; }
  .urg-tel { display: none; }
  .site-switcher-bar { top: 0; }
}

.nav-active { color: var(--vert) !important; font-weight: 500; }
