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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #eab308;
    --accent-color: #ef4444;
    --text-color: #333;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
  z-index: 0;
}

/* Header styles */

.header {
    position: relative;
    background-image: url('../img/1.jpeg'); /* remplace par le chemin réel de ton image */
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

.header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Change le "0.6" pour plus ou moins de noir */
}

.header .hero,
.header .nav {
    position: relative;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.phone-button {
    background-color: var(--secondary-color);
    color: black;;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.phone-button:hover {
    background-color: var(--white);
    transform: scale(1.05);
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Emergency banner */
.emergency-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.emergency-content {
    max-width: 800px;
    margin: 0 auto;
}

.emergency-content h2 {
    margin-bottom: 0.5rem;
}

.btn-emergency {
    background-color: var(--white);
    color: var(--accent-color);
    font-weight: bold;
}

.btn-emergency:hover {
    background-color: var(--gray-100);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0.5rem;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

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

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

.btn-service {
    background-color: var(--primary-color);
    color: var(--white);
    width: calc(100% - 2rem);
    max-width: 250px;
    margin: 1rem 0;
}

.btn-google {
    background-color: #4285f4;
    color: var(--white);
}

/* Services section */
.services {
    padding: 4rem 1rem;
    background-color: var(--light-bg);
}

.services h2, .advantages h2, .contact h2, .testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center; /* important pour centrer le bouton */
    justify-content: space-between;
}

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

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

.service-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.service-card p {
    padding: 0 1rem;
    flex-grow: 1;
    text-align: center; /* ✅ ajoute ça */
}

/* Testimonials section */
.testimonials {
    padding: 4rem 1rem;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.testimonial-card {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.client-name {
    font-weight: bold;
    color: var(--primary-color);
}

.google-reviews {
    text-align: center;
    margin-top: 3rem;
}

.google-reviews h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Advantages section */
.advantages {
    padding: 4rem 1rem;
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s;
}

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

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* CTA section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 1rem;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
}

/* Contact section */
.contact {
    padding: 4rem 1rem;
    background-color: var(--light-bg);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    font-size: 1rem;
}

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

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.contact-info p a[href^="tel:"],
.contact-info p a[href*="tel:"],
.contact-info a[href^="tel:"],
.contact-info a[href*="tel:"] {
    color: white !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.contact-info p span {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* Forcer la couleur blanche pour tous les liens dans contact-info */
.contact-info a {
    color: white !important;
    text-decoration: none !important;
}

.emergency-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.emergency-contact h4 {
    margin-bottom: 1rem;
}

/* Footer styles */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

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

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

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

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

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

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}


.btn-floating {
    background-color: #22c55e; /* vert doux */
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 10000; /* très haut */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .btn {
        display: block;
        margin: 0.5rem 0;
    }

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .btn-floating {
        width: 100%;
    }

    .menu-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 11000;
    }
    
}

#gallery {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.swiper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
