/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --secondary-color: #4fc3f7;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --dark: #333333;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* CORPS DU SITE */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* FOND */
    background-color: #f8fafc;
    background-image: url('assets/images/fond-adoucisseur.jpg');
    background-size: 40%;
    background-position-x: center;
    background-position-y: 130%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay TRÈS transparent pour voir l'image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

/* Sections avec bon contraste */
section {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 25px auto;
    padding: 70px 0;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero section - bon contraste */
.hero {
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
    margin-top: 150px;
    border-radius: 20px;
    padding: 100px 0;
}

/* Sections spécifiques */
.services, .zones, .garanties {
    background-color: rgba(255, 255, 255, 0.1);
}

.galerie {
    background-color: rgba(255, 255, 255, 0.1);
}

.contact {
    background-color: rgba(248, 250, 252, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(rgba(44, 62, 80, 0.98), rgba(44, 62, 80, 0.95));
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cartes avec bon contraste */
.service-card, .garantie-card, .contact-cta {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-call {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
}

.btn-call:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #333333;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.badge i {
    color: #4CAF50;
}

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

.service-card {
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.services-note {
    background: #fff8e1;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 3rem;
    border-left: 4px solid #ffb300;
}

.services-note i {
    color: #ffb300;
    margin-right: 10px;
}

/* Zones */
.zones-container {
    max-width: 900px;
    margin: 0 auto;
}

.zones-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.zones-list ul li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zones-list ul li i {
    color: var(--primary-color);
}

.zones-note {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #4CAF50;
}

.zones-note i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Garanties */
.garanties-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.garantie-card {
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
}

.garantie-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
}

.garantie-card h3 i {
    color: var(--primary-color);
}

/* Galerie */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.galerie-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.galerie-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.galerie-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galerie-item:hover img {
    transform: scale(1.05);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    background: var(--light-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-cta {
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-color) 100%);
}

.contact-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cta-big {
    margin: 2rem 0;
}

.note {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.note i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: var(--secondary-color);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

.footer-bottom a {
    color: var(--secondary-color);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.seo-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
        margin: 15px 10px;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 3rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-contact {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
        margin-top: 120px;
        background: linear-gradient(135deg, rgba(227, 242, 253, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    /* FOND SUR MOBILE */
    body {
        background-size: 100%;
        background-position: center 120px;
    }
    
    /* Overlay sur mobile */
    body::before {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Sections sur mobile - UNE SEULE MODIFICATION */
    section {
        margin: 15px;  /* ← LAISSEZ COMME ÇA */
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%; /* Prend 95% de l'écran */
        max-width: none; /* Enlève la limitation */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header, .footer {
        background-color: rgba(255, 255, 255, 0.98);
    }
}
    

/* Image visible mais texte lisible */
body::before {
    background: rgba(255, 255, 255, 0.05); /* Très transparent */
}

section, .header, .footer {
    background-color: rgba(255, 255, 255, 0.1); /* Presque opaque */
}