/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  /* Palette de couleurs */
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  
  /* Couleurs de fond */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: #1e293b;
  --bg-footer: #0f172a;
  
  /* Couleurs de texte */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Couleurs d'état */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
  background: linear-gradient(135deg, var(--bg-header) 0%, #334155 100%);
  color: var(--text-white);
  padding: 0 var(--spacing-lg);
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-white);
  text-decoration: none;
}

.logo i {
  font-size: 1.75rem;
  color: var(--primary-light);
}

.country-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.country-info img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.header-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary-light);
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   HEADER - AUTH DROPDOWN
   ============================================ */
.auth-dropdown {
  position: relative;
}

.nav-cta {
  background: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-left: var(--spacing-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  border: none;
  color: var(--text-white);
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

.dropdown-icon {
  font-size: 0.75rem;
  transition: transform var(--transition-base);
}

.auth-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: 320px;
  padding: var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 1001; /* Plus haut que l'overlay */
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none; /* Désactivé par défaut */
}

.auth-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto; /* IMPORTANT: Réactivé quand ouvert */
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--primary-light);
}

.dropdown-header i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* Dropdown Form */
.dropdown-form {
  margin-bottom: var(--spacing-sm);
}

.form-group-compact {
  margin-bottom: var(--spacing-sm);
}

.form-control-compact {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-control-compact:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-compact::placeholder {
  color: var(--text-light);
}

.btn-compact {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.btn-compact-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-compact-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-compact-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-compact:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Dropdown Divider */
.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: var(--spacing-md) 0;
}

/* Dropdown Links */
.dropdown-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  font-size: 0.9rem;
}

.dropdown-link:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary-color);
}

.dropdown-link i {
  font-size: 0.875rem;
}

.dropdown-link-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  color: var(--primary-color);
  font-weight: 600;
}

.dropdown-link-primary:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.15));
}

/* Overlay pour fermer le dropdown */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999; /* CHANGÉ: plus petit que dropdown-menu (1001) */
  background: rgba(0, 0, 0, 0.1); /* Ajout d'un fond semi-transparent */
  display: none;
  backdrop-filter: blur(2px);
}

.dropdown-overlay.active {
  display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  margin-top: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-white);
  padding: var(--spacing-xl) var(--spacing-lg) calc(var(--spacing-xl) + 40px);
  min-height: 450px; /* Réduit de 500px à 450px */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-feature i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
}

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

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: var(--primary-light);
  color: var(--text-white);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.btn-hero-secondary:hover {
  background: var(--text-white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay {
  animation: fadeIn 0.8s ease 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease 0.6s forwards;
  opacity: 0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
}

.container {
  padding: 0 var(--spacing-lg);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-main);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg);
}

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

.feature-card {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 2rem;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   AUTH SECTION
   ============================================ */
.auth-section {
  padding: calc(var(--spacing-xl) * 1.5) 0; /* Plus d'espace en haut */
  background: var(--bg-main);
  scroll-margin-top: 70px; /* Pour le scroll smooth sous le header */
}

.auth-container {
  max-width: 1000px;
  margin: 0 auto;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xl);
  animation: fadeIn 0.5s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-header i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================
   FORMS
   ============================================ */
.auth-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.form-label i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.form-label.required::after {
  content: '*';
  color: var(--error);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: var(--spacing-md);
}

.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.radio-label:hover {
  border-color: var(--primary-light);
  background: rgba(37, 99, 235, 0.05);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
  transition: all var(--transition-base);
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.radio-label i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* Auth links */
.auth-links {
  margin-top: var(--spacing-lg);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-base);
}

.auth-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.separator {
  color: var(--text-light);
}

/* Messages */
.error-message,
.success-message {
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
  font-weight: 500;
  display: none;
}

.error-message {
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.success-message {
  background: #d1fae5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--bg-footer);
  color: var(--text-white);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.footer-section h3 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-section p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: var(--spacing-xs);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

.footer-contact i {
  color: var(--primary-light);
  width: 20px;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  text-decoration: none;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  visibility: hidden;
  min-width: 300px;
  max-width: 90%;
  background: #1e293b;
  color: var(--text-white);
  text-align: center;
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
  font-weight: 500;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

.toast.warning {
  background: var(--warning);
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .header-nav {
    position: relative;
  }
  
  .radio-group {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 1rem;
    --spacing-xl: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .auth-card {
    padding: var(--spacing-lg);
  }
}

/* Phone input group - effet champ fusionné */
.phone-input-group {
  display: flex;
  gap: 0; /* supprime l'espace */
}

.phone-indicatif {
  flex: 0 0 90px;
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: #f3f6f9;
  text-align: center;
  font-weight: 600;
}

.phone-number {
  flex: 1;
  border-left: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Focus visuel global sur le groupe */
.phone-input-group .form-control:focus {
  position: relative;
  z-index: 2;
}

/* Checkbox group */
.checkbox-group {
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.checkbox-label:hover {
  background: rgba(37, 99, 235, 0.05);
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.checkbox-input:checked ~ .checkbox-custom {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-input:checked ~ .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.checkbox-input:focus ~ .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  border-color: var(--primary-color);
}

.checkbox-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.checkbox-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-base);
}

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

/* Logo upload container */
.logo-upload-container {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.file-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.file-input {
  display: none;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 2rem;
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.05);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 600;
  color: var(--primary-color);
  min-height: 140px;
}

.file-label:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-color);
}

.file-input:focus ~ .file-label {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-text {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Logo preview */
.logo-preview {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  background: #f3f6f9;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-base);
}

.logo-preview.active {
  opacity: 1;
  border-color: var(--primary-light);
  background: var(--bg-card);
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--spacing-xs);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.about-text {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-intro {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.about-mission,
.about-values {
  margin-top: 30px;
}

.about-mission h3,
.about-values h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-mission h3 i,
.about-values h3 i {
  color: #3498db;
  font-size: 1.3rem;
}

.about-mission p {
  color: #666;
  line-height: 1.7;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #555;
  font-size: 1.05rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

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

.values-list li:hover {
  padding-left: 10px;
  color: #3498db;
}

.values-list li i {
  color: #27ae60;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.stat-card {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 10px 0;
}

.stat-label {
  font-size: 0.95rem;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-partners {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
}

.partners-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

.partners-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partner-logo {
  padding: 20px 30px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-logo:hover {
  background: #3498db;
  color: white;
  transform: scale(1.05);
}

.partner-logo i {
  font-size: 1.5rem;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.contact-section .section-title {
  color: white;
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 50px;
}

.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-form .form-label i {
  color: #3498db;
  font-size: 1rem;
}

.contact-form .form-label.required::after {
  content: '*';
  color: #e74c3c;
  margin-left: 4px;
}

.contact-form .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.contact-form .form-control:focus {
  border-color: #3498db;
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form select.form-control {
  cursor: pointer;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: white;
}

.info-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.info-card a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: #ffd700;
}

.info-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
}

.contact-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

.contact-map iframe {
  display: block;
  border-radius: 15px;
}

/* ========================================
   PARTNERS LOGOS SEULEMENT - VERSION ULTRA-SAFE
   ======================================== */

/* Container principal */
.about-section .about-partners {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 40px;
  clear: both;
}

/* Titre */
.about-section .partners-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.about-section .partners-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

/* Grid de logos */
.about-section .about-partners .partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
  clear: both;
}

/* Carte de logo individuelle */
.about-section .about-partners .partner-logo {
  padding: 25px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  justify-content: center;
}

.about-section .about-partners .partner-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.about-section .about-partners .partner-logo:hover {
  transform: translateY(-5px);
  border-color: #667eea;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.about-section .about-partners .partner-logo:hover::before {
  opacity: 1;
}

/* Badge vérifié */
.about-section .about-partners .partner-logo.verified .verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #27ae60;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
  z-index: 2;
  transition: transform 0.3s ease;
}

.about-section .about-partners .partner-logo.verified:hover .verified-badge {
  transform: scale(1.1) rotate(10deg);
}

/* Images de logos */
.about-section .about-partners .partner-logo-img {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: all 0.3s ease;
  filter: grayscale(20%);
  display: block;
  margin: 0 auto;
}

.about-section .about-partners .partner-logo:hover .partner-logo-img {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(1.1);
}

.about-section .about-partners .partner-logo:has(.partner-logo-img) {
  padding: 20px;
  min-height: 120px;
  max-height: 140px;
  overflow: hidden;
}

.about-section .about-partners .partner-logo:has(.partner-logo-img) span {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Icônes fallback */
.about-section .about-partners .partner-logo i {
  font-size: 2rem;
  color: #3498db;
  transition: all 0.3s ease;
}

.about-section .about-partners .partner-logo:hover i {
  color: white;
  transform: scale(1.1);
}

.about-section .about-partners .partner-logo span {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3e50;
  transition: color 0.3s ease;
  text-align: center;
}

.about-section .about-partners .partner-logo:hover span {
  color: white;
}

/* Effet brillance */
.about-section .about-partners .partner-logo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.about-section .about-partners .partner-logo:hover::after {
  left: 100%;
}

/* Animation */
@keyframes fadeInUpPartners {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-section .about-partners .partner-logo {
  animation: fadeInUpPartners 0.6s ease backwards;
}

.about-section .about-partners .partner-logo:nth-child(1) { animation-delay: 0.1s; }
.about-section .about-partners .partner-logo:nth-child(2) { animation-delay: 0.15s; }
.about-section .about-partners .partner-logo:nth-child(3) { animation-delay: 0.2s; }
.about-section .about-partners .partner-logo:nth-child(4) { animation-delay: 0.25s; }
.about-section .about-partners .partner-logo:nth-child(5) { animation-delay: 0.3s; }
.about-section .about-partners .partner-logo:nth-child(6) { animation-delay: 0.35s; }
.about-section .about-partners .partner-logo:nth-child(7) { animation-delay: 0.4s; }
.about-section .about-partners .partner-logo:nth-child(8) { animation-delay: 0.45s; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .about-section .about-partners .partners-logos {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .about-section .about-partners .partner-logo-img {
    max-width: 100px;
    max-height: 50px;
  }
  
  .about-section .about-partners .partner-logo:has(.partner-logo-img) {
    min-height: 110px;
    max-height: 130px;
  }
}

@media (max-width: 768px) {
  .about-section .about-partners {
    padding: 40px 25px;
  }
  
  .about-section .partners-title {
    font-size: 1.5rem;
  }
  
  .about-section .about-partners .partners-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .about-section .about-partners .partner-logo {
    padding: 20px 15px;
    min-height: 110px;
  }
  
  .about-section .about-partners .partner-logo i {
    font-size: 1.5rem;
  }
  
  .about-section .about-partners .partner-logo span {
    font-size: 0.95rem;
  }
  
  .about-section .about-partners .partner-logo-img {
    max-width: 90px;
    max-height: 45px;
  }
  
  .about-section .about-partners .partner-logo:has(.partner-logo-img) {
    min-height: 100px;
    max-height: 120px;
    padding: 15px;
  }
  
  .about-section .about-partners .partner-logo:has(.partner-logo-img) span {
    font-size: 0.85rem;
  }
  
  .about-section .about-partners .verified-badge {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .about-section .about-partners .partners-logos {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .about-section .about-partners .partner-logo {
    min-height: 100px;
  }
  
  .about-section .about-partners .partner-logo-img {
    max-width: 80px;
    max-height: 40px;
  }
  
  .about-section .about-partners .partner-logo:has(.partner-logo-img) {
    min-height: 90px;
    max-height: 110px;
    padding: 15px;
  }
}

/* ========================================
   MODAL FULLSCREEN - SAME AS modal_view_otr.php
======================================== */

.modal-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999; /* ← Z-INDEX ÉLEVÉ POUR NE PAS ÊTRE CACHÉ */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  /* visibility: hidden; */
  transition: all 0.3s ease;
}

.modal-fullscreen.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.modal-container {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  padding: 2rem;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-sub-header {
  padding: 1rem;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.modal-header h2 i {
  color: #667eea;
  font-size: 1.75rem;
}

.btn-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.btn-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* OTR Details Layout */
.otr-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.details-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #667eea;
}

.details-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
}

.details-section h3 i {
  color: #667eea;
  font-size: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-label.required::after {
  content: ' *';
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
  color: #1e293b;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.form-control::placeholder {
  color: #cbd5e1;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #e2e8f0;
  color: #475569;
}

.btn-secondary:hover {
  background: #cbd5e1;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Messages */
.error-message {
  padding: 1rem;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  border: 1px solid #fca5a5;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  padding: 1rem;
  background: #d1fae5;
  color: #059669;
  border-radius: 8px;
  border: 1px solid #6ee7b7;
  display: none;
}

.success-message.show {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

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

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-header {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modal-header h2 {
    font-size: 1.25rem;
  }

  .details-section {
    padding: 1rem;
  }

  .details-grid {
    gap: 1rem;
  }
}

/* ============================================
   PAGE D'ACCUEIL - MOBILE (bouton ☰ + bouton Connexion)
   Limité à .main-header / sections de l'accueil : ce fichier est aussi
   chargé par l'espace expéditeur.
   ============================================ */
.landing-menu-toggle,
.landing-login-btn {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}
.landing-menu-toggle { width: 42px; height: 42px; font-size: 1.3rem; }
.landing-login-btn {
  gap: .45rem;
  height: 40px;
  padding: 0 .9rem;
  font-size: .9rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, .35);
}
.landing-menu-toggle:hover,
.landing-menu-toggle:focus-visible { background: rgba(255, 255, 255, 0.2); }
.landing-login-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Fond sombre derrière le panneau ouvert */
.landing-backdrop {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: rgba(15, 23, 42, .5);
  z-index: 999;
}
.landing-backdrop.visible { display: block; }

@media (max-width: 992px) {
  /* Sections "À propos" et "Contact" sur une seule colonne */
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  /* backdrop-filter ferait du header le repère des éléments "fixed" (le panneau serait écrasé) */
  .main-header { padding: 0 .75rem; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-header .header-container { gap: .6rem; justify-content: flex-start; }
  .main-header .landing-menu-toggle { display: inline-flex; }
  .main-header .landing-login-btn { display: inline-flex; margin-left: auto; }

  .main-header .header-left { min-width: 0; flex: 1 1 auto; }
  .main-header .logo { min-width: 0; }
  .main-header .logo-image { width: auto; max-width: 100%; max-height: 26px; height: auto; display: block; }

  /* Le menu devient un panneau latéral qui glisse depuis la gauche */
  .main-header .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem;
    background: linear-gradient(180deg, var(--bg-header) 0%, #334155 100%);
    box-shadow: 4px 0 24px rgba(15, 23, 42, .35);
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .main-header .header-nav.open { transform: none; visibility: visible; }
  .main-header .header-nav .nav-link { padding: .8rem 1rem; border-radius: 10px; }

  /* Connexion dans le panneau : bouton pleine largeur, formulaire déplié dessous */
  .main-header .auth-dropdown { width: 100%; margin-top: .5rem; }
  .main-header .auth-dropdown .nav-cta { width: 100%; margin-left: 0; padding: .8rem 1rem; justify-content: center; box-sizing: border-box; }
  .main-header .dropdown-menu {
    position: static;
    width: 100%;
    box-sizing: border-box;
    margin-top: .6rem;
    transform: none;
    display: none;
  }
  .main-header .auth-dropdown.active .dropdown-menu { display: block; }
  /* Champs à 16px : évite le zoom automatique d'iOS au focus */
  .main-header .form-control-compact { font-size: 16px; }

  body.landing-menu-open { overflow: hidden; }
}

@media (max-width: 340px) {
  .landing-login-btn span { display: none; }
  .landing-login-btn { width: 40px; padding: 0; }
}

/* Email cliquable du pied de page */
.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: white;
  text-decoration: underline;
}
