/* =========================================================
   CasaMunicipal España — Design System
   Palette : bleu clair institutionnel, blanc, gris très clair
   Typo : Playfair Display (titres) + DM Sans (texte)
   ========================================================= */

:root {
  --primary: #1f5f8b;        /* bleu froid foncé - boutons, accents */
  --primary-light: #4a90c2;  /* bleu froid clair - identité */
  --primary-lighter: #eaf6ff;/* fond bleu très clair */
  --accent-gold: #6da9d6;    /* accent bleu froid */
  --gray-light: #f7f9fc;
  --gray-mid: #e3e8ef;
  --text-dark: #16202a;
  --text-muted: #5c6b7a;
  --white: #ffffff;
  --radius: 14px;
  --shadow-soft: 0 10px 40px rgba(10, 61, 98, 0.08);
  --shadow-hover: 0 16px 50px rgba(10, 61, 98, 0.14);
  --transition: all .3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
}

a { text-decoration: none; }

.text-muted-soft { color: var(--text-muted); }
.bg-light-blue { background: var(--primary-lighter); }
.bg-gray-soft { background: var(--gray-light); }

/* ---------- Buttons ---------- */
.btn-primary-cme {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary-cme:hover { background: #082c47; color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline-cme {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-cme:hover { background: #fff; color: var(--primary); }

.btn-outline-primary-cme {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-primary-cme:hover { background: var(--primary); color: #fff; }

/* ---------- Navbar ---------- */
.navbar-cme {
  padding: 1px 0;
  min-height: 38px;
  transition: var(--transition);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 20px rgba(10,61,98,.05);
}
.navbar-cme .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  padding: 0;
  line-height: 1.1;
}
.navbar-cme .navbar-brand span { color: var(--accent-gold); }
.navbar-cme .navbar-nav {
  gap: 0;
}
.navbar-cme .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 2px;
  padding: 0.08rem 0.25rem;
  position: relative;
  font-size: 0.8rem;
  line-height: 1.1;
}
.navbar-cme .nav-link.active,
.navbar-cme .nav-link:hover { color: var(--primary-light); }
.navbar-cme .navbar-toggler {
  padding: 0.15rem 0.3rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,50,.55) 0%, rgba(10,61,98,.75) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero p.lead { color: #eaf4fb; font-size: 1.25rem; max-width: 640px; }

.hero-page {
  padding: 140px 0 70px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #fff 100%);
}
.hero-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-title-eyebrow {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .85rem;
}

/* ---------- Cards ---------- */
.card-cme {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
  padding: 34px 28px;
  height: 100%;
}
.card-cme:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-cme .icon-wrap {
  width: 60px; height: 60px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.partner-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background:#fff; transition: var(--transition); height:100%; }
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.partner-card .partner-flag { height: 8px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.partner-card .badge-count { background: var(--primary-lighter); color: var(--primary); font-weight: 600; }

.testimonial-card { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); padding: 30px; height: 100%; }
.testimonial-card .stars { color: var(--accent-gold); }
.testimonial-card .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--primary-lighter); }

/* ---------- Steps (how it works) ---------- */
.step-item { text-align:center; position: relative; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 1.4rem;
  display: flex; align-items:center; justify-content:center;
  margin: 0 auto 20px;
}

/* ---------- Counters ---------- */
.counter-item { text-align: center; }
.counter-number { font-family:'Playfair Display',serif; font-size: 2.6rem; font-weight:700; color: var(--primary); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 60px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #071e30;
  color: #cfe0ee;
  padding: 70px 0 24px;
}
footer.site-footer h5 { color: #fff; font-family:'DM Sans',sans-serif; font-weight:700; }
footer.site-footer a { color: #cfe0ee; }
footer.site-footer a:hover { color: var(--accent-gold); }
footer .social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  transition: var(--transition);
}
footer .social-icon:hover { background: var(--accent-gold); color:#071e30; }

/* ---------- Reservation multi-step form ---------- */
.progress-steps { display:flex; justify-content:space-between; margin-bottom: 46px; position:relative;}
.progress-steps::before {
  content:''; position:absolute; top:22px; left:0; right:0; height:3px; background: var(--gray-mid); z-index:0;
}
.progress-steps .p-step { position:relative; z-index:1; text-align:center; flex:1; }
.progress-steps .p-circle {
  width:46px; height:46px; border-radius:50%; background:#fff; border:3px solid var(--gray-mid);
  display:flex; align-items:center; justify-content:center; margin:0 auto 10px; font-weight:700; color: var(--text-muted);
  transition: var(--transition);
}
.progress-steps .p-step.active .p-circle,
.progress-steps .p-step.done .p-circle { border-color: var(--primary); background: var(--primary); color:#fff; }
.progress-steps .p-label { font-size:.85rem; color: var(--text-muted); font-weight:600;}
.progress-steps .p-step.active .p-label { color: var(--primary); }

.form-step { display:none; }
.form-step.active { display:block; animation: fadeInUp .4s ease; }

.form-control-cme, .form-select-cme {
  border-radius: 10px;
  border: 1.5px solid var(--gray-mid);
  padding: 12px 16px;
}
.form-control-cme:focus, .form-select-cme:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 .2rem rgba(60,141,188,.15);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp { from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);} }
.fade-in-up { animation: fadeInUp .6s ease both; }
.reveal { opacity:0; transform: translateY(24px); transition: all .7s ease; }
.reveal.is-visible { opacity:1; transform: translateY(0); }

/* ---------- FAQ ---------- */
.accordion-cme .accordion-button { font-weight:600; color: var(--primary); background:#fff; }
.accordion-cme .accordion-button:not(.collapsed) { background: var(--primary-lighter); box-shadow:none; }
.accordion-cme .accordion-button:focus { box-shadow:none; }

/* ---------- Utilities ---------- */
.rounded-cme { border-radius: var(--radius); }
.shadow-cme { box-shadow: var(--shadow-soft); }
.divider-gold { width:60px; height:3px; background: var(--accent-gold); margin: 14px 0 24px; }

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .progress-steps .p-label { font-size: .7rem; }
}
