/* ===============================
   STRUCTURE GÉNÉRALE
   =============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* ===============================
   VIDEO PRESENTATION
   =============================== */

section.video-presentation {
  background: linear-gradient(
    135deg,
    #2a4dad 0%,
    #0e1d6d 40%,
    #080f44 100%
  );
  padding: 100px 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto 0;
  overflow: hidden;
  padding-top: 56.25%; /* Ratio 16:9 */
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}



/* ===============================
   TYPOGRAPHIE
   =============================== */
.section-heading,
.text-faded {
  font-family: "Merriweather", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
}

.section-heading {
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Espacement vertical entre les blocs Missions */
.section-heading + .custom-list {
  margin-top: 2rem; /* espace au-dessus de chaque liste */
}

h1.section-heading {
  font-size: 4rem;
}

h2.section-heading {
  font-size: 2.75rem;
  margin-bottom: 2rem;
}

h3.section-heading {
  font-size: 2rem;
  margin-top: 3rem;
}

h4.section-heading {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.text-faded {
  color: rgba(255, 255, 255, .85);
  font-size: 1.3rem;
  line-height: 1.6;
}

.text-white {
  line-height: 1.4;
}

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

.text-faded strong {
  font-weight: 700;
  color: #fff;
}

/* ===============================
   CUSTOM LIST
   =============================== */

.custom-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;  /* centré horizontalement */
  max-width: 800px;     /* limite de largeur pour plus de lisibilité */
}

.custom-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-family: "Merriweather", "Helvetica Neue", Arial, sans-serif;
  color: rgba(255, 255, 255, .85);
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: justify;    /* texte justifié */
}

.custom-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}



/* ===============================
   UTILITAIRES
   =============================== */
.text-center {
  text-align: center;
}

.my-4 {
  margin: 1.5rem 0;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.2);
  padding: 60px 2rem;
  border-radius: 10px;
}

i {
  font-style: italic;
}

/* ===============================
   GRILLE
   =============================== */
section .container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

section .container + .container {
  margin-top: 80px;
}

section .row.flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

section .col-lg-8 {
  width: 100%;
  max-width: 100%;
}


/* ===============================
   SÉPARATEUR
   =============================== */
hr.light {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, .3);
  width: 60px;
  margin: 1rem auto;
}

/* ===============================
   GALLERY
   =============================== */
.gallery-wrapper {
  width: 100%;
}

.gallery {
  display: grid;
  /* ↓ garde 400px en grand, mais ne dépasse jamais la largeur dispo */
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 26px;

  /* ↓ même esprit que avant, mais sans dépassement */
  width: min(100%, 1200px);
  margin-inline: auto;

  /* ↓ padding “comme avant”, mais inclus dans la boîte */
  padding: 40px 5vw;
  box-sizing: border-box;

  /* ↓ évite les scrollbars horizontales résiduelles */
  overflow-x: clip;
}



.gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  break-inside: avoid;
  transition: transform .3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* ===============================
   GOOGLE SLIDER
   =============================== */
.google-slide-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.google-slide-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



/* ===============================
   CARTE CERTIFICATIONS 
   =============================== */
.cert-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  overflow-x: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.cert-card {
  display: flex;
  flex-direction: column;   /* empile le contenu verticalement */
  justify-content: space-between;  /* pousse les blocs vers haut et bas */
  height: 100%;
  flex: 0 0 auto;        /* empêche de rétrécir */
  min-width: 280px;      /* largeur minimale pour rester lisible */
  max-width: 320px;      /* largeur maximale */
  min-height: 450px;
}

.cert-card:hover {
  transform: translateY(-5px);
}

/* Pour l’image du certificat : légère ombre et arrondi */
.cert-image {
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.cert-logo {
  color: #fff;
  display: block;
  max-width: 150px;
  width: 100%;
  margin: 0 auto 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.cert-logo svg {
  display: block;
  width: 100%;
  height: auto;
}


.cert-card h3.section-heading {
  margin: 15px 0;
  font-size: 1.75rem;
  color: #fff;
}

.cert-card p.text-faded {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0;
}

.cert-content {
  flex-grow: 1;   /* prend tout l’espace disponible */
}
.cert-links {
  text-align: center;
  margin: 20px 0;
}

.cert-links .btn {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  background: #0f39ad; /* ton bleu principal */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.cert-links .btn:hover {
  background: #092670; /* plus foncé au hover */
}

.legal-mention {
  margin-top: 40px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, .65);
}

/* ===============================
   LOGOS
   =============================== */

/* Pour les logos techniques : alignés et animés au hover */
.logos-row {
  gap: 20px;
}

.logo-item {
  position: relative;
  display: inline-block;
  margin: 0 15px;
}

.logo-tech {
  height: 80px;
  margin: 0 15px;
  transition: transform 0.3s ease;
}

.logo-tech:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.logo-label {
  position: absolute;
  bottom: -25px;  /* position sous le logo */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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


/* ===============================
   AOS
   =============================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all .6s ease-in-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ===============================
   ABOUT HEADER (inchangé)
   =============================== */
.about-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  min-height: 650px;
  padding: 0 1rem;
  background: linear-gradient(
    135deg,               /* haut gauche ➝ bas droit */
    #080f44 0%,           /* encore plus foncé */
    #0e1d6d 40%,          /* ta teinte principale */
    #2a4dad 100%          /* plus clair et plus bleu */
  );
  overflow: hidden;
  pointer-events: none;
}

.about-header-content {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, .3);
  padding: 2rem 3rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.about-header h1 {
  font-family: "Merriweather", "Helvetica Neue", Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.about-header .intro-text {
  color: rgba(255, 255, 255, .85);
  font-size: 1.5rem;
  max-width: 700px;
  margin: 1rem auto 0;
}

.about-header hr.light {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, .3);
  width: 60px;
  margin: 1rem auto;
}

#typed-title,
#typed-intro {
  padding-right: 5px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.particles-js-canvas-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}


/* ===============================
   SECTION EXPERIENCE
   =============================== */
section.experience {
  background: linear-gradient(
    to right,
    #8a8a8a 0%,
    #666666 20%,
    #555555 30%,
    #333333 70%,
    #111111 100%
  );
  padding: 100px 0;
}

/* ===============================
   SECTION FORMATION
   =============================== */
section.formation {
  background: linear-gradient(
    135deg,
    #0b006d 0%,
    #012c6b 20%,
    #006cc4 50%,
    #063a88 80%,
    #000155 100%
  );
  padding: 100px 0;
}

/* Anti-overflow global */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
