/*
 * Guide location saisonnière 2025 - CSS pro, responsive, branding
 */
:root {
  --color-bg: #fff;
  --color-primary: #1a4d7a;
  --color-secondary: #f5f7fa;
  --color-accent: #e6b800;
  --color-text: #222;
  --color-muted: #888;
  --border-radius: 14px;
  --spacing: 1.5rem;
  --max-width: 900px;
  --shadow: 0 2px 16px rgba(26, 77, 122, 0.08);
  --shadow-hover: 0 4px 24px rgba(26, 77, 122, 0.13);
  --font-main: "Segoe UI", Arial, sans-serif;
}

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

.banner {
  color: var(--color-primary);
  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(--color-border, #eaeaea);
  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: #f2f2f2 url("/static/common/placeholder-image.svg") center/60px
    no-repeat;
  border-radius: var(--border-radius);
  border: 1.5px dashed var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  transition: border-color 0.2s;
}
.image-placeholder:hover {
  border-color: var(--color-accent);
}

.info-box,
.highlight-box {
  background: var(--color-secondary);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 1.1rem 1.7rem;
  margin: 1.7rem 0;
  font-size: 1.07rem;
  box-shadow: 0 1px 6px rgba(26, 77, 122, 0.04);
}

.highlight-box {
  border-left-color: var(--color-accent);
  background: #fffbe6;
}

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

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

.button {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  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: 0 1px 4px rgba(26, 77, 122, 0.08);
}
.button:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

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

/*
 * 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, #fff);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
  border: 1.5px solid var(--color-border, #ddd);
  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-hover, 0 12px 28px rgba(0, 0, 0, 0.12));
  border-color: var(--primary-color, #bfa66b);
}

.section-image.premium-image {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius, 12px);
  box-shadow: 0 2px 12px rgba(191, 166, 107, 0.1);
  border: 2px solid var(--primary-color, #bfa66b);
  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: 0 6px 24px rgba(191, 166, 107, 0.18);
}

.section-figcaption {
  color: var(--primary-color, #bfa66b);
  font-family: var(--font-title, "Playfair Display", serif);
  font-size: 1.08rem;
  text-align: center;
  margin-top: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(191, 166, 107, 0.08);
}

/*
 * 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, #f8f5f2);
  border-radius: var(--radius, 12px);
  box-shadow: 0 2px 10px rgba(191, 166, 107, 0.07);
  border: 1.5px solid var(--primary-light, #d8c18b);
  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: 0 6px 24px rgba(191, 166, 107, 0.16);
  border-color: var(--primary-color, #bfa66b);
}
.lmnp-card.conseil {
  background: #fffbe6;
  border-left: 4px solid var(--color-accent, #e6b800);
}
.lmnp-icon {
  font-size: 2.1rem;
  margin-right: 0.2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 #fff);
}
.lmnp-title {
  font-family: var(--font-title, "Playfair Display", serif);
  font-size: 1.08rem;
  color: var(--primary-color, #bfa66b);
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.lmnp-text {
  color: var(--text-color, #333);
  font-size: 1.01rem;
  line-height: 1.6;
}
.lmnp-chiffre {
  color: var(--danger-color, #dc3545);
  font-weight: 700;
  font-size: 1.13em;
  background: #fff3cd;
  border-radius: 6px;
  padding: 0.1em 0.5em;
  margin: 0 0.2em;
}

.callout-box {
  background: var(--success-color, #198754);
  color: #fff;
  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(25, 135, 84, 0.1);
}
.callout-icon {
  font-size: 1.7rem;
  margin-right: 0.3rem;
  filter: drop-shadow(0 1px 0 #fff);
}

/*
 * 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, #f9f9f9);
  font-family: var(--font-family, "Lato", sans-serif);
}

.legal-guide-hero.hero-banner {
  min-height: 48vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}
.legal-guide-hero .overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 2.5rem 1.5rem;
  width: 100%;
}
.legal-guide-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #fff;
}
.legal-guide-hero p {
  font-size: 1.3rem;
  color: var(--primary-color, #bfa66b);
  margin-bottom: 1.2rem;
}

.cta-button {
  margin-top: 1rem;
  background-color: var(--primary-color, #bfa66b);
  color: #fff;
  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: 0 2px 10px rgba(191, 166, 107, 0.1);
}
.cta-button:hover {
  background-color: var(--secondary-color, #2b3d55);
  color: #fff;
}

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

.legal-card {
  background: #fff;
  border: 1.5px solid var(--color-border, #ddd);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(191, 166, 107, 0.07);
  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: 0 8px 32px rgba(191, 166, 107, 0.16);
  border-color: var(--primary-color, #bfa66b);
}
.legal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  color: var(--primary-color, #bfa66b);
  filter: drop-shadow(0 1px 0 #fff);
}
.legal-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color, #2b3d55);
  margin-bottom: 0.7rem;
}
.legal-list {
  list-style: none;
  margin: 0 0 0.7rem 0;
  padding: 0;
  color: var(--text-color, #333);
  font-size: 1.07rem;
  line-height: 1.7;
}

.legal-list li {
  position: relative;
  padding-left: 2.1em;
  margin-bottom: 0.45em;
  min-height: 1.7em;
  display: block;
  align-items: flex-start;
}

.legal-list li::before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0.4em;
  top: 0.6em;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc 60%, #818cf8 100%);
  box-shadow: 0 1px 4px rgba(60, 60, 90, 0.1);
  border: 2px solid #fff;
}

.legal-list li strong {
  color: var(--primary-color, #bfa66b);
}

.legal-list li a {
  color: #2d3a5c;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.18s;
}

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

.legal-tip {
  background: #fffbe6;
  color: var(--primary-color, #bfa66b);
  border-left: 4px solid var(--color-accent, #e6b800);
  border-radius: 0.7rem;
  padding: 0.7rem 1.1rem;
  font-size: 1.01rem;
  margin-top: 0.7rem;
  font-style: italic;
  box-shadow: 0 1px 6px rgba(191, 166, 107, 0.04);
}

.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, #fff8f0, #f8f5f2);
  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, #2b3d55);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.contact-intro p {
  color: var(--text-muted, #7f8c8d);
  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, #e0e7ff 0%, #f1f5ff 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 #fff;
  box-shadow: 0 2px 12px 0 rgba(60, 60, 90, 0.1);
  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: 0 12px 48px 0 rgba(60, 60, 90, 0.18);
}
.legal-icon-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e0e7ff 60%, #c7d2fe 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(60, 60, 90, 0.1);
  font-size: 2rem;
  color: #3b3b5c;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #a5b4fc 60%, #818cf8 100%);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 2px 12px 0 rgba(60, 60, 90, 0.13);
  border: 2.5px solid #fff;
  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: #232347;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px #e0e7ff;
}
.premium-separator {
  border-top: 3px solid #a5b4fc;
  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: #fff;
  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, #f7f8fa 60%, #e0e7ff 100%);
  border: 1.5px solid #e3e6ef;
  border-radius: 1.2rem;
  padding: 0.85rem 1.5rem;
  font-size: 1.13rem;
  font-weight: 600;
  color: #2d3a5c;
  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(
    180deg,
    rgba(255, 255, 255, 0.7) 0,
    rgba(255, 255, 255, 0.2) 100%
  );
  pointer-events: none;
}
.premium-hero-overlay .container {
  pointer-events: auto;
}
.premium-hero-overlay h1,
.premium-hero-overlay p {
  color: #232347;
  text-shadow: 0 2px 8px #e0e7ff;
}
@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;
}
