@import url('https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&display=swap');

@font-face {
  font-family: 'Montserrat';
  src: url('Montserrat/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('Montserrat/Montserrat-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #f9f9f9; 
  color: #222222; 
  margin: 0;
  line-height: 1.5;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.banner {
text-align: center;
background-color: #f9f9f9;
color: #222222;
padding: 23px 20px;
padding-top: 150px;
display: block;
height: 10vw;
margin: 0;
max-width: 100%;
width: auto;
}

.banner .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 53, 90, 0.8);
  z-index: 1;
}

.banner-logo {
  position: relative;
  z-index: 2;
  width: auto;
}

.banner img {
  max-width: 400px;
  width: 70vw;
  height: auto;
  display: block;
  margin: 0 auto;
  top: -100px;
}

@media (min-width: 768px) {
  .banner img {
    width: 35vw;
  }
}

header {
background-image: url(../img/Tour_IUT.png);
background-position: 24.8969% 43.9524%;
background-repeat: no-repeat;
background-size: cover;
width: auto;
position: relative;
z-index: 4;
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto; 
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 2em;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 50px;
  max-height: 45px;
  width: auto;
  display: block;
}

@media (max-width: 1024px) {
  .nav-logo img {
    height: 38px;
  }
}

/* ================================================ Nav ================================================*/
nav {
  background-color: #2b355a;
  position: relative;
  z-index: 1000;
}

nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav li {
margin: 0 10px;
}

nav a:focus {
  outline: none;
}

nav li a {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: #978273;
  text-decoration: none;
  padding: 0.5em;
}

nav li.active > a {
  color: #fff !important;
  background-color: #E1663C;
}

/* Bouton burger - caché sur desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: #978273;
  cursor: pointer;  
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

/* Sous-niveaux imbriqués */
.submenu .sousmenus {
  margin-left: 2em; 
  border-left: 2px solid rgba(255,255,255,0.2); 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0;
}

/* ================================================ DROPDOWNS ================================================ */
nav li.dropdown {
  position: relative;
}

.submenu_user {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  z-index: 10000;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.submenu_user.open {
  display: block;
}

nav li.dropdown ul.submenu,
nav li.dropdown ul.submenu_user {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2b355a;
  min-width: 200px;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

nav li.dropdown.open > ul.submenu,
nav li.user-icon .submenu_user.open {
  display: block;
}

nav li.dropdown ul li a,
nav .submenu_user li a {
  padding: 0.5em;
  color: #978273;
  text-align: left;
}

nav li.dropdown ul li a:hover,
nav .submenu_user li a:hover {
  color:#fff;
  background-color: #E1663C;
  padding: 0.5em;
}

/* --- ICÔNE UTILISATEUR --- */
.user-menu img {
  display: block;
  margin: 0 auto;
}


/* ================================================ actu ================================================ */
.info-banner {
  background-color: #E1663C;
  color: #fff;
  padding: 10px;
  overflow: hidden;
  position: relative;
  font-size: 1.2rem;
  height: 20px;
}

.info-banner-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ================================================ article ================================================ */
article {
  max-width: 1180px;
  margin: 0 auto;
  background-color: #f9f9f9;
  /* padding: 20px 20px; */
  border-radius: 8px;
  font-size: 1rem;
  color: #222222;
}

/* ================================================ bloc de compétences ================================================ */
.competence-swiper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 30px !important; 
}

.competence-swiper .swiper-slide {
  display: flex;
  justify-content: center;
}

.competence-swiper img {
  width: 100%;
  height: auto;
  max-width: 280px;
  object-fit: contain;
}

.competence-swiper .swiper-pagination {
  position: absolute;
  bottom: 10px;   /* distance depuis le bas du bloc */
  left: 0;
  width: 100%;
  text-align: center;
}


/* ================================================ Qui sommes nous ================================================ */
.team-container {
  max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  margin: 10px;
  padding: 12px 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.profile-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #2b355a;
}

.role {
  margin-top: 10px;
}

.description {
  margin-top: 10px;
  font-size: 15px;
}

/* Styles pour le carrousel des professeurs */
.swiper-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;
  align-items: stretch;
}

/* Nouvelle classe pour les professeurs */
.professor-member {
  background-color: #fff;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 100%;
  max-width: 330px;
  height: 380px; 
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.professor-member .profile-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #2b355a;
  display: block;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .swiper-container {
  padding-left: 0px;
  }

  .swiper-slide {
    width: 100%; 
  }

  .professor-member {
    width: 100%; 
  }

  .profile-image img {
    width: 100px;
    height: 100px;
  }

  img {
    max-width: 400px;
  }
}

@media (min-width: 768px) {
  .team-member {
    width: 48%; 
  }
}

@media (min-width: 1200px) {
  .team-member {
    width: 30%; 
  }
}

footer{
  margin: 0;
  display: grid;
}

.f1 {
  background-color: #E1663C; 
  color: #f9f9f9;
  padding: 20px 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
}

.f1 div {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.f1 p {
  margin: 0;
  font-size: 10px;
  position: relative;
  top: -1.5em;
  left: 2.5em;
}

.f1 img {
  height: 65px;
}

.f2 {
  background-color: #2b355a;
  color: #f9f9f9;
  margin: 0;
  display: flex;
  justify-content: space-around;
  font-size: 13px;
  align-items: center;
}

.f2 img {
  height: 30px;
}

.f2 a {
  color: #f9f9f9;
}

.f2 a:hover {
  color: #E1663C;
}

footer img {
height: 50px;
}

img.align-left {
  float: left;
  margin: 0 0 20px 20px;
  max-width: 35%;
  height: auto;
}

img.align-right {
  float: right;
  margin: 0 0 20px 20px;
  max-width: 35%;
  height: auto;
}

/* ================================================ Stats ================================================*/

.banner-stats-annee {
  background-color: #2b355a;
  padding: 30px 0 5px 0;
  text-align: center;
  margin: 40px 0;
}

.banner-stats-annee img {
  height: 60px;
  width: auto;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  max-width: 180px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.stat-item p {
  font-size: 0.95rem;
  margin-top: 25px;
}


/* ================================================ banner parcours ================================================ */
.parcours {
  background-color: #2b355a;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 30px;
}

.parcours h2 {
  margin-bottom: 40px;
  color:#f9f9f9
}

.parcours a {
  color: #f9f9f9;
}

.parcours-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.parcours-grid a:hover {
  color:#E1663C;
}

.parcours-item {
  width: 260px;
  max-width: 260px;
  text-align: center;
}

.parcours-item img {
  max-height: 80px;
  margin-bottom: 20px;
}

.parcours-item p {
  font-size: 16px;
  line-height: 1.4;
}

.cta-parcours {
  margin-top: 40px;
}

.full-width-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}


/* ================================================ page parcours ==================================================== */

.parcours-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 0;
}

.parcours-haut {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.parcours-texte {
  flex: 1 1 60%;
  text-align: justify;
}

.parcours-metiers {
  flex: 1 1 35%;
}

.parcours-bas {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: stretch; 
}

.parcours-blocs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex: 0 1 65%;
  align-content: flex-start;
}

.parcours-blocs img {
  width: calc(50% - 1rem);
  max-width: 250px;
  height: auto;
}

.parcours-boutons {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 38%;
}

.parcours-admission {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: stretch; 
  background-color: #2b355a;
  padding: 20px;
  color: #f9f9f9;
  margin-top: -20px;
}

.admission-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100px;
}

.admission-item img {
  width: auto;
  height: 60px;
  margin-bottom: 1rem;
}

.admission-item p {
  text-align: center;
  margin: 0;
  display: flex;
  align-items: flex-start; 
}

/* Responsive */
@media (max-width: 768px) {
  .parcours-haut,
  .parcours-bas {
    flex-direction: column;
    align-items: center;
  }

  .parcours-blocs {
    justify-content: center;
  }

  .parcours-blocs img {
    width: 100%;
    max-width: 300px;
  }

  .parcours-boutons {
    align-items: center;
  }

  .parcours-admission {
    flex-direction: column;
    align-items: center;
  }

  .admission-item {
    flex: 1 1 100%;
    max-width: 300px;
  }
}

/* ================================================ Formulaire Contact ================================================ */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f9f9f9;
  color: #222222;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  color: #222222;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  font-size: 16px;
  background-color: white;
  color: #222222;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid #E1663C;
}

.contact-form button {
  background-color: #E1663C;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #cc5733;
}

.contact-form .required {
  color: #E1663C;
}

.contact-form .confidentialite {
  font-size: 0.9em;
  color: #222222;
}

.contact-form .confidentialite a {
  color: #E1663C;
  text-decoration: underline;
}

.contact-form .note {
  font-size: 0.85em;
  color: #222222;
}

/* ================================================ Bouton ================================================ */
.formation-btn {
  color: #2b355a;
  font-size: 16px;
  border-color: #c75a41;
  border-width: 3px;
  border-style: solid;
  border-radius: 50px;
  padding: 10px 20px;
  text-decoration: none;
}

.formation-btn:hover {
  background-color: #978273;
}

/* ================================================ login ================================================ */

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-wrapper main {
  flex: 1;
}

.login-wrapper {
  max-width: 400px;
  width: 90%;
  margin: auto;
  padding: 30px;
  background-color: #2b355a;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.login-form .form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background-color: #fff;
  color: #2b355a;
}

.login-form .form-input:focus {
  outline: none;
  border-color: #E1663C;
  box-shadow: 0 0 0 2px rgba(225,102,60,0.3);
}

.btn-login {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  background-color: #E1663C;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #c84f2d;
}

@media screen and (max-width: 480px) {
  .login-wrapper {
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

/* ================================================ Ligne ================================================ */
hr {
  border-style: solid;
  border-width: 0;
  border-bottom-width: 5px;
  border-color: #978273;
}

.arrow {
  margin-left: 3px; 
  transition: transform 0.3s ease;
}


h1 {
  font-size: 30px;
}

h3, h2 {
  font-size: 30px;
  color: #2b355a;
}

.savoirplus {
  border: 0;
  line-height: 2.5;
  padding: 0 20px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 10px;
  background-color: #2b355a;
  margin-bottom: 10px;
}

.savoirplus:hover {
  background-color: #E1663C;
  cursor: pointer;
}

/* ================================================ Réalisations ================================================ */
.gallery-item {
  max-width: 1000px;
  margin: 0 auto 0;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  font-size: 17px;
  color: #222222;
  position: relative;
}

/* Carrousel principal */
.swiper-main {
  width: 100%;
  margin-bottom: 15px;
}

.swiper-main img {
display: block;
margin: 0 auto;
max-width: 100%;
max-height: 100%;
height: auto;
width: auto;
object-fit: contain;
}

/* Miniatures : conserver format sans crop */
.swiper-thumbs {
height: auto;
display: flex;
justify-content: center;    
align-items: center;
padding: 10px 0;
}

.swiper-thumbs .swiper-wrapper {
display: flex;
justify-content: center;
align-items: center;
}

.swiper-thumbs .swiper-slide {
width: auto !important;
flex: 0 0 auto;
padding: 0 4px;
opacity: 0.4;
transition: opacity 0.3s ease;
}

.swiper-thumbs .swiper-slide-thumb-active {
opacity: 1;
}

.swiper-thumbs img {
max-height: 30px !important; 
width: auto;
height: auto;
object-fit: contain;
border: 2px solid transparent;
display: block;
margin: 0 auto;
cursor: pointer;
}

.swiper-thumbs .swiper-slide-thumb-active img {
border-color: #E1663C;
}

.masquer {
  display: none;
}

/* Flèches carrousel */
.swiper-button-next,
.swiper-button-prev {
color: white!important;
width: 30px !important;
height: 30px !important;
background: rgb(43, 53, 90, 0.8) ;
border-radius: 50%;
box-shadow: 0 0 4px rgba(0,0,0,0.1);
transition: all 0.3s ease;
margin: 10px;
}

.swiper-button-next:after, .swiper-button-prev:after {
font-size: 15px !important;
font-weight: bold !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
background: #2b355a;
color: #2b355a;
}

.swiper-main .swiper-slide {
display: flex;
justify-content: center;
align-items: center;
min-height: 500px; 
}

.carrousel-auto {
margin: 20px auto;
max-width: 1000px;
}

.swiper-slide {
display: flex;
justify-content: center;
align-items: center;
}

.swiper-slide img,
.swiper-slide video,
.swiper-slide iframe {
  max-width: 70%;
  max-height: 350px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ================================================ Retour vers le haut ================================================ */
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  right: 40px;
  display: none;
  z-index: 99;
  font-size: 18px;
  background-color: #2b355a;
  color: #f9f9f9;
  border: none;
  border-radius: 20%;
  padding: 15px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  width: 50px;
  height: 50px;
}
#scrollTopBtn:hover {
  background-color: rgba(204, 87, 51, 0.8);
}

/* ================================================ FAQ ================================================ */
details {
  margin-bottom: 1rem;
  border-bottom: 1px solid #978273;
  padding-bottom: 0.5rem;
  overflow: hidden;
}

summary {
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding: 0.5rem 0;
  list-style: none;
  transition: color 0.3s ease;
}

summary::marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  color: #E1663C;
  font-weight: bold;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: '–';
}

details ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style-type: disc;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

details[open] ul {
  opacity: 1;
  max-height: 500px;
}

/* ================================================ menu mobile ================================================ */
nav ul li.dropdown {
  position: relative;
}

nav li > a[href="#"] {
  cursor: default;
}


nav ul li.dropdown ul.submenu {
  display: none;
  top: 2.8em;
  left: -0.5em;
  background-color: #2b355a; 
  min-width: 100px;
  width: auto;
  padding: 5px 10px 15px 10px;
  margin: 0;
  list-style: none;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  white-space: nowrap;
}

nav ul li.dropdown:hover ul.submenu {
  display: block;
}

nav ul li.dropdown ul.submenu li {
  padding: 0.5em;
  color: #222222;
}

a {
  color: #E1663C;
  text-decoration: none;
}
/* hover...... */
.main-menu a:hover {
  color: #fff;
  background-color: #E1663C;
}

img[style*="float: right"] {
  float: right;
  max-width: 35%;
  height: auto;
  margin-left: 100px;
}

img[style*="float: left"] {
  float: left;
  max-width: 35%;
  height: auto;
}

/* Ajoute une zone tampon invisible pour éviter la sortie prématurée du hover */
nav ul li.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.nav-logo {
  position: relative;
  z-index: 3;
}

/* Sur mobile, cacher le menu classique, afficher burger */
@media (max-width: 1024px) {

  .banner img {
    max-width: 350px;
    width: 50vw;
  }

  .f2 p {
    margin: 0;
  }
  
nav ul li.dropdown ul.submenu {
    position: relative; 
    display: block;
    max-height: 0;
    overflow: hidden;
    padding-left: 1em;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    background-color: #1c233a;
    transition: max-height 0.3s ease, padding 0.3s ease;
    top: -1px;
  }

  nav ul li.dropdown:hover ul.submenu {
    display: block;
  }

  nav ul li.dropdown.open ul.submenu {
    max-height: 1000px;
    padding: 0.5em;
  }

  nav ul li.dropdown ul.submenu li a {
    font-size: 14px;
    padding: 0.5em 0;
    width: auto;
  }

  article img {
    width: -webkit-fill-available;
  }

  .nav-container {
    flex-wrap: nowrap;
    margin-right: 200px;
  }

  nav {
    position: relative;
  }

  .main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: #2b355a;
    flex-direction: column;
    padding-top: 60px;
    padding-left: 20px;
    gap: 15px;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .main-menu.open {
    left: 0;
    display: flex;
    justify-content: flex-start;
  }

    .menu-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .user-menu {
    position: absolute;
    right: 60px;
    bottom: 6px;
  }
  
  nav ul.open {
    max-height: 100vh;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 0.5em;
  }

  nav ul.main-menu {
    order: 2;
  }

  nav li.dropdown ul.submenu,
  nav .submenu_user {
    position: relative;
    background-color: #1c233a;
    box-shadow: none;
  }

  nav li.dropdown ul.submenu li a {
    padding-left: 2em;
    white-space: normal;         /* Permet le retour à la ligne */
    word-break: break-word;      /* Coupe les mots trop longs si nécessaire */
    line-height: 1.4;            /* Meilleure lisibilité */
    display: block;              /* S'assure qu'il occupe toute la largeur */
    width: 100%;
  }

  nav li.dropdown ul.submenu li {
    width: 100%;                 /* Prend toute la largeur du bloc parent */
  }

  nav li.dropdown ul.submenu {
    width: 100%;
    box-sizing: border-box;
  }

/* Afficher le bouton burger */
.menu-toggle {
  display: block;
}

/* Cacher la ligne horizontale du menu sur mobile */
nav ul li a::after {
  display: none;
}

article {
    padding: 0px 20px;
  }

.f1, .f2 {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.f1 div {
  flex-direction: column;
  align-items: center;
  
}

.f1 img, .f2 img {
  height: 40px;
}

.f1 p {
  margin: 0;
  position: relative;
  top: -0.5em;
  left: -0.5em;
}

img[style*="float: right"],
img[style*="float: left"] {
  float: none !important;
  display: block;
  margin: 20px auto !important;
  max-width: 90% !important;
  width: auto !important;
  height: auto !important;
}

article table,
article iframe,
article video {
  max-width: 100%;
  overflow-x: auto;
}

.swiper-main .swiper-slide {
  min-height: auto;
}

iframe, video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 20px auto;
}

 nav li.menu-item ul.submenu {
    font-size: 0.9rem;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    box-sizing: border-box;
  }

  nav li.menu-item ul.submenu li {
    padding: 0.5em 0;
  }

  nav li.menu-item ul.submenu li a {
    display: block;
    word-break: break-word;
    line-height: 1.4;
  }

  nav li {
    margin:0;
  }

}

@media (max-width: 480px) {
  .banner img {
    max-width: 250px;
    width: 50vw;
  } 

  body {
    font-size: 14px;
  }

  .nav-logo img {
    height: 40px;
  }

  .menu-toggle {
    font-size: 1.8em;
  }

  nav li a {
    font-size: 15px;
  }

  .main-menu {
    width: 60vw;
    padding-left: 10px;
  }

  nav li.dropdown ul.submenu li a {
    font-size: 14px;
    padding: 0.6em;
  }

  .f1, .f2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .f1 img, .f2 img {
    height: 40px;
  }
}

@media (max-width: 1299px) and (min-width: 1025px) {
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 1.2em;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .nav-logo img {
    height: 40px;
  }

  nav ul.main-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4em;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  nav ul.main-menu li {
    margin: 0 2px;
  }

  nav ul.main-menu li a {
    font-size: 0.87rem;
    padding: 0.5em 0.6em;
  }

  .user-menu {
    margin-left: auto;
    padding-right: 10px;
  }

  .user-menu img {
    height: 22px;
  }

  .menu-toggle {
    display: none !important;
  }

  /* nav ul.main-menu {
    overflow: hidden;
    white-space: nowrap;
  } */
}

.actus-home {
  margin: 0 auto;
  padding: 0 1em 2em 1em;
  border-radius: 10px;
  max-width: 1200px;
  box-sizing: border-box;
}


.actu-item {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1em;
  text-align: center;
  max-width: 300px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 300px;
}

.actu-item h3 {
  margin: 0;
}

.actu-item a {
  color: #2b355a;
  text-decoration: underline;
  margin-top: 0.5em;
  display: inline-block;
}

.actus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}


@media (min-width: 768px) {
  .actus-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .actu-item {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1em;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;              
  max-width: none;          
  box-sizing: border-box;   
}

}

.actu-thumb {
  display: flex;
  justify-content: center; 
  align-items: center;     
  overflow: hidden;
}

.actu-thumb img {
  height: auto;
  width: 90%;
}

.actu-content {
  padding: 1em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.actu-content h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
  color: #2b355a;
}

.actu-content p {
  flex-grow: 1;
  font-size: 0.95em;
  color: #444;
}

.actu-more {
  text-align: right;
  margin-top: auto;
  font-size: 0.9em;
}

.actu-more a,
.voir-toutes a {
  color: #2b355a;
  font-weight: normal;
  font-size: 0.95em;
  text-decoration: underline;
  display: inline-block;
  margin-top: 1em;
  transition: color 0.3s ease;
}

.actu-more a:hover,
.voir-toutes a:hover {
  color: #E1663C;
}

.actu-item h3 {
  font-size: 1.1em;
  color: #2b355a;
  margin-bottom: 0.5em;
}

.actu-item p {
  font-size: 0.9em;
  color: #444;
}

.voir-toutes {
  text-align: right;
  margin-top: 2em;
  margin-right: 0.5em;
}

.pagination {
  text-align: center;
  margin-top: 2em;
}

.pagination a, .pagination span {
  margin: 0 5px;
  padding: 0.5em 0.8em;
  text-decoration: none;
  color: #2b355a;
  border-radius: 5px;
  font-weight: bold;
}

.pagination .current {
  background-color: #E1663C;
  color: white;
}

/* ================================================ connexion ================================================ */
nav ul li.dropdown.user-icon ul.submenu_user {
  overflow: visible !important;
  left: 1.5em;
}

.user-icon {
  margin-left: auto; 
  position: relative; 
}

.menu-item.dropdown.user-icon {
  overflow: show;
}

/* Icône utilisateur */
.user-icon img {
  transition: transform 0.2s ease;
  height: 20px;
  width: auto;
  display: block;
}

.user-icon img:hover {
  transform: scale(1.1);
  filter: brightness(1);
}

/* Sous-menu utilisateur (desktop) */
.user-icon .submenu_user {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-80%); /* <- Décalage vers la gauche */
  background-color: #2b355a;
  min-width: 170px !important; 
  max-width: 380px;
  word-wrap: break-word;
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 9999 !important;
}

.user-icon > a {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
  }


/* Affiche le sous-menu avec JS (class "open") */
@media (max-width: 768px) {

  .user-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 50px;
  margin-left: 240%;
  position: relative;
  z-index: 10;
  margin-top: 5px;
}

  .user-icon {
    margin-left: auto;
    position: relative;
  }

  .user-icon .submenu_user {
    display: none !important;
    z-index: 99999 !important;
    min-height: 10em;
  }

  .user-icon .submenu_user.open {
    display: flex !important;
  }

  nav ul li.dropdown.user-icon ul.submenu_user {
    top: 4em;
    left: 2em;
    position: absolute;
  }
}

@media (max-width: 480px) {
  .user-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 50px;
  margin-left: 140%;
  position: relative;
  z-index: 10;
  margin-top: 5px;
}
}

/* Pour le dernier article formations
section >article:last-child >p:last-child
  {
     display:none;
  } */

.page-title {
  text-align: center;
  /* background-color: #E1663C; */
  color: #E1663C;
}


.simple-about {
  margin-bottom: 30px;
}