/*
Theme Name: Expat Child Theme
Theme URI: https://expat-project.ch
Description: Child theme for Expat project with international design system
Author: Agencecom Frontend Team
Author URI: https://agencecom.ch
Template: twentytwentyfour
Version: 1.0.0
License: GPL v2 or later
Text Domain: expat-child
*/

/* Expat Design System - Based on delivered assets */

/* Import Open Sans font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  /* Couleurs primaires - Expat Design System */
  --expat-blue-primary: #1E88E5;    /* Bleu principal - Confiance, global */
  --expat-blue-light: #64B5F6;      /* Bleu clair - Innovation, connexion */
  --expat-white: #FFFFFF;           /* Blanc - Pureté, simplicité */
  
  /* Couleurs secondaires (continents) */
  --expat-green-europe: #43A047;    /* Vert - Europe, nature, stabilité */
  --expat-orange-america: #FF9800;  /* Orange - Amériques, énergie, opportunité */
  --expat-red-asia: #E53935;        /* Rouge - Asie, passion, croissance */
  --expat-purple-africa: #8E24AA;   /* Violet - Afrique, culture, richesse */
  
  /* Couleurs neutres */
  --expat-dark-gray: #333333;       /* Gris foncé - Texte, titres */
  --expat-medium-gray: #666666;     /* Gris moyen - Sous-titres */
  --expat-light-gray: #F5F5F5;      /* Gris clair - Arrière-plans */
  --expat-border-gray: #DDDDDD;     /* Gris bordure */
  
  /* Transparences */
  --expat-blue-10: rgba(30, 136, 229, 0.1);
  --expat-blue-25: rgba(30, 136, 229, 0.25);
  --expat-blue-50: rgba(30, 136, 229, 0.5);
  --expat-blue-75: rgba(30, 136, 229, 0.75);
  
  /* Typographie */
  --font-expat-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Tailles de base */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 32px;
  
  /* Hauteurs de ligne */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Espacement */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Breakpoints */
  --breakpoint-mobile: 767px;
  --breakpoint-tablet: 1023px;
  --breakpoint-desktop: 1024px;
  
  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  
  /* Bordures */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Base Styles */
body {
  font-family: var(--font-expat-primary);
  color: var(--expat-dark-gray);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, .h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  color: var(--expat-blue-primary);
}

h2, .h2 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  color: var(--expat-dark-gray);
}

h3, .h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-sm);
  color: var(--expat-dark-gray);
}

p, .text-body {
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-md);
  color: var(--expat-dark-gray);
}

.text-body-small {
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-sm);
  color: var(--expat-medium-gray);
}

/* Links */
a {
  color: var(--expat-blue-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

a:hover {
  color: #1565C0;
  text-decoration: underline;
}

/* Buttons */
.wp-block-button__link {
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.wp-block-button.is-style-fill .wp-block-button__link {
  background-color: var(--expat-blue-primary) !important;
  color: var(--expat-white) !important;
  border-color: var(--expat-blue-primary);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background-color: #1565C0 !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--expat-blue-primary) !important;
  border-color: var(--expat-blue-primary) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--expat-blue-10) !important;
  transform: translateY(-2px);
}

/* Continent-specific buttons */
.wp-block-button.is-style-continent-europe .wp-block-button__link {
  background-color: var(--expat-green-europe) !important;
  color: var(--expat-white) !important;
  border-color: var(--expat-green-europe);
}

.wp-block-button.is-style-continent-america .wp-block-button__link {
  background-color: var(--expat-orange-america) !important;
  color: var(--expat-white) !important;
  border-color: var(--expat-orange-america);
}

.wp-block-button.is-style-continent-asia .wp-block-button__link {
  background-color: var(--expat-red-asia) !important;
  color: var(--expat-white) !important;
  border-color: var(--expat-red-asia);
}

.wp-block-button.is-style-continent-africa .wp-block-button__link {
  background-color: var(--expat-purple-africa) !important;
  color: var(--expat-white) !important;
  border-color: var(--expat-purple-africa);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--expat-blue-primary), var(--expat-blue-light));
  color: var(--expat-white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
  color: var(--expat-white);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Grid */
.features-section {
  padding: var(--space-xl) 0;
  background-color: var(--expat-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.feature-card {
  background: var(--expat-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--expat-border-gray);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--expat-white);
}

.feature-icon.europe { background-color: var(--expat-green-europe); }
.feature-icon.america { background-color: var(--expat-orange-america); }
.feature-icon.asia { background-color: var(--expat-red-asia); }
.feature-icon.africa { background-color: var(--expat-purple-africa); }
.feature-icon.global { background-color: var(--expat-blue-primary); }

/* Continent Sections */
.continent-section {
  padding: var(--space-xl) 0;
}

.continent-section.europe {
  background-color: rgba(67, 160, 71, 0.05);
  border-left: 4px solid var(--expat-green-europe);
}

.continent-section.america {
  background-color: rgba(255, 152, 0, 0.05);
  border-left: 4px solid var(--expat-orange-america);
}

.continent-section.asia {
  background-color: rgba(229, 57, 53, 0.05);
  border-left: 4px solid var(--expat-red-asia);
}

.continent-section.africa {
  background-color: rgba(142, 36, 170, 0.05);
  border-left: 4px solid var(--expat-purple-africa);
}

/* CTA Section */
.cta-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--expat-green-europe), #2E7D32);
  color: var(--expat-white);
  text-align: center;
}

.cta-section h2,
.cta-section h3,
.cta-section p {
  color: var(--expat-white);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--expat-white);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.badge.europe { background-color: var(--expat-green-europe); }
.badge.america { background-color: var(--expat-orange-america); }
.badge.asia { background-color: var(--expat-red-asia); }
.badge.africa { background-color: var(--expat-purple-africa); }
.badge.global { background-color: var(--expat-blue-primary); }

/* Language Indicators */
.language-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: var(--expat-light-gray);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--expat-medium-gray);
}

.language-flag {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
}

/* Responsive Design */

/* Tablet Landscape (1024px - 768px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .hero-text, .hero-image {
    flex: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* Tablet Portrait (767px - 480px) */
@media (max-width: 767px) and (min-width: 480px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .hero-text, .hero-image {
    flex: none;
    width: 100%;
  }
  
  h1 { font-size: var(--font-size-xl); }
  h2 { font-size: var(--font-size-lg); }
  h3 { font-size: var(--font-size-base); }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile (479px and below) */
@media (max-width: 479px) {
  .hero-section {
    padding: var(--space-lg) 0;
  }
  
  h1 { font-size: var(--font-size-lg); }
  h2 { font-size: var(--font-size-base); }
  h3 { font-size: var(--font-size-sm); }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .feature-card {
    padding: var(--space-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}

/* Utility Classes */
.text-blue { color: var(--expat-blue-primary) !important; }
.text-green { color: var(--expat-green-europe) !important; }
.text-orange { color: var(--expat-orange-america) !important; }
.text-red { color: var(--expat-red-asia) !important; }
.text-purple { color: var(--expat-purple-africa) !important; }
.text-white { color: var(--expat-white) !important; }

.bg-blue { background-color: var(--expat-blue-primary) !important; }
.bg-green { background-color: var(--expat-green-europe) !important; }
.bg-orange { background-color: var(--expat-orange-america) !important; }
.bg-red { background-color: var(--expat-red-asia) !important; }
.bg-purple { background-color: var(--expat-purple-africa) !important; }
.bg-light-gray { background-color: var(--expat-light-gray) !important; }

.border-blue { border-color: var(--expat-blue-primary) !important; }
.border-green { border-color: var(--expat-green-europe) !important; }
.border-orange { border-color: var(--expat-orange-america) !important; }
.border-red { border-color: var(--expat-red-asia) !important; }
.border-purple { border-color: var(--expat-purple-africa) !important; }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--expat-border-gray);
  border-top-color: var(--expat-blue-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Expat-specific components */
.globe-icon {
  color: var