/* === BARRE DE RETOUR === */
#back-bar {
  background: var(--brand-ink);
  padding: 0.7rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  transition: background 0.2s, gap 0.2s, transform 0.2s;
}

.back-link:hover,
.back-link:focus-visible {
  background: #fff;
  color: var(--brand-ink);
  gap: 0.7rem;
  transform: translateX(-2px);
}

/* ── HERO ── */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 48px 0 36px;
  border-bottom: 1px solid #e0f2fe;
  margin-bottom: 40px;
  animation: contact-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes contact-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 10px;
}

.contact-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--brand-ink);
  margin: 0 0 12px;
  line-height: 1.1;
  justify-self: center;
}

.contact-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  justify-self: center;
}

/* CTA cards téléphone / urgences */
.contact-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 22px;
  border-radius: 14px;
  text-decoration: none;
  min-width: 210px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.cta-phone {
  background: var(--soft);
  border-color: #7dd3fc;
}

.cta-emergency {
  background: #fff1f2;
  border-color: #fca5a5;
}

.cta-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.cta-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.cta-phone .cta-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-ink);
}

.cta-emergency .cta-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #dc2626;
}

@media (max-width: 768px) {
  .contact-hero {
    grid-template-columns: 1fr;
  }
  .contact-hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cta-card {
    flex: 1;
    min-width: 150px;
  }
}


/* ── GRILLE INFO ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
  margin-top: 1.5rem;
}

.info-card {
  background: var(--bg);
  border: 1px solid #e0f2fe;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.06);
  opacity: 0;
  transform: translateY(22px);
  animation: contact-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.11);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.info-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-ink);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--soft);
}

/* Liste coordonnées */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-list-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.info-list a,
.info-list span:not(.info-list-label) {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
  transition: color 0.15s;
}

.info-list p {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
  transition: color 0.15s;
  margin: 0;
}

.info-list a:hover {
  color: var(--brand);
}

.emergency-link {
  color: #dc2626 !important;
}

.emergency-link:hover {
  color: #991b1b !important;
}


/* ── TABLEAU HORAIRES ── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.hours-table td {
  padding: 7px 4px;
  border-bottom: 1px solid #f0f9ff;
  color: var(--ink);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--brand-ink);
  width: 50%;
}

.hours-table td:last-child {
  color: var(--muted);
  text-align: right;
}

.hours-table tr.open td:last-child {
  color: #15803d;
  font-weight: 600;
}

.hours-table tr.closed td {
  opacity: 0.45;
}

/* Ligne du jour courant */
.hours-table tr.today {
  background: #f0f9ff;
  border-radius: 8px;
}

.hours-table tr.today td:first-child {
  color: var(--brand);
}

.hours-table tr.today td {
  border-bottom-color: #bae6fd;
}


/* ── STATUT TEMPS RÉEL ── */
.today-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.today-status.is-open  { background: #dcfce7; color: #166534; }
.today-status.is-closed{ background: #fee2e2; color: #991b1b; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.open   { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
.status-dot.closed { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }


/* ── FERMETURES ── */
.upcoming-closures h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.closures-badge {
  font-size: 0.75rem;
  background: #e0f2fe;
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

#closure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--muted);
}

#closure-list:empty::after {
  content: "Aucune fermeture prévue.";
  color: var(--muted);
  font-style: italic;
  font-size: 0.88rem;
}


/* ── CARTE ── */
.map-section {
  margin-bottom: 56px;
}

.map-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-ink);
  margin-bottom: 20px;
}

.map-wrapper {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
  border: 1px solid #bae6fd;
}

.map-frame {
  width: 100%;
  height: clamp(320px, 48vh, 520px);
  border: 0;
  display: block;
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .info-card:last-child {
    grid-column: auto;
  }

  .contact-hero {
    padding: 32px 0 24px;
  }
}

/* ================================================================
   À ajouter à la fin de contact.css
   Bloc "À proximité" dans la carte Accès & stationnement
   ================================================================ */

.proximity-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--soft);
}

.proximity-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 10px;
}

.proximity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proximity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.proximity-item:hover {
  background: #e0f2fe;
  transform: translateX(3px);
}

/* Barre colorée proportionnelle au temps */
.proximity-dot {
  width: 4px;
  height: 32px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Couleur varie selon la distance (15 → 20 → 30 min) */
.proximity-item:nth-child(1) .proximity-dot { background: #22c55e; }   /* vert  — 15 min */
.proximity-item:nth-child(2) .proximity-dot { background: #0ea5e9; }   /* bleu  — 20 min */
.proximity-item:nth-child(3) .proximity-dot { background: #f59e0b; }   /* ambre — 30 min */

.proximity-city {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-ink);
}

.proximity-time {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

/* === BANNIÈRE DE PAGE === */
.page-hero {
  position: relative;
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(2,8,23,0.72) 0%, rgba(2,8,23,0.22) 100%);
}

.page-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.5rem;
}

.page-hero h1 {
  color: #fff;
  padding: 0;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-contact { background-image: url('../img/PA/reception.jpg'); }

@media (max-width: 768px) {
  .page-hero { height: 200px; }
  .page-hero-content { padding-bottom: 1.25rem; }
}