/* ==========================================================
   AMA Buffet — Bandeau de consentement (RGPD / CNIL)
   À charger après css/style.css
   ========================================================== */

.cc-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: none;
  padding: 20px clamp(16px, 4vw, 32px);
  background: #FFFDF8;
  border-top: 3px solid #8D2E24;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
  font-family: Inter, system-ui, sans-serif;
}

.cc-banner.is-open { display: block; }

.cc-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cc-text { flex: 1 1 380px; }

.cc-text h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: #8D2E24;
}

.cc-text p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: #3B3733;
}

.cc-text a { color: #8D2E24; text-decoration: underline; }

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 1 auto;
}

.cc-btn {
  border: 2px solid #8D2E24;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #8D2E24;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}

.cc-btn:hover { transform: translateY(-2px); }
.cc-btn--accept { background: #8D2E24; color: #FFFDF8; }
.cc-btn--accept:hover { background: #741f17; border-color: #741f17; }
.cc-btn--refuse:hover { background: rgba(141, 46, 36, .08); }

/* Le bouton « Refuser » doit rester aussi visible que « Accepter » (exigence CNIL) */
.cc-btn--refuse,
.cc-btn--accept { min-width: 150px; }

.cc-btn--link {
  border: none;
  padding: 11px 8px;
  text-decoration: underline;
  font-weight: 500;
}

/* Lien de réouverture (pied de page) */
.cc-reopen {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .cc-inner { flex-direction: column; align-items: stretch; }
  .cc-actions { justify-content: stretch; }
  .cc-btn { flex: 1 1 140px; }
}

/* ==========================================================
   Carte à chargement différé
   ========================================================== */

.map-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  text-align: center;
  border-radius: inherit;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg,
      rgba(141, 46, 36, .05) 0 14px,
      rgba(141, 46, 36, .09) 14px 28px),
    #FFF7EE;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(141, 46, 36, .28);
  border-radius: 14px;
  pointer-events: none;
}

.map-placeholder svg {
  width: 46px;
  height: 46px;
  color: #8D2E24;
  position: relative;
}

.map-placeholder h3 {
  margin: 0;
  position: relative;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: #8D2E24;
}

.map-placeholder p {
  margin: 0;
  max-width: 46ch;
  position: relative;
  font-size: .88rem;
  line-height: 1.55;
  color: #4A443E;
}

.map-placeholder .map-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.map-placeholder .cc-btn { background: #8D2E24; color: #FFFDF8; }
.map-placeholder .cc-btn:hover { background: #741f17; border-color: #741f17; }

.map-placeholder .map-alt {
  position: relative;
  font-size: .82rem;
  color: #6B635B;
}

.map-placeholder .map-alt a { color: #8D2E24; }

#mapConsent.is-loaded { display: block; }
#mapConsent { width: 100%; height: 100%; min-height: 320px; }
#mapConsent iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }