/* ----- Styles Généraux ----- */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* ----- Styles pour le bandeau d'information (au-dessus du header) ----- */
.top-banner {
  position: relative; /* Permet le positionnement absolu des enfants */
  width: 100%;       /* Assure que le bandeau prend toute la largeur */
  text-align: center; /* On centre l'image par défaut */
}

.top-banner img {
    max-width: 100%;  /* L'image ne dépassera pas la largeur du conteneur */
    height: auto;     /* Garde les proportions de l'image */
    display: block;   /* Pour supprimer l'espace en dessous de l'image */
    width: 100%;       /* Force l'image à prendre toute la largeur */
    margin: 0 auto;
}

/* style pour superposer le texte */
.banner-text {
  position: absolute; /* Position absolue par rapport à .top-banner */
  top: 0;          /* On commence en haut */
  left: 0;         /* A gauche */
  width: 100%;     /* Prend toute la largeur */
  height: 100%;     /* Prend toute la hauteur */
  display: flex;        /* Flexbox pour organiser les éléments enfants */
  flex-direction: column; /* Empile les éléments (hero-text et banner-nav) */
  justify-content: space-between; /* Espace entre hero-text et banner-nav */
  /* align-items: center;  Centre horizontalement (si besoin, à ajuster) */
  color: white;       /* Couleur du texte (à adapter) */
  z-index: 2;         /* Assure-toi que le texte est au-dessus de l'image */
  padding: 20px;     /* Marge intérieure (pour éviter que le texte touche les bords) */
  box-sizing: border-box; /* Important avec padding et width: 100% */
}

/* Style pour le texte "hero" */
.banner-text .hero-text {
    margin-top: -2.6rem; /* Remonte le texte. Ajuste cette valeur. */
    text-align: center;    /* Centre le texte horizontalement */
}

.banner-text .hero-text h1 {
    font-size: 2.5em;       /* Taille du titre (à adapter) */
    margin-bottom: 0.5em;  /* Espacement en dessous du titre */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Ombre portée */
}

.banner-text .hero-text p {
    font-size: 1.2em;       /* Taille du paragraphe (à adapter) */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Ombre portée */
}

/* Style pour la navigation dans le bandeau */
.banner-nav {
    text-align: center;    /* Centre les liens */
    margin-bottom: 0rem;      /* Marge en bas descend le texte(à ajuster)*/
}
.banner-nav .top-links{
    display: flex;          /* Met les liens sur la même ligne */
    justify-content: center; /* Centre les liens horizontalement */
    gap: 20px;             /* Espacement entre les liens */
}

.banner-nav a {
    color: white;          /* Couleur des liens (à adapter) */
    text-decoration: none; /* Pas de soulignement */
    font-weight: 600;      /* Gras (à adapter) */
    padding: 5px 10px;    /* Marge intérieure (pour agrandir la zone cliquable) */
   /*  background-color: rgba(0, 0, 0, 0.3);  Fond semi-transparent (facultatif) */
    border-radius: 5px;     /* Bords arrondis (facultatif) */
    transition: background-color 0.3s ease; /* Animation au survol */
}

.banner-nav a:hover {
    text-decoration: underline;    /* Au survol */
    color: #ffcc00;  /* Adapte à ta palette */
}

/* ----- En-tête (Header) ----- */
/* Header simplifié :  plus besoin de styles spécifiques ici */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #007bff;
    padding: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

/* ----- Section Hero ----- */
/* .hero: supprimé car le contenu est desormais dans top-banner */



/* ----- Section Services ----- */

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease-in-out;
}

    .service-card:hover {
        transform: scale(1.05);
    }

    .service-card img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .service-card ul {
        list-style-type: none;
        padding: 0;
    }

        .service-card ul li {
            margin: 10px 0;
        }

/* Styles pour le bouton d'appel à l'action (CTA) */
.cta-button {
    display: inline-block;
    background-color: #007bff; /* Couleur de fond */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px; /* Espace au-dessus du bouton */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3; /* Couleur plus foncée au survol */
}

/* ----- Section Témoignages ----- */
.testimonials-section {
    padding: 40px 20px;
    background-color: #f8f9fa; /* Couleur de fond légère */
}

.testimonials-section h2 {
    text-align: center;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.testimonial-author {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* ----- Section Actualités ----- */

.actu-section {
    padding: 40px 20px;
    background-color: #f8f9fa;
}

.actu-section h2 {
text-align: center;
}

.articles-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
}

/* ----- Section FAQ ----- */

.faq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.faq-container details {
    margin: 15px 0;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}
/* ----- Section Contact ----- */

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #f4f4f4;
}

.minimal-form {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    color: #007bff;
    margin-bottom: 30px;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-weight: bold;
    }

.minimal-form input[type="text"],
.minimal-form input[type="tel"],
.minimal-form input[type="email"],
.minimal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: sans-serif;
}

        .minimal-form input::placeholder,
        .minimal-form textarea::placeholder {
            color: #999;
        }

    .minimal-form textarea {
        resize: vertical;
        rows: 6;
    }

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
    width: 100%;
}

    .submit-btn:hover {
        background-color: #0056b3;
    }

.privacy-note {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ----- Footer ----- */

footer {
    text-align: center;
    padding: 20px;
    background-color: #007bff;
    color: white;
}

    footer a {
        color: white;
        text-decoration: none;
    }

.required-asterisk {
    color: red;
    margin-left: 4px;
}

/* ----- Responsive Design ----- */

@media (max-width: 900px) {
    .services-grid,
    .articles-grid {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* ----- Styles pour le menu mobile (hamburger) ----- */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Ancien style, à commenter/supprimer */
/* .main-nav {
    display: flex;
    gap: 20px;
} */

    /* Menu mobile (affiché au clic sur le hamburger) */
    .main-nav.open {
        display: flex;        /* Affiche le menu */
        flex-direction: column; /* Empile les liens verticalement */
        position: absolute;   /* Positionnement absolu */
        top: 80px;           /* En dessous du header (ajuste si besoin) */
        left: 0;            /* Sur toute la largeur */
        width: 100%;          /* Sur toute la largeur */
        background-color: #007bff; /* Couleur de fond (adapte) */
        padding: 20px;         /* Marge intérieure */
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Ombre (facultatif) */
        z-index: 1000;        /* Au-dessus du contenu (mais en dessous du bouton) */
}

/* Styles pour les liens dans le menu mobile */
.main-nav.open a {
    color: white;       /* Couleur du texte */
    padding: 10px 0;    /* Marge intérieure */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Bordure (facultatif) */
    text-align: center; /* Centrer le texte */
}

.main-nav.open a:last-child {
     border-bottom: none; /* Enlève la bordure du dernier lien*/
}

/* Animation du bouton hamburger (quand le menu est ouvert) */
.menu-toggle.open .hamburger {
    background-color: transparent; /* Barre du milieu transparente */
}

.menu-toggle.open .hamburger::before,
.menu-toggle.open .hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.menu-toggle.open .hamburger::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.open .hamburger::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ----- Media Queries (pour le responsive) ----- */
/* Media query pour les écrans plus petits (menu hamburger) */
@media (max-width: 768px) {

      .main-header{
        position: static; /* Annule le positionnement sticky sur mobile */
        width: auto;
        padding: 0; /* Retire le padding du header */
    }
    .main-header nav {
        display: none; /* Masque le menu principal par défaut sur mobile */
    }

    .menu-toggle {
        display: block; /* Affiche le bouton hamburger sur mobile */
    }
    /* .main-header .cta{
        display: block;
        margin: auto;
    } */  /* supprimé car plus de cta*/

   .main-nav {
        width: 100%; /* Le menu prend toute la largeur sur mobile */
        text-align: center; /* Centre le texte sur mobile */
    }
    /* .main-header .logo { Supprimé car plus de logo
        margin-bottom: 0;
    } */

    /* Ajuste la taille de la police pour les titres et le texte */
    .banner-text .hero-text h1{
        font-size: 1.8em;
    }
     .banner-text .hero-text p{
        font-size: 1em;
    }
     .banner-nav a {
        font-size: 0.9em;
    }
}

/* Media Query pour réduire encore plus la taille sur les très petits écrans */
@media (max-width: 480px) {
     .banner-text .hero-text h1{
        font-size: 1.5em;  /* Encore plus petit */
    }
     .banner-text .hero-text p{
        font-size: 0.9em; /* Encore plus petit */
    }

    .banner-nav a {
        font-size: 0.8em; /* Encore plus petit */
        padding: 3px 6px; /* Réduit le padding pour les très petits écrans */
    }
    .banner-nav .top-links{
        gap: 10px;   /* Réduit l'espace entre les liens */
    }
}