/* Palette de couleurs inspirée de image001.jpg */
:root {
    --blue-denim: #4A6FA5;        /* Bleu dénim principal */
    --blue-dark: #3A5A8A;         /* Bleu foncé */
    --blue-light: #6B8FC4;        /* Bleu clair */
    --red-vibrant: #E63946;       /* Rouge vif pour CTA */
    --red-dark: #C1121F;          /* Rouge foncé */
    --cream: #FFF8E7;              /* Crème/beige pour fond */
    --cream-dark: #F5E6D3;        /* Crème foncé */
    --brown: #8B6F47;             /* Marron chaleureux */
    --brown-dark: #6B5435;        /* Marron foncé */
    --orange: #FF6B35;            /* Orange accent */
    --silver: #C0C0C0;            /* Gris argenté */
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
}

* {
    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-dark);
    background-color: var(--cream);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img-wrapper {
    width: 65px;
    height:80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.4), 0 0 0 4px rgba(74, 111, 165, 0.15);
    border: 3px solid var(--blue-denim);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue-denim), #5a7fb5);
    padding: 2px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text h1 {
    color: var(--blue-denim);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--blue-denim);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red-vibrant);
    transition: width 0.3s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--blue-denim);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Vidéo en arrière-plan */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.85) 0%, rgba(58, 90, 138, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--blue-denim);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-denim);
    text-align: center;
    margin-bottom: 1rem;
}

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

/* Services */
.services {
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--cream);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 111, 165, 0.2);
    border-color: var(--blue-light);
}

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

.service-card h3 {
    color: var(--blue-denim);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red-vibrant);
    font-weight: bold;
}

/* About */
.about {
    background-color: var(--cream-dark);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--blue-denim);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--red-vibrant);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Certifications */
.certifications {
    background-color: var(--white);
}

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

.cert-card {
    background: linear-gradient(135deg, var(--blue-denim) 0%, var(--blue-light) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: scale(1.05);
}

.cert-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--orange);
}

.cert-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.cert-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-link span {
    font-size: 1rem;
}

.cert-verify {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cert-verify:hover {
    background-color: var(--white);
    color: var(--blue-denim);
    transform: translateY(-2px);
}

.cert-pdf {
    background-color: var(--orange);
    color: var(--white);
    border: 1px solid var(--orange);
}

.cert-pdf:hover {
    background-color: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cert-logo {
    background-color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cert-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cert-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Reviews */
.reviews {
    background-color: var(--cream);
}

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

.review-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--red-vibrant);
}

.review-stars {
    color: var(--orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.review-author {
    color: var(--blue-denim);
    font-weight: 600;
}

.rating-summary {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-denim);
    margin-bottom: 0.5rem;
}

.rating-stars {
    font-size: 1.5rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.reviews-links {
    text-align: center;
    margin-top: 2.5rem;
}

.reviews-links > p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.reviews-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.review-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.review-link span {
    font-size: 1.2rem;
    font-weight: 700;
}

.review-google {
    background-color: #fff;
    color: #4285F4;
    border: 2px solid #4285F4;
    box-shadow: 0 3px 10px rgba(66, 133, 244, 0.2);
}

.review-google:hover {
    background-color: #4285F4;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.review-pagesjaunes {
    background-color: #fff;
    color: #FFCC00;
    border: 2px solid #FFCC00;
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.2);
}

.review-pagesjaunes:hover {
    background-color: #FFCC00;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

/* Contact */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--red-vibrant);
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.contact-item h3 {
    color: var(--blue-denim);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-item a {
    color: var(--blue-denim);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--red-vibrant);
}

.contact-form-container {
    background-color: var(--cream);
    padding: 2.5rem;
    border-radius: 10px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--silver);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-denim);
}

.form-group textarea {
    resize: vertical;
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--orange);
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--orange);
}

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

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--red-vibrant);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

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

.scroll-to-top:hover {
    background-color: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Réalisations / Gallery */
.realisations {
    background-color: var(--cream);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--blue-denim);
    background-color: transparent;
    color: var(--blue-denim);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.gallery-item.hidden {
    display: none;
}

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

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 111, 165, 0.25);
}

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

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.gallery-category {
    display: inline-block;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 3px 10px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    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-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--red-vibrant);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--red-vibrant);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 10px 25px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img-wrapper {
        width: 45px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 500px;
        padding: 60px 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .cert-grid,
    .reviews-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 1.8rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 100%);
        padding: 1.5rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo-img-wrapper {
        width: 40px;
        height: 36px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    section {
        padding: 50px 0;
    }
}
