/* Style de base pour tout le document */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

#wrappers {
    background-image: url(bg-2.jpg);
    background-repeat: none;
    background-size: cover;
    padding-bottom: 50px;
}

/* Style de la barre de navigation */
nav {
    background-color: #333;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

p {
    font-size: 1.2em;
}

/* Section accueil */
#accueil {
    padding: 100px 20px;
    text-align: center;
    background-color: #f4f4f483;
}

#accueil p{
    padding-top: 40px;
    font-size: 2.0em;
    color: purple;
    font-weight: bold;
}

#accueil h1 {
    font-size: 3.50em;
    color: rgb(33, 33, 182);
    text-shadow: 8px 5px 5px rgba(15, 148, 172, 0.685);
}

.subtitle {
    font-size: 2.0em;
    color: rgb(39, 39, 129);
    text-shadow: 8px 5px 5px rgba(15, 148, 172, 0.685);
    background: none;
}

h2 {
    text-align: center;
    font-size: 2.0em;
    color: rgb(85, 1, 85);
    margin: 20px;
    background-color: rgba(255, 166, 0, 0.9);
    padding: 20px;
}

/* Section À propos */
#apropos, #services, #contact {
    padding: 50px 20px;
}

#services {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-around;
}

.service {
    width: 80%;
    max-width: 1000px;
    padding: 50px;
    border-radius: 20% 5%;
    color: white;
    background-color: rgba(22, 20, 39, 0.85);
    line-height: 2.0em;
}

.service h3{
    text-align: center;
    font-size: 2.0em;
    padding-bottom: 20px;
}

.service:nth-child(1) h3 {
    color: orange;
}

.service:nth-child(2) h3 {
    color: rgb(81, 218, 81);
}

.service:nth-child(3) h3 {
    color: rgb(146, 134, 255);
}

/* Section contact */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

form label, form input, form textarea, form button {
    margin-bottom: 15px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
}

form button {
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.work {
    width: 500px;
    background-color: rgba(255, 255, 255, 0.9);
    margin-bottom: 45px;
}

.work img{
    width: 460px;
    height: calc(460px*9/16);
    margin: 20px;
}

.work .title-link {
    text-align: center;
    margin: auto;
    display: block;
    font-size: 2em;
    padding: 10px;
}

.work p {
    padding: 20px;
}

#projets {
    max-width: 1200px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: auto;
}

.contact-btn {
    font-size: 2.0em;
    padding: 30px 50px;
    margin: auto;
    display: block;
    background-color: rgba(69, 105, 69, 0.8);
    color: rgb(255, 180, 42);
    font-weight: bold;
}

.contact-btn:hover {
    background-color: rgba(32, 18, 150, 0.8);
}

button {
    cursor: grab;
}

#contact {
    position: fixed; /* Se place par rapport à la fenêtre et reste fixe */
    top: 0; /* Position de départ en haut */
    left: 0; /* Position de départ à gauche */
    width: 100vw; /* Prend toute la largeur de la fenêtre */
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
    background-color: rgba(0, 0, 0, 0.8); /* Couleur de fond avec opacité */
    color: black; /* Couleur du texte */
    z-index: 1000; /* Met ce bloc au-dessus des autres éléments */
    font-size: 2.0em;
    display: none;
}

#contact .bloc {
    width: 500px;
    margin: 25vh auto;
    background-color: white;
    padding: 20px 20px 30px 20px;
    border-radius: 5%;
}

#contact .vcard {
    padding-left: 20px;
    padding-top: 20px;
}

#contact a, #contact .tel {
    padding-top: 20px;
    display: block;
}

.close {
    position: absolute;
    top:50px;
    right: 50px;
    font-size: 1.0em;
    border-radius: 50%;
    padding: 30px;
    background-color: orangered;
    margin: auto;
    color: white;
    font-weight: bold;
}

 .close:hover {
    background-color: orange;
 }

 @media screen and (max-width: 1100px) {
    .carousel-button {
        display: none;
    }

    #accueil h1 {
        font-size: 3.0em;
    }

    .work {
        width: 300px;
        background-color: rgba(255, 255, 255, 0.9);
        margin-bottom: 45px;
    }
    
    .work img{
        width: 260px;
        height: calc(260px*9/16);
        margin: 20px;
    }

    .work p {
        font-size: 1.0em;
    }
    
    #services {
        max-width: 1200px;
        margin: auto;

        display: block;
    }
    
    .service {
        margin: 20px auto;
        width: 90%;
        padding: 30px;
        border-radius: 20% 5%;
        color: white;
        background-color: rgba(22, 20, 39, 0.85);
    }

 }

 @media screen and (max-width: 600px) {
    #contact .bloc {
        width: 300px;
        padding: 10px 10px 15px 15px;
        font-size: 0.5em;
    }

    #contact h2 {
        font-size: 1.5em;
    }
 }

 .carousel {
    margin: 30px;
    position: relative;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel-slide {
    padding: 30px;
    display: flex;
    align-items: center; /* Centre les images verticalement */
    justify-content: center; /* Optionnel, centre horizontalement si nécessaire */
    min-width: 100%;
    max-height: 500px; /* Définissez une hauteur pour les diapositives */
    box-sizing: border-box;
    background-color: white;
    border: 20px solid black;
  }
  
  .carousel-slide img {
    max-width: 100%; /* Limite la largeur pour s'adapter au conteneur */
    max-height: 100%; /* Limite la hauteur pour éviter le débordement */
    object-fit: contain; /* Garde les proportions de l'image */
  }
  
  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
  }
  
  .carousel-button.prev {
    left: 7%;
  }
  
  .carousel-button.next {
    right: 7%;
  }
  
  .carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
  }

  .created {
    margin: 60px auto 30px;
    width: 300px;
    text-align: center;
    border: black solid 2px;
    padding: 20px;
    background-color: rgba(248, 134, 3, 0.9);
  }
  