/* Container générique */
.container {
  /*max-width: 1400px;*/
  margin: 0 auto;
  padding: 0 20px;
  /*box-sizing: border-box;*/
}

/* ================= HERO ================= */
.hero {
    position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero .bg2,
.hero .bg1 {
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  transform: scaleY(-1);
  z-index: 0;
}

.avatars {
  position: relative;
  z-index: 5;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.avatars img {
  width: 87px;
  height: 87px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -10px;
}


.avatars span {
  font-size: 20px;
  margin-left: 18px;
  color: #000;
}

.hero-text {
  position: relative;
  z-index: 5;
  max-width: 833px;
  margin: 40px auto;
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
}

.hero-title {
  font-weight: 600;
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-sub {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
    padding: 0 3em 0 3em;
}

.accent { color: var(--color-green); }

.cta {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0;
  margin-bottom: 5em;
  width: 200px;
  height: 50px;
  background: var(--color-green);
  border-radius: 50px;
  font-family: 'Inter';
  font-weight: 600;
  font-size: 24px;
  color: var(--color-white);
  text-decoration: none;
}

.cta:hover { filter: brightness(1.05); }


/* Post-its décoratifs */
.postit {
  position: absolute;
  width: 120px;
  height: 120px;
  box-shadow: 5px 5px 4px rgba(0,0,0,0.25);
  font-family: 'Inter';
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* derrière le texte */
  pointer-events: none; /* jamais cliquables */
}

/* Placements adaptés autour du Hero */
.p8 { left: 5%;   top: 15%;  background: #97CC64; transform: rotate(10deg); }
.p7 {left: 2%;top: 45%;background: #BB393C;color:#fff;}
.p6 { left: 8%;   top: 70%;  background: #589BF7; color:#fff; }
.p5 {right: 3%;top: 20%;transform: rotate(-20deg);background: #97CC64;}
.p4 {right: 9%;top: 40%;background: #FFC562;}
.p3 {right: 1%;top: 50%;transform: rotate(10deg);background: #589BF7;color:#fff;}
.p2 {right: 85%;top: 55%;transform: rotate(-10deg);background: #9A7ED9;color:#fff;}

.postit.p2 {}
.p1 {right: 5%;top: 67%;background: #BB393C;transform: rotate( 25deg); color:#fff;}

/* En responsive : masquer les post-its */
@media (max-width: 1280px) {
  .postit { display: none; }
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    padding-bottom: -10em;
}

/* ================= SECTION APPRENDRE ================= */
.apprendre {
  /*background: var(--bg);*/
  padding: 80px 20px;
}

.apprendre .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.apprendre-illustration {
  flex: 1 1 45%;
  min-height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.apprendre-text {
  flex: 1 1 45%;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
}

.apprendre-title {
  font-weight: 600;
  margin-bottom: 30px;
}

/* Slider texte */
.apprendre-slider {
  width: 100%;
  max-width: 400px; /* ajuste selon ton design */
  margin: 0 auto;
}
.apprendre-slider .swiper-slide {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}
.apprendre-slider .swiper-pagination {
  margin-top: 20px;
}

.accent-green { color: var(--color-green); }
.accent-purple { color: var(--color-text); }

/* ================= FEATURES ================= */
.apprendre-section {
  padding: 100px 20px;
}

.section-title {
  text-align: center;
  font-size: 48px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 60px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  border-radius: 95px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
}

.feature-illus {
  width: 100%;
  max-width: 350px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-inner h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin: 12px 0;
}

.feature-inner p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* couleurs de fond spécifiques */
.f-left  { background: rgba(154,126,217,0.54); color: var(--color-text); }
.f-mid   { background: rgba(169,87,88,0.73);  color: var(--color-text); }
.f-right { background: rgba(78,107,216,0.8);  color: var(--color-text); }

/* ================= PROFESSEURS ================= */
.professeurs-section {
  padding: 100px 20px;
}

.prof-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-text);
}

.prof-title span { color: var(--color-green); }

.prof-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.prof-card {
  background: var(--color-accent-blue);
  border-radius: 16px;
  box-shadow: 4px 6px 8px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prof-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.prof-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 10px 0;
  color: var(--color-text);
}

.prof-card button {
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 25px;
  border: none;
  background: var(--color-green);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.prof-card button:hover { filter: brightness(1.05); }


/* ======================= CV CAROUSEL APPLE-LIKE ======================= */
.cv-carousel-section.full {
  padding: 120px 20px;
  position: relative;
  text-align: center;
  /*background: radial-gradient(circle at 30% 30%, #f7f9fc, #eef1f6);*/
  /*overflow: hidden;*/
}
.cv-carousel-section.full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-white);
  background-position: 20% 20%, 70% 70%, 50% 90%;
  animation: moveGradient 20s ease-in-out infinite alternate;
  z-index: 0;
  filter: blur(90px);
}
@keyframes moveGradient {
  0% { background-position: 20% 20%, 70% 70%, 50% 90%; }
  50% { background-position: 60% 30%, 40% 80%, 80% 40%; }
  100% { background-position: 30% 70%, 70% 40%, 20% 50%; }
}
.cv-carousel-section.full > * { position: relative; z-index: 1; }

.cv-carousel-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.cv-carousel-subtitle {
  color: var(--color-text);
  margin-bottom: 60px;
  font-size: 1.05rem;
    font-weight: bold;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1050px;
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.cv-slide {
  flex: 0 0 100%; /* chaque slide occupe 100% de la largeur du container */
  display: flex;
  justify-content: center;
  align-items: center;
}


.cv-slide.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}


.cv-profile {
  background: var(--color-card-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 900px;
  text-align: left;
  transition: transform 0.3s ease;
}
.cv-profile:hover { transform: translateY(-6px); }

.cv-profile img {
  width: 280px;
  height: 280px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.cv-profile img:hover { transform: scale(1.03); }

.cv-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}
.cv-info .role {
  font-weight: 600;
  color: #75AA3C;
  margin-bottom: 20px;
}
.cv-info .desc {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 600px;
}
.cv-info h4 {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  border-left: 4px solid #75AA3C;
  padding-left: 10px;
}

.hover-image-wrapper {
    position: relative;
    display: inline-block;
}

.hover-image-wrapper img.hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-image-wrapper:hover img.hover {
    opacity: 1;
}

.hover-image-wrapper:hover img.default {
    opacity: 0;
}

/* --- Progress bars --- */
.progress-item { margin-bottom: 12px; }
.progress-item span {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
}
.progress {
  background: #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  height: 10px;
}
.progress div {
  background: linear-gradient(90deg, #750101, #75AA3C);
  height: 100%;
  border-radius: 12px;
  transition: width 1s ease;
}

/* --- Buttons --- */
.carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-btn img {
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease;
    background-color: var(--color-accent-blue);
    border-radius: 30px;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.cv-modal[aria-hidden="false"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}
.cv-modal__dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  width: min(90vw, 900px);
  height: min(85vh, 700px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-pop 0.4s ease;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 24px; }
  .cta { width: 240px; height: 60px; font-size: 20px; }
  .postit { display: none; }
}

@media (max-width: 900px) {
  .cv-profile {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .cv-profile img {
    width: 200px;
    height: 200px;
  }
  .cv-info h3 { font-size: 1.5rem; }
  .cv-info .desc { font-size: 0.95rem; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 15px; }
  .hero-title { font-size: 32px; line-height: 1.2; }
  .hero-sub { font-size: 18px; }
  .apprendre .container { flex-direction: column; }
  .features { grid-template-columns: 1fr; }
  .prof-card img { width: 140px; height: 140px; }
}
/* ======================= POPUP CV (AMÉLIORATION) ======================= */

/* Empêcher le scroll derrière le popup */
html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

/* Arrière-plan du modal */
.cv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

/* Animation de fermeture */
.cv-modal.closing .cv-modal__dialog {
  animation: modal-fade-out 0.3s ease forwards;
}
.cv-modal.closing .cv-modal__backdrop {
  animation: fadeOut 0.3s ease forwards;
}

/* Animation d'apparition */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes modal-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Bouton de fermeture */
.cv-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.cv-modal__close:hover {
  color: #75AA3C;
}
/* ======================= POPUP CV FIX ======================= */
.cv-modal {
  position: fixed;
  inset: 0;
  display: none; /* caché par défaut */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

/* Lorsqu’il est actif */
.cv-modal[aria-hidden="false"] {
  display: flex !important;
}

/* Fenêtre principale */
.cv-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: min(90vw, 900px);
  height: min(85vh, 700px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  animation: modal-pop 0.3s ease;
}

/* Bouton de fermeture */
.cv-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.cv-modal__close:hover {
  color: #75AA3C;
}

/* Iframe ou HTML affiché dans le CV */
#cv-frame, #cv-html {
  flex: 1;
  width: 100%;
  border: none;
  background: #fafafa;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Bouton Télécharger */
.cv-download-btn {
  display: block;
  padding: 12px;
  text-align: center;
  background: var(--color-green);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.cv-download-btn:hover {
  filter: brightness(1.15);
}

.btn-social {
   text-decoration: none;
    color: #1F232B;
    background-color: #EEEEEE;
    font-weight: bold;
    padding: 12px 12px;
    border-radius: 30px;
}

/* Animation d'apparition */
@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
