/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e30613; /* Rouge */
    --secondary-color: #1a1a1a; /* Noir */
    --light-color: #ffffff; /* Blanc */
    --gray-color: #222222; /* Gris foncé */
    --dark-gray: #1a1a1a; /* Noir profond */
    --medium-gray: #777777;
    --light-gray: #eeeeee;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--secondary-color);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

section h2 {
    text-align: center;
}

section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #c10000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
}

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

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* ===== HEADER ===== */
header {
    background-color: var(--gray-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 800;
}

.logo span {
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    color: var(--light-color);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    color: var(--light-color);
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.hero h2:after {
    display: none;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-color);
}

/* ===== BEFORE-AFTER SECTION ===== */
.before-after {
    padding: 0;
    background-color: var(--secondary-color);
}

.comparison-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image {
    left: 0;
    width: 50%;
}

.after-image {
    right: 0;
}

.before-image img, .after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image img {
    position: absolute;
    width: 200%;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.8rem;
}

.slider-handle i:first-child {
    left: 10px;
}

.slider-handle i:last-child {
    right: 10px;
}

.label {
    position: absolute;
    top: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

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

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background-color: var(--gray-color);
    color: var(--light-color);
}

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

.service-card {
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ===== WHY US SECTION ===== */
.why-us {
    padding: 80px 0;
    background-color: var(--dark-gray);
    color: var(--light-color);
}

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

.feature {
    background-color: var(--gray-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== QUICK CONTACT SECTION ===== */
.quick-contact {
    padding: 80px 0;
    background-color: var(--gray-color);
    color: var(--light-color);
    text-align: center;
}

.quick-contact h2:after {
    background-color: var(--light-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item span {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-detail {
    color: var(--light-color);
    font-size: 1.2rem;
}

.contact-detail:hover {
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo h2 {
    margin-bottom: 10px;
}

.footer-logo h2:after {
    display: none;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h3, .footer-services h3, .footer-contact h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-links h3:after, .footer-services h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li, .footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Accordéon mentions légales */
.legal-accordion {
    margin-bottom: 20px;
}

.legal-accordion .accordion-item {
    border: none;
    margin-bottom: 0;
    box-shadow: none;
}

.legal-accordion .accordion-header {
    display: block;
    background-color: transparent;
    padding: 15px 0;
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-accordion .accordion-header h3 {
    color: #ccc;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-accordion .accordion-header h3:after {
    display: none;
}

.legal-accordion .accordion-content {
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0;
}

.legal-accordion .accordion-content.active {
    max-height: 1000px;
    padding: 15px 0;
}

.legal-section {
    margin-bottom: 20px;
}

.legal-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.legal-section p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

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

/* ===== PAGE BANNER ===== */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/accueil.webp');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.2rem;
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
    padding: 50px 0;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.filter-btn {
    padding: 8px 15px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* ===== REALISATIONS ===== */
.realisations {
    padding: 50px 0 80px;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.realisation-card {
    background-color: var(--gray-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.before-after-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.before-after-images {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.before-img, .after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-img {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.comparison-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.comparison-slider-handle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
}

.image-labels {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
}

.before-label, .after-label {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.realisation-info {
    padding: 20px;
}

.realisation-info h3 {
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background-color:var(--medium-gray);
    color:white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section h2:after {
    display: none;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 80px 0;
}

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

.contact-info-card {
    background-color: var(--gray-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-header h3 {
    margin-bottom: 0;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
}

.contact-link:hover {
    text-decoration: underline;
}

.intervention-zones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.intervention-zones li {
    position: relative;
    padding-left: 15px;
}

.intervention-zones li:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    padding: 50px 0;
    background-color: var(--gray-color);
}

.cta-box {
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    margin-bottom: 20px;
}

.cta-box h2:after {
    display: none;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-buttons .btn i {
    margin-right: 10px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0;
}

.accordion {
    max-width: 900px;
    margin: 40px auto 0;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    background-color: var(--gray-color);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.accordion-icon i {
    transition: var(--transition);
}

/* ===== STYLES POUR LES ERREURS ET MESSAGES ===== */
.error-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.error-message {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.error-message h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-message p {
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.no-realisations {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.no-realisations h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.no-realisations p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.no-realisations a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.no-realisations a:hover {
    text-decoration: underline;
}

.accordion-item.active .accordion-icon i {
    transform: rotate(45deg);
}

.accordion-content {
    background-color: var(--gray-color);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

.footer-logo p{
    display: flex;
    justify-content: center;
    font-weight: bold;
    margin-top: 1rem;
}

/* ===== NAVIGATION ANIMATION ===== */
header.scrolled {
    background-color: rgba(34, 34, 34, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .realisations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-gray);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .realisations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-banner {
        padding: 60px 0;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .services-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .intervention-zones {
        grid-template-columns: 1fr;
    }
}






















