/* ========== STYLES PRINCIPAUX ========== */

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

:root {
  --primary: #4f46e5;
  --primary-dark: #3b30b0;
  --primary-light: #eef2ff;
  --text: #0f172a;
  --text-light: #334155;
  --text-muted: #64748b;
  --bg: #f9fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --sidebar-width: 260px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(145deg, #f9fafc 0%, #f1f4fa 100%);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* ========== HEADER ========== */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo-brand:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, var(--primary) 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text span {
  color: var(--primary);
  background: none;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 550;
  color: #1f2a44;
  transition: 0.2s;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a i {
  color: var(--primary);
  font-size: 1rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.lang-switch {
  background: #f0f3fe;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  gap: 8px;
  margin-left: 6px;
}

.lang-switch a {
  border-bottom: none !important;
  padding: 0 4px;
  text-decoration: none;
  color: #1f2a44;
}

.lang-switch a.active {
  color: var(--primary);
  font-weight: 700;
}

/* ========== BOUTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.8rem;
  border-radius: 48px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 18px -8px rgba(79, 70, 229, 0.32);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 26px -10px rgba(79, 70, 229, 0.42);
}

.btn-secondary {
  background: white;
  color: #1e293b;
  border: 1px solid #cddcfd;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: #fafbff;
  transform: translateY(-2px);
}

/* ========== HERO ========== */
.hero {
  background: radial-gradient(ellipse at 80% 30%, #ffffff, #f4f7fe);
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1.2;
}

.hero-text h1 {
  font-size: 3.3rem;
  font-weight: 800;
  background: linear-gradient(125deg, #0f172a, var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  color: #2c3e66;
  margin-bottom: 2rem;
  line-height: 1.5;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 440px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 22px 38px -14px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
}

.hero-logo:hover {
  transform: scale(1.02);
}

/* ========== SECTIONS ========== */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.home-intro {
  background: #ffffff;
  transition: background 0.2s;
}

.home-intro:nth-child(even) {
  background: #fbfdff;
}

.section-container h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
  position: relative;
  display: inline-block;
  background: linear-gradient(115deg, #0f172a, #2c3e66);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-container h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--primary);
  border-radius: 20px;
}

/* ========== CARTES ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 32px;
  padding: 1.6rem;
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf2ff;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 38px -14px rgba(0, 0, 0, 0.12);
  border-color: #cdd9ff;
}

.card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 1.2rem;
  background: #f0f3fa;
}

.card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  background: #eff2ff;
  padding: 10px;
  border-radius: 18px;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.8rem 0;
  color: #0a1a2f;
}

.card p {
  color: #3a4b6e;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.card .btn {
  margin-top: 0.2rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* ========== CTA BLOCK ========== */
.cta-block {
  text-align: center;
  background: linear-gradient(125deg, #0f172a, #1e2a4a);
  border-radius: 48px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  color: white;
  box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.2);
}

.cta-block h2 {
  color: white;
  display: inline-block;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.cta-block h2:after {
  background: #b9a9ff;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
}

.cta-block p {
  color: #e0e7ff;
  max-width: 600px;
  margin: 1rem auto 2rem;
}

.cta-block .btn-primary {
  background: #a78bfa;
  color: #0f172a;
  box-shadow: 0 6px 12px -6px rgba(79, 70, 229, 0.25);
}

.cta-block .btn-primary:hover {
  background: #c4b5fd;
}

.cta-block .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #a78bfa;
  color: white;
}

/* ========== FORMULAIRES ========== */
.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 1000px;
  margin: 0 auto;
}

.form-card h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-card .subtitle {
  color: var(--text-light);
  margin-bottom: 28px;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: all 0.2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  align-items: center;
}

.message {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 24px;
  font-weight: 500;
  display: none;
}

.message.success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.message.error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ========== MENU TOGGLE (BURGER) ========== */
.menu-toggle {
  display: none;
  font-size: 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* ========== FOOTER ========== */
footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1180px) {
  .main-nav {
    gap: 0.9rem;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .lang-switch {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

@media (max-width: 980px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text p {
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    background: white;
    padding: 1rem;
    margin-top: 0.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: none;
    font-size: 0.95rem;
    white-space: normal;
  }

  .lang-switch {
    margin-left: 0;
  }

  .section-container h2:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-container h2 {
    text-align: center;
    display: block;
  }
}

@media (max-width: 680px) {
  .brand-text {
    font-size: 1.3rem;
  }

  .logo-img {
    height: 44px;
  }

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

  .card-image {
    height: 170px;
  }

  .form-card {
    padding: 24px;
  }
}
