/* ============================================
   RESET & VARIABLES
   ============================================ */

:root {
  --bg-white: #FFFFFF;
  --bg-grey: #F5F5F5;
  --bg-light: #FAFAFA;
  --bg-ultralight: #F8F7FF;
  --bg-employeurs: #F3E8FF;
  --border: #E5E5E5;
  --border-light: #F0F0F0;
  --text-primary: #0A0A0A;
  --text-secondary: #626262;
  --text-tertiary: #A1A1A1;
  --accent: #6C3FC5;
  --accent-hover: #5A2FA0;
  --accent-light: #F3E8FF;
}

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

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

.section-subtitle {
  font-size: 1rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.link-arrow {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
}

.link-arrow:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--text-primary);
}

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

.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.btn-outline-small {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline-small:hover {
  background: var(--accent-light);
}

.btn-nav {
  padding: 9px 20px;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
}

.btn-nav:hover {
  background: var(--accent-hover);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  height: 70px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0.875rem;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  flex: 1;
  margin-left: 3rem;
}

.nav-menu-postuler {
  display: none;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-email {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .nav-right {
    order: 2;
    gap: 0;
  }

  .btn-nav {
    display: none;
  }

  .nav-email {
    display: none;
  }

  .nav-container {
    padding: 0 16px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 0.5rem 0;
    z-index: 999;
  }

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

  .nav-menu li a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu-postuler {
    display: block;
  }

  .nav-menu-postuler a {
    color: var(--accent) !important;
    font-weight: 600 !important;
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }

  h1 {
    font-size: 2rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 70px;
  padding: 80px 0;
  background: #e8d9ff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  transform: none;
  width: 420px;
  height: 420px;
  background: url('../assets/images/logo-nextnova.png') center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-rotating-word {
  display: inline-block;
  position: relative;
  color: var(--accent);
}

.hero-rotating-word .word {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.hero-rotating-word .word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-partners {
  margin-bottom: 2.5rem;
}

.hero-partners-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}

.hero-marquee {
  overflow: hidden;
  max-width: 480px;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.hero-marquee:hover .hero-marquee-track {
  animation-play-state: paused;
}

.partner-logo {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.8;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
}

.hero-img,
.campus-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  background: var(--bg-grey);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.image-placeholder.large {
  aspect-ratio: 1200 / 560;
}

.placeholder-size {
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 50px;
    overflow: hidden;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    display: none;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    display: block;
  }

  .hero-img {
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .hero-content {
    min-width: 0;
    overflow: hidden;
  }

  .hero-content h1 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-rotating-word {
    display: block;
  }

  .hero-rotating-word .word {
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .hero-partners {
    margin-bottom: 2rem;
  }

  .hero-marquee {
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: row;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   FORMATIONS SECTION
   ============================================ */

.formations {
  padding: 80px 0;
  background: var(--bg-grey);
  position: relative;
}

.formations .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .formations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .formations-grid {
    grid-template-columns: 1fr;
  }
}

.formation-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.formation-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(108, 63, 197, 0.1);
  transform: translateY(-2px);
}

.formation-image {
  width: 100%;
  aspect-ratio: 360 / 240;
  background: var(--bg-grey);
  position: relative;
  overflow: hidden;
}

.formation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}


.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-grey);
}

.formation-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.formation-type-badge--tp {
  background: var(--accent);
  color: white;
}

.formation-type-badge--formation {
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.formation-type-badge--bts {
  background: #1a0f2e;
  color: white;
}

.formation-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.formation-body .btn {
  align-self: center;
}

.formation-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.formation-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.formation-specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.formation-specs li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  align-self: flex-start;
}

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

@media (max-width: 768px) {
  .formations {
    padding: 60px 0;
  }

  .filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ============================================
   CAMPUS SECTION
   ============================================ */

.campus {
  padding: 80px 0;
  background: var(--bg-white);
  position: relative;
}

.campus .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.campus-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.campus-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.campus-info p {
  margin-bottom: 1.5rem;
}

.campus-details {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.campus-details p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.campus-details p:last-child {
  margin-bottom: 0;
}

.campus-image {
  width: 100%;
}

.image-placeholder {
  aspect-ratio: 800 / 400;
}

@media (max-width: 768px) {
  .campus {
    padding: 60px 0;
  }

  .campus-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog {
  padding: 80px 0;
  background: var(--bg-grey);
}

.blog .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(108, 63, 197, 0.1);
}

.blog-image {
  width: 100%;
  aspect-ratio: 360 / 200;
  background: var(--bg-light);
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-meta {
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

.blog-category {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.blog-date {
  color: var(--text-tertiary);
}

.blog-card h3 {
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-card p {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  flex-grow: 1;
}

.blog-card .link-arrow {
  padding: 0 1.5rem 1.5rem;
  display: block;
}

@media (max-width: 768px) {
  .blog {
    padding: 60px 0;
  }
}

/* ============================================
   EMPLOYEURS SECTION
   ============================================ */

.employeurs {
  padding: 80px 0;
  background: var(--bg-employeurs);
  position: relative;
}

.employeurs::before {
  content: '';
  position: absolute;
  top: 0;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 63, 197, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.employeurs-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.employeurs-header h2 {
  margin-bottom: 1rem;
}

.employeurs-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.logo-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-item:hover img {
  opacity: 1;
}

.employeurs-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .employeurs {
    padding: 60px 0;
  }

  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* ============================================
   ÉVÉNEMENTS SECTION
   ============================================ */

.evenements {
  padding: 80px 0;
  background: var(--bg-white);
}

.evenements .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.evenements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.event-card {
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.event-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(108, 63, 197, 0.1);
}

.event-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.event-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.event-card p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.event-location {
  color: var(--accent);
  font-weight: 500;
}

.event-card .btn {
  margin-top: 1.5rem;
  width: 100%;
}

@media (max-width: 768px) {
  .evenements {
    padding: 60px 0;
  }

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

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.certifications {
  padding: 80px 0;
  background: var(--bg-grey);
  position: relative;
  overflow: hidden;
}

.certifications .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.marquee {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  padding: 2rem 1rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 120px;
  height: 70px;
}

.marquee-item img {
  max-width: 90%;
  max-height: 60px;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.marquee-item:hover img {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .certifications {
    padding: 40px 0;
  }

  .certifications-logos {
    gap: 1rem;
  }

  .cert-logo {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* ============================================
   TEMOIGNAGES SECTION
   ============================================ */

.temoignages {
  padding: 80px 0;
  background: var(--bg-white);
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  margin-bottom: 1rem;
}

.rating {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.stars {
  color: var(--accent);
  margin-right: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  flex: 1;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  flex-shrink: 0;
  width: 100%;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border: 1px solid rgba(108, 63, 197, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-course {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .temoignages {
    padding: 60px 0;
  }

  .carousel {
    gap: 1rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* ============================================
   PÉDAGOGIE SECTION
   ============================================ */

.pedagogie {
  padding: 100px 0;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.pedagogie-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pedagogie-header h2 {
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pedagogie-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.pedagogie-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.pedagogie-tab {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.pedagogie-tab:hover {
  background: var(--bg-white);
  border-color: var(--accent);
}

.pedagogie-tab.active {
  background: var(--accent-light);
  border-color: var(--accent);
}

.tab-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.pedagogie-tab.active .tab-title {
  color: var(--accent);
  font-weight: 600;
}

.pedagogie-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.pedagogie-image {
  width: 100%;
  height: 360px;
  background: var(--bg-grey);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.pedagogie-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pedagogie-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pedagogie-info {
  padding: 0;
}

.pedagogie-info-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pedagogie-info-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.pedagogie-info-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.pedagogie-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pedagogie-info-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.pedagogie-info-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .pedagogie-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .pedagogie-tab {
    padding: 1rem 1.25rem;
  }

  .tab-title {
    font-size: 0.9rem;
  }

  .pedagogie-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pedagogie-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .pedagogie {
    padding: 60px 0;
  }

  .pedagogie-header h2 {
    font-size: 2rem;
  }

  .pedagogie-tabs {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .pedagogie-tab {
    padding: 0.85rem 1rem;
  }

  .tab-title {
    font-size: 0.85rem;
  }

  .pedagogie-image {
    height: 240px;
  }

  .pedagogie-info-title {
    font-size: 1.25rem;
  }

  .pedagogie-info-description {
    font-size: 0.85rem;
  }

  .pedagogie-info-list li {
    font-size: 0.85rem;
  }

  .pedagogie-info-list {
    gap: 0.75rem;
  }
}

/* ============================================
   MODAL PÉDAGOGIE
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-white);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
  position: sticky;
  top: 0;
  right: 0;
  background: var(--bg-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 1rem 0 0;
  float: right;
}

.modal-close:hover {
  background: var(--bg-grey);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
  padding-top: 0;
}

.modal-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--bg-grey) 0%, var(--bg-light) 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-stat {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.modal-list li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.modal-cta {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.modal-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 63, 197, 0.2);
}

/* ============================================
   FINANCEMENT SECTION
   ============================================ */

.financement {
  padding: 80px 0;
  background: var(--bg-white);
}

.financement .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.financement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.financement-card {
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

.financement-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(108, 63, 197, 0.1);
  transform: translateY(-2px);
}

.financing-logo {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 1.5rem 1rem;
}

.financing-logo img {
  max-width: 95%;
  max-height: 100px;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.financement-card:hover .financing-logo {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(108, 63, 197, 0.08);
}

.financement-card:hover .financing-logo img {
  opacity: 1;
}

.financement-card h3 {
  margin-bottom: 0.75rem;
}

.financement-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.financement-card .link-arrow {
  display: block;
}

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

@media (max-width: 768px) {
  .financement {
    padding: 60px 0;
  }

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

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
  padding: 80px 0;
  background: var(--bg-grey);
}

.faq .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  padding: 1.375rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  line-height: 1;
}

.faq-item[open] .faq-trigger {
  color: var(--accent);
}

.faq-item[open] .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 0 1.375rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item[open] .faq-content {
  display: block;
  animation: fadeUp 0.2s ease;
}

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

@media (max-width: 768px) {
  .faq {
    padding: 60px 0;
  }

  .faq-trigger {
    padding: 1.25rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   CANDIDATER SECTION
   ============================================ */

.candidater {
  padding: 80px 0;
  background: var(--bg-grey);
  text-align: center;
  position: relative;
}

.candidater::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 63, 197, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.candidater .container {
  position: relative;
  z-index: 1;
}

.candidater h2 {
  margin-bottom: 1rem;
}

.candidater p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .candidater {
    padding: 60px 0;
  }

  .candidater h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #1a0f2e;
  color: white;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #c4a8ff;
}

.footer-qualiopi {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-top: 1.25rem;
  display: block;
  opacity: 0.85;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  color: white;
}

.footer-certifications {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-certifications > span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.5rem;
}

.cert-badges {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.cert-badges span {
  font-size: 0.78rem;
  padding: 3px 10px;
  background: rgba(108, 63, 197, 0.25);
  border: 1px solid rgba(108, 63, 197, 0.4);
  border-radius: 4px;
  color: #c4a8ff;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #c4a8ff;
}

/* ============================================
   BANNIÈRE COOKIES
   ============================================ */

#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  animation: cookieSlideUp 0.35s ease;
}

#cookie-banner.cookie-banner--hidden {
  animation: cookieSlideDown 0.35s ease forwards;
}

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

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

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cookie-banner__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cookie-banner__desc a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-banner__desc a:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.cookie-btn--secondary {
  background: var(--bg-white);
  color: var(--text-secondary);
}

.cookie-btn--secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.cookie-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cookie-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

@media (max-width: 640px) {
  #cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }

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

  .footer-certifications {
    gap: 1rem;
    padding: 1.5rem 0;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

section {
  animation: fadeIn 0.5s ease-out;
}
