/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles pour les sections avec image et texte */
.content-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.content-image-text.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-image-text.reverse .content-image {
    order: 1;
}

.content-image-text.reverse .content-text {
    order: 2;
}

.content-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
}

.content-text {
    padding: 1rem 0;
}

/* Responsive pour les sections image-texte */
@media (max-width: 768px) {
    .content-image-text,
    .content-image-text.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-image-text.reverse .content-image,
    .content-image-text.reverse .content-text {
        order: initial;
    }
    
    .content-image img {
        height: 300px;
        aspect-ratio: 1 / 1;
    }
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #f8f9fa;
    color: #333;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100px;
}

/* Page hero spécifique pour la page couverture */
.page-hero-couverture {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 73, 94, 0.8) 100%), url('images/couverturebg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Page hero spécifique pour la page nettoyage */
.page-hero-nettoyage {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 73, 94, 0.8) 100%), url('images/nettoyagebg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Page hero spécifique pour la page étanchéité */
.page-hero-etancheite {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 73, 94, 0.8) 100%), url('images/etancheitebg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.logo-img {
    height: 120%;
    width: auto;
    object-fit: contain;
    transform: scale(2);
    margin-right: 1rem;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    margin: 0;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

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

.nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav a:hover,
.nav a.active {
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
}

.nav a.btn-devis {
    background: #e67e22;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    transition: background 0.3s ease;
}

.nav a.btn-devis:hover {
    background: #d35400;
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(52, 73, 94, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #e67e22;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.intervention {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    background: rgba(244, 200, 66, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

.cta-section {
    margin-top: 2rem;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.phone-numbers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.phone-primary,
.phone-secondary {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    background: rgba(212, 85, 63, 0.9);
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.phone-primary:hover,
.phone-secondary:hover {
    background: #b8412e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: #f4c842;
    border-color: #f4c842;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Stats Section */
.stats {
    background: white;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

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

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: #34495e;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-link {
    color: #34495e;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #2c3e50;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.about h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.about .subtitle {
    font-size: 1.2rem;
    color: #e67e22;
    margin-bottom: 2rem;
    font-style: italic;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: #34495e;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    text-align: right;
    color: #34495e;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer h3,
.footer h4 {
    margin-bottom: 1rem;
    color: #e67e22;
}

.footer address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

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

.footer-contact a:hover {
    color: #e67e22;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul a:hover {
    color: #e67e22;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Cache le texte du logo sur desktop */
.logo-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a365d;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav ul li {
        border-bottom: 1px solid #2c5aa0;
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: none !important;
    }
    
    .nav a:hover,
    .nav a.active {
        background: rgba(244, 200, 66, 0.2);
        color: #f4c842;
        border-bottom: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Cache le texte du logo en mobile */
    .logo-text {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .phone-numbers {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .slider-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .phone-primary,
    .phone-secondary {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Page spécifique styles */
.page-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1,
.page-hero-couverture h1,
.page-hero-nettoyage h1,
.page-hero-etancheite h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p,
.page-hero-couverture p,
.page-hero-nettoyage p,
.page-hero-etancheite p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 0;
    background: white;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

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

.content-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #34495e;
}

.content-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.content-card p {
    color: #666;
    line-height: 1.6;
}

/* Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #34495e;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Styles pour le captcha */
#captcha-question {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #e9ecef;
    min-width: 120px;
    text-align: center;
}

#refresh-captcha {
    transition: all 0.3s ease;
}

#refresh-captcha:hover {
    background: #2980b9 !important;
    transform: rotate(90deg);
}

/* Slider des partenaires */
.partners-section {
    background: #f8f9fa;
    padding: 3rem 0;
    overflow: hidden;
}

.partners-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.partners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.partners-track {
    display: flex;
    animation: slidePartners 15s linear infinite;
    gap: 2rem;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

@keyframes slidePartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive pour le slider partenaires */
@media (max-width: 768px) {
    .partner-logo {
        width: 120px;
        height: 80px;
        padding: 10px;
    }
    
    .partners-track {
        gap: 1rem;
    }
    
    .partners-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* Galerie dans la section À propos */
.about-gallery {
    margin-top: 3rem;
    text-align: center;
}

.about-gallery h4 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

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

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

.gallery-caption {
    padding: 1.5rem;
    text-align: left;
}

.gallery-caption h5 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 0.8rem;
}

.gallery-caption p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .gallery-item img {
        height: 250px;
    }
    
    .gallery-caption {
        padding: 1rem;
    }
    
    .about-gallery h4 {
        font-size: 1.5rem;
    }
}

.btn {
    background: #34495e;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2c3e50;
}

.btn-primary {
    background: #d4553f;
}

.btn-primary:hover {
    background: #b8412e;
}

/* Pages vides */
.empty-page {
    padding: 6rem 0;
    text-align: center;
    background: #f8f9fa;
}

.empty-page h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-page p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.coming-soon {
    background: #34495e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: bold;
}

/* Gallery Slider Styles */
.gallery-slider {
    background: #f8f9fa;
    padding: 4rem 0;
}

.gallery-slider h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide-item {
    min-width: 100%;
    position: relative;
    display: none;
}

.slide-item.active {
    display: block;
}

.slide-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
}

.slide-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.slide-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.slider-controls button {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

.slider-dots {
    text-align: center;
    padding: 2rem 0;
    background: white;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #d4553f;
    transform: scale(1.2);
}

/* Responsive pour le slider */
@media (max-width: 768px) {
    .gallery-slider h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .slide-item img {
        height: 300px;
    }
    
    .slide-caption {
        padding: 2rem 1rem 1rem 1rem;
    }
    
    .slide-caption h3 {
        font-size: 1.4rem;
    }
    
    .slide-caption p {
        font-size: 1rem;
    }
    
    .slider-controls {
        padding: 0 1rem;
    }
    
    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}