/* Table premium centrée pour la taxe de séjour */
.premium-tax-table {
  max-width: 900px;
  min-width: 340px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-white);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(60, 60, 90, 0.1);
  overflow: hidden;
}
/*
 * Guide location saisonnière 2025 - CSS pro, responsive, branding
 * Uses global variables from styles.css for consistent branding
 */

.main-container.legal-guide {
  background: var(--bg-white);
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.main-container.legal-guide:hover {
  box-shadow: var(--shadow-md);
}

.banner {
  color: var(--secondary-color);
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section {
  margin-bottom: 2.7rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
}
.section:last-child {
  border-bottom: none;
}

.section-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  align-items: flex-start;
}

.section-content ul {
  flex: 2 1 320px;
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.image-placeholder {
  flex: 1 1 220px;
  min-width: 180px;
  min-height: 120px;
  background: var(--light-bg) url("/static/common/placeholder-image.svg")
    center/60px no-repeat;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  transition: border-color 0.2s;
}
.image-placeholder:hover {
  border-color: var(--primary-color);
}

.info-box,
.highlight-box {
  background: var(--light-bg);
  border-left: 4px solid var(--secondary-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.7rem;
  margin: 1.7rem 0;
  font-size: 1.07rem;
  box-shadow: var(--shadow-sm);
}

.highlight-box {
  border-left-color: var(--primary-color);
  background: var(--bg-warm);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.99rem;
}

.contact-text {
  margin-top: 2.2rem;
  text-align: center;
}

.button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--bg-white);
  padding: 0.55rem 1.3rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.7rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow-sm);
}
.button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

ul,
ol {
  margin-bottom: 0.7rem;
}
li strong {
  color: var(--secondary-color);
}
a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-color);
}

/*
 * Améliorations premium pour le guide 2025 :
 * - Encadrement, ombre et effet hover sur les images
 * - Légendes plus visibles
 * - Effet de zoom doux au survol
 * - Harmonisation des polices et couleurs avec :root global
 * - Meilleure responsivité et aération
 */

.section-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 1.2rem 0;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-light);
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  max-width: 320px;
}
.section-figure:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.section-image.premium-image {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--primary-color);
  margin-bottom: 0.5rem;
  transition: transform 0.25s cubic-bezier(0.4, 1.6, 0.6, 1), box-shadow 0.2s;
}
.section-figure:hover .section-image.premium-image {
  transform: scale(1.045) rotate(-1deg);
  box-shadow: var(--shadow-luxury);
}

.section-figcaption {
  color: var(--primary-color);
  font-family: var(--font-title);
  font-size: 1.08rem;
  text-align: center;
  margin-top: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 var(--bg-white), 0 2px 8px var(--shadow-luxury);
}

/*
 * LMNP section premium : grille de cartes, pictos, callout, couleurs, chiffres clés
 */
.lmnp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 1.2rem;
  margin-bottom: 1.2rem;
}
.lmnp-card {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--primary-light);
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.1rem 0.9rem 1.1rem;
  min-height: 110px;
  transition: box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.lmnp-card:hover {
  box-shadow: var(--shadow-luxury);
  border-color: var(--primary-color, var(--primary-color));
}
.lmnp-card.conseil {
  background: var(--bg-warm);
  border-left: 4px solid var(--color-accent, var(--color-legal-accent));
}
.lmnp-icon {
  font-size: 2.1rem;
  margin-right: 0.2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 var(--bg-white));
}
.lmnp-title {
  font-family: var(--font-title, "Playfair Display", serif);
  font-size: 1.08rem;
  color: var(--primary-color, var(--primary-color));
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.lmnp-text {
  color: var(--text-color, var(--text-primary));
  font-size: 1.01rem;
  line-height: 1.6;
}
.lmnp-chiffre {
  color: var(--danger-color, var(--danger-color));
  font-weight: 700;
  font-size: 1.13em;
  background: var(--warning-light);
  border-radius: 6px;
  padding: 0.1em 0.5em;
  margin: 0 0.2em;
}

.callout-box {
  background: var(--success-color, var(--success-color));
  color: var(--bg-white);
  border-radius: var(--radius, 12px);
  padding: 1.1rem 1.3rem;
  font-size: 1.09rem;
  margin: 1.2rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.1);
}
.callout-icon {
  font-size: 1.7rem;
  margin-right: 0.3rem;
  filter: drop-shadow(0 1px 0 var(--bg-white));
}

/*
 * Harmonisation premium du guide légal avec la home :
 * - Cartes, grilles, pictos, couleurs, typographies, boutons, séparateurs, aération
 */
.legal-guide-page {
  background: var(--bg-color, var(--bg-primary));
  font-family: var(--font-family, "Lato", sans-serif);
}

/* Hero banner styles - removing inline styles */
.hero-banner.legal-guide-hero.premium-hero-banner {
  position: relative;
  padding: 0;
  background: none;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-visible.legal-hero-img-limited {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.premium-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--bg-white);
}

.premium-hero-overlay h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--bg-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.premium-hero-overlay p {
  font-size: 1.3rem;
  color: var(--primary-color, #bfa66b);
  margin-bottom: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Intro section styles */
.legal-guide-intro {
  max-width: 700px;
}

/* Small text styles */
.legal-small-text {
  font-size: 0.8rem;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .premium-hero-overlay h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .premium-hero-overlay p {
    font-size: 1.1rem;
  }

  .hero-banner.legal-guide-hero.premium-hero-banner {
    min-height: 35vh;
  }

  .legal-guide-intro {
    max-width: 100%;
    padding: 0 1rem;
  }

  .legal-card {
    margin-bottom: 1.5rem;
  }

  .legal-card-img-wrapper {
    margin-bottom: 1rem;
  }

  .legal-card-img {
    max-width: 120px;
  }
}

@media (max-width: 576px) {
  .premium-hero-overlay h1 {
    font-size: 1.6rem;
  }

  .premium-hero-overlay p {
    font-size: 1rem;
  }

  .hero-banner.legal-guide-hero.premium-hero-banner {
    min-height: 30vh;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Animation improvements */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in.delay {
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced card styles */
.legal-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.legal-card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-card-img {
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.legal-card:hover .legal-card-img {
  transform: scale(1.05);
}

/* Premium styling for lists */
.legal-list-synthese {
  list-style: none;
  padding: 0;
}

.legal-list-synthese li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-accent);
  position: relative;
  padding-left: 1.5rem;
}

.legal-tip {
  background: linear-gradient(
    135deg,
    rgba(191, 166, 107, 0.1),
    rgba(191, 166, 107, 0.05)
  );
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  margin: 1rem 0;
}

.legal-tip:before {
  content: "💡";
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--bg-white);
  padding: 0 5px;
  font-size: 1.2rem;
}

/* Contact section improvements */
.contact-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 3rem 0;
  margin-top: 3rem;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.contact-intro h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-intro p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--bg-white);
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--secondary-color);
}

/* Fade in animation for sections */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.cta-button {
  margin-top: 1rem;
  background-color: var(--primary-color, var(--primary-color));
  color: var(--bg-white);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.cta-button:hover {
  background-color: var(--secondary-color, var(--secondary-color));
  color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-card {
  background: var(--bg-white);
  border: 1.5px solid var(--color-border, var(--border-light));
  border-radius: 1.2rem;
  box-shadow: var(--shadow-sm);
  padding: 2.1rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 270px;
  transition: box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.legal-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color, var(--primary-color));
}
.legal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  color: var(--primary-color, var(--primary-color));
  filter: drop-shadow(0 1px 0 var(--bg-white));
}
.legal-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color, var(--secondary-color));
  margin-bottom: 0.7rem;
}

/* Nouvelle version premium pour toutes les listes du guide légal */
.legal-list {
  list-style: none;
  margin: 0 0 1.2rem 0;
  padding: 0;
  color: var(--text-color, var(--text-primary));
  font-size: 1.09rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.legal-list li {
  background: linear-gradient(
    90deg,
    var(--bg-card-light) 60%,
    var(--bg-blue-light) 100%
  );
  border: 1.5px solid var(--bg-premium-card);
  border-radius: 1.2rem;
  padding: 0.85rem 1.5rem 0.85rem 2.2rem;
  font-size: 1.09rem;
  font-weight: 500;
  color: var(--color-legal-blue);
  text-align: left;
  box-shadow: 0 2px 10px 0 rgba(60, 60, 90, 0.06);
  margin: 0;
  position: relative;
  transition: box-shadow 0.18s, background 0.18s;
  display: flex;
  align-items: center;
}

.legal-list li::before {
  content: "\2022";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  color: var(--primary-color, var(--primary-color));
  font-weight: bold;
  opacity: 0.7;
}

.legal-list li strong {
  color: var(--primary-color, var(--primary-color));
  font-weight: 700;
}

.legal-list li a {
  color: var(--color-legal-blue);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.18s;
}

.legal-list li a:hover {
  color: var(--primary-color, var(--primary-color));
  text-decoration: underline;
}

.legal-tip {
  background: var(--bg-warm);
  color: var(--primary-color, var(--primary-color));
  border-left: 4px solid var(--color-accent, var(--color-legal-accent));
  border-radius: 0.7rem;
  padding: 0.7rem 1.1rem;
  font-size: 1.01rem;
  margin-top: 0.7rem;
  font-style: italic;
  box-shadow: var(--shadow-xs);
}

.wave-separator {
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
}
.wave-separator svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-section {
  background: linear-gradient(to top, var(--bg-white) 8f0, var(--light-bg));
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
}
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}
.contact-intro h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.contact-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.contact-card .cta-button {
  font-size: 1.1rem;
  padding: 0.8rem 2.2rem;
}

/* Premium card styles for legal guide */
.premium-img-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto;
  margin-right: auto;
}
/* Réduit l'opacité du halo bleu derrière les images des cartes premium */
.premium-img-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.18);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    var(--bg-blue-light) 0%,
    var(--bg-blue-lightest) 100%
  );
  z-index: 0;
  filter: blur(2.5px) opacity(0.4);
  pointer-events: none; /* <-- Ajouté pour ne pas bloquer les liens/texte */
}
.premium-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.4, 1.6, 0.6, 1), box-shadow 0.25s;
}
.premium-img:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: var(--shadow-xl);
}
.legal-icon-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--bg-blue-light) 60%,
    var(--primary-lighter) 100%
  );
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-size: 2rem;
  color: var(--color-legal-blue-light);
  margin-bottom: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-cool) 60%,
    var(--info-light) 100%
  );
  color: var(--bg-white);
  font-size: 2.2rem;
  box-shadow: 0 2px 12px 0 rgba(60, 60, 90, 0.13);
  border: 2.5px solid var(--bg-white);
  transition: box-shadow 0.2s;
}
.legal-icon-circle:hover {
  box-shadow: 0 6px 24px 0 rgba(60, 60, 90, 0.18);
}
.premium-title {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--color-legal-blue-dark);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px var(--bg-blue-light);
}
.premium-separator {
  border-top: 3px solid var(--accent-cool);
  width: 70px;
  margin: 0 auto 1.5rem auto;
  opacity: 1;
  border-radius: 2px;
}
.legal-card-lg.premium-card,
.legal-card-lg.legal-card-white {
  background: var(--bg-white);
  border-radius: 2.5rem;
  box-shadow: 0 12px 48px 0 rgba(60, 60, 90, 0.15),
    0 2px 8px 0 rgba(60, 60, 90, 0.08);
  padding: 2.7rem 2.3rem 2.3rem 2.3rem;
  margin-bottom: 2.7rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.legal-card-lg.premium-card:hover,
.legal-card-lg.legal-card-white:hover {
  box-shadow: 0 20px 64px 0 rgba(60, 60, 90, 0.19),
    0 4px 16px 0 rgba(60, 60, 90, 0.1);
  transform: translateY(-4px) scale(1.012);
}
.legal-list-synthese {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.legal-list-synthese li {
  background: linear-gradient(
    90deg,
    var(--bg-card-light) 60%,
    var(--bg-blue-light) 100%
  );
  border: 1.5px solid var(--bg-premium-card);
  border-radius: 1.2rem;
  padding: 0.85rem 1.5rem;
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--color-legal-blue);
  text-align: left;
  box-shadow: 0 2px 10px 0 rgba(60, 60, 90, 0.06);
  margin: 0;
  transition: box-shadow 0.18s;
  display: flex;
  align-items: center;
}

/* --- Responsive Banner & Overlay --- */
.premium-hero-banner {
  position: relative;
  width: 100%;
  max-height: 340px;
  min-height: 180px;
  overflow: hidden;
  border-radius: 0 0 2.2rem 2.2rem;
  box-shadow: 0 8px 40px 0 rgba(60, 60, 90, 0.13),
    0 2px 8px 0 rgba(60, 60, 90, 0.08);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
.hero-img-visible {
  width: 100% !important;
  max-width: 100vw;
  max-height: 340px;
  height: auto !important;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: brightness(0.92) saturate(1.08);
  border-radius: 0 0 2.2rem 2.2rem;
}
.premium-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 31, 63, 0.8) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}
.premium-hero-overlay .container {
  pointer-events: auto;
}
.premium-hero-overlay h1,
.premium-hero-overlay p {
  color: var(--color-legal-blue-dark);
  text-shadow: 0 2px 8px var(--bg-blue-light);
}
@media (max-width: 900px) {
  .premium-hero-banner {
    max-height: 180px;
    min-height: 100px;
    border-radius: 0 0 1.1rem 1.1rem;
  }
  .hero-img-visible {
    max-height: 180px;
    border-radius: 0 0 1.1rem 1.1rem;
  }
  .premium-hero-overlay h1 {
    font-size: 1.3rem;
  }
  .premium-hero-overlay p {
    font-size: 1rem;
  }
}
@media (max-width: 575.98px) {
  .premium-hero-banner {
    max-height: 120px;
    min-height: 60px;
  }
  .hero-img-visible {
    max-height: 120px;
  }
  .premium-hero-overlay h1 {
    font-size: 1rem;
  }
  .premium-hero-overlay p {
    font-size: 0.95rem;
  }
}

/* --- Responsive Cards --- */
.legal-card-lg {
  padding: 2.3rem;
  border-radius: 2.5rem;
}
@media (max-width: 991.98px) {
  .legal-card-lg {
    padding: 1.5rem !important;
    border-radius: 1.5rem;
  }
}
@media (max-width: 767.98px) {
  .legal-card-lg {
    padding: 1rem !important;
    border-radius: 1rem;
  }
  .premium-title {
    font-size: 1.1rem;
  }
  .legal-card-img,
  .premium-img {
    width: 100px !important;
    height: 100px !important;
  }
  .premium-img-wrapper,
  .legal-card-img-wrapper {
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 575.98px) {
  .legal-card-lg {
    padding: 0.5rem !important;
    border-radius: 0.7rem;
  }
  .legal-card-img,
  .premium-img {
    width: 70px !important;
    height: 70px !important;
  }
  .premium-img-wrapper,
  .legal-card-img-wrapper {
    width: 70px;
    height: 70px;
  }
}

/* --- Responsive Images in Cards --- */
.legal-card-img,
.premium-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Table --- */
.taxe-sejour-table-wrapper {
  overflow-x: auto;
}
.taxe-sejour-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}
@media (max-width: 767.98px) {
  .taxe-sejour-table {
    min-width: 400px;
  }
}

/* --- Responsive Contact Section --- */
.contact-section {
  padding: 2rem 0;
}
.contact-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767.98px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-intro,
  .contact-card {
    width: 100%;
    text-align: center;
  }
}

/* Utility: Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
}

/* Enhanced styles for the ultimate guide 2025 */

/* Animated icon improvements */
.legal-card-img-wrapper i {
  animation: pulse 2s infinite;
  display: block;
  text-align: center;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* Stats cards with hover effects */
.card.border-success:hover,
.card.border-info:hover,
.card.border-warning:hover,
.card.border-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Department-specific styling */
.card.border-primary .card-header {
  background: var(--gradient-primary);
}

.card.border-success .card-header {
  background: linear-gradient(
    135deg,
    var(--success-color),
    var(--success-light)
  );
}

.card.border-warning .card-header {
  background: linear-gradient(
    135deg,
    var(--warning-color),
    var(--warning-light)
  );
}

.card.border-info .card-header {
  background: linear-gradient(135deg, var(--info-color), var(--info-light));
}

/* Enhanced alert boxes */
.alert.border-0 {
  border-left: 4px solid currentColor !important;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.alert-primary {
  border-left-color: var(--primary-color) !important;
}
.alert-success {
  border-left-color: var(--success-color) !important;
}
.alert-warning {
  border-left-color: var(--warning-color) !important;
}
.alert-danger {
  border-left-color: var(--danger-color) !important;
}
.alert-info {
  border-left-color: #17a2b8 !important;
}

/* Performance metrics styling */
.card .fa-2x {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
  .legal-card-img-wrapper i {
    font-size: 2.5rem !important;
  }

  .premium-hero-overlay h1 {
    font-size: 1.8rem;
  }

  .premium-hero-overlay p {
    font-size: 1rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .card .fa-2x {
    font-size: 1.5rem !important;
  }
}

/* Enhanced tax table for mobile */
@media (max-width: 576px) {
  .table-responsive {
    border: none;
    box-shadow: none;
  }

  .table td,
  .table th {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
  }
}

/* Improved section spacing */
.legal-guide-page .col-12 {
  margin-bottom: 2rem;
}

/* Enhanced link styling */
.legal-list a,
.card-body a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-list a:hover,
.card-body a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Visual improvements for icons in lists */
.list-unstyled li i {
  width: 20px;
  text-align: center;
}

/* Enhanced gradient for hero */
.premium-hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 31, 63, 0.8) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Improved card consistency */
.legal-card.legal-card-lg {
  min-height: 400px;
}

/* Better visual hierarchy */
.legal-list-synthese {
  background: var(--gradient-bg-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.legal-list-synthese li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.legal-list-synthese li:last-child {
  border-bottom: none;
}

/* Enhanced intro grid styling */
.legal-guide-intro + .row .bg-light {
  background: var(--gradient-bg-light) !important;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-guide-intro + .row .bg-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Emergency section special styling */
.card.border-danger {
  border-width: 2px !important;
}

.card.border-danger .card-header {
  background: linear-gradient(135deg, var(--danger-color), var(--danger-light));
  color: white;
  font-weight: bold;
}

/* Final touches for professional look */
.premium-separator {
  height: 3px;
  background: var(--gradient-luxury-divider);
  border: none;
  border-radius: 2px;
  opacity: 0.8;
}

/* Accessibility improvements */
.card:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Correction du before vert sous le texte des listes */
.legal-list-copro li {
  position: relative;
  padding-left: 0.5em;
}
.legal-list-copro li::before {
  content: "";
  display: none !important;
}

/* Print styles */
@media print {
  .legal-guide-page {
    background: white !important;
  }

  .card,
  .alert {
    border: 1px solid #000 !important;
    break-inside: avoid;
  }

  .premium-hero-overlay {
    background: none !important;
    color: black !important;
  }
}

/* Back to top button styling */
.back-to-top-btn {
  z-index: 1000;
  width: 50px;
  height: 50px;
  display: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.back-to-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.back-to-top-btn.show {
  display: block !important;
  animation: fadeInUp 0.3s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Table of contents enhancements */
#tableOfContents .card-body a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-xs) 0;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

#tableOfContents .card-body a:hover {
  background-color: rgba(59, 130, 246, 0.1);
  border-left-color: var(--primary-color);
  transform: translateX(5px);
  text-decoration: none;
}

/* Section scroll padding for fixed navigation */
[id^="section-"] {
  scroll-margin-top: 100px;
}
