:root {
    --navy: #1a2744;
    --red: #c8102e;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: #212529;
    background: white;
    overflow-x: hidden;
}

.heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Header */
.navbar {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.logo-icon {
    width: 250px;
    height: 65px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-main {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

.logo-sub {
    color: var(--red);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    font-size: 15px;
}

.navbar-nav .nav-link:hover {
    color: var(--red) !important;
}

.navbar-nav .nav-link.active {
    color: var(--red) !important;
    font-weight: 700;
}

.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 10px;
    margin-top: 0;
}

@media (min-width: 992px) {
    .navbar .dropdown > .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        pointer-events: none;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(200, 16, 46, 0.08);
    color: var(--red);
}

.btn-primary-custom {
    background: var(--red);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #a50d25;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    color: var(--navy);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--navy);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

/* Product Stats */
.product-stats {
    background: var(--light-gray);
    padding: 50px 0;
}

.product-stat-item h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 6px;
}

.product-stat-item p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Product Page Hero */
.product-page-hero {
    background: linear-gradient(135deg, var(--navy), #2d3e5f);
    color: white;
    text-align: center;
    padding: 160px 0 60px;
}

.product-content-section {
    padding-top: 30px;
}

.gallery-hero-region {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.product-page-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.product-page-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
}

.product-page-hero .breadcrumb {
    background: transparent;
    justify-content: center;
    font-size: 0.9rem;
}

.product-page-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.product-page-hero .breadcrumb-item.active {
    color: white;
}

.product-page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

.product-page-hero-sub {
    font-size: 1.4rem;
    color: white;
    max-width: 700px;
    margin: 24px auto 10px;
}

.product-page-hero-note {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}

.product-mini-cta {
    padding: 45px 0;
}

/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    min-height: 600px;
    position: relative;
    margin-top: 6px;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.7), rgba(26, 39, 68, 0.4));
}

.carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-caption-custom {
    text-align: left;
    position: static;
    padding: 0;
}

.carousel-caption-custom h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.carousel-caption-custom h2 {
    font-size: 4rem;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s ease;
}

.carousel-caption-custom p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 1.4s ease;
}

.badge-custom {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(200, 16, 46, 0.2);
    border: 2px solid var(--red);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

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

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 3;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
}

.carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background-color: white;
}

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

#realisations {
    padding-bottom: 0;
    background: var(--light-gray);
}

#avantages {
    padding-top: 60px;
}

#temoignages {
    padding: 60px 0;
}

.container-narrow {
    max-width: 850px;
}

.container-narrow p,
.depannage-content p {
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.depannage-intro {
    padding: 50px 0 0;
}

/* Blog */
.blog-intro {
    padding: 60px 0 20px;
}

.blog-intro p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.blog-category-pill {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-category-pill:hover {
    border-color: var(--red);
    color: var(--red);
}

.blog-category-pill.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.blog-empty-state {
    padding: 60px 0 100px;
}

.blog-grid-section {
    padding: 40px 0 100px;
}

.blog-empty-state p {
    color: var(--dark-gray);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.blog-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(200, 16, 46, 0.08);
    color: var(--red);
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

/* Blog Article */
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.blog-article {
    padding: 60px 0 100px;
}

.blog-article-cover {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(26, 39, 68, 0.15);
}

.blog-article-cover img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.blog-article-cta {
    background: var(--light-gray);
    border-left: 4px solid var(--red);
    border-radius: 14px;
    padding: 30px;
    margin: 50px 0 30px;
}

.blog-article-cta h3 {
    color: var(--navy);
    margin-bottom: 10px;
}

.blog-article-cta p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.blog-back-link {
    display: inline-block;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

.blog-back-link:hover {
    text-decoration: underline;
}

/* Blog Card (listing) */
.blog-card {
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(26, 39, 68, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(26, 39, 68, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-tag {
    display: inline-block;
    background: rgba(200, 16, 46, 0.08);
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.blog-card h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    color: var(--dark-gray);
    font-size: 0.8rem;
}

.depannage-content {
    padding: 30px 0 40px;
}

.depannage-faq {
    padding: 30px 0 100px;
}

.depannage-sidebar-gallery {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.depannage-sidebar-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(26, 39, 68, 0.12);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.depannage-sidebar-gallery img:hover {
    transform: scale(1.03);
}

@media (max-width: 991px) {
    .depannage-sidebar-gallery {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .depannage-sidebar-gallery img {
        width: calc(50% - 10px);
        height: 160px;
    }
}

.depannage-intro p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-gray);
}

/* Zone Cards */
.zone-card {
    text-align: left;
}

.zone-card h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: 1px solid var(--medium-gray);
    border-radius: 14px !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--navy);
    background: white;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--red);
    background: rgba(200, 16, 46, 0.05);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--medium-gray);
}

.faq-accordion .accordion-body {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Product Categories */
.category-section {
    padding: 60px 0 0;
}

.category-card {
    position: relative;
    display: block;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(26, 39, 68, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.92), rgba(26, 39, 68, 0) 65%);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card-label {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.gallery-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(26, 39, 68, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(26, 39, 68, 0.15);
}

.gallery-card-img {
    height: 280px;
    overflow: hidden;
}

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

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

.gallery-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 24px 18px;
}

.gallery-card-region {
    display: block;
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.gallery-card-title {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 14px;
}

.gallery-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(26, 39, 68, 0.08);
}

.gallery-card-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.gallery-card:hover .gallery-card-link i {
    transform: translateX(4px);
}

.category-card-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--red);
    border-radius: 4px;
    margin-top: 10px;
}

#accueil {
    padding: 0 0 5px;
}

/* Quick Quote Section (below hero) */
.quick-quote-section {
    background: var(--light-gray);
    padding: 0 0 70px;
}

.quick-quote-title {
    font-size: 2.4rem;
    color: var(--red);
    margin-bottom: 1.5rem;
    animation: blinkTitle 1.4s ease-in-out infinite;
}

@keyframes blinkTitle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.offer-countdown {
    margin-top: 1.5rem;
    background: var(--red);
    border-radius: 16px;
    padding: 20px 24px;
}

.offer-countdown-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.offer-countdown-boxes {
    display: flex;
    gap: 12px;
}

.offer-countdown-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 4px;
    text-align: center;
}

.offer-countdown-value {
    display: block;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
    animation: blinkCountdown 1.4s ease-in-out infinite;
}

@keyframes blinkCountdown {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.offer-countdown-unit {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

.quick-quote-form {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.section-label {
    display: block;
    color: var(--red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-label-light {
    color: var(--red);
}

/* Why Choose Us */
.why-choose-section {
    background: var(--light-gray);
    padding: 30px 0;
}

.why-choose-item {
    height: 100%;
}

.why-choose-icon {
    color: var(--red);
    font-size: 3.4rem;
    margin-bottom: 18px;
}

.why-choose-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.why-choose-item p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* How It Works */
.how-it-works-section {
    background: var(--navy);
    padding: 50px 0;
}

.how-it-works-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 20px;
    position: relative;
}

.how-it-works-track::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 5%;
    right: 5%;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.how-it-works-step {
    position: relative;
    z-index: 1;
    flex: 1 1 150px;
    max-width: 190px;
    text-align: center;
}

.step-number {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    padding-bottom: 17px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
}

.how-it-works-step.step-blinking {
    animation: stepCardBlink 0.7s ease-in-out 3;
}

.how-it-works-step.step-blinking .step-number {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15);
}

@keyframes stepCardBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.step-success-badge {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4ade80;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.step-success-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.how-it-works-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.how-it-works-step p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .how-it-works-track::before {
        display: none;
    }

    .how-it-works-step {
        max-width: 100%;
        flex: 1 1 45%;
    }

    .why-choose-section,
    .how-it-works-section {
        padding: 60px 0;
    }
}

.section-title p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 10px;
    transition: all 0.4s ease;
    border: 1px solid var(--medium-gray);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--red);
    box-shadow: 0 15px 40px rgba(200, 16, 46, 0.1);
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), #2d3e5f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    animation: featureIconPulse 2.4s ease-in-out infinite;
}

@keyframes featureIconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.18) rotate(-6deg);
    }
}

.feature-card h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Feature Slider */
.feature-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px;
    flex: 1 1 auto;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feature-slider::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.feature-slide {
    flex: 0 0 auto;
    width: 270px;
    scroll-snap-align: start;
}

#gallerySlider,
#featureSlider {
    padding-left: 0;
    padding-right: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

#gallerySlider img,
#featureSlider img,
#gallerySlider a,
#featureSlider a {
    -webkit-user-drag: none;
    user-drag: none;
}

#gallerySlider.dragging,
#featureSlider.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

#gallerySlider.dragging .gallery-card,
#featureSlider.dragging .feature-card {
    pointer-events: none;
}

.gallery-slide,
#avantages #featureSlider .feature-slide {
    width: calc((100% - 3 * 24px) / 4);
}

@media (max-width: 991px) {
    .gallery-slide,
    #avantages #featureSlider .feature-slide {
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .gallery-slide,
    #avantages #featureSlider .feature-slide {
        width: 240px;
    }
}

.feature-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--medium-gray);
    background: white;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-arrow:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.accessoire-card {
    padding: 0;
    overflow: hidden;
}

.accessoire-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.accessoire-card h3,
.accessoire-card p {
    padding-left: 24px;
    padding-right: 24px;
}

.accessoire-card h3 {
    margin-top: 20px;
}

.accessoire-card p {
    padding-bottom: 24px;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.about-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(200, 16, 46, 0.1);
    border-radius: 50px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: devisBadgePulse 1.8s ease-in-out infinite;
}

.about-badge i {
    display: inline-block;
    animation: devisBadgeWiggle 1.8s ease-in-out infinite;
}

.devis-badge {
    animation: devisBadgePulse 1.8s ease-in-out infinite;
}

.devis-badge i {
    display: inline-block;
    animation: devisBadgeWiggle 1.8s ease-in-out infinite;
}

@keyframes devisBadgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(200, 16, 46, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
    }
}

@keyframes devisBadgeWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.about-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.2);
    height: 500px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fonctionnement-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.fonctionnement-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(26, 39, 68, 0.15);
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .fonctionnement-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 39, 68, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    color: white;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
}

.showroom-info {
    display: inline-block;
    text-align: left;
    background: white;
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    max-width: 480px;
}

.showroom-info h4 {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.showroom-info h4 i {
    color: var(--red);
}

.showroom-info p {
    color: var(--dark-gray);
    margin: 0;
}

.checklist {
    list-style: none;
    padding: 0;
}

/* Rich text content coming from the admin panel (TinyMCE) */
.rich-text p {
    margin-bottom: 1rem;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.rich-text ul li {
    position: relative;
    padding: 6px 0 6px 32px;
}

.rich-text ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--red);
    position: absolute;
    left: 0;
    top: 6px;
}

/* Hero slide video background */
.carousel-item {
    position: relative;
}

.hero-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    padding: 22px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner.cookie-banner-hidden {
    display: none;
}

.cookie-banner-text {
    flex: 1 1 320px;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.92;
}

.cookie-banner-text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-banner-actions button {
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cookie-btn-accept {
    background: var(--red);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #a50d25;
}

.cookie-btn-refuse {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px 20px;
    }
}

.checklist li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.checklist-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

/* Google Rating Badge */
.google-rating-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 22px 30px;
    margin-bottom: 40px;
}

.google-rating-badge-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.google-rating-label {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}

.google-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.google-brand i {
    color: #4285F4;
    font-size: 1.2rem;
}

.google-rating-badge-score {
    text-align: right;
}

.google-rating-badge-score .stars {
    margin-bottom: 4px;
}

.google-score {
    font-weight: 700;
    color: var(--navy);
    margin-left: 6px;
}

.google-count {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.google-count a {
    color: var(--dark-gray);
    text-decoration: underline;
}

/* Testimonials */
.testimonial-card {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 35px;
    padding-bottom: 55px;
    border-left: 4px solid var(--red);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.testimonial-google-icon {
    position: absolute;
    right: 25px;
    bottom: 25px;
    font-size: 1.5rem;
    color: #4285F4;
}

.testimonial-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

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

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

.testimonial-author {
    font-weight: 700;
    color: var(--navy);
}

.testimonial-location {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy), #2d3e5f);
    color: white;
    text-align: center;
    padding: 40px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-item a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-control {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.15);
}

.form-check-input {
    accent-color: var(--red);
    cursor: pointer;
}

.form-check-label {
    color: var(--dark-gray);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-check-label a {
    color: var(--red);
    text-decoration: underline;
}

.project-type-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.project-type-checks .form-check {
    margin: 0;
}

/* Footer */
footer {
    background: var(--navy);
    color: white;
    padding: 60px 0 30px;
}

footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.footer-contact-list li {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
}

.footer-contact-list li a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.footer-contact-list i {
    color: var(--red);
}

.footer-logo {
    width: 250px;
    height: 65px;
    margin-bottom: 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption-custom h1 {
        font-size: 2.5rem;
    }

    .carousel-caption-custom h2 {
        font-size: 2.5rem;
    }

    .carousel-caption-custom p {
        font-size: 1.1rem;
    }

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

    .quick-quote-title {
        font-size: 1.8rem;
    }

    .feature-slider-wrap {
        gap: 8px;
    }

    .feature-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .feature-slide {
        width: 220px;
    }

    .hero-carousel {
        margin-top: 56px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility classes (replace inline style attributes) */
.hero-slide-1 { background-image: url('../img/hero-1.webp'); }
.hero-slide-2 { background-image: url('../img/hero-2.webp'); }
.hero-slide-3 { background-image: url('../img/hero-3.webp'); }

.btn-outline-white { color: white; border-color: white; }

.about-title { font-size: 2.8rem; color: var(--navy); }
.cta-title { font-size: 3rem; }
.btn-cta-phone { background: white; color: var(--navy); }
.contact-title { color: var(--navy); font-size: 2.5rem; }

.opacity-80 { opacity: 0.8; }
.footer-note { opacity: 0.8; font-size: 0.9rem; }
.social-icon-link { font-size: 1.5rem; }

/* Social icons outside the dark footer (e.g. Contact page) need their own visible color */
.contact-info-item .social-icon-link {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item .social-icon-link:hover {
    color: var(--red);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 9998;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
    text-decoration: none;
}

/* Phone call floating button (mirrors WhatsApp, opposite side) */
.phone-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 58px;
    height: 58px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 9998;
    transition: transform 0.2s ease;
}

.phone-float:hover {
    transform: scale(1.08);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991px) {
    .whatsapp-float,
    .phone-float {
        bottom: 86px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float,
    .phone-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 86px;
    }

    .whatsapp-float {
        right: 16px;
    }

    .phone-float {
        left: 16px;
        font-size: 22px;
    }
}

#devis-form {
    scroll-margin-top: 100px;
}

/* Mobile fixed quote CTA bar */
.mobile-quote-bar {
    display: none;
}

@media (max-width: 991px) {
    .mobile-quote-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: var(--red, #e63946);
        color: #fff;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 14px 16px;
        text-decoration: none;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    }

    .mobile-quote-bar:hover,
    .mobile-quote-bar:focus {
        color: #fff;
        text-decoration: none;
        opacity: 0.95;
    }

    .mobile-quote-bar i {
        display: inline-block;
        animation: devisBadgeWiggle 1.8s ease-in-out infinite;
    }

    body {
        padding-bottom: 54px;
    }
}

/* Override Font Awesome's font-display:block with swap, so icon text isn't hidden while the webfont loads */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fontawesome/webfonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../vendor/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fontawesome/webfonts/fa-brands-400.woff2") format("woff2");
}

.error-404-section {
    padding: 160px 0 100px;
    min-height: 60vh;
}

.error-404-section .about-badge {
    display: inline-flex;
    margin-bottom: 20px;
}

.error-404-section h1 {
    margin-bottom: 16px;
}

.error-404-section .row a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--light-gray, #f5f5f5);
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.error-404-section .row a:hover {
    background: var(--navy);
    color: #fff;
}

/* Map embed */
.map-section {
    padding: 0;
}

.map-embed {
    position: relative;
    width: 100%;
    height: 450px;
}

.map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .map-embed {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .map-embed {
        height: 260px;
    }
}

/* Google 5-star badge, shown next to the hero CTA button on every slide */
.hero-cta-row {
    row-gap: 16px;
}

.hero-rating-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 4px;
}

.hero-rating-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #ffc107;
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hero-rating-stars svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

.hero-rating-score {
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-rating-count {
    color: #fff;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.gallery-list-section {
    padding-bottom: 100px;
}
