/**
 * ============================================
 * EXPAT-MAURICE - MODERN DESIGN SYSTEM
 * ============================================
 * Based on Figma design - Clean, modern, minimal
 * Font: Dongle (Google Fonts)
 * Style: Rounded corners, generous whitespace, card-based
 */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Dongle:wght@300;400;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Couleurs principales */
  --white: #ffffff;
  --black: #000000;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --text-gray: #666666;
  --primary: #0096c7;
  --primary-dark: #0077b6;
  --sand: #f5f0e8;

  /* Couleurs d'état */
  --success: #28a745;
  --warning: #ffa000;
  --error: #dc3545;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 16px;
  --border-radius-large: 24px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Dongle', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Dongle', sans-serif;
  font-weight: 700;
  color: var(--black);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  background-color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  position: relative;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-size: 24px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.7;
}

nav a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  opacity: 1;
}

nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--black);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  height: 700px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-large);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.3));
  border-radius: var(--border-radius-large);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 6rem 4rem;
}

.hero-overlay h1 {
  font-size: 72px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
  line-height: 0.95;
}

.hero-overlay p {
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2rem;
}

.hero-overlay .btn-white {
  background-color: var(--white);
  color: var(--black);
  padding: 0.5rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 400;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-overlay .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ============================================
   PAGE TITLE STYLES
   ============================================ */
.page-title {
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 28px;
  text-align: center;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
  padding: var(--spacing-xl) 0;
  overflow-x: hidden;
}

.section-title {
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--black);
}

/* ============================================
   EXPERTISES SECTION (Icon Cards)
   ============================================ */
.expertises-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: var(--spacing-md);
}

.expertise-card {
  text-align: left;
  padding: 1.5rem;
  transition: transform 0.3s ease;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.expertise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

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

.expertise-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.expertise-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.expertise-card p {
  font-size: 22px;
  color: var(--text-gray);
  line-height: 1.4;
  margin: 0;
}

/* ============================================
   TWO COLUMN LAYOUTS
   ============================================ */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-columns.reverse {
  direction: rtl;
}

.two-columns.reverse > * {
  direction: ltr;
}

/* Pourquoi nous choisir - layout */
.pourquoi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pourquoi-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pourquoi-card {
  background-color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.pourquoi-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.pourquoi-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.pourquoi-card p {
  font-size: 22px;
  color: var(--text-gray);
  line-height: 1.4;
  margin: 0;
}

.pourquoi-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pourquoi-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.content-block h3 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-block p {
  font-size: 28px;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.image-block img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ============================================
   CARD GRIDS (Packs & Testimonials)
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: var(--spacing-md);
}

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

.card {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 0;
  min-height: 300px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.card h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 1rem 1.5rem 0 1.5rem;
}

.card p {
  font-size: 26px;
  color: var(--text-gray);
  line-height: 1.4;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ============================================
   DESTINATION HIGHLIGHT SECTION
   ============================================ */
.destination-section {
  background-color: var(--light-gray);
  padding: var(--spacing-xl) 0;
}

.destination-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.destination-text-column {
  order: 2;
}

.destination-slider {
  order: 1;
}

.destination-text h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.destination-text p {
  font-size: 28px;
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.destination-text small {
  font-size: 22px;
  color: var(--text-gray);
  font-style: italic;
}

/* Desktop: Grid of 3 images */
.destination-slider {
  position: relative;
  border-radius: var(--border-radius);
}

.destination-slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.destination-slide {
  /* No special styling needed for grid */
}

.destination-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* Hide dots on desktop */
.destination-dots {
  display: none;
}

.destination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.destination-dot.active {
  background-color: var(--primary);
}

/* RESPONSIVE - Mobile slider */
@media (max-width: 768px) {
  .destination-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .destination-text-column {
    order: 1;
  }

  .destination-slider {
    order: 2;
    overflow: hidden;
  }

  /* Mobile: Switch to slider */
  .destination-slides {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    transition: transform 0.5s ease;
  }

  .destination-slide {
    min-width: 100%;
    flex-shrink: 0;
  }

  .destination-slide img {
    height: 250px;
  }

  /* Show dots on mobile */
  .destination-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .destination-text h2 {
    font-size: 28px;
  }

  .destination-text p {
    font-size: 18px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--black);
}

.btn-white:hover {
  background-color: var(--light-gray);
}

/* Focus states for all interactive elements */
.btn:focus,
.btn-primary:focus,
.btn-white:focus,
.hero-overlay .btn-white:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hamburger:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: var(--spacing-xl);
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-size: 26px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.7;
}

.social-links {
  margin: 1.5rem 0;
}

.social-links span {
  font-size: 22px;
  opacity: 0.8;
  display: block;
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  opacity: 1;
  transform: translateY(-3px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* Large Social Icons (for standalone sections) */
.social-icons-large {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icons-large a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icons-large a:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.social-icons-large svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   STICKY CTA BUTTON
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 28px;
  font-weight: 400;
  box-shadow: 0 4px 16px rgba(0, 150, 199, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.sticky-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 150, 199, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-overlay h1 {
    font-size: 56px;
  }
  
  .expertises-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pourquoi-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    font-size: 36px;
  }

  .hero {
    height: 400px;
  }
  
  .hero-overlay {
    padding: 2rem;
  }
  
  .hero-overlay h1 {
    font-size: 48px;
  }
  
  .hero-overlay p {
    font-size: 20px;
  }
  
  .expertises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-columns,
  .destination-content {
    grid-template-columns: 1fr;
  }

  .pourquoi-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pourquoi-image {
    order: -1;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .pourquoi-image img {
    width: 120px;
    height: 120px;
  }
  
  .card-grid,
  .card-grid.three-cols {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 32px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-subtitle {
    font-size: 18px;
  }

  .hero-overlay h1 {
    font-size: 36px;
  }

  .hero-overlay p {
    font-size: 18px;
  }

  .card h3 {
    font-size: 28px;
  }

  .card p {
    font-size: 20px;
  }

  .expertise-card h3 {
    font-size: 24px;
  }

  .expertise-card p {
    font-size: 18px;
  }

  .pourquoi-card h3 {
    font-size: 24px;
  }

  .pourquoi-card p {
    font-size: 18px;
  }

  .content-block h3 {
    font-size: 28px;
  }

  .content-block p {
    font-size: 18px;
  }

  .faq-category-title {
    font-size: 28px;
  }

  .faq-question {
    font-size: 22px;
  }

  .faq-answer {
    font-size: 18px;
  }

  .destination-small-images {
    grid-template-columns: 1fr;
  }
  
  .fiscal-highlights {
    grid-template-columns: 1fr;
  }

  .fiscal-number {
    font-size: 56px;
  }

  .fiscal-card h3 {
    font-size: 28px;
  }

  .fiscal-card p {
    font-size: 18px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    font-size: 18px;
    padding: 0.75rem 1.5rem;
    bottom: 1rem;
    right: 1rem;
  }

  .btn-white {
    font-size: 18px;
    padding: 0.6rem 1.2rem;
  }
}

/* ============================================
   FAQ STYLING
   ============================================ */
.faq-category {
  margin-bottom: 4rem;
}

.faq-category-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
}

.faq-item {
  background-color: var(--white);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateX(5px);
}

.faq-question {
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.faq-answer {
  font-size: 28px;
  color: var(--text-gray);
  line-height: 1.5;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

.faq-answer strong {
  color: var(--black);
  font-weight: 700;
}

/* ============================================
   RETOUR EN FRANCE STYLING
   ============================================ */
.retour-highlight-box {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid #ffa000;
  margin-bottom: 2rem;
}

.retour-highlight-box h3 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
}

.retour-highlight-box p {
  font-size: 28px;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.retour-highlight-box ul {
  margin-top: 1.5rem;
  padding-left: 2rem;
}

.retour-highlight-box li {
  font-size: 26px;
  margin-bottom: 0.75rem;
  color: #333;
  line-height: 1.4;
}

.retour-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--spacing-md);
}

.retour-service {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.retour-service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.retour-service-icon {
  font-size: 56px;
  margin-bottom: 1rem;
}

.retour-service h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.retour-service p {
  font-size: 24px;
  color: var(--text-gray);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .retour-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .retour-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SIMULATOR STYLING
   ============================================ */
.simulator-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.simulator-inputs-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.simulator-results-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-size: 32px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 1rem;
  font-size: 28px;
  font-family: 'Dongle', sans-serif;
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 150, 199, 0.25);
}

.input-group small {
  display: block;
  font-size: 22px;
  color: var(--text-gray);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Results */
.comparison-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.country-result-card {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.country-result-card h3 {
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.country-result-card.france {
  border-top: 4px solid #002395;
}

.country-result-card.mauritius {
  border-top: 4px solid #EA2839;
}

.tax-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tax-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 26px;
  border-bottom: 1px solid var(--medium-gray);
}

.tax-line.total {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--black);
  border-bottom: none;
  font-size: 30px;
}

.tax-line .amount {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* Savings Card */
.savings-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0077b6 100%);
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  color: var(--white);
}

.savings-card h3 {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.savings-amount {
  font-size: 72px;
  font-weight: 700;
  color: var(--white);
  margin: 1rem 0;
  line-height: 1;
}

.savings-percentage {
  font-size: 36px;
  color: var(--white);
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.savings-card .btn {
  background-color: var(--white);
  color: var(--primary);
}

.savings-card .btn:hover {
  background-color: var(--sand);
  color: var(--black);
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-results {
    grid-template-columns: 1fr;
  }
  
  .simulator-inputs-card,
  .simulator-results-card {
    padding: 2rem;
  }
  
  .savings-amount {
    font-size: 56px;
  }
}

/* ============================================
   FISCAL HIGHLIGHTS SECTION
   ============================================ */
.fiscal-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: var(--spacing-md);
}

.fiscal-card {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
}

.fiscal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.fiscal-number {
  font-size: 80px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.fiscal-card h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.fiscal-card p {
  font-size: 26px;
  color: var(--text-gray);
  line-height: 1.4;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: var(--spacing-md);
}

.comparison-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.comparison-card.highlight {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(0, 150, 199, 0.15);
}

.comparison-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.comparison-card h3 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-list {
  list-style: none;
  padding: 0;
}

.comparison-list li {
  font-size: 26px;
  padding: 0.5rem 0;
  line-height: 1.4;
  color: var(--text-gray);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comparison-card.highlight .comparison-list li {
  color: var(--black);
  font-weight: 500;
}

@media (max-width: 768px) {
  .comparison-card {
    max-width: 100%;
    overflow: hidden;
  }

  .comparison-card h3 {
    font-size: 32px;
  }

  .comparison-list li {
    font-size: 20px;
  }
}

/* ============================================
   PROPERTY GRID (Immobilier Page)
   ============================================ */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.property-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.property-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.property-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-content h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.property-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 1rem 0;
}

.property-description {
  font-size: 26px;
  color: var(--text-gray);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.property-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  flex-grow: 1;
}

.property-features li {
  font-size: 24px;
  padding: 0.5rem 0;
  color: var(--text-gray);
  line-height: 1.3;
}

.property-content .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Responsive adjustments for property grid */
@media (max-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
  
  .property-card img {
    height: 200px;
  }
  
  .property-content h3 {
    font-size: 36px;
  }
  
  .property-price {
    font-size: 28px;
  }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
}

.lang-switcher button {
  background: none;
  border: none;
  font-family: 'Dongle', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.lang-switcher button:hover {
  color: var(--primary);
}

.lang-switcher button.active {
  color: var(--primary);
  font-weight: 700;
  background-color: rgba(0, 150, 199, 0.1);
}

.lang-switcher button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-switcher span {
  color: var(--medium-gray);
  font-size: 16px;
}

/* Mobile language switcher */
@media (max-width: 768px) {
  .logo {
    order: 1;
  }

  .nav-menu {
    order: 2;
  }

  .lang-switcher {
    position: static;
    order: 3;
    margin-left: auto;
    margin-right: 0.5rem;
    background-color: transparent;
    padding: 0.15rem 0.3rem;
    border-radius: 8px;
    gap: 0.25rem;
  }

  .hamburger {
    order: 4;
    flex-shrink: 0;
  }

  .lang-switcher button {
    font-size: 18px;
    padding: 0.1rem 0.25rem;
  }

  .lang-switcher span {
    font-size: 14px;
  }
}

/* ============================================
   MOBILE TABS (Vivre page cards)
   ============================================ */
/* Desktop: hide tabs navigation, show all panels */
.mobile-tabs-nav {
  display: none;
}

.mobile-tab-panel {
  display: block !important;
}

/* Mobile: enable tabs */
@media (max-width: 768px) {
  .mobile-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
  }

  .mobile-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 50px;
    background-color: var(--white);
    font-family: 'Dongle', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .mobile-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  .mobile-tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 700;
  }

  .mobile-tab-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  /* Hide all panels by default, show active */
  .mobile-tabs-content {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .mobile-tab-panel {
    display: none !important;
  }

  .mobile-tab-panel.active {
    display: block !important;
  }

  /* Card styling for tabs */
  .mobile-tabs-content.card-grid .card.mobile-tab-panel {
    padding: 1.5rem;
    min-height: auto;
  }

  /* Fiscal card styling for tabs */
  .mobile-tabs-content.fiscal-highlights .fiscal-card.mobile-tab-panel {
    padding: 1.5rem;
  }

  /* Comparison card styling for tabs */
  .mobile-tabs-content.comparison-grid .comparison-card.mobile-tab-panel {
    padding: 1.5rem;
  }
}