body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0a1f2f;
  color: #f0f0f0;
  font-size: 1rem;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  user-select: none;
}

a {
  color: #79cfff;
  text-decoration: none;
}

.header {
  background-color: #081830;
  color: white;
  padding: 0.8rem 1.5rem; /* réduit la hauteur */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: auto;
  padding: 0 3rem;
}

.photo-wrapper {
  position: relative;
  width: 250px;
  height: auto;
  margin: 2rem auto;
}

.photo-shadow {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-color: #111;
  z-index: 0;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.photo-profil {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  z-index: 1;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.slogan {
  font-style: italic;
  font-size: 1.3rem;
  margin-top: 0.4rem;
  color: #cccccc;
}

.container {
  max-width: 90%;
  margin: auto;
  padding: 2rem 1rem;
  font-size: 1rem;
}

h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.presentation {
  font-size: 1.1rem; /* ou 1.2rem pour plus grand */
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Double colonne */
.grid-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.school-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
}

.school-entry img {
  width: 50px;
  height: auto;
  object-fit: contain;
  background-color: white;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.school-entry p {
  margin: 0.3rem 0;
  line-height: 1.4;
}

.specialite {
  font-style: italic;
  color: #b0d8ff;
  margin-top: 0.4rem;
}

.school-entry-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* CV et LinkedIn */
.cv-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.cv-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  min-width: 240px;
}

.cv-card h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: white;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #00bfa5;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  gap: 0.5rem;
}

.cv-btn:hover {
  background-color: #00997a;
}

.icon {
  width: 20px;
  height: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #081830;
  color: #aaa;
}

@media (max-width: 768px) {
  .grid-double {
    grid-template-columns: 1fr;
  }

  .cv-links {
    flex-direction: column;
    align-items: center;
  }
}

.but-intro {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d0d0d0;
}

.geii-card {
  background-color: #1a4e8a;
}

.geii-card:hover {
  background-color: #163e70;
}

.note-technique {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem 2rem;
  margin: 3rem auto;
  max-width: 1000px;
  border-left: 4px solid #00bfa5;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 3rem;
}


.header-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}



#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: transparent;
  z-index: 9999;
}

#progress-bar {
  height: 100%;
  width: 0;
  background-color: #00bfa5;
  transition: width 0.2s ease-out;
}

.school-entry-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
  padding-top: 0.3rem;
}

.school-entry-logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background-color: white;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}


.entry-date {
  font-size: 0.75rem;
  color: #ccc;
  text-align: center;
  margin-top: 0.2rem;
  line-height: 1.2;
}

.entry-duration {
  font-size: 0.7rem;
  color: #999;
  text-align: center;
  margin-top: 0.1rem;
  line-height: 1.1;
}


.school-entry-text {
  display: flex;
  flex-direction: column;
}

.school-entry-text .entry-title {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #fff !important;
}

.competence-accordeon {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.accordion-card {
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  color: white;
  cursor: pointer;
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  transition: 0.3s ease;
}

.accordion-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.accordion-card:hover {
  transform: scale(1.02);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  margin-top: 0.8rem;
}

.accordion-content ul {
  padding-left: 1.2rem;
  margin: 0;
}

.accordion-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Couleurs officielles */
.rose  { background-color: #f6c1b3; color: #000; }
.vert  { background-color: #c5e8c8; color: #000; }
.jaune { background-color: #fcd98b; color: #000; }
.gris  { background-color: #e3e3e3; color: #000; }

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: auto;
}


.header-iut-logo {
  width: 10vw;
  min-width: 100px;
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .container {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }

  .competence-accordeon {
    gap: 1rem;
  }

  .accordion-card h3 {
    font-size: 1rem;
  }

  .header-iut-logo {
    width: 120px;
  }
}

body, html {
  height: 100%;
}

main.container {
  min-height: 80vh; /* s’adapte à la hauteur de l’écran */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.school-entry:hover {
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.iut-hover {
  transition: background-color 0.3s ease;
}
.iut-hover:hover {
  background-color: #1a4e8a; /* Bleu GEII */
  color: white;
}
.iut-hover:hover .specialite {
  color: #cce7ff;
}

.sopemea-hover {
  transition: background-color 0.3s ease;
}
.sopemea-hover:hover {
  background-color: #3b8c77; /* Vert-bleu Apave */
  color: white;
}
.sopemea-hover:hover .specialite {
  color: #cafff5;
}

.elcimai-hover {
  transition: background-color 0.3s ease;
}
.elcimai-hover:hover {
  background-color: #d35400; /* Orange industriel */
  color: white;
}
.elcimai-hover:hover .specialite {
  color: #ffe9cc;
}

.school-entry img {
  transition: transform 0.3s ease;
}

.hover-logo {
  transition: transform 0.3s ease;
}

.iut-hover:hover .hover-logo {
  transform: rotate(-3deg) scale(1.1);
}

.sopemea-hover:hover .hover-logo {
  transform: rotate(3deg) scale(1.1);
}

.elcimai-hover:hover .hover-logo {
  transform: rotate(-2deg) scale(1.1);
}

.no-hover:hover {
  background-color: inherit;    
  transform: none;           
  box-shadow: none;            
  cursor: default;              
}

.no-hover .hover-logo {
  transition: none;
}

.no-hover:hover .hover-logo {
  transform: none;              
}

.no-hover {
  transition: none !important;
}

.no-hover:hover {
  background-color: inherit !important;
  color: inherit;
  box-shadow: none;
  transform: none;
  cursor: default;
}

.no-hover:hover .hover-logo {
  transform: none !important;
  transition: none !important;
}

.but-nav-icons-vertical {
  position: absolute;
  top: 2.25rem; 
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.nav-icon {
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-icon:hover {
  transform: scale(1.2);
  color: #00bfa5;
}

.apprentissages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.apprentissage-card {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  height: 180px;
  padding: 1rem;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  font-weight: bold;
  text-decoration: none;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 50, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.contact-btn {
  padding: 0.8rem 1.5rem;
  background-color: #00bfa5;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #00997a;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #0a1f2f;
  color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid #00bfa5;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.modal-content a {
  color: #79cfff;
}

.close {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: white;
}

.header .subtitle {
  font-size: 1.3rem; /* augmente si besoin, par ex. 1.5rem */
}

.section-bloc {
  padding: 2rem 3rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.section-presentation {
  background-color: rgba(255, 255, 255, 0.02); /* léger contraste */
}

.section-parcours {
  background-color: rgba(0, 150, 136, 0.05); /* vert pale léger */
}

.section-experiences {
  background-color: rgba(33, 150, 243, 0.05); /* bleu pale léger */
}

.logo-iut img {
  width: 500px;     /* Ajuste ici la taille du logo */
  max-width: 100%;
  height: auto;
  margin-left: 2rem;
}

.header-content-but {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: auto;
  padding: 1.5rem 3rem;
}

@media (max-width: 768px) {
  .header-content-but {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .logo-iut img {
    width: 180px; /* ou 120px si c’est encore trop gros */
    margin-top: 1rem;
  }

  .title-text-but h1 {
    font-size: 1.4rem; /* pour éviter que ça déborde */
  }

  .title-text-but p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .nav-icon {
    margin-top: 0rem;  /* réduit l’espace au-dessus */
    margin-bottom: 0rem;  /* réduit l’espace en dessous */
  }
}


/* Accordéon stylisé */
.competence-accordeon {
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(3px);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.08);
}

.accordion-card {
  border-radius: 18px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.2rem;
  color: #222;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px #0001;
  border: none;
  transition: box-shadow 0.3s, transform 0.2s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.accordion-card h3 {
  font-size: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.accordion-card:hover {
  box-shadow: 0 8px 32px #00bfa555, 0 1.5px 8px #0002;
  background: rgba(0,191,165,0.10);
  transform: scale(1.015);
}

.accordion-card.rose { background: #f6c1b3; }
.accordion-card.vert { background: #c5e8c8; }
.accordion-card.jaune { background: #fcd98b; }
.accordion-card.gris { background: #e3e3e3; }

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s cubic-bezier(.4,2,.6,1), padding 0.3s;
  padding: 0 0;
  background: transparent;
}

.accordion-card.active .accordion-content {
  padding: 1.2rem 0 0.5rem 0;
}

.accordion-card.rose:hover, .accordion-card.rose.active {
  box-shadow: 0 0 24px 8px #e5737355;
}
.accordion-card.vert:hover, .accordion-card.vert.active {
  box-shadow: 0 0 24px 8px #81c78455;
}
.accordion-card.jaune:hover, .accordion-card.jaune.active {
  box-shadow: 0 0 24px 8px #ffd54f77;
}
.accordion-card.gris:hover, .accordion-card.gris.active {
  box-shadow: 0 0 24px 8px #90a4ae77;
}

.apprentissages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}




/* Effet de zoom léger et centré sur l'image de fond des cartes compétences */
.apprentissage-card {
  /* ...autres styles... */
  background-size: cover;
  background-position: center;
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s, background-size 0.4s;
}

.apprentissage-card:hover {
  transform: scale(1.025);
  /* background-size: 108%;  <-- supprime cette ligne */
  box-shadow: 0 8px 32px #00bfa555, 0 2px 12px #0002;
  background-color: rgba(0,191,255,0.13);
}


.apprentissage-card:hover::before {
  color: #00bfa5;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .competence-accordeon {
    padding: 1.2rem 0.5rem;
  }
  .accordion-card {
    padding: 1rem 0.7rem;
  }
  .apprentissages-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.but-intro,
.competence-accordeon,
.section-bloc,
.cv-card {
  background: rgba(255,255,255,0.07);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(3px);
  border: 1.5px solid rgba(255,255,255,0.08);
}

.contact-btn, .cv-btn {
  background: linear-gradient(90deg, #00bfa5 60%, #0081cb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.3s, transform 0.2s;
}

.contact-btn:hover, .cv-btn:hover {
  background: linear-gradient(90deg, #0081cb 60%, #00bfa5 100%);
  transform: scale(1.04);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(.4,2,.6,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



.langue-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff; /* Texte en blanc */
}


.flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 4px #0002;
  object-fit: cover;
  border: 1px solid #eee;
}


@media (max-width: 768px) {
  .header-right {
    align-items: center;
  }
  .bloc-langues {
    margin-top: 1.2rem;
    width: 100%;
    text-align: center;
  }
}

.bloc-langues {
  background: rgba(10, 31, 47, 0.92); /* bleu nuit semi-transparent */
  border-radius: 12px;
  padding: 1.2rem 2rem;
  display: inline-block;
  box-shadow: 0 4px 24px rgba(0, 191, 165, 0.10);
  margin: 1.5rem 0 1.5rem 0;
  color: #fff;
  min-width: 260px;
  border: 1.5px solid rgba(0,191,165,0.18);
}

.langue-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7em;
  font-size: 1.05rem;
  margin-bottom: 0.4em;
  color: #fff;
  min-width: 210px;
}

.langue-nom {
  flex: 1 1 100px;
  margin-left: 0.5em;
  text-align: left;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.niveau-mini {
  color: #fff;
  background: linear-gradient(90deg, #0081cb 60%, #00bfa5 100%);
  border-radius: 6px;
  padding: 0.1em 0.6em;
  font-size: 0.95em;
  font-weight: 400;
  margin-left: 1em;
  min-width: 70px;
  text-align: center;
  display: inline-block;
}

.flag-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* largeur fixe pour tous les drapeaux */
  min-width: 32px;
  max-width: 32px;
}

.school-entry {
  position: relative;
}

.voir-plus {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00bfa5;
  font-weight: 600;
  font-size: 0.92em;         /* plus petit */
  background: rgba(0,191,165,0.10);
  border-radius: 12px;        /* plus petit */
  padding: 0.12em 0.7em 0.12em 0.6em; /* padding réduit */
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  box-shadow: 0 2px 8px #00bfa522;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  z-index: 1;
}

.school-entry-link:hover .voir-plus,
.school-entry:hover .voir-plus {
  background: #00bfa5;
  color: #fff;
  box-shadow: 0 4px 16px #00bfa555;
  text-decoration: underline;
}


.school-entry:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 32px #00bfa555, 0 2px 12px #0002;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-bloc {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInSection 0.8s forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInSection {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.section-bloc, .cv-card, .competence-accordeon {
  background: rgba(10, 31, 47, 0.85);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(0,191,165,0.10);
}

.cv-btn, .school-entry {
  transition: transform 0.25s cubic-bezier(.22,1,.36,1);
}

#particles-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
body {
  position: relative;
  z-index: 1;
}

/* Animation coordonnées */
@keyframes slideInContact {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-content p, .modal-content h3 {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
}
.modal-content .contact-visible {
  animation: slideInContact 0.5s forwards;
}

@media (max-width: 600px) {
  .voir-plus {
    font-size: 0.98em;
    right: 0.7em;
    top: auto;
    bottom: 0.7em;
    transform: none;
    padding: 0.18em 0.9em;
    border-radius: 10px;
    position: static; /* pour éviter les soucis de chevauchement */
    margin-top: 0.7em;
    align-self: flex-end;
    display: inline-flex;
  }
  .school-entry {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }
}

/* Fond de la modale : transparent autour */
.modal-appr {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10,31,47,0.75); /* transparent autour */
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 0;
}

/* Fenêtre modale : opaque, large, centrée */
.modal-appr-content {
  background: #162b3a; /* opaque */
  color: #fff;
  border-radius: 32px;
  padding: 2.8em 3.5em 2.5em 3.5em;
  width: 96vw;
  max-width: 1200px;
  min-height: 70vh;
  max-height: 94vh;
  margin: auto;
  box-shadow: 0 12px 48px #000a;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  animation: fadeInSection 0.5s;
  overflow-y: auto;
}

.close-appr {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5em;
  color: #00bfa5;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
  z-index: 10;
  background: none;
  border: none;
  line-height: 1;
}

.close-appr:hover { color: #fff; }

.modal-appr-content h2 {
  font-size: 2.2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #00bfa5;
  font-weight: 800;
  letter-spacing: 1px;
}

.appr-section {
  margin-bottom: 2em;
  max-width: 1000px;
  width: 95vw;
}

.appr-section h3 {
  margin-bottom: 0.7em;
  color: #00bfa5;
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.appr-section p {
  font-size: 1.18em;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 0.7em;
}

.appr-traces h3 {
  margin-bottom: 1em;
  color: #0081cb;
  font-size: 1.15em;
}

.traces-grid {
  display: flex;
  gap: 2em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.trace-img {
  width: 380px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 40px #00bfa555;
}

.trace-img:hover { transform: scale(1.12); box-shadow: 0 8px 32px #00bfa555; }

/* Responsive mobile */
@media (max-width: 900px) {
  .modal-appr-content {
    padding: 1.2em 0.5em;
    width: 99vw;
    max-width: 99vw;
    min-height: 60vh;
    max-height: 98vh;
    border-radius: 16px;
  }
  .close-appr {
    top: 0.7em;
    right: 1em;
    font-size: 2em;
  }
  .modal-appr-content h2 {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
  .appr-section {
    max-width: 98vw;
    width: 98vw;
    margin-bottom: 1.2em;
  }
  .appr-section h3 {
    font-size: 1em;
  }
  .appr-section p {
    font-size: 0.98em;
  }
  .traces-grid {
    gap: 0.7em;
  }
  .trace-img {
    width: 90vw;
    max-width: 220px;
    height: 80px;
  }
}
.appr-rappel {
  position: absolute;
  top: 1.2em;
  left: 2em;
  font-size: 1em;
  color: #00bfa5;
  background: #0a1f2f;
  padding: 0.25em 0.8em;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.5px;
  z-index: 11;
  box-shadow: 0 2px 8px #00bfa522;
}
@media (max-width: 700px) {
  .appr-rappel {
    top: 0.7em;
    left: 1em;
    font-size: 0.95em;
    padding: 0.18em 0.6em;
  }
}

.appr-ac {
  position: absolute;
  top: 1.2em;
  left: 2em;
  font-size: 1em;
  color: #00bfa5;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.5px;
  z-index: 11;
}
@media (max-width: 700px) {
  .appr-ac {
    top: 0.7em;
    left: 1em;
    font-size: 0.95em;
  }
}
.appr-traces h3 {
  text-align: center;
}

.accordion-card.rose:hover, .accordion-card.rose.active {
  box-shadow: 0 0 24px 8px #e5737355;
}
.accordion-card.vert:hover, .accordion-card.vert.active {
  box-shadow: 0 0 24px 8px #81c78455;
}
.accordion-card.jaune:hover, .accordion-card.jaune.active {
  box-shadow: 0 0 24px 8px #ffd54f77;
}
.accordion-card.gris:hover, .accordion-card.gris.active {
  box-shadow: 0 0 24px 8px #90a4ae77;
}

.apprentissage-card.rose:hover {
  box-shadow: 0 0 18px 6px #e57373cc;
}
.apprentissage-card.vert:hover {
  box-shadow: 0 0 18px 6px #81c784cc;
}
.apprentissage-card.jaune:hover {
  box-shadow: 0 0 18px 6px #ffd54fcc;
}
.apprentissage-card.gris:hover {
  box-shadow: 0 0 18px 6px #90a4aecc;
}

.apprentissages-grid {
  padding: 12px;
}

.trace-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5em;
}

.trace-title {
  display: block;
  text-align: center;
  margin-top: 0.7em;
  font-size: 1.25em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px #0008;
}

.iut-hover:hover {
  background-color: #1a4e8a;
  color: white;
  box-shadow: 0 8px 32px #1a4e8acc, 0 2px 12px #0002;
}

.sopemea-hover:hover {
  background-color: #3b8c77;
  color: white;
  box-shadow: 0 8px 32px #3b8c77cc, 0 2px 12px #0002;
}

.elcimai-hover:hover {
  background-color: #d35400;
  color: white;
  box-shadow: 0 8px 32px #d35400cc, 0 2px 12px #0002;
}

.apprentissage-card.rose .ac-num {
  color: #e57373;
}
.apprentissage-card.vert .ac-num {
  color: #81c784;
}
.apprentissage-card.jaune .ac-num {
  color: #ffd54f;
}
.apprentissage-card.gris .ac-num {
  color: #90a4ae;
}

.apprentissage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2em;
}

.apprentissage-nom {
  font-size: 1.08em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5em;
  text-align: center;
  max-width: 340px;
  word-break: break-word;
}
.apprentissage-card {
  min-width: 320px;
  max-width: 100%;
  height: 180px;
}

.apprentissage-nom {
  color: #111;
  font-size: 1.08em;
  font-weight: 600;
  margin-bottom: 0.5em;
  text-align: center;
  max-width: 340px;
  word-break: break-word;
  min-height: 4em; 
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.apprentissage-item:hover .apprentissage-card {
  transform: scale(1.08);
  box-shadow: 0 8px 32px #0006;
  z-index: 2;
}

.apprentissage-item:hover .apprentissage-nom {
  color: #0006;
  font-size: 1.25em;
  transition: font-size 0.2s, color 0.2s;
}
#appr-part1,
#appr-part2,
#appr-part3,
#appr-part1 p,
#appr-part2 p,
#appr-part3 p {
  text-align: justify;
}

#appr-part1 p,
#appr-part2 p,
#appr-part3 p {
  text-indent: 4em;
}