/* Cimes & Jardins - Prestige Stylesheet */

/* 1. FONTS & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Lora:wght@400;700&display=swap');

:root {
    --primary-color: #2F4F4F; /* Deep Forest Green */
    --secondary-color: #808080; /* Stone Gray */
    --background-color: #F9F9F9; /* Off-White */
    --accent-color: #D4AF37; /* Golden Ochre */
    --text-color: #333333; /* Charcoal */
    --white-color: #FFFFFF;

    --font-heading: 'Lora', serif;
    --font-body: 'Lato', sans-serif;
}

/* 2. GLOBAL RESETS & BODY STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 3. LAYOUT & UTILITY CLASSES */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* 4. HEADER & NAVIGATION */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
}

/* 5. FOOTER */
.main-footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--background-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-color);
}

/* 6. REUSABLE COMPONENTS */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b89b31; /* Darker Ochre */
    text-decoration: none;
}

/* Specific Page Styles will be added below */


/* 7. HOMEPAGE SPECIFIC STYLES */

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 6rem 1rem;
}

.hero-content h1 {
    color: var(--white-color);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Services Overview Section */
.services-overview {
    padding: 4rem 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.service-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.service-card a {
    display: block;
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.testimonials h2 {
    color: var(--white-color);
}

.testimonial-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--accent-color);
    padding-left: 2rem;
}

.testimonial-quote cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

/* Final CTA Section */
.final-cta {
    text-align: center;
    padding: 4rem 0;
}

.final-cta p {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
}


/* 8. SERVICES PAGE STYLES */

.page-title {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.service-detail {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
}

.service-image img {
    border-radius: 8px;
    width: 100%;
}

.service-description {
    flex: 1;
}

.service-description h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-description p {
    margin-bottom: 1.5rem;
}

.service-description ul {
    list-style: none;
    padding-left: 0;
}

.service-description li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-description li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Responsive adjustments for services page */
@media (max-width: 768px) {
    .service-detail,
    .service-detail.reverse {
        flex-direction: column;
        text-align: center;
    }

    .service-description ul {
        text-align: left;
    }
}


/* 9. GALLERY PAGE STYLES */

#gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* 10. ACTUALITES (NEWS) PAGE STYLES */

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-content {
    padding: 2rem;
}

.article-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.article-excerpt {
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}


/* 11. CONTACT PAGE STYLES */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

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

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(47, 79, 79, 0.2);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-group-checkbox input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-group-checkbox label {
    font-weight: normal;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Responsive adjustments for contact page */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* 12. LEGAL CONTENT PAGE STYLES */

.legal-content section {
    margin-bottom: 2.5rem;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.legal-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

\n/* Hero Section Styles */\n.hero-section {\n    position: relative;\n    width: 100%;\n    height: 80vh;\n    background-image: url('../img/amenagement-01.jpg');\n    background-size: cover;\n    background-position: center;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    text-align: center;\n    color: white;\n}\n\n.hero-section::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    background: rgba(0, 0, 0, 0.5);\n}\n\n.hero-content {\n    position: relative;\n    z-index: 1;\n}\n\n.hero-content h1 {\n    font-size: 4rem;\n    margin-bottom: 1rem;\n    font-family: 'Garamond', serif;\n}\n\n.hero-content p {\n    font-size: 1.5rem;\n    font-weight: 300;\n}\n\n@media (max-width: 768px) {\n    .hero-content h1 {\n        font-size: 2.5rem;\n    }\n    .hero-content p {\n        font-size: 1.2rem;\n    }\n}
\n/* Nos Réalisations Section Styles */\n.realisations-section {\n    padding: 4rem 2rem;\n    text-align: center;\n}\n\n.realisations-section h2 {\n    font-size: 2.5rem;\n    margin-bottom: 2rem;\n    font-family: 'Garamond', serif;\n}\n\n.photo-grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n    gap: 1.5rem;\n}\n\n.photo-grid a {\n    display: block;\n    overflow: hidden;\n    border-radius: 8px;\n    box-shadow: 0 4px 8px rgba(0,0,0,0.1);\n    transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n\n.photo-grid a:hover {\n    transform: translateY(-5px);\n    box-shadow: 0 8px 16px rgba(0,0,0,0.2);\n}\n\n.photo-grid img {\n    width: 100%;\n    height: 100%;\n    object-fit: cover;\n    display: block;\n}

/* Styles for the homepage photo grid */
.realisations-section .photo-grid img {
    width: 100%;
    height: 250px; /* Fixed height for all images */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.realisations-section .photo-grid img:hover {
    transform: scale(1.05);
}

/* === Fixes from user feedback === */

/* Hero Section Text Color */
.hero-section .hero-content h1,
.hero-section .hero-content p {
    color: #333; /* Dark text for light background */
}

/* Photo Grid Spacing */
.realisations-section .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Add space between grid items */
}

/* === Gallery Page Grid Styles === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-grid img:hover {
    opacity: 0.8;
}

/* === Visual Enhancements: Green Gradient Background === */
body {
    background: linear-gradient(to bottom, #f0f4f0, #e6ebe6);
    color: #333;
}

/* === FIX: Force Gradient Background === */
html, body {
    background: linear-gradient(to bottom, #e8f5e9, #c8e6c9) !important; /* Use !important to ensure override */
    min-height: 100vh;
}

/* === Floating Contact Buttons === */
.floating-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-contact-buttons a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.floating-contact-buttons a:hover {
    transform: scale(1.1);
}

.phone-button {
    background-color: #3498db;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.02.74-.25 1.02l-2.2 2.2z"/></svg>');
}

.whatsapp-button {
    background-color: #25D366;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38c1.45.79 3.08 1.21 4.79 1.21 5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2zM12.04 20.15c-1.48 0-2.93-.4-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31c-.82-1.31-1.26-2.83-1.26-4.38 0-4.54 3.7-8.24 8.24-8.24 4.54 0 8.24 3.7 8.24 8.24s-3.7 8.24-8.24 8.24zm4.52-6.2c-.25-.12-1.47-.72-1.7-.8s-.39-.12-.56.12c-.17.25-.64.8-.79.97s-.29.19-.54.06c-.25-.12-1.06-.39-2.02-1.25s-1.45-1.94-1.62-2.27c-.17-.33-.02-.51.11-.64s.25-.29.37-.44c.12-.14.17-.25.25-.41s.12-.3-.06-.41c-.19-.12-.56-1.34-.76-1.84s-.4-.42-.56-.42c-.16 0-.33-.02-.5-.02s-.44.06-.67.33c-.23.27-.87.85-.87 2.07s.89 2.4 1.01 2.56c.12.17 1.76 2.68 4.27 3.78 2.51 1.1 2.51.74 2.96.71.45-.03 1.47-.6 1.68-1.18s.21-1.09.14-1.18c-.05-.09-.19-.14-.44-.26z"/></svg>');
}

/* === Interactive Map Section === */
.map-section {
    padding: 60px 0;
    text-align: center;
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
}

/* === Actualités Page === */
.articles-list {
    margin-top: 40px;
}

.article-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-title {
    font-size: 1.8em;
    color: #3ca53c;
    margin-top: 0;
    margin-bottom: 5px;
}

.article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.article-content p {
    line-height: 1.6;
}

/* === Contact Page & Form === */
.contact-form {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.rgpd-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.rgpd-group input[type="checkbox"] {
    margin-top: 5px;
}

.rgpd-group label {
    font-weight: normal;
    font-size: 0.9em;
}

.privacy-notice {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* === Header Logo Styling === */
.logo img {
    max-height: 60px;
    width: auto;
}

/* === Contact Info Block === */
.contact-info-section {
    padding: 40px 0;
}

.contact-info-block {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-info-block h3 {
    font-size: 1.5em;
    color: #2c5d2c;
    margin-top: 0;
}

.contact-info-block p {
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

/* === Footer Social Links === */
.social-links {
    text-align: center;
    margin-bottom: 15px;
}

.social-links a {
    color: #555;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3ca53c;
}

/* === Map Section === */
.map-section {
    padding: 40px 0;
}

#map {
    height: 400px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
}

/* === Gallery Filter Buttons === */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #fff;
    border: 2px solid #2c5d2c;
    color: #2c5d2c;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e8f5e9;
}

.filter-btn.active {
    background-color: #2c5d2c;
    color: #fff;
}

/* === Service Page CTA Button === */
.cta-button-service {
    display: inline-block;
    background-color: #2c5d2c;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.cta-button-service:hover {
    background-color: #3ca53c;
}
