section{
    margin-top: 5em;
}
/* Styles for the intro section */
/* Styles for the morphing circle with image */
/* ******************************************************************************************************************** */

.wrap {
  align-items: center;
  justify-content: center;
  width: 50%;
    display: flex;
    margin: auto;
}

.circle {
  background: radial-gradient(circle, #703557 55%, #ee7553) 100%;
  width: 50%;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  overflow: hidden;
  animation: morph 10s linear infinite;
  border: 15px solid transparent;
}

.circle img {
  width: 100%;
}


@keyframes morph{
  0%, 100% {
  border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  }
  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
}
.intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 100px;
}

.presentation{
    max-width: 50%;
    padding: 30px;
}
.presentation :not(:first-child){
    margin-top: 0;
    margin-left: 5%;
}
.presentation button{
    background: linear-gradient(45deg, #1f97ba, #8fcaa7);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.5s;
}
.presentation button:hover{
    background: #8fcaa7;
} 

/* Styles for the Services section */
/* ******************************************************************************************************************** */

.services {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
/* Styles for the Realisations section */
/* ******************************************************************************************************************** */
.realisations h2 {
    text-align: center;
}
/* Conteneur global qui tient les boutons ET le slider */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Espace entre les boutons et les images */
    max-width: 100%;
    margin: 50px auto;
    position: relative;
}

/* La fenêtre qui coupe ce qui dépasse */
.slider-viewport {
    overflow: hidden; /* C'est ICI qu'on cache les slides en trop */
    width: 100%;
}

/* La bande déroulante */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Chaque slide prend 1/3 de la largeur */
.slide {
    flex: 0 0 calc(100% / 3); /* 33.33% de largeur */
    box-sizing: border-box;
    padding: 0 10px; /* Petit espace entre les images */
}

.slide img {
    width: 100%;
    height: 100%; /* Hauteur fixe pour uniformiser */
    object-fit: cover; /* L'image remplit la case sans être déformée */
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Style des boutons (maintenant à l'extérieur) */
.prev, .next {
    background-color: transparent;
    color: #FFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Empêche le bouton de s'écraser */
}

.prev:hover, .next:hover {
    background-color: #8fcaa7;
    color: #fff;
}

/* Désactiver les boutons quand on ne peut plus cliquer (optionnel) */
.prev:disabled, .next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.view-all{
    display: block;
    margin: auto;
}

/* Styles for the Contact section */
/* ******************************************************************************************************************** */
.contact {
    margin-bottom: 60px;
}
.contact h2{
    text-align: center;
    margin-bottom: 40px;
}
.content-contact {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-info {
    width: 25%;
    display: block;
    background: linear-gradient(75deg, #ee7553, #8fcaa7);
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: auto;
}
.contact-info a:hover{
    text-decoration: underline;
}
.contact-form {
    margin-top: 20px;
    width: 50%;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form form .name-input{
  width: 100%;
  gap: 20px;
  display: flex;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid white;
    background-color: #001b24;
    border-radius: 50px;
    box-sizing: border-box;
}
.contact-form button {
    background: linear-gradient(45deg, #1f97ba, #8fcaa7);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.5s;
    width: fit-content;
    margin-left: auto;
}
.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}
.input-container input{
    width: 100%;
    border-radius: 50px;
    height: 48px;
    padding-left: 20px;
    box-sizing: border-box;
    outline: 0;
    background: transparent;
    color: inherit;
}
 .input-container textarea{
    width: 100%;
    color: white;
    min-height: 120px;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 8px;
}
textarea::placeholder{
    font-family: inherit;
    color: #999;
    font-size: 16px;
    font-weight: normal;
}
.contact-form button:hover {
    background: #8fcaa7;
}
.input-container label {
  color: #999;
  font-size: 16px;
  font-weight: normal;
  left: 20px;
  pointer-events: none;
  position: absolute;
  top: 30%;
  transition: all 0.2s ease-out;
}
#message-label {
    top: 15%;
}
.input-container .cut {
    background: #001b24;
    height: 2px;
    left: 20px;
    position: absolute;
    top: calc(100% - 6px);
    transition: all 0.2s ease-out;
    width: 0;
}
.input-container .cut-short {
  width: 60px;
}
.input-container input:focus ~ label,
.input-container input:not(:placeholder-shown) ~ label {
  font-size: 14px;
  width: fit-content;
  padding-left: 8px;
  top: -4px;
  color: white;
  background-color: #001b24;
  padding: 4px;
  border-radius: 20px;
} 
.input-container input:focus ~ .cut,
.input-container input:not(:placeholder-shown) ~ .cut {
    width: calc(100% - 40px);
    }
input[type="file"]{
    padding: 15px 20px;
    height: fit-content;
    width: fit-content;
}
.input-container:nth-child(4) label{
    top: 12%;
}
textarea:focus ~ label{
    display: none;
}

@media screen and (max-width: 768px) {
    .intro {
        flex-direction: column;
        text-align: center;
        margin-top: 0;
    }
    .circle {
        background: radial-gradient(circle, #703557 55%, #ee7553) 100%;
        width: 100%;
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        overflow: hidden;
        animation: morph 10s linear infinite;
        border: 15px solid transparent;
    }
    .presentation{
        max-width: 100%;
        padding: 0;
    }
    .presentation :not(:first-child){
        margin: 20px 0;
    }

    .content-contact {
        flex-direction: column;
        align-items: center;
    }
    .contact-info {
        width: 60%;
    }
    .contact-form {
        width: 80%;
    }
    .contact-form form .name-input{
        gap: 0;
    }
    .name-input{
        flex-direction: column;
        gap: 0px;
    }
}