@media (max-width: 768px) {
    .banniere {
        font-size: 18px;
        padding: 0 10px;
    }
    .services1, .services2, .services3, .services4 {
        flex-direction: column;
        padding: 10px;
    }
    .carrousel-item {
        font-size: 20px;
    }
    body {
        font-size: 16px;
    }
    .menu {
        display: none;
    }
    .logo-container1 img,
    .logo-container2 img,
    .logo-container3 img {
        max-width: 80%;
        height: auto;
    }
    .services1,
    .services2,
    .services3,
    .services4 {
        flex-direction: column;
        align-items: center;
    }
    .service1,
    .service2,
    .service3,
    .service4 {
        max-width: 95vw;
    }
}

/* Images responsives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Conteneurs flexibles pour les logos et services */
.logo-container1,
.logo-container2,
.logo-container3,
.service1,
.service2,
.service3,
.service4 {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

/* Sections en grille ou flex */
.services1,
.services2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


/* Optionnel : pour éviter le débordement horizontal */
body {
    overflow-x: hidden;
    background-image: url('Background/IMG_0021.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: -1;
}

/* En-tête */
.banniere {
    background-color: rgba(0, 0, 0, 0.7);
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 25px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banniere .logo-container {
    display: flex;
    align-items: flex-start;
}

.banniere .navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.banniere .navigation a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    border: none;
    position: relative;
    z-index: 1;
}

/* Mise en surbrillance et zoom au survol, focus ou appui */
.banniere .navigation a:hover,
.banniere .navigation a:focus,
.banniere .navigation a:active {
    background-color: none;
    outline: none;
    transform: scale(1.08);
}

/* Barre d'en-tête responsive */
@media (max-width: 900px) {
    .banniere {
        flex-direction: column;
        height: auto;
        padding: 10px 5vw;
        font-size: 18px;
        align-items: flex-start;
    }
    .banniere .logo-container {
        margin-bottom: 10px;
    }
    .banniere .navigation ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
    }
    .banniere .navigation li {
        width: 100%;
    }
    .banniere .navigation a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 0;
    }
}

/* Limite la taille du logo dans la bannière */
.banniere .logo-container img {
    max-height: 60px;
    max-width: 120px;
    width: auto;
    height: auto;
    display: block;
}

/* Logo d'accueil */
.logo-acceuil {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.logo-container1 {
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Section texte d'accueil */
.text-container {
    background-color: rgba(237, 232, 232, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 0px;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
    padding-top: 50px;
}

.accueil {
    display: none;
    margin-bottom: 40px;
}

.accueil h1 {
    font-family: Arial, sans-serif;
    font-size:40px
}

.accueil h2 {
    font-family: Arial, sans-serif;
    font-size:30px
}

.accueil p {
    font-family: Arial, sans-serif;
    font-size:20px
}

.accueil.visible {
    display: block;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
}

/* Bouton de retour en haut */
.backToTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-bottom: 60px;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.5);
}

.backToTopButton.visible {
    animation: fadeIn 2s forwards;
}

.backToTopButton:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* Bouton de défilement */
.scroll-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.5);
}

.scroll-button.visible {
    animation: fadeIn 2s forwards;
}

.scroll-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* Section de service */
.services {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius:  10px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 25px;
    margin-bottom: 20px;
}

.services1, .services2 {
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius:  10px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 25px;
    margin-bottom: 20px;
}


.service1, .service2, .service3, .service4 {
    color: #fcfcfc;
    text-align: center;
    margin: 0 10px;
    font-size: 25px;
    transition: transform 0.3s ease;
    font-weight: bold;

}

.service1 a, .service2 a, .service3 a, .service4 a {
    color: #fcfcfc;
    text-decoration: none;
}

.service1 a:hover, .service2 a:hover, .service3 a:hover, .service4 a:hover {
    color: #fcfcfc;
    text-decoration: none;
    transform: scale(1.2);
}

.service1:hover, .service2:hover, .service3:hover, .service4:hover {
    color: #fcfcfc;
    transform: scale(1.2);
}

/* Logo de transit */
.logo-container3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
}

/* Section de vision */
.vision {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius:  10px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 25px;
    margin-bottom: 20px;
}

/* Conteneur du carrousel */
.carrousel-container {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-family: Arial, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Carrousel */
.carrousel {
    display: flex;
    transition: transform 1.0s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

/* Élément du carrousel */
.carrousel-item {
    flex: 0 0 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: justify;
    color: white;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    padding: 0 0 32px 0;
}

.carrousel-item h2 {
    font-size: 2em;
    margin: 24px 32px 24px 32px; /* espace au-dessus et en dessous */
    text-align: center;
    line-height: 1.3;
    color: inherit;
    padding: 0;
}

.carrousel-item .p1,
.carrousel-item .p2,
.carrousel-item .p3 {
    color: #fff;
    background: none;
    font-size: 1.1em;
    margin: 18px 32px 0 32px; /* espace au-dessus et sur les côtés */
    line-height: 1.7;
    padding: 0;
    font-family: Arial, sans-serif;
}

.carrousel-item .p1 { font-style: italic; }
.carrousel-item .p2 { font-style: italic; }
.carrousel-item .p3 { font-style: italic; }

/* Responsive */
@media (max-width: 700px) {
    .carrousel-item {
        min-height: 100px;
        font-size: 15px;
        padding: 0 10px 16px 10px; /* Ajoute 10px de padding à droite et à gauche */
        box-sizing: border-box;
    }
    .carrousel-item h2 {
        font-size: 1.6em;
        margin: 16px 10px 16px 10px;
    }
    .carrousel-item .p1,
    .carrousel-item .p2,
    .carrousel-item .p3 {
        font-size: 1.1em;
        margin: 12px 10px 0 10px;
    }
}

/* Section de contact */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    background-color: rgba(237, 232, 232, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
}

.follow-container {
    background: none;
    padding: 20px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 600px;
    margin-left: 50px;
    text-align: center;
    margin-top: 20px;
}

.follow-container h2 {
    margin-bottom: 20px;
}

.follow-container a {
    margin: 0 10px;
    color: inherit;
    text-decoration: none;
}

.follow-container i {
    font-size: 40px;
    transition: transform 0.3s ease;
}

.follow-container i:hover {
    transform: scale(1.2);
}

.contact-container {
    background-color: rgba(237, 232, 232, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 600px;
    margin: 0;
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-container form {
    display: flex;
    flex-direction: column;
}

.contact-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-container input,
.contact-container textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-container button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.contact-container button:hover {
    background-color: #45a049;
}

#contactStatus {
  margin-top: 15px;
  margin-left: 50px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Section contactez-nous responsive */
@media (max-width: 900px) {
    .contact-section {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .contact-container,
    .follow-container {
        max-width: 100%;
        margin: 0;
        padding: 10px 0;
        margin-left: 10px;
        margin-right: ;
        margin-top: 10px;
    }
    .follow-container {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 700px) {
    #contactForm label {
        display: block;
        margin-left: 10px;
    }
}

@media (max-width: 700px) {
    #contactForm label {
        display: block;
        margin-left: 10px;
    }
    #contactForm input,
    #contactForm textarea {
        width: calc(100% - 20px); /* Réduit la largeur de 10px à droite et à gauche */
        margin-left: 10px;
        margin-right: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 700px) {
    #contactForm button {
        width: calc(100% - 20px);   /* Réduit la largeur de 10px à droite et à gauche */
        margin-left: 10px;
        margin-right: 10px;
        box-sizing: border-box;
    }
}

/* Conteneur de localisation */
.location-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius:  10px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.location-container h2 {
    margin-bottom: 20px;
}

.location-container .map-link a {
    margin: 0 10px;
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.location-container .map-link a:hover {
    color: #05f852;
    transition: transform 0.3s ease;
    transform: scale(1.2);
}

/* Pied de page */
.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
