/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Barre de Navigation (Navbar) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 16px;
    font-weight: 400;
    color: #555;
}

.logo-text {
    font-weight: 700;
    color: #007bff;
    font-size: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    margin-left: 25px;
    font-size: 14px;
    font-weight: 400;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a.active {
    color: #007bff;
    font-weight: 700;
    border-bottom: 2px solid #007bff;
}

.search-btn {
    background: none;
    border: none;
    margin-left: 25px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
}


/* --- Section Hero (Bannière principale) --- */
.hero-section {
    position: relative;
    height: 90vh;
    width: 100%;
    background: url('img/peintre1.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 60px; /* Marge pour compenser la navbar fixe */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

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


/* --- Section Services --- */
.services-section {
    padding: 80px 50px;
    text-align: center;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.blue-text {
    color: #007bff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px; 
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.25em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.learn-more {
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.learn-more:hover {
    color: #007bff;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Section Questions Fréquentes (FAQ) --- */
.faq-section {
    padding: 80px 50px;
    text-align: center;
    background-color: #f0f0f0;
}

.blue-text-dark {
    color: #3366ff;
}

.faq-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.faq-column {
    flex: 1;
    min-width: 400px;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1em;
    color: #444;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-toggle {
    font-size: 1.2em;
    font-weight: 700;
    transition: transform 0.4s ease;
    margin-left: 10px;
    color: #666;
}

/* Réponse cachée par défaut */
.faq-answer {
    max-height: 0; 
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    overflow: hidden;
}

.faq-answer p {
    padding-bottom: 15px;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

/* Styles quand le volet est ouvert (via la classe .open ajoutée par le JS) */
.faq-item.open .faq-answer {
    max-height: 200px; /* Hauteur suffisante pour le texte */
    padding: 15px 20px;
    padding-top: 0;
    border-top: 1px solid #eee; 
}

.faq-item.open .faq-question {
    font-weight: 700;
    color: #333;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg); /* La flèche pointe vers le haut */
}

@media (max-width: 850px) {
    .faq-container {
        flex-direction: column;
    }
    .faq-column {
        min-width: 100%;
    }
    .faq-section {
        padding: 40px 20px;
    }
}


/* --- footer --- */
footer {
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.9em;
    padding-top: 50px;
}

.footer-top {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item .icon {
    font-size: 2.2em;
    color: #888;
}

.info-item .title {
    font-weight: 700;
    color: #444;
    margin-bottom: 3px;
    font-size: 1.05em;
}

.info-item .detail {
    font-size: 1em;
    color: #555;
    text-decoration: none;
}

.cta-link {
    color: #3366ff;
    font-weight: 500;
}

.footer-main {
    text-align: center;
    padding: 40px 50px;
}

.footer-brand {
    margin-bottom: 40px;
}

.logo-footer {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    margin-bottom: 5px;
}

.logo-text-footer {
    font-weight: 700;
    color: #3366ff;
    font-size: 24px;
    letter-spacing: 0.5px;
}

.tagline {
    color: #777;
    margin-top: 10px;
}

.footer-nav {
    margin-bottom: 40px;
}

.footer-nav a {
    text-decoration: none;
    color: #777;
    margin: 0 15px;
    font-size: 1em;
    transition: color 0.3s;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: #3366ff;
}

.social-links {
    margin-bottom: 50px;
}

.social-links a {
    display: inline-block;
    font-size: 1.2em;
    color: #777;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    margin: 0 8px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.social-links a:hover {
    background-color: #3366ff;
    color: #fff;
    border-color: #3366ff;
}

.footer-bottom {
    background-color: #e6e6e6;
    padding: 15px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }
    .info-item {
        margin-bottom: 20px;
    }
    .footer-nav a {
        display: block;
        margin: 10px 0;
    }
}

/* --- section avis --- */
.testimonials-section {
    padding: 80px 50px;
    background-color: #f9f9f9; 
    text-align: center;
}

.testimonials-grid {
    display: grid;
    /* 3 colonnes sur les grands écrans */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
    text-align: left;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9e9e9;
}

.testimonial-card .rating {
    color: #f39c12; /* Couleur orange/or pour les etoiles */
    font-size: 1.2em;
    margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-author {
    color: #333;
    font-weight: 700;
    font-size: 1em;
}

/* --- pour que la section témoignages soit responsive --- */

/* pour tablettes */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* pour les tel */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 20px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr; /* pur quue yai une seule colonne */
    }
}