/* CSS GENERAUX*/

body {
    margin: 0%;
    background-color: rgb(0, 0, 0);
}

h1 {
    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    margin: 0%;
}

h2 {
    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    font-size: 8vh;
    margin: 0%;
}

p{
    font-family: "Raleway", sans-serif;
    font-weight: 400;
}

/* HEADER + NAV */

header {
    background-color: rgb(255, 255, 255);
    position: sticky;
    top: 0;
    width: 100%; 
    z-index: 300; 
}

ul img{
    height: 80px;
    vertical-align: middle;
    padding-right: 10px;
    list-style-type: none;
}

ul {
    display: flex;
    margin: 0;
    background-color: #000000;
    flex-direction: row;
    align-items: center;
    list-style-type: none;
    padding-inline-start: 10px;
}

ul li {
  border-right: 1px solid #bbbbbb;
  text-decoration: none;
}

ul li:last-child {
  border-right: none;
}

ul li a {
    display: flex;
    color: rgb(255, 255, 255);
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 20px;
    padding: 23px 30px;
    text-decoration: none;
}

ul li a:hover {
  background-color: rgb(227, 157, 255);
  color: rgb(34, 4, 60);
}

/* CONTENU */

.main-content .image {
  position: relative;
  height: 90vh;
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.main-content h1 {
  font-size: 15vh;
  margin-bottom: 2px;
}

.image.one {
  background-image: linear-gradient(transparent 0%, rgb(0, 0, 0)), url("img/background2v.jpg");
  background-size: cover;
  font-size: 130px;
  font-family: "Jersey 15", sans-serif;
  font-weight: 400;
  text-align: center;
  text-shadow: rgba(255, 255, 255, 0.811) 1px 1px 8px;
  color: rgb(255, 255, 255);
  align-content: center;
}

.logiciels img{
  height: 50px;
  margin-bottom: 30px;
}

.image.two {
  background-image: linear-gradient(to bottom, transparent 0%, rgb(0, 0, 0)), url(img/background2.jpg);
  display: flex;
  background-size: cover;
  align-items: center;
  padding: 5em;
  padding-inline: 2em;
}

.content {
  text-align: baseline;
  padding: 3em 5em;
  font-size: 1.25rem;
  color: #ffffff;
  background-color: #000000;
}

.content-two {
  text-align: left;
  padding: 3em 5em;
  font-size: 1.25rem;
  color: #ffffff;
  background-color: #000000;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.group {
    display: flex;
    gap: 1em;
}

@keyframes autoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Boutons */
.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(27, 31, 27, 0.4);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 0.2em;
    cursor: pointer;
    border-radius: 1em;
    transition: 0.2s;
}

.btn:hover {
    background: rgba(0,0,0,0.7);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Pause animation quand popup ouverte */
.group.paused {
    animation-play-state: paused;
}

.card {
    height: 300px; /* Ajout du px */
    width: 300px;  /* Ajout du px */
    min-width: 300px; /* Pour éviter qu'elle s'écrase dans le slider */
    padding: 1.5em;
    background: rgba(210, 252, 209, 0.17);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
    border: 1px solid rgba(124, 246, 144, 0.51);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    overflow: hidden;
}

.card.disabled { 
    pointer-events: none;
    opacity: 0.4;
    filter: blur(2px);
}

.card h2 {
  font-family: "Jersey 15", sans-serif;
  font-weight: 400;
  color: rgb(255, 255, 255);
  margin: 0%;
}

.description {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: rgb(255, 255, 255);
    text-align: center;
    line-height: 1.4;
}

.p-invisible {
    opacity: 0;
    max-height: 0;
    margin: 0;
}

.card iframe {
    height: 180px;
    width: 100%;
    border-radius: 10px;
    border: none;
}

/*POP UP */
.popup {
    height: auto;
    min-height: 400px; 
    width: 500px;
    max-width: 90vw;
    padding: 2em;
    background: rgba(27, 67, 27, 0.589);
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 246, 144, 0.8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: popupFadeIn 0.5s ease-out forwards;
}

.popup iframe {
  height: 100%;
  width: max-content;
  border-radius: 10px;
}

.popup h2{
  font-family: "Jersey 15", sans-serif;
  font-weight: 400;
  font-size: 50px;
  padding-top: 0.5em;
  color: rgb(255, 255, 255);
}

.popup p{
  font-family: "Raleway", sans-serif;
  margin-top:0px;
  font-weight: 400;
  font-size: 16px;
  color: rgb(255, 255, 255);
  text-align: left;
}

/*voir moins*/

.voir-moins {
  width: max-content;
  margin: auto;
  align-items: end;
  margin-inline:auto;
  border-radius: 5px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
}

.voir-moins:hover {
  background-color: rgb(9, 31, 2);
  text-decoration:none;
  color: rgb(255, 255, 255);
}

/* FORMULAIRE */

.content-three {
  background-image: linear-gradient(transparent 0%, rgb(0, 0, 0)), url("img/background2v.jpg");
  background-size: cover;
  font-family: "Raleway", sans-serif;
  position: relative;
  height: 90vh;
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-box {
    font-family: "Raleway", sans-serif;
    background: rgba(196, 124, 246, 0.17);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
    border: 1px solid rgba(196, 124, 246, 0.51);
    color: aliceblue;
    margin:auto;
    padding: 3em;
    border-radius: 10px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
    
form {
  display: flex;
  flex-direction: column; 
  gap: 10px; 
  max-width: 400px; 
  margin: auto; 
}

label {
  font-weight: bold;
}

input {
  padding: 8px;
  font-size: 16px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis; 
  white-space: nowrap; 
  border: rgb(196, 124, 246,), solid, 2px;
  border-radius: 5px;
  margin-bottom: 0.25em;
}

input[value="Soumettre"]{
  margin-top: 1em;
}
input[value="Soumettre"]:hover{
  margin-top: 1em;
  color: #ffffff;
  background-color: rgb(137, 52, 176);
}

.form-box h2{
    padding-bottom: 0.5em;
}

/* FOOTER */

footer{
    display: flex;
    flex-direction: column;
    padding: 2em;
    background-color: rgb(16, 17, 16);
    color: azure;
}

caption{
    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    font-size: 2em;
    text-align: left;
}

tr {
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    padding-left: 1em;
    text-align: right;
}

#successMessage {
  display: none;
  background-color: #ffffff;
  margin: auto;
  padding:1em;
  border-radius: 0.5em;
  color:rgb(0, 171, 20);
  font-weight:bold; 
  margin-top:10px;
  animation: ease-in 0.5s;
}


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