/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark:   #0a1f44;
  --blue-mid:    #1a3a6e;
  --blue:        #1e6fc5;
  --blue-light:  #4fa3e0;
  --sky:         #e8f4fd;
  --white:       #ffffff;
  --gray-light:  #f5f7fa;
  --gray:        #6b7280;
  --text:        #1a202c;
  --accent:      #f59e0b;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(10, 31, 68, 0.10);
  --transition:  0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--blue-light); }

img { max-width: 100%; display: block; }

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--sky);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--blue-light);
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 111, 197, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

/* === NAVBAR === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

#header.scrolled .nav-links a {
  color: var(--blue-dark);
}
#header.scrolled .nav-links a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

#header.scrolled .burger {
  color: var(--blue-dark);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  gap: 16px;
}


.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}
.nav-links a:hover {
  color: var(--blue-light);
  border-bottom-color: var(--blue-light);
}

.btn-nav-membre {
  background: var(--blue-light);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-nav-membre:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 68, 0.52);
  z-index: 1;
}

/* Nuages décoratifs */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
  opacity: 0.06;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 20px;
  animation: fadeInUp 0.9s ease both;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 span {
  color: var(--blue-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  letter-spacing: 1px;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 3;
}

/* === PRÉSENTATION === */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.presentation-text p {
  margin-bottom: 16px;
  color: var(--gray);
  font-size: 1.05rem;
}

.stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: var(--sky);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
  min-width: 100px;
  border-top: 3px solid var(--blue-light);
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}

.presentation-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === BAPTÊME DE L'AIR === */
.bapteme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 10px;
}

.bapteme-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.bapteme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10, 31, 68, 0.14);
}

.bapteme-img-wrap {
  position: relative;
  height: 240px;
}

.bapteme-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bapteme-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bapteme-body {
  padding: 28px;
}

.bapteme-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.bapteme-apparel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bapteme-body p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .bapteme-grid {
    grid-template-columns: 1fr;
  }
}

/* === ÉCOLE DE PILOTAGE === */
.ecole-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.ecole-intro p {
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.ecole-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.ecole-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 4px solid var(--blue-light);
}

.ecole-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10, 31, 68, 0.14);
}

.ecole-img-wrap {
  position: relative;
  height: 240px;
}

.ecole-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecole-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ecole-body {
  padding: 28px;
}

.ecole-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.ecole-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ecole-list li {
  color: var(--gray);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}

.ecole-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-weight: 700;
}

@media (max-width: 768px) {
  .ecole-grid {
    grid-template-columns: 1fr;
  }
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--blue-light);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10, 31, 68, 0.14);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === ACTUALITÉS === */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 10px;
}

.actu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.actu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 31, 68, 0.14);
}

.actu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.actu-categorie {
  background: var(--sky);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
}

.actu-date {
  font-size: 0.85rem;
  color: var(--gray);
}

.actu-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.actu-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.actu-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.actu-card p:last-child {
  margin-bottom: 0;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-top: 50px;
  align-items: start;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--gray);
}

.contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.adhesion-box {
  margin-top: 40px;
  background: var(--sky);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--blue);
}

.adhesion-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.adhesion-box p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* === FORMULAIRE === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}

.form-group textarea {
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--blue);
  min-height: 1.4em;
}

/* === FOOTER === */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 36px 24px;
  font-size: 0.9rem;
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 12px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 12px 24px;
  }

  .burger {
    display: block;
  }

  .presentation-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .stats {
    gap: 12px;
  }
}
