body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Assure que le body prend toute la hauteur de la fenêtre */
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* Taille de texte agréable */
    line-height: 1.6; /* Espacement des lignes pour faciliter la lecture */
    color: #333; /* Couleur de texte neutre pour le confort des yeux */
    margin: 0;
    padding: 0;
}

.notification-message {
    color: #B22222;
    margin-left: 15px;
    position: relative;
    display: inline-block;
    opacity: 1; /* Initialement visible */
    transition: opacity 1s ease-out; /* Transition pour l'effet de fondu */
}

#timer {
    display: none;
}

nav a {
    color:rgba(0, 0, 0, 0.7);
    margin-left: 15px;
}

nav a:hover {
    color:rgba(178, 34, 34, 0.7);
}

/* Masquer le menu mobile par défaut avec une hauteur de 0 et position fixe pour qu'il soit superposé */
.mobile-nav {
    display: none;
    position: fixed; /* Le menu reste fixé en haut de la page */
    top: 290px; /* Ajuste cette valeur selon la hauteur de ton header ou de ton bouton hamburger */
    left: 0;
    right: 0;
    z-index: 1000; /* Assure que le menu est au-dessus des autres éléments */
    background-color: #333;
    max-height: 0; /* Masquer le menu en réduisant sa hauteur */
    overflow: hidden; /* Empêche le contenu de déborder lors du slide */
    transition: max-height 0.3s ease-in-out; /* Transition fluide pour l'ouverture et la fermeture */
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
}

/* Affichage du menu avec une hauteur ajustée */
.mobile-nav.show {
    max-height: 500px; /* Ajuster selon le contenu pour permettre l'ouverture */
}

.mobile-nav.hide {
    opacity: 0; /* Rendre le menu invisible */
    pointer-events: none; /* Désactiver les clics */
}

/* Style pour les liens du menu mobile */
.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 30px;
    width: 30px;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 5px;
}

#ancre-realizations-section, #ancre-contact, #ancre-services-section {
    display: block;
    position: relative;
    top: -15px; /* Décale l'ancre de 25px vers le haut */
}

h1, h2, h3 {
    color: #FFD900;
    font-weight: 700; /* Titre en gras pour un contraste clair */
    margin-bottom: 20px;
}

.red-title {
    color:#B22222 !important;
}

/* Style de la barre supérieure */
.top-bar {
    display: flex;
    justify-content: space-between; /* Sépare les éléments à gauche et à droite */
    align-items: center; /* Aligne verticalement les éléments */
    background-color: #333; /* Couleur de fond sombre */
    color: white; /* Texte blanc */
    padding: 0 20px; /* Espacement horizontal */
    height: 45px; /* Hauteur fixe */
    font-size: 14px; /* Taille du texte */
    padding-left: 100px;
    padding-right: 100px;
}

.link-map a, .link-mail a, .link-telephone a{
    color: white;
}

/* Style pour les informations de contact */
.contact-info span {
    margin-right: 10px; /* Espace entre les éléments */
}

/* Style pour les informations de contact */
.contact-info .contact-icon {
    width: 15px;
    height: 15px;
    vertical-align: text-top;
    margin-right: 5px;
    margin-left: 5px;
    color: white;
}

/* Style pour les icônes des réseaux sociaux */
.social-media a {
    text-decoration: none;
    margin-left: 10px; /* Espace entre les icônes */
}

.social-media img {
    width: 24px; /* Largeur des icônes */
    height: auto; /* Conserve le ratio de l'image */
}

/* Adaptation pour le header principal */
header {
    background-color: #f5f5f5;
    color: white;
    text-align: center;
    height: 100vh; /* Prend la hauteur de l'écran moins la barre supérieure */
    overflow: hidden;
}

main {
    flex-grow: 1; /* Permet à main de prendre tout l'espace disponible */
    padding: 20px;
}

section:first-of-type {
    margin-top: 15px;
}

section.image-section {
    padding: 0;
    margin: 0;
}

section {
    margin: 60px 0 15px 0;
    position: relative;
    padding-top: 60px; /* Crée de l'espace pour le titre */
}

.section-title {
    position: absolute;
    top: 0px; /* Place le titre au-dessus de la section */
    left: 50%;
    transform: translate(-50%, -50%); /* Centre l'élément horizontalement et verticalement */
    background-color: #B22222;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-title h2{
    margin: 0;
    color: white;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo nav {
    flex: 1;
}

.logo-titre {
    position: relative;
    padding: 10px 10px;
    margin: 0 35px 0 35px;
}

.logo-titre .logo-site {
    background-color: #292929;
    position: relative;
    z-index: 1; /* Le logo reste derrière */
    border-radius: 50%;
    width: 155px;
    height: 145px;
}

.image-section {
    text-align: center; /* Center the content */
    margin: 0px 0px; /* Add some space above and below the section */
}

.image-section img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Ensure that the aspect ratio is maintained */
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre verticalement les images */
    gap: 20px; /* Espacement entre les deux images */
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px; /* Coins arrondis */
}

.image-box {
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.image-box img {
    width: 250px;
    height: auto;
}

.image-box:hover {
    transform: scale(1.05); /* Agrandissement léger au survol */
}

/* Style pour la section du slogan */
.slogan-section {
    background-color: #f5f5f5; /* Couleur de fond sobre et claire */
    padding: 40px 20px;
    text-align: center;
}

.slogan-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.slogan-section h2 {
    font-size: 2rem;
    color: #333; /* Couleur de texte sombre et élégante */
    margin-bottom: 20px;
}

.slogan-section p {
    font-size: 1rem;
    color: #555; /* Couleur de texte un peu plus clair */
    line-height: 1.5;
}

/* Style pour la section des marques */

.quality-section {
    display: flex;
    flex-wrap: wrap;
    background-color: #f5f5f5; /* Fond léger et sobre */
    padding: 40px 20px;
    align-items: center;
    justify-content: space-between;
}

.quality-section .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.quality-section .text {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex: 1;
    padding: 20px;
    text-align: justify;
}

.quality-section .text h2 {
    font-size: 1.574rem;
    color: #333;
    margin-bottom: 20px;
}

.quality-section .text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.quality-section .image {
    text-align: center;
    flex: 1;
    padding: 20px;
}

.quality-section .image img {
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quality-section {
        flex-direction: column;
    }
}

/* Section histoire */
.history-section {
    background-color: #f5f5f5;
    padding: 60px 20px;
}

.history-section .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.history-section .text {
    flex: 1;
    padding: 20px;
}

.history-section .text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.history-section .text p {
    text-align: justify;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.history-section .image {
    flex: 1;
    padding: 20px;
}

.history-section .image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .history-section {
        flex-direction: column;
    }
}

/* Style pour les services */
.services-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.services-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section .service {
    flex: 1;
    margin: 15px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 22%;
}

.services-section .service img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.services-section .service h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.services-section .service p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.services-section .cta-button, .services-section .cta-button-realisation {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD900;
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.services-section .cta-button:hover, .services-section .cta-button-realisation:hover {
    background-color: #FFC107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-section .service {
        max-width: 48%;
    }
}

@media (max-width: 480px) {
    .services-section .service {
        max-width: 100%;
    }
}

/* Style section passion */
.passion-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.passion-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.passion-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.passion-section .separator {
    width: 80px;
    height: 3px;
    background-color: #B22222;
    margin: 0 auto 30px auto;
}

.passion-section p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Style pour la section des réalisations */
.realization, .service {
    position: relative;
}

.realization a, .service a {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    height: 25px;
    width: 105px;
}

.realizations-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.realizations-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.realizations-section .realization {
    flex: 1;
    margin: 15px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 22%;
}

.realizations-section .realization img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.realizations-section .realization h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.realizations-section .realization p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.realizations-section .cta-button, .realizations-section .cta-button-realisation {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD900;
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.realizations-section .cta-button:hover, .realizations-section .cta-button-realisation:hover {
    background-color: #FFC107;
}

#textarea-details, #message {
    font-family: 'Roboto', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .realizations-section .realization {
        max-width: 48%;
    }
}

@media (max-width: 480px) {
    .realizations-section .realization {
        max-width: 100%;
    }
}

/* Style pour le formulaire de contact */
.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contact-form-section h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: normal;
}

.label-details input {
    width: auto;
}

.columns-container {
    display: flex;
    gap: 20px; /* Espacement entre les colonnes */
    margin-top: 10px;
}

.column {
    flex: 1; /* Taille égale pour toutes les colonnes */
    display: flex;
    flex-direction: column;
    gap: 5px; /* Espacement entre les items dans chaque colonne */
}

.label-details {
    display: flex;
    align-items: center;
    margin: 5px 0; /* Espacement entre les lignes */
}


.contact-form-section p {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

label {
    margin-bottom: 5px;
    display: block;
    color: #333;
    font-size: 14px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

button {
    padding: 10px 20px;
    background-color: #FFD900;
    color: #333333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-start;
}

button:hover {
    background-color: #FFC107;
}

/* Style pour le footer */
.site-footer {
    background-color: #333;
    color: white;
    padding: 40px 0 0 0;
    text-align: left;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 150px; /* Ajuste la taille du logo */
    margin: 45px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    gap: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #FFD900;
    text-decoration: none;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #FFC107;
}

.footer-disclaimer {
    background-color: #292929;
    text-align: center;
    padding: 10px 0 10px 0;
    font-size: 12px;
    color: #aaa;
}

.footer-disclaimer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-columns {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .footer-logo {
        margin-bottom: 20px;
    }
}

/* Style du bouton "Retour en haut" */
#backToTopBtn {
    display: none; /* Caché par défaut */
    position: fixed; /* Fixé en bas à droite de la fenêtre */
    bottom: 20px;
    right: 20px;
    z-index: 99; /* Toujours au-dessus des autres éléments */
    font-size: 18px;
    background-color: #FFD900; /* Couleur du bouton */
    color: #B22222;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%; /* Bouton rond */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3); /* Ombre douce */
    width: 50px;
}

#backToTopBtn:hover {
    background-color: #FFC107; /* Couleur plus foncée au survol */
}