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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-color: #2c5282;
    --secondary-color: #ed8936;
    --light-gray: #f7fafc;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(44, 82, 130, 0.1);
    --transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

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

.btn--primary:hover {
    background: #e67a00;
    transform: translateY(-2px);
}

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

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

.btn--whatsapp {
    background: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn--whatsapp:hover {
    background: #20b954;
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(44, 82, 130, 0.1);
}

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

.nav__logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--secondary-color);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8), rgba(237, 137, 54, 0.6)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f7fafc" width="1200" height="800"/><g fill="%232c5282" opacity="0.1"><polygon points="0,800 400,600 800,700 1200,500 1200,800"/></g></svg>');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    color: var(--secondary-color);
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Section Headers */
.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section__description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service__card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(44, 82, 130, 0.05);
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 82, 130, 0.15);
}

.service__icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
}

.service__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Réalisations Section */
.realisations {
    padding: 100px 0;
    background: var(--light-gray);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    align-items: start;
}

.gallery__item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

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

.gallery__image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.placeholder-image {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.gallery__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
}

.gallery__item:hover .gallery__overlay {
    transform: translateY(0);
}

/* Auto-adaptive gallery system */
.gallery__image {
    aspect-ratio: 4/3; /* Ratio par défaut harmonieux */
}

/* Support pour différents ratios d'images */
.gallery__item[data-ratio="square"] .gallery__image {
    aspect-ratio: 1/1;
}

.gallery__item[data-ratio="wide"] .gallery__image {
    aspect-ratio: 16/9;
}

.gallery__item[data-ratio="portrait"] .gallery__image {
    aspect-ratio: 3/4;
}

/* Responsive gallery adaptations */
@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery__image {
        min-height: 180px;
        max-height: 280px;
    }
    
    .gallery__img {
        min-height: 180px;
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery__image {
        min-height: 200px;
        max-height: 250px;
        aspect-ratio: 4/3; /* Force un ratio uniforme sur mobile */
    }
    
    .gallery__img {
        min-height: 200px;
        max-height: 250px;
    }
}

.gallery__overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Système de comparaison avant/après */
.gallery__item--comparison {
    cursor: grab;
}

.gallery__item--comparison:active {
    cursor: grabbing;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-after {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    transition: clip-path 0.3s ease;
}

.comparison-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f8f9fa;
}

.comparison-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 2;
    transition: var(--transition);
}

.comparison-label--before {
    left: 20px;
}

.comparison-label--after {
    right: 20px;
}

.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
}

.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    cursor: grab;
    transition: left 0.3s ease;
}

.comparison-slider-handle:active {
    cursor: grabbing;
}

.slider-button {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    transition: var(--transition);
    border: 3px solid white;
}

.slider-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.slider-button svg {
    width: 20px;
    height: 20px;
}

/* Animation au survol pour indiquer l'interactivité */
.gallery__item--comparison:hover .comparison-divider {
    animation: slideHint 2s ease-in-out infinite;
}

.gallery__item--comparison:hover .comparison-slider-handle {
    animation: slideHint 2s ease-in-out infinite;
}

@keyframes slideHint {
    0%, 100% { left: 50%; }
    25% { left: 45%; }
    75% { left: 55%; }
}

/* Responsive pour les comparaisons */
@media (max-width: 768px) {
    .comparison-label {
        font-size: 0.8rem;
        padding: 6px 12px;
        top: 15px;
    }
    
    .comparison-label--before {
        left: 15px;
    }
    
    .comparison-label--after {
        right: 15px;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    .slider-button svg {
        width: 16px;
        height: 16px;
    }
    
    /* Améliorer la zone tactile sur mobile */
    .comparison-slider-handle {
        padding: 10px;
        margin: -10px;
    }
    
    /* Animation plus subtile sur mobile */
    .gallery__item--comparison:hover .comparison-divider,
    .gallery__item--comparison:hover .comparison-slider-handle {
        animation: none;
    }
}

@media (max-width: 480px) {
    .comparison-label {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 10px;
    }
    
    .comparison-label--before {
        left: 10px;
    }
    
    .comparison-label--after {
        right: 10px;
    }
    
    .slider-button {
        width: 36px;
        height: 36px;
        border: 2px solid white;
    }
    
    .slider-button svg {
        width: 14px;
        height: 14px;
    }
}

/* Optimisations pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .gallery__item--comparison:hover .comparison-divider,
    .gallery__item--comparison:hover .comparison-slider-handle {
        animation: none;
    }
    
    .slider-button:hover {
        transform: none;
    }
    
    /* Indication visuelle pour les utilisateurs tactiles */
    .gallery__item--comparison::before {
        content: "Glissez pour comparer";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        z-index: 5;
        opacity: 0;
        animation: showHint 3s ease-in-out 1s;
        pointer-events: none;
    }
    
    @keyframes showHint {
        0%, 90%, 100% { opacity: 0; }
        10%, 80% { opacity: 1; }
    }
}

/* Méthode Section */
.methode {
    padding: 100px 0;
    background: var(--white);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process__step {
    text-align: center;
    padding: 30px 20px;
}

.process__number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.process__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form__group {
    margin-bottom: 25px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact__card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact__card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.contact__item {
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact__item strong {
    color: var(--primary-color);
}

.contact__item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact__item a:hover {
    text-decoration: underline;
}

.contact__whatsapp {
    margin-top: 25px;
}

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

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__section {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    margin-bottom: 1rem;
}

.footer__logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0.8rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.footer__contact-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer__contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

.footer__legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__legal-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer__links-bottom {
    display: flex;
    gap: 2rem;
}

.footer__links-bottom .footer__link {
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        padding: 0.75rem 0;
        min-height: 60px;
    }

    .nav__menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav__menu.show {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        padding: 0 2rem;
    }

    .nav__item {
        width: 100%;
        text-align: center;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(44, 82, 130, 0.1);
    }

    .nav__toggle {
        display: flex;
        width: 32px;
        height: 32px;
    }

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

    .hero {
        min-height: 70vh;
        padding-top: 60px;
    }

    .hero__content {
        text-align: center;
        padding: 3rem 0;
    }

    .hero__title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero__description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section__title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section__description {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service__card {
        padding: 2rem 1.5rem;
    }

    .service__icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

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

    .gallery__item {
        height: 250px;
    }

    .process__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process__step {
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .process__number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1.5rem;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact__form {
        order: 2;
    }

    .contact__info {
        order: 1;
        text-align: center;
    }

    .form__group {
        margin-bottom: 1.5rem;
    }

    .form__group input,
    .form__group textarea {
        padding: 1rem;
        font-size: 1rem;
    }

    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer__section {
        align-items: center;
    }

    .footer__logo-img {
        height: 35px;
    }

    .footer__description {
        text-align: center;
        max-width: 300px;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer__links-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    /* Lightbox Mobile */
    .lightbox {
        padding: 10px;
    }
    
    .lightbox__content {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .lightbox__image {
        max-height: 50vh;
        max-width: 90vw;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .lightbox__prev,
    .lightbox__next {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        left: 5px;
        right: auto;
        bottom: auto;
        padding: 10px 12px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox__next {
        right: 5px;
        left: auto;
    }

    .lightbox__close {
        position: fixed;
        top: 15px;
        right: 15px;
        font-size: 28px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .lightbox__caption {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
        border-radius: 8px;
        margin-top: 0;
    }

    .lightbox__title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .lightbox__description {
        font-size: 0.85rem;
    }
}

    .services,
    .realisations,
    .methode,
    .contact {
        padding: 3.5rem 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        box-shadow: 0 4px 20px rgba(237, 137, 54, 0.3);
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

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

    .nav {
        padding: 0.5rem 0;
        min-height: 55px;
    }

    .nav__menu {
        top: 55px;
        height: calc(100vh - 55px);
    }

    .logo-image {
        height: 30px;
        max-width: 160px;
    }

    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    }

    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }

    .hero {
        min-height: 65vh;
        padding-top: 55px;
    }

    .hero__title {
        font-size: 1.9rem;
        line-height: 1.1;
    }

    .hero__subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        max-width: 260px;
    }

    .services,
    .realisations,
    .methode,
    .contact {
        padding: 3rem 0;
    }

    .section__title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .section__description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .service__card {
        padding: 1.5rem 1rem;
    }

    .service__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .service__title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .service__description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .gallery__item {
        height: 220px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .gallery__image {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .process__step {
        padding: 1.5rem 1rem;
    }

    .process__number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .process__title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .process__description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .contact__content {
        gap: 2.5rem;
    }

    .form__group input,
    .form__group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .form__group textarea {
        min-height: 120px;
    }
    
    /* Centrage des boutons sur mobile */
    .btn--full {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    .contact__whatsapp {
        text-align: center;
        margin-top: 25px;
    }
    
    .contact__whatsapp .btn--whatsapp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .contact__form,
    .contact__card {
        padding: 20px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__section {
        align-items: center;
    }

    .footer__logo-img {
        height: 30px;
    }

    .footer__description {
        font-size: 0.85rem;
        max-width: 280px;
    }

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

    .footer__contact-item,
    .footer__link,
    .footer__legal-item {
        font-size: 0.8rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer__links-bottom {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer__copyright {
        font-size: 0.75rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(237, 137, 54, 0.3);
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(237, 137, 54, 0.4);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .lightbox__content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 8px;
    }
    
    .comparison-container {
        min-height: 300px;
        max-height: 60vh;
    }
    
    .lightbox__image {
        max-height: 70vh;
    }
}

.lightbox__image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox__close:hover {
    color: var(--secondary-color);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox__prev {
    left: -60px;
}

.lightbox__next {
    right: -60px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox__caption {
    text-align: center;
    color: white;
    margin-top: 20px;
    max-width: 500px;
}

.lightbox__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.lightbox__description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Gallery Image Styles */
.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 200px;
    max-height: 350px;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

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

.service__card,
.gallery__item,
.process__step {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.service__card:nth-child(1) { animation-delay: 0.1s; }
.service__card:nth-child(2) { animation-delay: 0.2s; }
.service__card:nth-child(3) { animation-delay: 0.3s; }

.process__step:nth-child(1) { animation-delay: 0.1s; }
.process__step:nth-child(2) { animation-delay: 0.2s; }
.process__step:nth-child(3) { animation-delay: 0.3s; }
.process__step:nth-child(4) { animation-delay: 0.4s; }

/* Système de comparaison avant/après */
.comparison-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    opacity: 0.9;
}

.lightbox__comparison {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 70vh;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
}

.comparison-container:active {
    cursor: grabbing;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-after {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    transition: clip-path 0.3s ease;
}

.comparison-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-label {
    position: absolute;
    top: 15px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.comparison-label--before {
    left: 15px;
}

.comparison-label--after {
    right: 15px;
}

.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    z-index: 4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: grab;
}

.comparison-slider-handle:active {
    cursor: grabbing;
}

.slider-button {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.slider-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.comparison-instruction {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Responsive pour la comparaison */
@media (max-width: 768px) {
    .comparison-container {
        height: 300px;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    .comparison-label {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .comparison-instruction {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .comparison-container {
        height: 250px;
    }
    
    .slider-button {
        width: 36px;
        height: 36px;
    }
}