/* Appliquer box-sizing globalement */
*, *::before, *::after {
  box-sizing: border-box;
}
:fullscreen video,
:-webkit-full-screen video,
:-moz-full-screen video {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover;
  border-radius: 0 !important;
}

body {
  width: 100%;
  height: 100%;
  font-family: "Roboto Mono", monospace !important;
  font-optical-sizing: auto;
  z-index: 0;
}

/**menue burger**/
/* Par défaut, on cache le menu burger */
.burger-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: none; /* affiché seulement en mobile */
}

/* Cacher menu mobile par défaut */
/* Mobile burger menu */
.header-links-mobile {
  display: none;
  position: fixed;
  top: 75px;
  right: 10px;
  left: 10px; /* Ajout pour la marge à gauche */
  
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2000; /* Plus haut que la vidéo de fond */
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.95)
}

.header-links-mobile.show {
  display: block;
}

.header-links-mobile ul {
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

.header-links-mobile li {
  border-bottom: 1px solid #ddd;
}

.header-links-mobile li:last-child {
  border-bottom: none;
}

.header-links-mobile a {
  display: block;
  padding: 15px 20px;
  color: #352b7d !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
}

.header-links-mobile a:hover {
  background-color: #f2f2f2;
}



/* Responsive : cacher le menu desktop, afficher le burger en mobile */
@media screen and (max-width: 992px) {
  .header-links-desktop {
    display: none !important;
  }

  .burger-container {
    display: block;
    position: fixed;
    top: 20px;
    right: 10px;
    z-index: 2000;
  }

  .header-links-mobile {
    display: none;
  }

  .header-links-mobile.show {
    display: block;
  }
  
}


input[type=radio] {
  display: none;
}

.card {
  position: absolute;
  width: 60%;
  height: 100%;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform 0.4s ease;
  cursor: pointer;
}

/* Style par défaut : écran >= 992px */
.video-section {
  display: flex;
  flex-direction: row; /* vidéo à gauche, texte à droite */
  align-items: center;
  justify-content: space-between;
  gap: 40px; /* Espace horizontal entre vidéo et texte */
  background-color: #ffff;
}
#section-ui
{
  background-color: #fafafa;
}

/* La vidéo prend ~45% de l'espace */
.tailledevideo {
  width: 45%;
  height: auto; 
  margin-right: 50px; /* Espace seulement en desktop */
}

/* Le texte prend ~45% de l'espace */
.redbone {
  width: 60%;
  text-align: left;
 padding-right: 50px;
  
}

/* Si tu utilises cette classe pour ton paragraphe */
.redbonetext {
  font-size: 16px;
  line-height: 1.6;
}

/* MEDIA QUERY : écran < 992px */
@media screen and (max-width: 992px) {
  .video-section {
    /* On passe la disposition en colonne : vidéo au-dessus, texte en dessous */
    flex-direction: column;
    align-items: center;      /* Centre horizontalement */
    justify-content: center;  /* Optionnel, si tu veux tout recentrer */
    text-align: center;       /* Si tu veux centrer globalement */
  }

  /* La vidéo est maintenant centrée et plus large */
  .tailledevideo {
    width: 80%;              /* On lui donne une largeur confortable */
    height: auto;            /* Laisse le navigateur gérer la hauteur */
    margin-right: 0;         /* On supprime le margin-right */
    margin-bottom: 20px;     /* Espace entre la vidéo et le texte */
  }

  /* Le texte prend la totalité (ou 90%) de la largeur */
  .redbone {
    width: 90%;             /* ou 100% */
    text-align: left;       /* Laisse le texte aligné à gauche */
    margin: 0 auto;         /* Centre le conteneur si besoin */
  }
}

.container {
  width: 100%;
  max-width: 1271px;
  max-height: 1200px;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  
}

.cards {
  display: flex;
  flex-wrap: wrap;
  
  
justify-content: center; /* Centre les cartes horizontalement */
  gap: 15px; /* Ajoute de l'espace entre les cartes */
  width: 100%; /* S'assure que le conteneur des cartes occupe toute la largeur */
}

.card {
  flex: 1 1 calc(33.333% - 30px); /* Trois cartes par ligne avec un espacement */
  max-width: calc(33.333% - 30px);
 
margin: 0; /* Évite les marges excessives */
  padding: 10px; /* Ajoute un léger padding pour la carte */
  text-align: center;
}

@media screen and (max-width: 991px) {
  .card {
    flex: 1 1 calc(50% - 15px); /* Deux cartes par ligne sur les écrans moyens */
    max-width: calc(50% - 15px);
  }
}

@media screen and (max-width: 767px) {
  .card {
    
   
flex: 1 1 100%; /* Une carte par ligne sur les petits écrans */
    
    
max-width: 100%;
  }
}

.pain {
  width: 582.65px;
  height: 343.99px;
  border-radius: 10px;
  object-fit: cover;
}

iframe {
  width: 582.65px;
  height: 343.99px;
  border-radius: 10px;
  object-fit: cover;
}

/* Styles pour les éléments sélectionnés */
#item-1:checked ~ .cards #song-3,
#item-2:checked ~ .cards #song-1,
#item-3:checked ~ .cards #song-2 {
  transform: translateX(-40%) scale(0.8);
  opacity: 1;
  z-index: 0;
}

#item-1:checked ~ .cards #song-2,
#item-2:checked ~ .cards #song-3,
#item-3:checked ~ .cards #song-1 {
  transform: translateX(40%) scale(0.8);
  z-index: 0;
  margin-left: 80px;
}

#item-1:checked ~ .cards #song-1,
#item-2:checked ~ .cards #song-2,
#item-3:checked ~ .cards #song-3 {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 1;
}

.player {
  width: 100%;
  padding: 16px 10px;
  margin-left: 20px;
}

.dessou {
  position: relative;
  top: -50px; /* Ajustez la distance entre .dessou et .cards */
  left: 85%;
  transform: translateX(-50%);
  width: 50%;
  text-align: left;
}

.upper-part {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  height: 36px;
  overflow: hidden;
}

.play-icon {
  margin-right: 10px;
}

.song-info {
  width: calc(100% - 32px);
  display: block;
}

.song-info .title {
  color: #403d40;
  font-size: 14px;
  line-height: 24px;
}

.sub-line {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.subtitle,
.time {
  font-size: 12px;
  line-height: 16px;
  color: #c6c5c6;
}

.time {
  font-size: 12px;
  line-height: 16px;
  color: #a5a5a5;
  font-weight: 500;
  margin-left: auto;
}

.progress-bar {
  height: 3px;
  width: 100%;
  background-color: #e9efff;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  display: block;
  position: relative;
  width: 60%;
  height: 100%;
  background-color: #2992dc;
  border-radius: 6px;
}

.info-area {
  width: 100%;
  position: absolute;
  top: 0;
  left: 30px;
  transition: transform 0.4s ease-in;
}

#item-2:checked ~ .player #test {
  transform: translateY(0);
}

#item-2:checked ~ .player #test {
  transform: translateY(-40px);
}

#item-3:checked ~ .player #test {
  transform: translateY(-80px);
}

/* CENTRAGE ET TAILLE DE LA VIDEO UNREAL ENGINE */


/* PUCES DE NAVIGATION DU SLIDER PORTFOLIO */
/* Toujours afficher les puces */
/* Par défaut : cacher les slider dots */


/* Responsive : seulement en mobile */
/* Slider dots sous les cartes, visible desktop uniquement */
.container {
  position: relative; /* important pour positionner les dots absolument */
}

/* Slider dots – visibles partout */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  z-index: 10;
}

/* Desktop : on les place précisément */
@media screen and (min-width: 993px) {
  .slider-dots {
    position: absolute;
    bottom: 200px;
    left: 25%;
    transform: translateX(-50%);
  }
}

/* Style des points */
.dot {
  width: 40px;
  height: 10px;
  background-color: #ccc;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot:hover {
  background-color: #888;
}

#item-1:checked ~ .slider-dots #dot1,
#item-2:checked ~ .slider-dots #dot2,
#item-3:checked ~ .slider-dots #dot3 {
  background-color: #352b7d;
}

/* Hint visible sur mobile */
@media screen and (max-width: 992px) {
  .slider-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(53, 43, 125, 0.1);
    position: relative;
  }

  .slider-hint p {
    margin: 0;
    color: #352b7d;
    font-size: 14px;
    text-align: center;
  }

  .close-hint {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 16px;
    color: #352b7d;
    transition: opacity 0.3s;
  }

  .close-hint:hover {
    opacity: 0.7;
  }
}


.video-placeholder {
  position: relative;
  display: inline-block;
}

.play-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent; /* Le fond est transparent */
  border: none; /* Supprime la bordure */
  padding: 0; /* Ajuste le padding pour coller à l'image */
  cursor: pointer; /* Indique qu'il s'agit d'un bouton cliquable */
}

.play-video img {
  display: block;
  width: 50px;
  height: 30px;
  opacity: 1; /* Ajuste l'opacité si besoin pour l'image */
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none !important;
}

h1 {
  color: #352b7d;
  font-weight: bold;
}

p {
  font-size: 20px;
  color: #484848;
}

.section {
  text-align: center;
}

.skillbar {
  cursor: pointer;
}

.hide {
  display: none;
}

.display {
  display: block;
}

/* Styles pour les alertes */
.flash-container {
  width: 100%;
  position: fixed;
  z-index: 700;
  padding-top: 20px;
  font-weight: bold;
}

.alert {
  text-align: center !important;
  width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #211809 !important;
}

/* Styles pour le menu latéral */
.nav-screen {
  height: 100%;
  z-index: 500;
  position: fixed;
  background-color: #000;
  opacity: 1;
  right: -285px; /* Start off behind the scenes */
  -webkit-font-smoothing: antialiased;
  width: 285px;
}

.nav-screen .active {
  display: block;
}

/* Styles pour la barre de navigation */
.nav-brand {
  position: fixed;
  left: 0;
  z-index: 600;
  padding: 10px;
}

.nav-brand img {
  width: 50px;
  border-radius: 70px;
}

.nav-brand img:hover {
  transition-duration: 3s;
  opacity: 1;
  width: 150px;
}

.fa-bars {
  display: none !important;
  color: #352b7d;
  float: right;
  padding: 20px;
  position: fixed;
  right: 0;
  z-index: 500;
  cursor: pointer;
}

.fa-times {
  color: #352b7d;
  float: right;
  padding: 20px;
  right: 0;
  z-index: 600;
  cursor: pointer;
}

.header-links {
  position: fixed;
  width: 100%;
  z-index: 500;
}

.header-links li {
  color: white;
  display: inline;
  float: right;
  padding: 15px;
  font-size: 16px;
}

.header-links a {
  color: #757575;
  transition: all 0.2s ease-in;
}

.header-links a:hover {
  color: #FF6363 !important;
}

/* Styles pour le menu déroulant */
.nav-container {
  padding-top: 10%;
}

.nav-links {
  width: 250px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.nav-links ul {
  margin-top: 15%;
  text-align: center;
  padding-top: 10%;
}

.nav-links a {
  color: #FFFFFF;
  font-size: 30px;
  line-height: 2.5;
  font-weight: bold;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a:hover {
  color: #352b7d;
  transition: all 0.6s ease-in-out;
}

/* Pour styliser les cercles de navigation à droite */
.fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: black; /* couleur des cercles */
}

.fp-nav ul li a.active span {
  background: #ff3366; /* cercle actif */
}


/* Effet de bordure en expansion */
.header-links a::after {
  display: block;
  margin: 0 auto;
  margin-top: 5px;
  width: 0;
  height: 2px;
  background-color: #fff;
  content: '';
  opacity: 0;
  transition: width 0.6s, opacity 0.8s;
}

.header-links a:hover::after,
.header-links a:focus::after {
  opacity: 1;
  width: 100%;
}

/* Section principale avec le fond opaque */
.opaque-bg {
  margin-left: auto;
  margin-right: auto;
  max-width: 380px;
  padding: 1px 1px 5px 5px;
}

.opaque-bg h1 {
  color: #FFF;
}

.opaque-bg p {
  color: #FFF;
  font-weight: bold;
  font-size: 20px;
}

/* Flèche de défilement */
.fa-chevron-down {
  color: #352b7d !important;
  bottom: 10px;
  margin-left: -30px;
  cursor: pointer;
  position: absolute;
  opacity: 0;
}

/* Barres de compétences */
.container-skillbar {
  width: 100%;
  padding-top: 30px;
  padding-right: 2%;
  padding-left: 2%;
  height: auto;
}

.skillbar {
  position: relative;
  display: block;
  margin-bottom: 15px;
  width: 100%;
  background: #efefef;
  height: 30px;
  border-radius: 3px;
  transition: 0.4s linear;
  transition-property: width, background-color;
}

.skillbar-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  background: #6adcfa;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-title span {
  display: block;
  background: rgba(0, 0, 0, 0.15);
  padding: 0 20px;
  height: 30px;
  line-height: 30px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-bar {
  height: 30px;
  width: 0px;
  border-radius: 3px;
}

.skill-bar-percent {
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 11px;
  height: 30px;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.5);
}

/* Contenu général */
.content {
  margin-left: auto;
  margin-right: auto;
  max-width: 1235px;
  
}
#section-unreal{
  background-color: #fafafa;
}
.content-slide {
  margin-left: auto;
  margin-right: auto;
  max-width: 1235px;
}

.content-slide img {
  width: 100%;
}

.fp-controlArrow.fp-next {
  border-color: transparent transparent transparent #FF6363 !important;
  right: 45px !important;
}

.fp-controlArrow.fp-prev {
  border-color: transparent #FF6363 transparent transparent !important;
  left: 45px !important;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: rgba(0, 0, 0, 0.62) !important;
}

/* Styles pour les formulaires */
.contact-form {
  padding: 0px 15px 0px 15px;
}

.contact {
  width: 100%;
  max-width: 100%;
}

.form-control {
  border: 2px solid rgba(0, 0, 0, 0.27);
  width: 100%;
  max-width: 100%;
  height: 3em;
  font-size: 16px;
  padding: 1em;
  margin: 0.5em 0 2em 0;
  font-weight: bold;
}

.input_form {
  outline: none;
  padding: 5px;
  min-width: 200px;
  border-radius: 2px;
  border: 2px solid #352b7d;
  font-size: 1em;
  color: #352b7d;
  background-color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

textarea {
  min-height: 10em;
}

label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
}

#sumit {
  outline: none;
  padding: 5px;
  min-width: 200px;
  border-radius: 2px;
  border: 2px solid #352b7d;
  text-align: center;
  font-size: 1em;
  color: #352b7d;
  background-color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

#sumit:hover {
  background-color: #352b7d;
  color: white;
  transition: all 0.3s ease-out;
}

/* Styles pour le pied de page */
.footer {
  background-color: #352b7d;
  height: 100px;
  width: 100%;
  padding-top: 10px;
}

.footer p {
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.social-links a {
  color: white;
  padding: 0px 5px 0px 5px;
}

.social-links a:hover {
  color: #352b7d;
  transition: all 0.2s ease-in-out;
}

/* Styles pour les résolutions inférieures à 991px */
/* Responsivité pour .card */
@media screen and (max-width: 991px) {
  .card {
    width: calc((100% / 2) - 30px); /* Deux cartes par rangée */
  }

  .dessou {
    position: absolute;
   
    left: 50%;
    top: 250px;
    transform: translateX(-50%);
    width: 90%;
  }

  .cards {
    position: absolute;
    width: 20%; /* Ajusté pour les écrans plus petits */
   right: 50%;
   top: -300px;
    transform: translateX(-50%);
  }
  
}

@media screen and (max-width: 767px) {
  .card {
    width: 100%; /* Une carte par rangée */
  }

 
}

@media (min-width: 768px) and (max-width: 991px) {
  .card:nth-of-type(2n+2) .card__expander {
    margin-left: calc(-100% - 30px);
  }

  .card:nth-of-type(2n+3) {
    clear: left;
  }

  .card__expander {
    width: calc(200% + 30px);
  }

  .container {
    top: 400px;
  }
}

@media (min-width: 992px) {
  .card:nth-of-type(3n+2) .card__expander {
    margin-left: calc(-100% - 30px);
  }

  .card:nth-of-type(3n+3) .card__expander {
    margin-left: calc(-200% - 60px);
  }

  .card:nth-of-type(3n+4) {
    clear: left;
  }

  .card__expander {
    width: calc(300% + 60px);
  }
}

/* Styles pour les petites résolutions */
@media (min-width: 100px) and (max-width: 500px) {
  .fa-bars {
    display: block !important;
  }

  .header-links {
    display: none;
  }

  .container {
    position: relative;
    
  }
}

/* Styles pour les mobiles */
@media (min-width: 100px) and (max-width: 400px) {
  .content {
    max-width: 300px;
  }

  .container {
    position: relative;
   

  }

  .opaque-bg h1 {
    font-size: 28px;
  }
}

/* Animation de chargement */
.spinner {
  position: fixed;
  width: 100%;
  height: 100%;
  padding: 25%;
  background-color: #2F2F2F;
  text-align: center;
  font-size: 10px;
  z-index: 1000;
}

.spinner > div {
  background-color: #352b7d;
  height: 100%;
  width: 6px;
  display: inline-block;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  animation-delay: -1.1s;
}

.spinner .rect3 {
  animation-delay: -1.0s;
}

.spinner .rect4 {
  animation-delay: -0.9s;
}

.spinner .rect5 {
  animation-delay: -0.8s;
}

@keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1.0);
  }
}

.blinking-cursor {
  font-weight: 500;
  margin-left: 4px;
  font-size: 20px;
  color: grey !important;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from,
  to {
    color: transparent;
  }
  50% {
    color: white;
  }
}

.success {
  padding: 1em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #352b7d;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
}

.error {
  padding: 1em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #352b7d;
  background-color: #f2dede;
  border: 1px solid rgba(185, 74, 72, 0.3);
  border-radius: 4px;
}

.wrapper {
  font-family: 'Raleway', sans-serif;
  margin: 5em auto;
  max-width: 1000px;
  background-color: #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.06);
}

.header {
  padding: 30px 30px 0;
  text-align: center;
  font-family: 'Raleway', sans-serif;
}

.header__title {
  margin: 0;
  text-transform: uppercase;
  font-size: 2.5em;
  font-weight: 500;
  line-height: 1.1;
  font-family: 'Raleway', sans-serif;
}

.header__subtitle {
  margin: 0;
  font-size: 1.5em;
  color: #949fb0;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  line-height: 1.1;
}


.cards {
  padding: 15px;
  display: flex;
  flex-flow: row wrap;
  border-radius: 15px;
}

.card {
  margin: 15px;
  width: calc((100% / 3) - 30px);
  transition: all 0.2s ease-in-out;
}

@media screen and (max-width: 991px) {
  .card {
    width: calc((100% / 3) - 30px);
  }

  .container {
    position: relative;
    
  }
}

@media screen and (max-width: 767px) {
  .card {
    width: 100%;
  }

  .container {
    position: relative;
    
  }
}

.card:hover .card__inner {
  background-color: #352b7d;
  transform: scale(1.05);
}

.card__inner {
  width: 100%;
  padding: 30px;
  position: relative;
  cursor: pointer;
  background-color: #949fb0;
  color: #eceef1;
  font-size: 1.5em;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.2s ease-in-out;
  border-radius: 10px;
}

.card__inner:after {
  transition: all 0.3s ease-in-out;
}

.card__inner .fa {
  width: 100%;
  margin-top: 0.25em;
}

.card__expander {
  transition: all 0.2s ease-in-out;
  background-color: #333a45;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  color: #eceef1;
  font-size: 1.5em;
}

.card__expander .fa {
  font-size: 0.75em;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.card__expander .fa:hover {
  opacity: 0.9;
}

.card.is-collapsed .card__inner:after {
  content: "";
  opacity: 0;
}

.card.is-collapsed .card__expander {
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
}

.card.is-expanded .card__inner {
  background-color: #352b7d;
}

.card.is-expanded .card__inner:after {
  content: "";
  opacity: 1;
  display: block;
  height: 0;
  width: 0;
  position: absolute;
  bottom: -30px;
  left: calc(50% - 15px);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #333a45;
}

.card.is-expanded .card__inner .fa:before {
  content: "";
}

.card.is-expanded .card__expander {
  max-height: 1000px;
  min-height: 200px;
  overflow: visible;
  margin-top: 30px;
  opacity: 1;
}

.card.is-expanded:hover .card__inner {
  transform: scale(1);
}

.card.is-inactive .card__inner {
  pointer-events: none;
  opacity: 0.5;
}

.card.is-inactive:hover .card__inner {
  background-color: #949fb0;
  transform: scale(1);
}

@media screen and (min-width: 992px) {
  .card:nth-of-type(3n+3) .card__expander {
    margin-left: calc(-100% - 30px);
  }

  .container {
    position: relative;
   
  }

  .card:nth-of-type(3n+3) .card__expander {
    margin-left: calc(-200% - 60px);
  }

  .container {
    position: relative;
    
  }

  .card:nth-of-type(3n+4) {
    clear: left;
  }

  .card__expander {
    width: calc(300% + 60px);
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .card:nth-of-type(3n+3) .card__expander {
    margin-left: calc(-100% - 30px);
  }

  .container {
    position: relative;
    
  }

  .card:nth-of-type(2n+3) {
    clear: left;
  }

  .container {
    position: relative;
    
    margin-top: 500px;
  }

  .card__expander {
    width: calc(200% + 30px);
  }
}

#videoBackground {
  position: absolute; /* Utilisez absolute pour un conteneur spécifique */
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1001; /* Garde la vidéo en arrière-plan */
  background-size: cover;
}
#section-home {
  position: relative;
  z-index: 0;
}

.pdf-modal {
  margin-top: 100px;
  display: none;              /* Caché par défaut */
  position: fixed;            /* Pour couvrir tout l’écran */
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.75); /* Overlay semi-transparent */
  z-index: 9999;    
  width: 70%;  
  height: 70%;
  min-height: 60%;     
  border-radius: 20px; /* Au-dessus des autres éléments */
}

.pdf-close {
  position: absolute;
  top: 50px; 
  right: 20px;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
}

.pdf-container {
  position: relative;
  width: 90%;
  height: 80%;
  margin: 5% auto;        /* Centre horizontalement */
  background: #fff;       /* Fond blanc */
  border-radius: 10px;
  overflow: hidden;       /* Cache le débordement */
}

#pdfFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* En-dessous de 992px, on cache complètement le modal */
@media screen and (max-width: 992px) {
  .pdf-modal {
    display: none !important; 
  }
}
.video-ui {
  max-width: 80%;
  height: auto;
  
  border-radius: 10px;
}
