@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&display=swap');

body {
    font-family: 'Urbanist', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #6a7450;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.lang-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .lang-btn {
    background-color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .lang-btn:hover {
    background-color: #f0f0f0;
  }
  
  .lang-btn.active {
    background-color: #4CAF50;
    color: #fff;
  }

main {
    flex: 1;
}

.welcome-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0; 
    padding: 20px;
    justify-content: center;
}

.welcome-text {
    text-align: center;
    margin-bottom: 20px;
}

.photo-accueil {
    display: flex;
    justify-content: center;
}

.photo-accueil img {
    width: 1000px;
    max-width: 1000px;
    height: 350px;
    object-fit: cover; 
    border-radius: 20px; 
    transition: transform 0.3s ease; 
}

.photo-accueil img:hover {
    transform: scale(1.05);
}

.button-location, .button-services {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    text-align: center;
    border-radius: 5px;
    background-color: #6a7450;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 20px 0; 
}

.button-location:hover, .button-services:hover {
    background-color: #5a6340;
    transform: scale(1.05);
}

.location-icon {
    width: 20px; 
    margin-right: 8px;
}

.section-icon {
    display: block;
    margin: 0 auto 10px;
    width: 50px;
    height: auto;
}

section {
    background: #ffffff;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #6a7450;
    width: 75%;
}

.story-divider {
    width: 75%; 
    margin: 20px auto;
    border: 1px solid #b3b3b3ad;
}

.phone-icon {
    width: 15px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.button-container3 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-container2 {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-direction: row;
}

.localisation-container {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
}

.localisation-text {
    flex: 1;
    text-align: left;
    margin-right: 20px;
}

.button-container {
    display: flex;
    align-items: center;
}

.button-tel, .button-mess {
    padding: 15px 30px;
    font-size: 18px;
    text-align: center;
    border-radius: 5px;
    background-color: #6a7450;
    color: white;
    text-decoration: none;
    transition: background-color
    0.3s ease;
    margin: 0 10px;
}

.social-icon {
    width: 40px;
    height: auto;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.button-tel:hover, .button-mess:hover {
    background-color: #5a6340;
}

h1 {
    margin: 0;
}

h2 {
    font-size: 2em;
    color: #6a7450;
    margin-bottom: 10px;
}

.logo img {
    max-width: 150px;
    border-radius: 10px;
}

main {
    padding: 20px;
}

footer {
    text-align: center;
    padding: 10px;
    background: #6a7450;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .welcome-text {
        text-align: center;
    }

    .button-container {
        flex-direction: column;
        align-items: center; 
    }

    .button-tel, .button-mess {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    .photo-accueil img {
        width: 100%;
        height: auto;
    }

    section {
        padding: 15px;
        width: 90%;
    }

    h1, h2 {
        font-size: 1.5em;
    }

    .story-divider {
        width: 90%;
    }

    .localisation-container {
        flex-direction: column;
        align-items: center; 
    }

    .localisation-text {
        margin-right: 0; 
        text-align: center;
        margin-bottom: 10px;
    }
}

.lang-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background-color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

.lang-btn:hover {
    background-color: #f0f0f0;
}

.flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: opacity 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
    z-index: 1000;
}

.loader.hidden {
    opacity: 0;
}

.bar {
    display: inline-block;
    width: 10px; /* Plus large */
    height: 50px; /* Plus haut */
    background-color: #6a7450; /* Couleur des barres */
    border-radius: 10px;
    animation: scale-up4 1s linear infinite; /* Délai de 1,5 seconde */
}

.bar:nth-child(2) {
    height: 70px; /* Plus haut que les autres */
    margin: 0 10px;
    animation-delay: 0.5s;
}

.bar:nth-child(3) {
    animation-delay: 1s;
}

@keyframes scale-up4 {
    20% {
        background-color: #6a7450;
        transform: scaleY(1.5);
    }

    40% {
        transform: scaleY(1);
    }
}