:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-cyan: #06b6d4;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-white: #ffffff;
  --color-yellow-400: #facc15;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

thead {
  background-color: var(--color-primary);
  color: var(--color-white);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-primary-dark);
}

tbody tr {
  border-bottom: 1px solid var(--color-slate-200);
  transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
  background-color: var(--color-slate-50);
}

tbody tr:hover {
  background-color: var(--color-primary-light);
}

td {
  padding: 1rem;
  color: var(--color-slate-700);
  font-size: 0.9375rem;
  line-height: 1.5;
}

tbody tr:last-child {
  border-bottom: none;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: var(--color-slate-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-slate-900);
  box-shadow: var(--shadow-xl);
}

.btn-secondary:hover {
  background-color: var(--color-slate-100);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-light);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-lg {
  width: 40px;
  height: 40px;
}

.icon-xl {
  width: 48px;
  height: 48px;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-slate-200);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-xl);
}

.card-content {
  padding: 1.5rem;
}

/* ===================== */
/* BREADCRUMB            */
/* ===================== */

.breadcrumb {
  background-color: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
  padding: 0.75rem 0;
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

.breadcrumb-link {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--color-primary-dark);
}

.breadcrumb-separator {
  color: var(--color-slate-400);
}

.breadcrumb-current {
  color: var(--color-slate-900);
  font-weight: 600;
}

.breadcrumb-cta {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.breadcrumb-cta:hover {
  color: var(--color-primary-dark);
}

/* ===================== */
/* STICKY BAR            */
/* ===================== */

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 0.75rem 0;
  z-index: 50;
  box-shadow: 0 -4px 12px -1px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-bar-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-bar-content {
  flex: 1;
}

.sticky-bar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.sticky-bar-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.sticky-bar-btn {
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 0.625rem 3rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sticky-bar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  .sticky-bar {
    padding: 0.6rem 0; /* moins haut */
  }

  .sticky-bar-container {
    width: 92%;
    flex-direction: column;   /* plus de 2 colonnes */
    align-items: stretch;     /* bouton full width */
    gap: 0.35rem;
  }

  .sticky-bar-content {
    flex: initial;
  }

  .sticky-bar-title {
    font-size: 0.95rem;       /* texte plus petit */
    margin-bottom: 0.1rem;
    line-height: 1.15;
  }

  .sticky-bar-subtitle {
    font-size: 0.75rem;       /* texte plus petit */
    line-height: 1.2;
  }

  .sticky-bar-btn {
    width: 100%;
    padding: 0.5rem 1rem;     /* bouton moins haut + adapté mobile */
    border-radius: var(--radius-lg);
    white-space: normal;       /* au cas où ça wrap */
  }

  .sticky-bar-btn:hover {
    transform: none; /* évite l'effet "saut" sur mobile */
  }
}


/* ===================== */
/* HERO SECTION          */
/* ===================== */

.hero-section {
  background: linear-gradient(to bottom right, var(--color-primary-light), var(--color-primary-light), var(--color-white));
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-slate-700);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-feature-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.hero-feature-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem;
}

.hero-feature-text {
  font-size: 0.875rem;
  color: var(--color-slate-600);
  line-height: 1.5;
}

/* ===================== */
/* FORM CARD             */
/* ===================== */

.form-card {
  background-color: var(--color-white);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: breathing-border 3s ease-in-out infinite;
}

@keyframes breathing-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.12), var(--shadow-xl); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18), 0 0 25px rgba(37, 99, 235, 0.1), var(--shadow-xl); }
}

.form-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 1.5rem;
  text-align: left;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.form-rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-stars {
  display: flex;
  gap: 0.125rem;
}

.form-star {
  color: var(--color-yellow-400);
}

.form-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Mobile */
@media (max-width: 480px) {
  .form-badge {
    font-size: 0.625rem;   /* ~10px */
    padding: 0.1rem 0.4rem;
  }
}

.form-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.form-body {
  padding: 1rem 1.5rem 1.5rem;
}

/* ===================== */
/* OFFER BOX             */
/* ===================== */

.offer-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(to right, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin: 1rem 1.5rem 0;
}

.offer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.offer-text {
  font-size: 0.813rem;
  color: var(--color-slate-800);
  line-height: 1.5;
}

/* ===================== */
/* CITIES SECTION        */
/* ===================== */

.cities-section {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-slate-600);
  max-width: 36rem;
  margin: 0 auto;
}

.cities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.city-card {
  display: block;
}

.card-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, var(--color-primary-light), var(--color-white));
  border-bottom: 1px solid var(--color-slate-200);
}

.city-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.city-icon-wrapper {
  background-color: var(--color-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.city-icon {
  color: var(--color-white);
  width: 18px;
  height: 18px;
}

.city-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.city-dept {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  margin-bottom: 0.25rem;
}

.city-postal {
  font-size: 0.875rem;
  color: var(--color-slate-400);
  margin-bottom: 1rem;
}

/* ===================== */
/* SEO SECTION           */
/* ===================== */

.seo-section {
  padding: 4rem 0;
  background-color: var(--color-slate-50);
}

.seo-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.seo-content {
  width: 100%;
}

.seo-text {
  font-size: 1rem;
  color: var(--color-slate-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.seo-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.seo-subtitle-h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ===================== */
/* CTA SECTION           */
/* ===================== */

.cta-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(to right, var(--color-primary), var(--color-cyan));
}

.cta-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1rem;
  color: #dbeafe;
  margin-bottom: 2rem;
}

/* ===================== */
/* TOP CITIES SECTION    */
/* ===================== */

.top-cities-section {
  padding: 3rem 0 4rem;
  background-color: var(--color-white);
}

.top-cities-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1.5rem;
  text-align: center;
}

.top-cities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.top-cities-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-slate-700);
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.top-cities-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* ===================== */
/* FOOTER                */
/* ===================== */

footer {
  background-color: var(--color-slate-900);
  color: var(--color-slate-300);
  padding: 3rem 0 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-subtitle {
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-link a {
  color: var(--color-slate-300);
  transition: color 0.2s ease;
}

.footer-link a:hover {
  color: var(--color-white);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  background-color: var(--color-slate-800);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  background-color: var(--color-slate-700);
}

.footer-bottom {
  border-top: 1px solid var(--color-slate-800);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--color-slate-300);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ===================== */
/* RESPONSIVE - 768px    */
/* ===================== */

@media (min-width: 768px) {
  .breadcrumb-cta {
    display: inline-block;
  }

  .hero-section {
    padding: 4rem 0 6rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-title {
    font-size: 1.875rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 2fr;
  }

  .footer-cities .footer-links {
    column-count: 2;
    column-gap: 2rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===================== */
/* RESPONSIVE - 1024px   */
/* ===================== */

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Exit Popup Styles */
.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.exit-popup-overlay.exit-popup-active {
  opacity: 1;
  visibility: visible;
}

.exit-popup-container {
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.exit-popup-active .exit-popup-container {
  transform: scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  color: var(--color-slate-600);
}

.exit-popup-close:hover {
  background-color: var(--color-slate-100);
  border-color: var(--color-slate-300);
  transform: rotate(90deg);
}

.exit-popup-content {
  padding: 2.5rem;
}

.exit-popup-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
  text-align: center;
}

.exit-popup-subtitle {
  font-size: 1.125rem;
  color: var(--color-slate-600);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}

.exit-popup-form {
  width: 100%;
}

@media (max-width: 768px) {
  .exit-popup-content {
    padding: 1.5rem;
  }
  
  .exit-popup-title {
    font-size: 1.5rem;
  }
  
  .exit-popup-subtitle {
    font-size: 1rem;
  }
  
  .exit-popup-close {
    width: 36px;
    height: 36px;
  }
}
