/* --- 0. RÉINITIALISATION ET FONDAMENTAUX CHIC --- */
/* Import de polices de Google Fonts pour un look plus élégant */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    /* Couleurs inspirées de la Méditerranée et de la nature haut de gamme */
    --primary-blue: #0A3D62;   /* Bleu Marine profond (élégance) */
    --accent-teal: #00A896;    /* Bleu-Vert/Teal (fraîcheur de l'eau) */
    --sand-beige: #EBEBD3;     /* Beige Sable Clair (chaleur) */
    --dark-charcoal: #2c3e50;  /* Gris très foncé */
    --white: #ffffff;
    
    /* Typographie */
    --font-heading: 'Playfair Display', serif; /* Serif pour les titres (luxe) */
    --font-body: 'Montserrat', sans-serif;     /* Sans-serif pour la lecture (moderne) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-charcoal);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--accent-teal);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-blue);
}

/* --- Boutons d'Action (CTAs) Améliorés --- */
.main-cta {
    display: inline-block;
    background-color: var(--accent-teal);
    color: var(--white) !important;
    font-size: 1.1em;
    padding: 15px 35px;
    border-radius: 50px; /* Boutons arrondis */
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 168, 150, 0.3);
}

.main-cta:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}


/* --- 1. BANDEAU CRÉDIT D'IMPÔT --- */

.tax-credit-banner {
    background-color: var(--sand-beige); /* Couleur douce mais visible */
    color: var(--dark-charcoal);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1em;
}

.tax-credit-banner strong {
    color: var(--primary-blue);
}

.tax-credit-banner .cta-link {
    color: var(--accent-teal);
    margin-left: 10px;
    font-weight: 700;
    text-decoration: underline;
}

/* --- 2. NAVIGATION PRINCIPALE (Plus Légère) --- */

#main-nav {
    background-color: var(--white);
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.site-logo {
    font-size: 2em;
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-charcoal);
    font-weight: 400;
    padding: 8px 0;
    position: relative;
}

/* Soulignement subtil au survol */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    background: var(--accent-teal);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
}
.cta-button:hover {
    background-color: var(--accent-teal);
}


/* --- 3. SECTION HÉRO (Design Amélioré) --- */

#hero {
    /* Assurez-vous que l'image est belle et de haute résolution */
    background: url('assets/images/hero/image_fond_piscine_jardin.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 180px 0;
    /* Un overlay plus subtil */
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Assombrissement léger */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3.5em;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#hero .tagline {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 40px;
}


/* --- 4. SECTION PILIERS/AVANTAGES CLÉS (Cartes Élevées) --- */

#services-pillars {
    padding: 80px 0;
    background-color: var(--sand-beige); /* Utilisation du beige pour la chaleur */
    text-align: center;
}

.pillars-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.pillar {
    flex-basis: 33%;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--white);
    /* Ombre douce pour "élever" la carte */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pillar i {
    font-size: 3.5em;
    color: var(--accent-teal);
    margin-bottom: 15px;
}

.pillar h3 {
    font-size: 1.3em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}


/* --- 5. APPEL À L'ACTION POUR LES RÉALISATIONS --- */

#featured-work {
    background-color: var(--primary-blue); /* Section d'action en bleu foncé */
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

#featured-work h2 {
    color: var(--sand-beige);
    margin-bottom: 40px;
}

.photo-preview-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.work-photo {
    width: 30%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid var(--sand-beige); /* Cadre sable */
    opacity: 0.9;
    transition: transform 0.3s, opacity 0.3s;
}
.work-photo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.secondary-cta {
    display: inline-block;
    background-color: var(--sand-beige);
    color: var(--dark-charcoal) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
}
.secondary-cta:hover {
    background-color: var(--white);
}

/* --- 6. PIED DE PAGE --- */

footer {
    background-color: var(--dark-charcoal);
    color: var(--sand-beige);
    padding: 30px 0;
    font-size: 0.9em;
}

footer a {
    color: var(--accent-teal);
}
footer a:hover {
    color: var(--white);
}

/* --- AJOUT POUR LES PAGES SECONDAIRES (services.html et contact.html) --- */

.service-detail-card {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-detail-card:nth-child(even) {
    flex-direction: row-reverse; /* Alternance pour un design plus dynamique */
}

.service-detail-card img {
    width: 40%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 25px;
}

.service-detail-card h3 {
    margin-top: 0;
    color: var(--accent-teal);
}

.intro-service {
    font-size: 1.1em;
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--sand-beige);
    border-left: 5px solid var(--accent-teal);
    border-radius: 4px;
}

/* --- Style du Formulaire de Contact --- */

.contact-grid {
    display: flex;
    gap: 50px;
    padding: 40px 0;
}

.form-contact {
    flex: 2;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
    padding: 30px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--sand-beige);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    font-weight: 300;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-charcoal);
}

.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group input[type="tel"], 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}


/* --- RESPONSIVE AMÉLIORÉ --- */
@media (max-width: 992px) {
    .pillars-grid, .contact-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .pillar, .form-contact, .contact-info {
        flex-basis: 100%;
        width: 100%;
    }
    
    .service-detail-card, 
    .service-detail-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .service-detail-card img {
        width: 80%;
        margin: 20px 0;
    }

    #hero h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 576px) {
    .photo-preview-grid {
        flex-direction: column;
    }
    .work-photo {
        width: 100%;
    }
    .tax-credit-banner p {
        padding: 0 5px;
    }
}