/* ============================================================
   Seos Technology — Main CSS
   Color Palette:
     --navy:    #1B2A4A  (dark navy)
     --white:   #FFFFFF
     --red:     #E63946  (vivid red)
     --gray:    #F8F9FA  (light gray)
     --text:    #333333
     --muted:   #6C757D
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --navy:        #1B2A4A;
  --navy-light:  #243560;
  --white:       #FFFFFF;
  --red:         #E63946;
  --red-dark:    #C1121F;
  --gray:        #F8F9FA;
  --gray-200:    #E9ECEF;
  --gray-300:    #DEE2E6;
  --text:        #333333;
  --muted:       #6C757D;
  --border:      rgba(27, 42, 74, 0.12);
  --shadow-sm:   0 2px 8px rgba(27, 42, 74, 0.08);
  --shadow-md:   0 4px 20px rgba(27, 42, 74, 0.12);
  --shadow-lg:   0 8px 40px rgba(27, 42, 74, 0.16);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  0.2s ease;
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm { max-width: 960px; }
.container-lg { max-width: 1440px; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  width: 100%;
}

.navbar-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--gray);
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #243560 50%, #1a3a6e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-text { color: var(--white); }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-title span { color: var(--red); }

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Eiffel Tower silhouette (decorative) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 120px;
  height: 300px;
  background: rgba(255, 255, 255, 0.02);
  clip-path: polygon(45% 0%, 55% 0%, 60% 30%, 70% 30%, 72% 35%, 65% 35%, 68% 60%, 75% 60%, 80% 65%, 20% 65%, 25% 60%, 32% 60%, 35% 35%, 28% 35%, 30% 30%, 40% 30%);
  pointer-events: none;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Grid Utilities ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Flex Utilities ---- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ---- Spacing Utilities ---- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---- Text Utilities ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ---- Background Utilities ---- */
.bg-navy { background-color: var(--navy); }
.bg-gray { background-color: var(--gray); }
.bg-white { background-color: var(--white); }

/* ---- Divider ---- */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-red { background: rgba(230, 57, 70, 0.1); color: var(--red); }
.badge-navy { background: rgba(27, 42, 74, 0.1); color: var(--navy); }
.badge-green { background: rgba(25, 135, 84, 0.1); color: #198754; }
.badge-yellow { background: rgba(255, 193, 7, 0.15); color: #856404; }
.badge-gray { background: var(--gray-200); color: var(--muted); }

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { color: rgba(255, 255, 255, 0.6); font-size: 0.9375rem; transition: color var(--transition); }
.footer-link:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Security Badges ---- */
.security-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.security-badge svg { width: 16px; height: 16px; color: #198754; }

/* ---- France Map Section ---- */
.france-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.france-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(230, 57, 70, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   Accessibility Enhancements — WCAG 2.1 AA
   ============================================================ */

/* Skip to main content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Focus visible styles — keyboard navigation */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure sufficient color contrast for muted text */
.text-muted, .muted { color: #5a6370; } /* Adjusted for 4.5:1 contrast on white */

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ensure interactive elements have minimum touch target size (44x44px) */
button, a, input[type="checkbox"], input[type="radio"], select {
  min-height: 44px;
}
button.admin-btn-sm, button.admin-page-btn, .admin-modal-close {
  min-height: unset; /* Override for compact UI elements */
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn, .auth-submit-btn, .pay-btn, .admin-btn-primary {
    border: 2px solid ButtonText;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
