* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

body {
  color: #111;
  background: #fff;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  position: fixed;
  width: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.header-left {
  display: flex;
  align-items: center;
}

.insta-link {
  font-size: 1.5rem;
  color: #111;
  transition: color 0.3s ease;
  margin-right: 20px;
}

.insta-link:hover {
  color: #e1306c; /* rose Instagram */
}

.header-right {
  display: flex;
  gap: 20px;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: #fff;
  background: url('assets/images/hero.jpg') center/cover no-repeat;
}

.hero .overlay {
  background: rgba(0,0,0,0.4);
  padding: 50px;
  border-radius: 20px;
}


.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 25px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s;
}

.btn:hover {
  background: #333;
}

section {
  padding: 80px 10%;
  text-align: center;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #f5f5f7;
  padding: 20px;
  border-radius: 15px;
  width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
  gap: 15px;
}

input, textarea, button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #333;
}



footer {
  text-align: center;
  padding: 30px;
  background: #f5f5f7;
  margin-top: 50px;
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;          /* espace horizontal entre texte et image */
  margin: 60px 10%;   /* espace vertical entre sections */
  align-items: center;
  /* hauteur minimale pour éviter débordement */
  min-height: 1000px;  
}

.split .text, .split .image {
  flex: 1;
  min-width: 300px;
}

/* Image qui ne dépasse pas */
.split .image img {
  width: 100%;
  max-height: 1000px;       /* limite la hauteur max de l’image */
  object-fit: cover;
  border-radius: 20px;
  display: block;
}


/* Témoignages carousel */
.testimonial-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}

.testimonial {
  min-width: 100%;
  padding: 40px 30px;
  text-align: center;
  background: #0071e3;
  color: #eee;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(23, 27, 31, 0.2);
}

.testimonial blockquote {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial p {
  font-weight: 700;
  color: #fefefec7;
}

/* Flèches carousel */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.arrow:hover {
  background: rgb(0, 0, 0);
}

.arrow.left {
  left: 15px;
}

.arrow.right {
  right: 15px;
}


/* ===== Section Parcours ===== */
#parcours {
  padding: 80px 10%;
  background: #f5f5f7;
  text-align: center;
}

#parcours h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #111;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #111;
  border-radius: 50%;
  border: 4px solid #fff;
  z-index: 2;
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #111;
}

.timeline-content p {
  font-size: 1rem;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 40px;
    text-align: left !important;
  }
  .timeline-item::before {
    left: 0;
  }
}



/* ===== Section Diplômes ===== */
#diplomes {
  padding: 80px 10%;
  background: #fff;
  text-align: center;
}

#diplomes h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #111;
}

.diplomes-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.diplome-card {
  background: #f5f5f7;
  padding: 25px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diplome-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #111;
}

.diplome-card p {
  font-size: 1rem;
  color: #555;
}

.diplome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.keyword {
  color: #007bff;
  cursor: pointer;
  position: relative;
}
.keyword:hover {
  text-decoration: underline;
}
.keyword-info {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}
.keyword-info::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: #fff transparent transparent transparent;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
} 


/* ===== Effets de scroll ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section Diplômes ===== */
#diplomes {
  padding: 100px 10%;
  background: #fff;
  text-align: center;
}

#diplomes h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #111;
}

.diplomes-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.diplome-card {
  background: #f5f5f7;
  padding: 25px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diplome-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #111;
}

.diplome-card p {
  font-size: 1rem;
  color: #555;
}

.diplome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== Section Parcours ===== */
#parcours {
  padding: 100px 10%;
  background: #f9f9fb;
  text-align: center;
}

#parcours h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #111;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 600px;
  margin: auto;
}

.timeline-item {
  background: white;
  padding: 20px;
  border-left: 4px solid #111;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: left;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #111;
}

.timeline-item p {
  color: #555;
}


.cards-flip-section {
  padding: 80px 10%;
  background: #fff; /* fond blanc */
  text-align: center;
}

.cards-flip-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #111;
}

/* ===== Section Mes Valeurs (bulles) ===== */
.cards-flip-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 40px auto;
  max-width: 1000px;
}

.card-flip {
  width: 180px;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.card-flip .card-front,
.card-flip .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%; /* ✅ forme ronde */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.6s;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Face avant */
.card-flip .card-front {
  background: #0071e3; /* bleu principal */
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Face arrière */
.card-flip .card-back {
  background: #f5f5f7;
  color: #111;
  transform: rotateY(180deg);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 25px;
}

/* Effet flip */
.card-flip.flipped .card-front {
  transform: rotateY(180deg);
}
.card-flip.flipped .card-back {
  transform: rotateY(360deg);
}

/* Responsive */
@media (max-width: 768px) {
  .card-flip {
    width: 140px;
    height: 140px;
  }
  .card-flip .card-front {
    font-size: 1rem;
  }
  .card-flip .card-back {
    font-size: 0.8rem;
  }
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}


.temoignage {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 20px;
  max-width: 400px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.etoiles {
  color: #FFD700; /* jaune doré */
  font-size: 1.2rem;
  align-self: flex-end;
  margin-top: 10px;
}



.btn-parcours {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #007BFF; /* Bleu */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn-parcours:hover {
  background-color: #0056b3;
}



/* ===== Modale (popup) ===== */
.modal {
  display: none; /* cachée par défaut */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6); /* fond sombre */
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  width: 80%;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.4s ease;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #0071e3;
}

.modal-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Bouton de fermeture */
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #0071e3;
}

/* Animation d’apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Modale (popup) ===== */
.modal {
  display: none; 
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.7); /* fond sombre */
  backdrop-filter: blur(6px);
}

/* Contenu de la modale */
.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 40px 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 700px;
  text-align: left;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  position: relative;
  font-family: 'Helvetica Neue', sans-serif;
  animation: fadeIn 0.5s ease;
}

/* Titre de la modale */
.modal-content h2 {
  margin-bottom: 25px;
  color: #0071e3;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
}

/* Paragraphes avec alinéa et interligne */
.modal-content p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  text-indent: 2em; /* ✅ alinéa au début de chaque paragraphe */
  margin-bottom: 20px;
}

/* Bouton de fermeture */
.close {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #0071e3;
}

/* Animation de fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


[data-animate] {
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* Header : logos sociaux en blanc */
.header-left a i,
.social-icons a i {
  color: #fff; /* blanc */
  font-size: 1.5rem;
  transition: color 0.3s;
}

/* Footer : logos sociaux en blanc */
.footer-social a i {
  color: #fff; /* blanc */
  font-size: 1.5rem;
  transition: color 0.3s;
}

/* Optionnel : hover */
.header-left a:hover i,
.social-icons a:hover i,
.footer-social a:hover i {
  color: #0071e3; /* bleu ou autre couleur au survol */
}


.floating-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* laisse les bulles cliquables derrière */
  overflow: hidden;
  z-index: 0; /* derrière les bulles principales */
}

.floating-bubbles span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(0, 113, 227, 0.2);
  border-radius: 50%;
  animation: float 10s linear infinite;
  bottom: -50px;
}

/* Positions et tailles aléatoires */
.floating-bubbles span:nth-child(1){ left: 10%; width:25px; height:25px; animation-duration:12s;}
.floating-bubbles span:nth-child(2){ left: 20%; width:15px; height:15px; animation-duration:8s;}
.floating-bubbles span:nth-child(3){ left: 30%; width:30px; height:30px; animation-duration:15s;}
.floating-bubbles span:nth-child(4){ left: 40%; width:20px; height:20px; animation-duration:10s;}
.floating-bubbles span:nth-child(5){ left: 50%; width:25px; height:25px; animation-duration:12s;}
.floating-bubbles span:nth-child(6){ left: 60%; width:15px; height:15px; animation-duration:8s;}
.floating-bubbles span:nth-child(7){ left: 70%; width:30px; height:30px; animation-duration:15s;}
.floating-bubbles span:nth-child(8){ left: 80%; width:20px; height:20px; animation-duration:10s;}
.floating-bubbles span:nth-child(9){ left: 90%; width:25px; height:25px; animation-duration:12s;}

/* Animation des bulles */
@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0.5; }
  50% { transform: translateY(-50vh) translateX(20px); opacity: 0.7; }
  100% { transform: translateY(-100vh) translateX(-20px); opacity: 0; }
}


/* === Base header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: rgba(0, 113, 227, 0.9); /* ton bleu */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.logo span {
  color: #fff; /* reste blanc */
}

/* Menu desktop */
nav ul {
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ddd;
}

/* Icônes sociales */
.header-left a {
  color: #fff;
  font-size: 1.3rem;
  margin-right: 15px;
}

/* === Burger === */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* === Responsive === */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 113, 227, 0.95);
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .menu-toggle {
    display: flex;
  }

  nav.active {
    transform: translateX(0);
  }
}

