/* 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: #374151;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

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

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b4a;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.nav-menu a:hover {
    color: #8B2332;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-mobile {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none;
    }
}

#mobile-menu-btn {
    background: none;
    border: none;
    color: #374151;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

#mobile-menu-btn:hover {
    color: #8B2332;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding-top: 5rem;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding: 0 2rem;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #1a2b4a;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.75;
}

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

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary {
    background-color: #8B2332;
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #6d1b27;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.hero-email {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-email {
        text-align: left;
    }
}

.btn-secondary {
    background-color: #8B2332;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #6d1b27;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Service Image Card */
.hero-image-container {
    position: relative;
}

.service-image-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.service-image-wrapper {
    position: relative;
    height: 20rem;
}

@media (min-width: 768px) {
    .service-image-wrapper {
        height: 24rem;
    }
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.service-image.transitioning {
    opacity: 0;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 43, 74, 0.9) 0%, rgba(26, 43, 74, 0.5) 50%, transparent 100%);
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #ffffff;
}

.service-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: all 0.5s ease;
}

.service-info h3.transitioning {
    transform: translateY(1rem);
    opacity: 0;
}

.service-info p {
    color: #d1d5db;
    line-height: 1.75;
    transition: all 0.5s ease 0.1s;
}

.service-info p.transitioning {
    transform: translateY(1rem);
    opacity: 0;
}

.service-indicators {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: #8B2332;
    transform: scale(1.25);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 64rem;
    margin: 0 auto;
    line-height: 1.75;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.about-highlight {
    background-color: #f5f0ed;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #8B2332;
}

.highlight-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 1rem;
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    display: flex;
    align-items: center;
    color: #374151;
    margin-bottom: 0.75rem;
}

.highlight-list li i {
    color: #8B2332;
    margin-right: 0.75rem;
    font-size: 1.25rem;
    width: 1.5rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: #f5f0ed;
}

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

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid #8B2332;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: #1a2b4a;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 0.75rem;
}

.service-type {
    color: #8B2332;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-desc {
    color: #6b7280;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.portfolio-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(26, 43, 74, 0.1);
}

.portfolio-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.02);
}

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

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

/* GRID RESPONSIVE */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne par défaut sur mobile */
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px; /* limite la largeur du bloc */
    padding: 0 1rem;   /* un peu de padding sur mobile */
}

@media (min-width: 600px) {
    .before-after-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes tablettes */
    }
}

@media (min-width: 1024px) {
    .before-after-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes desktop */
    }
}

/* CARTES */
.before-after-card {
    background-color: #f5f0ed;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #8B2332;
    display: flex;
    justify-content: center; /* centre le contenu */
    align-items: center;
}

/* TITRE DES CARTES (si tu veux ajouter un titre) */
.ba-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 1rem;
    text-align: center;
}

/* IMAGES RESPONSIVE */
.ba-image {
    width: 100%;        /* prend toute la largeur de la carte */
    max-width: 100%;    /* jamais plus large que la carte */
    height: auto;       /* garde les proportions */
    display: block;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    object-fit: cover;  /* rempli joliment la carte si nécessaire */
}


/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background-color: #f5f0ed;
}

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

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

.stat-card.stat-green {
    border-top: 4px solid #16a34a;
}

.stat-card.stat-red {
    border-top: 4px solid #8B2332;
}

.stat-card.stat-blue {
    border-top: 4px solid #1a2b4a;
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-green .stat-icon {
    background-color: rgba(22, 163, 74, 0.1);
}

.stat-green .stat-icon i {
    color: #16a34a;
}

.stat-red .stat-icon {
    background-color: rgba(139, 35, 50, 0.1);
}

.stat-red .stat-icon i {
    color: #8B2332;
}

.stat-blue .stat-icon {
    background-color: rgba(26, 43, 74, 0.1);
}

.stat-blue .stat-icon i {
    color: #1a2b4a;
}

.stat-icon i {
    font-size: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline;
}

.stat-green .stat-number {
    color: #16a34a;
}

.stat-red .stat-number {
    color: #8B2332;
}

.stat-blue .stat-number {
    color: #1a2b4a;
}

.stat-suffix {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-green .stat-suffix {
    color: #16a34a;
}

.stat-red .stat-suffix {
    color: #8B2332;
}

.stat-blue .stat-suffix {
    color: #1a2b4a;
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2b4a;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: #6b7280;
}

/* Testimonial */
.testimonial {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 48rem;
    margin: 0 auto;
    border-left: 4px solid #8B2332;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.25rem;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    text-align: center;
}

.testimonial-author {
    font-weight: 600;
    color: #1a2b4a;
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: #1a2b4a;
    color: #ffffff;
}

.contact-section .section-title {
    color: #ffffff;
}

.contact-section .section-subtitle {
    color: #d1d5db;
    font-size: 1.25rem;
}

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

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #8B2332;
    font-size: 1.25rem;
    width: 1.5rem;
}

.contact-label {
    font-weight: 600;
}

.contact-value {
    color: #d1d5db;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #2d4a6f;
    border: 1px solid #3d5a7f;
    color: #ffffff;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8B2332;
}

.contact-form textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    background-color: #8B2332;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: #6d1b27;
    transform: translateY(-2px);
}

#form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
}

#form-message.success {
    background-color: rgba(22, 163, 74, 0.2);
    color: #16a34a;
    border: 1px solid #16a34a;
}

#form-message.error {
    background-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    border: 1px solid #dc2626;
}

/* Footer */
.footer {
    background-color: #0f1a2e;
    color: #ffffff;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #8B2332;
}

.footer-desc {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-goodbye {
    color: #9ca3af;
    font-size: 0.875rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .service-image-wrapper {
        height: 16rem;
    }
}