/* ==================== POLICES PERSONNALISÉES ==================== */
/* Importation de la famille de polices Rajdhani en plusieurs variantes de poids */

/* Variante Regular (poids 400) pour le texte standard */
@font-face {
  font-family: "Rajdhani";
  src: url("./font/Rajdhani/Rajdhani-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Variante Medium (poids 500) pour les textes semi-accentués */
@font-face {
  font-family: "Rajdhani";
  src: url("./font/Rajdhani/Rajdhani-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Variante SemiBold (poids 600) pour les sous-titres et liens importants */
@font-face {
  font-family: "Rajdhani";
  src: url("./font/Rajdhani/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Variante Bold (poids 700) pour les titres et éléments accentués */
@font-face {
  font-family: "Rajdhani";
  src: url("./font/Rajdhani/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Variante Light (poids 300) pour les textes légers et délicats */
@font-face {
  font-family: "Rajdhani";
  src: url("./font/Rajdhani/Rajdhani-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==================== RÉINITIALISATION ET CONFIGURATION DE BASE ==================== */
/* Suppression des marges et paddings par défaut du navigateur */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rajdhani", sans-serif;
}

/* ==================== VARIABLES CSS GLOBALES ==================== */
/* Palette de couleurs et valeurs réutilisables dans tout le projet */
:root {
  /* Couleurs principales de la marque */
  --primary: #ff6c2f;
  --primary-dark: #e85a1f;
  --secondary: #0a1628;
  --dark: #050a12;
  --light: #f8f9fa;

  /* Couleurs de texte avec opacité pour créer des hiérarchies visuelles */
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);

  /* Couleurs d'accent en format RGB pour utilisation flexible avec rgba() */
  --accent-1: 255, 108, 47;
  --accent-2: 255, 142, 83;

  /* Overlay semi-transparent pour les cartes et images */
  --overlay-brume: rgba(5, 10, 18, 0.14);
}

/* ==================== STYLES DE BASE HTML/BODY ==================== */
/* Défilement fluide pour les ancres et liens internes */
html {
  scroll-behavior: smooth;
}

/* Configuration du corps de la page */
body {
  font-family: "Rajdhani", sans-serif;
  background: var(--dark);
  color: white;
  overflow-x: hidden; /* Évite le défilement horizontal indésirable */
}

/* ==================== HEADER / EN-TÊTE ==================== */
/* Barre de navigation fixe en haut de page */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(
    20px
  ); /* Effet de flou sur le contenu défilant en arrière-plan */
  z-index: 1000; /* Au-dessus de tous les autres éléments */
  padding: 15px 60px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 108, 47, 0.1);
}

/* État du header lors du défilement de la page */
header.scrolled {
  background: rgba(10, 22, 40, 0.95); /* Fond plus opaque au scroll */
  padding: 10px 60px; /* Padding réduit pour compacter le header */
}

/* Conteneur principal de la navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
}

/* ==================== LOGO ==================== */
/* Conteneur et styles pour le logo de l'entreprise */
.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo img {
  height: 70px;
  filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.3)); /* Ombre lumineuse */
  transition: all 0.3s ease;
}

/* Effet d'agrandissement au survol */
.logo:hover {
  transform: scale(1.05);
}

/* Renforcement de l'ombre au survol */
.logo:hover img {
  filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.6));
}

/* ==================== NAVIGATION PRINCIPALE ==================== */
/* Liste des liens de navigation */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

/* Items de navigation de premier niveau */
.nav-links > li {
  position: relative;
}

/* Étendre la zone de survol pour inclure l'espace jusqu'au mega menu */
.dropdown {
  position: relative;
}

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 30px;
  background: transparent;
  z-index: 999;
}

/* Liens de navigation */
.nav-links > li > a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 0;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

/* Ligne de soulignement animée sous les liens */
.nav-links > li > a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 5px;
  left: 50%;
  background: linear-gradient(90deg, var(--primary), #ff8e53);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Animation de la ligne au survol */
.nav-links > li:hover > a::after {
  width: 100%;
}

/* Changement de couleur du lien au survol */
.nav-links > li:hover > a {
  color: var(--primary);
}

/* ==================== MEGA MENU DÉROULANT ==================== */
/* Menu déroulant large avec plusieurs colonnes de liens */
.mega-menu {
  position: fixed;
  top: 85px; /* Positionné juste sous le header */
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  background: linear-gradient(
    135deg,
    rgba(0, 15, 35, 0.98),
    rgba(10, 25, 47, 0.98)
  );
  backdrop-filter: blur(16px);
  padding: 38px 60px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 108, 47, 0.18);

  /* Menu caché par défaut */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  z-index: 1000;
}

/* Affichage du mega menu au survol du parent */
.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

/* Maintenir le menu ouvert quand on le survole directement */
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Colonnes individuelles du mega menu */
.mega-menu .column {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 280px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

/* Effet de lift au survol d'une colonne */
.mega-menu .column:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

/* Titres des sections dans le mega menu */
.mega-menu h4 {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 108, 47, 0.3);
}

/* Liens dans le mega menu */
.mega-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

/* Barre d'accent verticale à gauche des liens */
.mega-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), #ff8e53);
  transform: scaleY(0); /* Cachée par défaut */
  transition: transform 0.3s ease;
}

/* État de survol des liens */
.mega-menu a:hover {
  color: #fff;
  background: rgba(255, 108, 47, 0.15);
  padding-left: 25px; /* Décalage pour laisser place à la barre */
}

/* Animation de la barre d'accent au survol */
.mega-menu a:hover::before {
  transform: scaleY(1);
}

/* ==================== BOUTONS D'ACTION (CTA) ==================== */
/* Conteneur pour les boutons d'appel à l'action */
.cta-buttons {
  display: flex;
  gap: 15px;
}

/* Style de base pour tous les boutons */
.btn {
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

/* Bouton principal avec dégradé et ombre */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff8e53);
  color: white;
  box-shadow: 0 5px 20px rgba(255, 108, 47, 0.3);
}

/* Effet de lift au survol */
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 108, 47, 0.5);
}

/* Bouton secondaire avec bordure uniquement */
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

/* Remplissage au survol du bouton outline */
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ==================== SECTION HERO ==================== */
/* Section d'accueil principale avec vidéo en arrière-plan */
.hero {
  position: relative;
  height: 100vh; /* Pleine hauteur de l'écran */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Conteneur pour la vidéo d'arrière-plan */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Vidéo en arrière-plan couvrant toute la section */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit l'espace sans déformation */
}

/* Overlay sombre au-dessus de la vidéo pour améliorer la lisibilité */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85),
    rgba(5, 10, 18, 0.7)
  );
  z-index: 1;
}

/* Contenu textuel superposé à la vidéo */
.hero-content {
  position: relative;
  z-index: 2; /* Au-dessus de l'overlay */
  text-align: center;
  padding: 0 20px;
  max-width: 1200px;
}

/* Titre principal avec effet de texte dégradé */
.hero h1 {
  font-size: clamp(42px, 6vw, 85px); /* Taille responsive */
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease;
}

/* Sous-titre accentué */
.hero .subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--primary);
  letter-spacing: 2px;
  animation: fadeInUp 1s ease 0.2s backwards; /* Animation décalée */
}

/* Badges des campus disponibles */
.campus-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

/* Badge individuel pour chaque campus */
.campus-badge {
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  transition: all 0.3s;
}

/* Effet interactif sur les badges */
.campus-badge:hover {
  background: rgba(255, 108, 47, 0.3);
  border-color: var(--primary);
  transform: translateY(-5px);
}

/* Animation d'apparition en fondu avec mouvement vertical */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SECTION STATISTIQUES ==================== */
/* Affichage des chiffres clés de l'école */
.stats {
  background: linear-gradient(135deg, #0a1628, #0f1e35);
  padding: 80px 60px;
  position: relative;
}

/* Effet radial lumineux en arrière-plan */
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(255, 108, 47, 0.08),
    transparent 50%
  );
}

/* Grille responsive pour les cartes de statistiques */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Carte individuelle de statistique */
.stat-card {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 20px;
  border: 1px solid rgba(255, 108, 47, 0.2);
  transition: all 0.4s;
  backdrop-filter: blur(10px);
}

/* Animation de lift et accentuation au survol */
.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(255, 108, 47, 0.3);
}

/* Nombre affiché avec effet de texte dégradé */
.stat-number {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

/* Label descriptif sous le nombre */
.stat-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
}

/* ==================== SECTION PORTES OUVERTES ==================== */
/* Section dédiée aux événements et journées portes ouvertes */
.open-days {
  padding: 100px 60px;
  background: linear-gradient(180deg, #0f1e35, #0a1628);
  position: relative;
}

/* En-tête de section réutilisable */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

/* Titre principal de section avec dégradé */
.section-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sous-titre descriptif de la section */
.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grille responsive pour les cartes d'événements */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Carte individuelle pour chaque événement */
.event-card {
  background: linear-gradient(
    135deg,
    rgba(255, 108, 47, 0.1),
    rgba(255, 108, 47, 0.05)
  );
  border: 2px solid rgba(255, 108, 47, 0.2);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

/* Barre d'accent colorée en haut de chaque carte */
.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #ff8e53);
}

/* Effet de lift au survol */
.event-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(255, 108, 47, 0.3);
}

/* Date de l'événement en grand */
.event-date {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Titre de l'événement */
.event-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Lieu de l'événement */
.event-location {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Horaires de l'événement */
.event-time {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* ==================== SECTION FORMATIONS ==================== */
/* Présentation des différentes formations proposées */
.formations {
  padding: 100px 60px;
  background: linear-gradient(135deg, #0a1628, #050a12);
}

/* Grille responsive pour les cartes de formations */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Carte individuelle pour chaque formation */
.formation-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 25px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Effet de lift et ombre au survol */
.formation-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: 0 25px 60px rgba(255, 108, 47, 0.3);
}

/* Image d'en-tête de la formation */
.formation-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Overlay semi-transparent sur l'image avec effet de flou */
.formation-image::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Vignette sombre subtile pour améliorer le contraste du texte */
  background: linear-gradient(
    180deg,
    rgba(5, 10, 18, 0),
    rgba(5, 10, 18, 0.12)
  );
  backdrop-filter: blur(6px);
  transition: background 260ms ease, backdrop-filter 260ms ease,
    opacity 260ms ease;
  pointer-events: none;
}

/* Intensification de l'overlay au survol pour mettre en valeur la carte */
.formation-card:hover .formation-image::before {
  background: linear-gradient(
    180deg,
    rgba(5, 10, 18, 0.02),
    rgba(5, 10, 18, 0.2)
  );
  backdrop-filter: blur(8px);
}

/* ==================== VARIANTES DE DÉGRADÉS POUR IMAGES ==================== */
/* Palette de dégradés harmonieux pour différencier les formations */

/* Variante 1 : Tons indigo et violet */
.formation-image.g-1::before {
  background: linear-gradient(
      135deg,
      rgba(67, 56, 202, 0.32),
      rgba(118, 75, 162, 0.26)
    ),
    linear-gradient(180deg, rgba(5, 10, 18, 0), rgba(5, 10, 18, 0.1));
}

/* Variante 2 : Tons rose chaud et corail */
.formation-image.g-2::before {
  background: linear-gradient(
      135deg,
      rgba(245, 86, 153, 0.3),
      rgba(255, 140, 100, 0.26)
    ),
    linear-gradient(180deg, rgba(5, 10, 18, 0), rgba(5, 10, 18, 0.1));
}

/* Variante 3 : Tons turquoise et cyan */
.formation-image.g-3::before {
  background: linear-gradient(
      135deg,
      rgba(0, 176, 164, 0.28),
      rgba(72, 201, 176, 0.24)
    ),
    linear-gradient(180deg, rgba(5, 10, 18, 0), rgba(5, 10, 18, 0.1));
}

/* Badge de catégorie superposé sur l'image */
.formation-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-1), 0.95),
    rgba(var(--accent-2), 0.92)
  );
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(var(--accent-1), 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Contenu textuel de la carte formation */
.formation-content {
  padding: 35px;
}

/* Titre de la formation */
.formation-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

/* Description de la formation */
.formation-description {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Lien "En savoir plus" */
.formation-link {
  color: rgba(var(--accent-1), 0.95);
}

/* Effet de survol sur la carte complète */
.formation-card:hover {
  transform: translateY(-15px);
  border-color: rgba(var(--accent-1), 0.55);
  box-shadow: 0 25px 60px rgba(var(--accent-1), 0.14);
}

/* Lien avec icône de flèche */
.formation-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.3s;
}

/* Augmentation de l'espacement au survol */
.formation-link:hover {
  gap: 15px;
}

/* ==================== TABLEAU DES FORMATIONS ==================== */
/* Classe pour masquer visuellement un élément tout en le gardant accessible */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Section contenant le tableau des formations */
.formations-table {
  padding: 60px 0 100px;
  background: linear-gradient(135deg, #050a12, #071226);
}

/* En-tête de la section tableau */
.formations-table .section-header {
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 0 60px;
}

/* Contrôles d'interaction au-dessus du tableau */
.table-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Conteneur avec défilement pour le tableau */
.table-wrap {
  overflow: auto;
  background: transparent;
  border-radius: 12px;
}

/* Tableau principal avec styles personnalisés */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

/* En-tête du tableau avec dégradé */
.styled-table thead {
  background: linear-gradient(
    90deg,
    rgba(255, 108, 47, 0.12),
    rgba(255, 142, 83, 0.06)
  );
  backdrop-filter: blur(6px);
}

/* Cellules du tableau */
.styled-table th,
.styled-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  font-weight: 600;
}

/* En-têtes de colonnes cliquables pour le tri */
.styled-table th {
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

/* Lignes du corps du tableau */
.styled-table tbody tr {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  transition: transform 0.22s, box-shadow 0.22s;
  border-radius: 8px;
}

/* Effet d'élévation au survol des lignes */
.styled-table tbody tr:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Liens dans le tableau */
.styled-table a.formation-link {
  color: var(--primary);
  font-weight: 700;
}

/* ==================== VERSION MOBILE DU TABLEAU ==================== */
/* Transformation des lignes en cartes sur petit écran */
@media (max-width: 720px) {
  /* Masquer l'en-tête sur mobile */
  .styled-table thead {
    display: none;
  }

  /* Transformer le tableau en layout vertical */
  .styled-table,
  .styled-table tbody,
  .styled-table tr,
  .styled-table td {
    display: block;
    width: 100%;
  }

  /* Chaque ligne devient une carte */
  .styled-table tr {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }

  /* Cellules empilées verticalement */
  .styled-table td {
    padding: 8px 0;
    border: none;
    position: relative;
  }

  /* Affichage du label avant chaque donnée */
  .styled-table td:before {
    content: attr(data-label);
    display: inline-block;
    width: 120px;
    font-weight: 800;
    color: var(--text-muted);
  }
}

/* ==================== SECTION PROJETS ==================== */
/* Galerie de projets avec système de carousel */
.projects {
  padding: 100px 60px;
  background: linear-gradient(135deg, #050a12, #0a1628);
}

/* Conteneur principal du slider de projets */
.projects-slider {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

/* Wrapper avec défilement masqué */
.projects-track-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Piste de défilement contenant les cartes */
.projects-track {
  display: flex;
  gap: 26px;
  align-items: stretch;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform; /* Optimisation performance */
  padding: 6px 2px;
}

/* Cartes de projet individuelles */
.projects-track .project-card {
  flex: 0 0 380px; /* Largeur fixe pour alignement horizontal */
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.36s ease, box-shadow 0.36s ease;
  position: relative;
  min-height: 240px;
  background: rgba(0, 0, 0, 0.04);
}

/* Effet d'agrandissement au survol */
.projects-track .project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Images du projet (recto/verso) */
.projects-track .project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Image recto visible par défaut */
.projects-track .recto {
  opacity: 1;
  z-index: 1;
}

/* Image verso cachée par défaut */
.projects-track .verso {
  opacity: 0;
  z-index: 1;
}

/* Basculement vers le verso au survol */
.projects-track .project-card:hover .recto {
  opacity: 0;
  transform: scale(1.03);
}

/* Affichage du verso au survol */
.projects-track .project-card:hover .verso {
  opacity: 1;
  transform: scale(1);
}

/* Overlay avec informations du projet */
.projects-track .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.36s ease;
  z-index: 2;
}

/* Affichage de l'overlay au survol */
.projects-track .project-card:hover .project-overlay {
  opacity: 1;
}

/* Nom du projet */
.projects-track .project-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

/* Type/catégorie du projet */
.projects-track .project-type {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== BOUTONS DE NAVIGATION DU CAROUSEL ==================== */
/* Boutons précédent/suivant pour ordinateur */
.projects-prev,
.projects-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: linear-gradient(135deg, var(--primary), #ff8e53);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* Positionnement du bouton précédent */
.projects-prev {
  left: -28px;
}

/* Positionnement du bouton suivant */
.projects-next {
  right: -28px;
}

/* État désactivé des boutons */
.projects-prev:disabled,
.projects-next:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Masquage de la barre de défilement native */
.projects-track-wrapper::-webkit-scrollbar {
  display: none;
}
.projects-track-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==================== VERSION MOBILE DU CAROUSEL ==================== */
/* Adaptation tactile pour petits écrans */
@media (max-width: 900px) {
  /* Masquage des boutons sur mobile */
  .projects-prev,
  .projects-next {
    display: none;
  }

  .projects-track {
    gap: 18px;
  }

  /* Cartes plus larges sur tablette */
  .projects-track .project-card {
    flex: 0 0 80%;
    min-height: 200px;
  }

  .projects {
    padding: 60px 30px;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .projects-track .project-card {
    flex: 0 0 92%;
    min-height: 180px;
  }
}

/* ==================== SECTION RÉCOMPENSES ET DISTINCTIONS ==================== */
/* Présentation des prix et reconnaissances de l'école */
.awards {
  padding: 100px 60px;
  background: linear-gradient(135deg, #0a1628, #0f1e35);
  position: relative;
}

/* Effet radial lumineux décoratif */
.awards::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 50%,
    rgba(255, 108, 47, 0.08),
    transparent 50%
  );
}

/* Conteneur du contenu */
.awards-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Grille en deux colonnes */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
}

/* Colonne gauche avec plusieurs encadrés */
.awards-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Encadré pour chiffres clés et projets */
.awards-box {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 108, 47, 0.2);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

/* Titres des encadrés */
.awards-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Liste des chiffres clés */
.key-figures {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Item individuel de chiffre */
.figure-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  transition: all 0.3s;
}

/* Effet interactif sur les items */
.figure-item:hover {
  background: rgba(255, 108, 47, 0.1);
  transform: translateX(10px);
}

/* Nombre mis en évidence avec dégradé */
.figure-number {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 120px;
}

/* Texte descriptif du chiffre */
.figure-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Texte de reconnaissance */
.recognition-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Liste des projets récompensés */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Item de projet individuel */
.project-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  transition: all 0.3s;
}

/* Effet au survol */
.project-item:hover {
  background: rgba(255, 108, 47, 0.1);
  transform: translateX(5px);
}

/* Nom du projet */
.project-item-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* Badge de récompense */
.award-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), #ff8e53);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 10px;
}

/* Détails supplémentaires de la récompense */
.award-detail {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== SECTION CAMPUS ==================== */
/* Présentation des différents campus et leurs localisations */
.campus {
  padding: 100px 60px;
  background: linear-gradient(135deg, #050a12, #0a1628);
}

/* Grille responsive des cartes campus */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Carte individuelle pour chaque campus */
.campus-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Effet d'élévation au survol */
.campus-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(255, 108, 47, 0.3);
}

/* Image du campus */
.campus-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Informations textuelles du campus */
.campus-info {
  padding: 30px;
}

/* Nom du campus */
.campus-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Adresse du campus */
.campus-address {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 5px;
}

/* ==================== SECTION TÉMOIGNAGES ==================== */
/* Avis et retours d'expérience des étudiants et alumni */
.testimonials {
  padding: 100px 60px;
  background: linear-gradient(135deg, #0a1628, #0f1e35);
}

/* Grille des cartes de témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Carte de témoignage individuelle */
.testimonial-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 108, 47, 0.2);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: all 0.4s;
}

/* Effet au survol */
.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(255, 108, 47, 0.2);
}

/* Icône de citation décorative */
.quote-icon {
  font-size: 48px;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 20px;
}

/* Texte du témoignage */
.testimonial-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
}

/* Informations sur l'auteur du témoignage */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Nom de l'auteur */
.author-name {
  font-size: 18px;
  font-weight: 700;
}

/* Rôle ou statut de l'auteur */
.author-role {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==================== FOOTER / PIED DE PAGE ==================== */
/* Pied de page principal avec informations de contact et liens */
.site-footer {
  background: linear-gradient(180deg, #111827, #0b1220);
  color: var(--text-light);
  padding: 60px 20px 30px;
  position: relative;
  border-top: 1px solid rgba(255, 108, 47, 0.06);
}

/* Conteneur interne du footer */
.site-footer .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grille responsive des colonnes du footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
  padding: 18px 0 30px;
}

/* Colonne individuelle du footer */
.footer-column {
  min-width: 0;
}

/* Logo dans le footer */
.footer-logo img {
  height: auto;
  max-width: 180px;
  width: 100%;
}

/* Titres des sections du footer */
.footer-title {
  color: var(--primary);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 8px 0 14px;
  font-weight: 700;
}

/* Textes et adresses dans le footer */
.footer-text,
.footer-address {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ==================== COLONNE MARQUE DU FOOTER ==================== */
/* Organisation campus + logo sur la même ligne */
.footer-column--brand .brand-row {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-column--brand .brand-campus {
  flex: 1 1 auto;
  min-width: 0;
}

.footer-column--brand .brand-logo {
  display: flex;
  align-items: center;
}

.footer-column--brand .brand-logo .footer-logo img {
  max-height: 88px;
  height: auto;
}

/* Version mobile de la colonne marque */
@media (max-width: 900px) {
  .footer-column--brand .brand-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-column--brand .brand-logo .footer-logo img {
    max-height: 48px;
  }
}

/* ==================== CONTACT ET RÉSEAUX SOCIAUX ==================== */
/* Section contact du footer */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Icônes dans les infos de contact */
.footer-contact .icon {
  color: var(--primary);
  margin-right: 8px;
}

/* Liens de contact */
.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

/* Section réseaux sociaux */
.footer-networks {
  margin-top: 18px;
  padding: 6px 0;
}

/* Titre de la section réseaux */
.footer-networks h5 {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Conteneur des icônes sociales */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Icônes individuelles des réseaux sociaux */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 700;
}

/* ==================== BAS DU FOOTER ==================== */
/* Séparateur visuel */
.footer-sep {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 18px 0;
}

/* Section entreprises */
.footer-enterprise {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 0;
  color: var(--text-light);
}

/* Lien d'appel à l'action pour les entreprises */
.enterprise-cta {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-left: 8px;
}

/* Barre inférieure avec copyright et liens légaux */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0 6px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Liens légaux (CGU, mentions légales, etc.) */
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.6px;
}

/* Copyright */
.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Responsive footer sur mobile */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==================== MEDIA QUERIES / RESPONSIVE DESIGN ==================== */
/* Adaptations pour différentes tailles d'écran */

/* ========== ÉCRANS LARGES (≤ 1400px) ========== */
@media (max-width: 1400px) {
  /* Réduction de l'espacement entre les liens de navigation */
  .nav-links {
    gap: 30px;
  }

  /* Taille de police légèrement réduite */
  .nav-links > li > a {
    font-size: 14px;
  }

  /* Ajustement du mega menu */
  .mega-menu {
    padding: 40px 50px;
    gap: 40px;
  }
}

/* ========== TABLETTES ET PETITS ORDINATEURS (≤ 1024px) ========== */
@media (max-width: 1024px) {
  /* Passage en colonne unique pour la grille awards */
  .awards-grid {
    grid-template-columns: 1fr;
  }

  /* Masquage du menu de navigation sur les petits écrans */
  .nav-links {
    display: none;
  }

  /* Réduction du padding du header */
  header {
    padding: 15px 40px;
  }
}

/* ========== MOBILES ET PETITES TABLETTES (≤ 768px) ========== */
@media (max-width: 768px) {
  /* Réduction du padding du header */
  header {
    padding: 15px 30px;
  }

  /* Réduction de la taille du logo */
  .logo img {
    height: 50px;
  }

  /* Réduction générale du padding des sections principales */
  .stats,
  .open-days,
  .formations,
  .projects,
  .awards,
  .campus,
  .testimonials {
    padding: 60px 30px;
  }

  /* Ajustement de la taille du titre hero */
  .hero h1 {
    font-size: 42px;
  }

  /* Ajustement de la taille des titres de section */
  .section-title {
    font-size: 36px;
  }

  /* Réduction de l'espacement des boutons CTA */
  .cta-buttons {
    gap: 10px;
  }

  /* Boutons plus compacts */
  .btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}
