/* Style de base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
}

/* Style de l'en-tête */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #f9f9f9; /* Fond clair */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre légère pour l'effet de profondeur */
}

/* Logo */
.logo img {
    width: 300px; /* Ajuste la taille du logo */
    height: auto;
}

/* Style de base du menu */
nav {
    position: relative;
}

/* Icône du menu hamburger */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.menu-toggle .bar {
    background-color: #333;
    height: 4px;
    width: 100%;
    border-radius: 5px;
}

/* Liste du menu */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #007bff;
}

/* Styles pour les petits écrans */
@media (max-width: 768px) {
    /* Cacher le menu horizontal sur mobile */
    .menu {
        display: none;
        width: 100%;
        text-align: center;
        background-color: #f9f9f9;
        position: absolute;
        top: 80px;
        left: 0;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Afficher le menu hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Quand le menu est ouvert, afficher les éléments */
    .menu.active {
        display: flex;
        flex-direction: column;
    }

    /* Réduire la taille du logo */
    .logo img {
        width: 150px;
    }

    /* Lien de menu */
    .menu li {
        margin: 10px 0;
    }

    .menu a {
        font-size: 1.2em;
    }
}


section {
    padding: 20px;
    margin: 10px;
}

.hero {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 50px;
}

.formation-cards {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    height: 30%;

}

.formation-card {
    background-color: white;
    padding: 20px;
    width: 30%;
    height:50%;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.formation-card h3 {
    margin-top: 0;
}

.testimonials {
    background-color: #eeeeee;
    padding: 20px;
}

.testimonial {
    margin-bottom: 10px;
    font-style: italic;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Image dans le header */
.hero-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Image de profil dans "À propos" */
.about-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 20px;
}

/* Images des cartes de formation */
.formation-img {
    width: 100%;
    height: 50%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Image dans les témoignages */
.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Style de la section Contact */
.contact {
    padding: 40px 20px;
    background-color: #f4f4f4;
}

.contactfooter {
    padding: 40px 20px;
    background-color: #34495e;
}

.contact h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Conteneur principal pour l'image et le formulaire */
.contact-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style de l'image */
.contact-image {
    flex: 1;
    padding-right: 20px;  /* Espacement à droite de l'image */
}

.contact-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style du formulaire */
.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    padding: 12px 25px;
    background-color: #007BFF;
    color: #fff;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Style de la section À propos de moi */
.about {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.about h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

/* Conteneur pour l'image et le texte */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image à gauche */
.about-image {
    flex: 1;
    padding-right: 20px; /* Espacement à droite de l'image */
}

.about-img {
    width: 40%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère autour de l'image */
}

/* Texte à droite */
.about-text {
    flex: 2; /* Le texte occupe un peu plus d'espace que l'image */
    text-align: left; /* Le texte est aligné à gauche */
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

/* Style du pied de page */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Conteneur du pied de page */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sections du pied de page */
.footer-section {
    flex: 1;
    margin: 10px;
}

/* Titre des sections */
.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Liens */
.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

/* Liste des liens rapides */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

/* Icônes des réseaux sociaux */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

/* Section copyright */
.footer-bottom {
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
}

/* Style pour la section des formations */
.formations {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

/* Titre de la section */
.formations h2 {
    font-size: 2em;
    margin-bottom: 40px;
}

/* Conteneur de chaque formation */
.formation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image des formations */
.formation-image {
    flex: 1;
    padding-right: 20px;
}

.formation-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Description de la formation */
.formation-description {
    flex: 2;
    text-align: left;
}

.formation-description h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.formation-description p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.formation-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.formation-description ul li {
    font-size: 1em;
    margin-bottom: 10px;
}

/* Bouton d'inscription */
.formation-description .btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.formation-description .btn:hover {
    background-color: #2980b9;
}
/* Style de la page de dépannage */
.depannage {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

/* Titre de la page */
.depannage h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* Description des services de dépannage */
.depannage-description {
    margin-bottom: 30px;
}

.depannage-description p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Liste des services */
.depannage-details h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.depannage-details ul {
    list-style: none;
    padding: 0;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.depannage-details ul li {
    margin-bottom: 15px;
}

/* Compteur de dépannages */
.compteur {
    background-color: #2980b9;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 30px;
}

.compteur h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#compteur-nombre {
    font-size: 3em;
    font-weight: bold;
}

/* Bouton d'appel à l'action */
.cta .btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.cta .btn:hover {
    background-color: #2980b9;
}
/* Style du bandeau supérieur */
.top-bar {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 1.1em;
}

.top-bar .top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-bar .horaires, .top-bar .telephone {
    margin: 0;
}

.top-bar .telephone a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.top-bar .telephone a:hover {
    text-decoration: underline;
}

/* Style pour le badge des avis Google */
.google-reviews {
    display: flex;
    align-items: center;
}

.google-reviews a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.google-reviews .google-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.google-reviews .reviews-text {
    font-size: 1.1em;
    font-weight: bold;
}

/* Amélioration du contraste sur les écrans plus petits */
@media (max-width: 768px) {
    .top-bar .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .top-bar .horaires, .top-bar .telephone, .google-reviews {
        margin-bottom: 10px;
    }
}
/* Pour les liens dans toute la page */
a {
    color: inherit; /* Hérite la couleur du texte parent, donc pas de changement de couleur */
    text-decoration: none; /* Enlève le soulignement des liens */
}

/* Si tu veux spécifier la couleur exacte pour les liens */
a {
    color: #000; /* Remplace cette couleur par celle que tu veux */
}

/* Si tu veux qu'aucun changement n'apparaisse sur le survol ou l'état "visité" */
a:hover, a:visited, a:active {
    color: inherit; /* Reste la même couleur qu'au départ */
    text-decoration: none; /* Enlever le soulignement au survol */
}
