/* ==============================================
   FREEDOM EXIT - CSS PRINCIPAL
   Design System Premium
   ============================================== */

/* === VARIABLES === */
:root {
  /* Couleurs */
  --bleu-nuit: #0A1F44;
  --bleu-nuit-fonce: #050F22;
  --dore: #D4AF37;
  --dore-clair: #E8C77D;
  --blanc: #FFFFFF;
  --gris-clair: #F8F9FA;
  --gris-texte: #6C757D;
  
  /* Typographie */
  --font-titres: 'Montserrat', sans-serif;
  --font-corps: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 80px;
  --container-max: 1200px;
  --grid-gap: 32px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-corps);
  color: var(--bleu-nuit);
  line-height: 1.6;
  background: var(--blanc);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titres);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 48px;
  font-weight: 800;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 1rem;
  color: var(--gris-texte);
}

.text-dore {
  color: var(--dore);
}

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

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--gris-clair);
}

.section-dark {
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.section-dark h2,
.section-dark h3 {
  color: var(--blanc);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* === GRID SYSTEM === */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

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

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

/* === HEADER/NAV === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--blanc);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-titres);
  font-size: 24px;
  font-weight: 800;
  color: var(--bleu-nuit);
}

.logo span {
  color: var(--dore);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--bleu-nuit);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--dore);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dore);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  font-size: 24px;
  color: var(--bleu-nuit);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--dore);
  color: var(--blanc);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: var(--dore-clair);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.btn-secondary:hover {
  background: var(--bleu-nuit-fonce);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--dore);
  color: var(--blanc);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

/* === HERO SECTION === */
.hero {
  margin-top: 80px;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bleu-nuit-fonce) 0%, var(--bleu-nuit) 100%);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 56px;
  margin-bottom: 1.5rem;
  color: var(--blanc);
}

.hero-text .highlight {
  color: var(--dore);
  display: block;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--dore);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* === CARDS === */
.card {
  background: var(--blanc);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--dore), var(--dore-clair));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 28px;
  color: var(--blanc);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--bleu-nuit);
}

.card p {
  color: var(--gris-texte);
  line-height: 1.7;
}

/* === SECTION TITLES === */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .subtitle {
  color: var(--dore);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title h2 {
  font-size: 42px;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* === CTA SECTIONS === */
.cta-section {
  background: linear-gradient(135deg, var(--dore) 0%, var(--dore-clair) 100%);
  padding: 60px 0;
  text-align: center;
  border-radius: 16px;
  margin: 60px 0;
}

.cta-section h2 {
  color: var(--blanc);
  font-size: 36px;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--blanc);
  font-size: 18px;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* === FOOTER === */
.footer {
  background: var(--bleu-nuit-fonce);
  color: var(--blanc);
  padding: 60px 0 30px;
}

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

.footer-about h3 {
  color: var(--blanc);
  margin-bottom: 1rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--dore);
  margin-bottom: 1rem;
  font-size: 16px;
  font-weight: 600;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--dore);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
  }
  
  h1 {
    font-size: 40px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px;
    --grid-gap: 20px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .btn-large {
    padding: 14px 28px;
    font-size: 16px;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* === UTILITIES === */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.text-white { color: var(--blanc); }
.text-gold { color: var(--dore); }
.bg-light { background: var(--gris-clair); }

.d-none { display: none; }
.d-block { display: block; }

/* === FORMULAIRE === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--bleu-nuit);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-family: var(--font-corps);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dore);
}

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

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: #D4EDDA;
  color: #155724;
}

.badge-info {
  background: #D1ECF1;
  color: #0C5460;
}

.badge-warning {
  background: #FFF3CD;
  color: #856404;
}
