:root {
    --primary-color: #2c5282;
    --secondary-color: #1a365d;
    --accent-color: #4299e1;
    --dark-color: #2d3748;
    --light-color: #fff;
    --gray-color: #f7fafc;
    --text-color: #4a5568;
    --button-color: #4299e1;
    --button-hover-color: #3182ce;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    padding-top: 100px;
}

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

/* Header amélioré */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 75px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
}

.logo-image:hover {
    transform: scale(1.05);
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.header-location {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-location i {
    color: var(--accent-color);
}

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

.header-right {
    display: flex;
    align-items: center;
}

.contact-header {
    background: var(--button-color);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.2);
}

.contact-label {
    color: var(--light-color);
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
    text-align: center;
}

.contact-header .phone {
    color: var(--light-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-header .phone i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .header-info {
        align-items: center;
    }

    .logo-image {
        height: 55px;
        max-width: 180px;
    }

    .contact-header {
        width: 100%;
        margin-top: 0.5rem;
    }

    .contact-header .phone {
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Style uniforme pour tous les boutons CTA */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--button-color);
    color: var(--light-color);
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--button-hover-color);
}

/* S'assurer que tous les boutons de type submit ont le même style */
button[type="submit"] {
    background-color: #4299e1;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #3182ce;
}

#laisser-avis-btn {
    background-color: #4299e1;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

#laisser-avis-btn:hover {
    background-color: #3182ce;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.service-card i {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--gray-color);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #c6f6d5;
    color: #2f855a;
}

.form-message.error {
    display: block;
    background-color: #fed7d7;
    color: #c53030;
}

/* Spinner de chargement */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sending .spinner {
    display: inline-block;
}

.sending .button-text {
    opacity: 0.7;
}

/* Map */
.map-container {
    height: 400px;
    margin-top: 2rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 4rem 0;
    margin-top: 4rem;
}

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

.footer-content h3 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

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

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

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

.footer-services a {
    display: inline-block;
    padding: 0.25rem 0;
}

.social-links a {
    margin-right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

/* Avis Section */
.avis-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.avis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--orange-color));
}

/* Carousel Container */
.avis-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 60px;
}

.avis-carousel {
    overflow: hidden;
    border-radius: 20px;
}

.avis-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
}

/* Modern Card Design */
.avis-card-modern {
    min-width: calc(33.333% - 1.333rem);
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avis-card-modern::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(66, 153, 225, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

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

.avis-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.avis-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.avis-info {
    flex: 1;
}

.avis-author {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.avis-location {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.avis-location i {
    font-size: 0.75rem;
}

.avis-stars-modern {
    color: #fbbf24;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.avis-text-modern {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.avis-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

.avis-verified i {
    font-size: 1rem;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary-color);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.avis-actions {
    text-align: center;
    margin-top: 2rem;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.text-link i {
    margin-left: 0.5rem;
}

.avis-form-container {
    text-align: center;
    margin-top: 3rem;
}

.avis-form-container .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.avis-form-container .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5vh auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #2c5282;
}

/* Système de notation par étoiles */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.rating label:hover {
    transform: scale(1.1);
}

.rating label:hover,
.rating label:hover ~ label {
    color: #f6ad55;
}

.rating input:checked ~ label {
    color: #f6ad55;
}

.rating:hover label {
    color: #ddd;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: #f6ad55;
}

/* Section À Propos */
.about-section {
    background: linear-gradient(135deg, var(--gray-color) 0%, #ffffff 100%);
    padding: 6rem 0;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    padding: 0 1rem;
}

.about-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50px;
    transition: transform 0.3s ease;
}

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

.feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.feature span {
    color: var(--dark-color);
    font-weight: 500;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.about-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.about-image:hover .image-overlay {
    transform: translateY(0);
}

.about-image:hover .about-img {
    transform: scale(1.05);
}

.image-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .about-text {
        padding: 0;
    }

    .about-features {
        flex-direction: column;
        align-items: center;
    }

    .about-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature {
        width: 100%;
        justify-content: center;
    }
}

/* Nos Réalisations */
.realisations-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

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

.realisation-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--light-color);
    cursor: pointer;
}

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

.realisation-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.realisation-card:hover .realisation-image img {
    transform: scale(1.1);
}

.realisation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 82, 130, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

.realisation-overlay i {
    font-size: 3rem;
    color: var(--light-color);
}

/* Lightbox pour les réalisations */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    color: var(--light-color);
    cursor: pointer;
    transition: transform 0.2s ease;
    font-weight: 300;
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Footer */
.footer-certifications {
    margin-top: 1rem;
}

.footer-certifications i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.footer-certifications i:hover {
    transform: scale(1.1);
}

.footer-info ul {
    list-style: none;
    padding: 0;
}

.footer-info li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-info li::before {
    content: "✓";
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-icons i {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.footer-icons i:hover {
    transform: translateY(-3px);
    color: var(--light-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .realisations-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-header {
        margin-top: 1rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    /* Carousel responsive */
    .avis-carousel-container {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .avis-card-modern {
        padding: 1.5rem;
    }
    
    .avis-header {
        flex-wrap: wrap;
    }
    
    .avis-stars-modern {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 50px;
        max-width: 160px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }
    
    .avis-carousel-container {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .avis-card-modern::before {
        font-size: 80px;
        top: -10px;
    }
    
    .avis-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .avis-author {
        font-size: 1rem;
    }
    
    .avis-text-modern {
        font-size: 0.9rem;
    }
}