/*!
 * Mosaic Photo Generator Landing Page
 * Based on Start Bootstrap - Creative
 */

:root {
    --primary-color: #34495e;
    --primary-dark: #2c3e50;
    --secondary-color: #3498db;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 35px; /* Space for top banner - updated by JS when promo visible */
}

/* ===== TOP BANNER (Made in France) ===== */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
    transition: top 0.3s ease;
}

/* When promo banner is visible, push down top banner */
body.promo-banner-visible .top-banner {
    top: 70px;
}

/* When promo banner is visible on mobile, push down top banner */
@media (max-width: 768px) {
    body.promo-banner-visible .top-banner {
        top: 45px; /* promo mobile height réduite */
    }
}

.top-banner .flag-fr {
    display: block;
    height: 18px;
    width: auto;
    border-radius: 2px;
}

.top-banner .banner-text {
    color: #333;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, serif;
}

/* ===== NAVIGATION ===== */
#mainNav {
    box-shadow: none; /* Removed shadow */
    background-color: rgba(0, 0, 0, 0.3); /* Fond semi-transparent foncé pour mobile */
    backdrop-filter: blur(6px); /* Effet de flou sur le fond */
    -webkit-backdrop-filter: blur(1px); /* Support Safari */
    transition: background-color 0.2s ease;
    top: 35px; /* Position below top banner */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Bordure subtile */
}

#mainNav .navbar-brand {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

#mainNav .navbar-brand .navbar-logo {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

/* Par défaut (mobile, navbar avec fond foncé) : logo blanc visible */
#mainNav .logo-white {
    display: inline-block;
}

#mainNav .logo-blue {
    display: none;
}

/* Quand on scroll sur mobile : fond blanc, logo bleu */
#mainNav.navbar-scrolled .logo-white {
    display: none;
}

#mainNav.navbar-scrolled .logo-blue {
    display: inline-block;
}

/* Styles de la navbar scrolled (mobile) */
#mainNav.navbar-scrolled {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid #e0e0e0;
}

/* Liens en bleu foncé quand scrolled (mobile) */
#mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link {
    color: var(--primary-color);
    text-shadow: none;
}

#mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link:hover,
#mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link:active {
    color: var(--primary-dark);
}

/* Desktop : navbar transparente, logo blanc visible */
@media (min-width: 992px) {
    #mainNav .logo-white {
        display: inline-block;
    }

    #mainNav .logo-blue {
        display: none;
    }

    /* Quand scrolled (navbar blanche) : logo bleu visible */
    #mainNav.navbar-scrolled .logo-white {
        display: none;
    }

    #mainNav.navbar-scrolled .logo-blue {
        display: inline-block;
    }
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.95); /* Blanc pour mobile */
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    margin: 0 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ombre pour lisibilité */
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
    color: #fff;
}

@media (min-width: 992px) {
    #mainNav {
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.3); /* Fond semi-transparent foncé */
        backdrop-filter: blur(6px); /* Effet de flou sur le fond (réduit) */
        -webkit-backdrop-filter: blur(1px); /* Support Safari */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Bordure subtile */
    }

    #mainNav.navbar-scrolled {
        box-shadow: none; /* No shadow when scrolled */
        background-color: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid #e0e0e0;
    }

    #mainNav .navbar-brand {
        color: rgba(255, 255, 255, 0.9); /* Plus visible */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ombre pour meilleure lisibilité */
    }

    #mainNav .navbar-brand:hover {
        color: #fff;
    }

    #mainNav.navbar-scrolled .navbar-brand {
        color: var(--primary-color);
        text-shadow: none;
    }

    #mainNav .container {
        max-width: 1400px; /* Limite la largeur pour mieux centrer */
    }

    #mainNav .navbar-collapse {
        justify-content: center; /* Centre l'ensemble des menus */
    }

    #mainNav .navbar-nav {
        margin-left: 1.5rem !important; /* Petit espace après le logo */
        margin-right: 1.5rem !important; /* Équilibre avec les drapeaux */
    }

    #mainNav .navbar-nav .nav-item .nav-link {
        color: rgba(255, 255, 255, 0.95); /* Plus visible */
        padding: 0 0.65rem; /* Réduit de 1rem à 0.65rem pour gagner de l'espace */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ombre pour meilleure lisibilité */
        font-weight: 600; /* Légèrement plus épais */
        font-size: 0.9rem; /* Taille légèrement réduite */
        white-space: nowrap; /* Empêche le retour à la ligne */
    }

    #mainNav .navbar-nav .nav-item .nav-link:hover {
        color: #fff;
    }

    #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link,
    #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link:hover {
        color: var(--primary-color);
        text-shadow: none;
    }
}

/* ===== MASTHEAD / HERO ===== */
.masthead {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: linear-gradient(135deg, #9c8579 0%, #b39c8f 50%, #c9b8ab 100%); /* Dégradé beige moyen au cas où la vidéo ne charge pas */
    position: relative;
    overflow: hidden;
}

/* Video Background */
.masthead-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1; /* 100% visible */
    transition: opacity 1s ease-in-out;
}

/* Image de fin haute qualité (superposée à la vidéo pendant la pause) */
.masthead-final-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0; /* Invisible par défaut */
    transition: opacity 1s ease-in-out;
}

/* Overlay semi-transparent pour améliorer la lisibilité du texte */
.masthead-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(156, 133, 121, 0.35) 0%, rgba(201, 184, 171, 0.25) 100%);
    z-index: 1;
}

/* Additional parallax layer for depth */
.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 220, 190, 0.55) 0%, rgba(230, 210, 180, 0.25) 35%, transparent 80%);
    pointer-events: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
    z-index: 2; /* Au-dessus de l'overlay mais en dessous du contenu */
}

/* Smooth content animation */
.masthead .container {
    position: relative;
    z-index: 3; /* Au-dessus de tous les overlays et effets */
    animation: fadeInUp 1s ease-out;
    transition: transform 0.2s ease-out;
}

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

/* Enhance text readability with text shadow */
.masthead h1,
.masthead p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Smooth transition for masthead */
.masthead {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.masthead h1 {
    font-size: 2.25rem;
}

@media (min-width: 992px) {
    .masthead {
        height: 100vh;
        min-height: 40rem;
        padding-top: 4.5rem;
        padding-bottom: 0;
    }

    .masthead h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .masthead h1 {
        font-size: 3.5rem;
    }
}

/* ===== BUTTONS ===== */
.btn-xl {
    padding: 1.25rem 2.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 10rem;
}

/* Container pour les boutons du hero */
.hero-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* Bouton blanc avec texte noir pour le masthead */
.masthead .btn-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.masthead .btn-primary:hover,
.masthead .btn-primary:focus,
.masthead .btn-primary:active {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Bouton outline blanc pour la démonstration */
.btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.page-section {
    padding: 8rem 0;
}

/* Réduire l'espacement pour la section "Comment ça marche" */
#about {
    padding: 5rem 0 1rem 0;
}

/* Lien cliquable sur l'étape 1 */
.step-card-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.step-card-link:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: -1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.step-card-link:hover i {
    transform: scale(1.2);
}

.step-card-link i {
    transition: transform 0.3s ease;
}

/* Réduire l'espacement pour la section "Fonctionnalités" */
#services {
    padding: 5rem 0;
    border-top: none !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .page-section {
        padding: 4rem 0;
    }

    #about {
        padding: 5rem 0 1rem 0;
    }

    #services {
        padding: 2rem 0;
    }
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ===== DIVIDER ===== */
.divider {
    height: 0.2rem;
    max-width: 3.25rem;
    margin: 1.5rem auto;
    background-color: var(--primary-color);
    opacity: 1;
}

.divider-light {
    background-color: #fff;
}

/* ===== PRIMARY SECTION ===== */
.bg-primary {
    background: #f8f9fa !important; /* Fond gris clair uni - pas de gradient pour éviter les artéfacts - !important pour surcharger Bootstrap */
    background-color: #f8f9fa !important;
}

/* Styles pour les cartes des étapes (Comment ça marche) */
.bg-primary .mt-5 {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-primary .mt-5:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Ajuster les couleurs du texte pour fond blanc */
.bg-primary h2,
.bg-primary h3,
.bg-primary h4 {
    color: var(--primary-color) !important;
}

.bg-primary p {
    color: #6c757d !important;
}

.bg-primary i {
    color: var(--secondary-color) !important;
}

.bg-primary .divider {
    background-color: var(--secondary-color);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Force opacity transition on Safari for masthead text elements */
.masthead h1,
.masthead .text-white-75,
.masthead .divider {
    transition: opacity 2s ease-out;
    will-change: opacity;
}

/* Class to hide masthead text with fade */
.masthead-text-hidden {
    opacity: 0 !important;
    transition: opacity 2s ease-out !important;
}

/* ===== PORTFOLIO / GALLERY ===== */
#portfolio {
    background-color: transparent;
    padding: 0;
    position: relative;
}

#portfolio h2 {
    margin-bottom: 3rem;
}

/* Parallax effect on portfolio images */
.portfolio-box {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-box {
    position: relative;
    display: block;
    overflow: hidden;
}

.portfolio-box .portfolio-box-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
    opacity: 0;
    color: #fff;
    background: linear-gradient(to bottom, rgba(52, 73, 94, 0.9) 0%, rgba(52, 152, 219, 0.9) 100%);
    transition: opacity 0.25s ease;
}

.portfolio-box .portfolio-box-caption .project-category {
    font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.portfolio-box .portfolio-box-caption .project-name {
    font-size: 1.2rem;
}

.portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

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

.portfolio-box:hover img {
    transform: scale(1.1);
}

/* ===== PRICING CARDS ===== */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Nécessaire pour le badge positionné en absolute */
    overflow: hidden; /* Évite que le badge dépasse */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card .card-header {
    border-radius: 15px 15px 0 0;
}

/* Badge de qualité (POPULAIRE, MEILLEUR RAPPORT, etc.) */
.quality-badge-right {
    position: absolute;
    top: -3px;
    right: -3px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 0 12px 0 12px;
    font-weight: bold;
    font-size: 0.7em;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.display-4 {
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== FAQ ACCORDION ===== */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

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

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid #dee2e6;
}

footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* ===== UTILITIES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .masthead h1 {
        font-size: 1.75rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .btn-xl {
        padding: 1rem 1.75rem;
        font-size: 0.75rem;
    }

    .portfolio-box img {
        height: 250px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== SMOOTH SCROLL OFFSET FOR FIXED NAVBAR ===== */
section,
#portfolio {
    scroll-margin-top: 135px; /* 35px (top banner) + ~75px (navbar) + marge de sécurité */
}

/* Ajustement mobile */
@media (max-width: 991px) {
    section,
    #portfolio {
        scroll-margin-top: 110px;
    }
}

/* ===== LANGUAGE FLAGS (ALTERNATIVE TO DROPDOWN) ===== */
.lang-flags-container {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}

/* Desktop alignment */
@media (min-width: 992px) {
    .navbar-nav .nav-item:has(.lang-flags-container) {
        display: flex;
        align-items: center;
        padding: 0; /* Remove default padding to control vertical alignment */
    }

    .lang-flags-container {
        padding: 0 0 0 1rem; /* Padding uniquement à gauche */
        margin-top: -7px; /* Fine-tune vertical alignment */
        margin-left: 0.5rem; /* Espace supplémentaire à gauche */
    }
}

.lang-flag-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-flag-btn img {
    width: 28px;
    height: auto;
    display: block;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-flag-btn:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-flag-btn.active {
    opacity: 1;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.15);
}

/* When navbar is scrolled (white background) */
#mainNav.navbar-scrolled .lang-flag-btn:hover {
    border-color: var(--primary-color);
}

#mainNav.navbar-scrolled .lang-flag-btn.active {
    border-color: transparent;
    background: rgba(52, 73, 94, 0.1);
}

/* Mobile responsive */
@media (max-width: 991px) {
    .lang-flags-container {
        justify-content: center;
        padding: 1rem 0;
    }

    .lang-flag-btn {
        padding: 3px;
    }

    .lang-flag-btn img {
        width: 24px;
    }
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1051;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
    padding: 0 15px;
}

.promo-banner-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

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

.promo-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.promo-banner-text strong {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-banner-text span {
    font-size: 0.85rem;
    opacity: 0.95;
}

.promo-banner-code {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.promo-code-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.promo-code {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.promo-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 5px;
}

.promo-banner-close:hover {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .promo-banner {
        padding: 6px 0;
    }

    .promo-banner-content {
        gap: 6px;
        padding: 0 5px; /* Réduit à 5px pour maximiser l'espace */
        flex-wrap: nowrap; /* Empêcher le retour à la ligne */
    }

    .promo-banner-icon {
        font-size: 1rem;
        display: none; /* Masquer l'icône sur mobile pour gagner de l'espace */
    }

    .promo-banner-text {
        gap: 2px;
        flex-shrink: 1; /* Permettre la réduction du texte si nécessaire */
        min-width: 0; /* Nécessaire pour que text-overflow fonctionne */
    }

    .promo-banner-text strong {
        font-size: 0.65rem; /* Réduit de 0.75rem à 0.65rem */
        white-space: nowrap; /* Empêcher le retour à la ligne */
        overflow: hidden; /* Masquer le débordement */
        text-overflow: ellipsis; /* Ajouter ... si texte trop long */
        max-width: 100%; /* Limiter la largeur */
    }

    .promo-banner-text span {
        font-size: 0.65rem;
        display: none; /* Masquer la description sur mobile */
    }

    .promo-banner-code {
        padding: 4px 8px; /* Réduit de 10px à 8px */
        flex-shrink: 0; /* Empêcher la réduction du code promo */
    }

    .promo-code-label {
        font-size: 0.65rem; /* Réduit de 0.7rem à 0.65rem */
    }

    .promo-code {
        font-size: 0.75rem; /* Réduit de 0.85rem à 0.75rem */
        white-space: nowrap; /* Empêcher le retour à la ligne du code */
    }

    .btn-copy {
        padding: 3px 6px;
        font-size: 0.85rem;
        flex-shrink: 0; /* Empêcher la réduction du bouton */
    }

    .promo-banner-close {
        right: 10px;
    }
}

/* Adjust body padding when promo banner is visible */
body.promo-banner-visible {
    padding-top: calc(70px + 35px); /* promo (70px) + top-banner (35px) */
}

@media (max-width: 768px) {
    body.promo-banner-visible {
        padding-top: calc(45px + 35px); /* promo (45px réduit) + top-banner (35px) */
    }
}

/* Adjust navigation when promo banner is visible */
body.promo-banner-visible #mainNav {
    top: calc(70px + 35px); /* promo (70px) + top-banner (35px) */
}

@media (max-width: 768px) {
    body.promo-banner-visible #mainNav {
        top: calc(45px + 35px); /* promo (45px réduit) + top-banner (35px) */
    }
}

/* ===== DEMO MODAL ===== */
#demoModal .modal-dialog {
    max-width: 900px;
    max-height: 90vh;
}

#demoModal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
}

/* Bouton de fermeture personnalisé */
#demoModal .modal-close-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    transition: all 0.3s ease;
    border: none;
}

#demoModal .modal-close-custom:hover {
    opacity: 1;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#demoModal .modal-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 20px 20px 0 0;
}

#demoModal .modal-body p {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

#demoModal .modal-body p i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

#demoModal .modal-footer {
    padding: 1rem 2rem;
    border-top: none;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    border-radius: 0 0 20px 20px;
}

#demoModal .modal-footer .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#demoModal .modal-footer .btn-lg:hover,
#demoModal .modal-footer .btn-lg:focus,
#demoModal .modal-footer .btn-lg:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25) !important;
    background-color: #f8f9fa !important;
    color: #000000 !important;
    border: none !important;
}

/* ===== BEFORE/AFTER COMPARATOR ===== */
.before-after-container {
    width: 100%;
    max-width: 90%;
    max-height: 65vh;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    max-height: 65vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #000;
    cursor: ew-resize;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image après (arrière-plan) */
.after-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    pointer-events: none;
}

/* Wrapper de l'image avant avec clip */
.before-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.1s ease-out;
}

.before-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Curseur vertical */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    transition: left 0.1s ease-out;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    cursor: ew-resize;
    gap: 2px;
}

.slider-button i {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Labels AVANT / APRÈS */
.before-label,
.after-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .before-after-container {
        padding: 10px;
    }

    .slider-button {
        width: 50px;
        height: 50px;
    }

    .slider-button i {
        font-size: 1rem;
    }

    .before-label,
    .after-label {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: 10px;
    }

    .before-label {
        left: 10px;
    }

    .after-label {
        right: 10px;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #demoModal .modal-body {
        padding: 1rem;
    }

    #demoModal .modal-footer {
        padding: 0.75rem 1rem;
    }

    #demoModal .modal-footer .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    .before-after-container {
        max-width: 95%;
        max-height: 60vh;
    }

    .before-after-wrapper {
        max-height: 60vh;
    }

    .after-image {
        max-height: 60vh;
    }

    .hero-buttons-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons-container .btn-xl {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== TESTIMONIALS / AVIS CLIENTS ===== */
#testimonials {
    padding-bottom: 2rem;
}

.testimonial-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 80px;
    color: rgba(52, 73, 94, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f4b400;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-date {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
}

/* Responsive testimonials */
@media (max-width: 991px) {
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* ===== DEMO MODAL TABS ===== */
.demo-tabs {
    border-bottom: 2px solid #e0e0e0;
}

.demo-tabs .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.demo-tabs .nav-link:hover {
    background-color: rgba(52, 73, 94, 0.1);
    transform: translateY(-2px);
}

.demo-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.demo-tabs .nav-link i {
    margin-right: 0.5rem;
}

/* ===== ZOOM CAROUSEL ===== */
.zoom-carousel-container {
    position: relative;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.zoom-carousel-wrapper {
    position: relative;
    width: 100%;
    max-height: 65vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-carousel-image {
    display: none;
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
}

.zoom-carousel-image.active {
    display: block;
}

/* Boutons de navigation */
.carousel-nav-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-nav-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.carousel-nav-btn:hover i {
    color: white;
}

/* Indicateurs */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.indicator {
    padding: 0.5rem 1rem;
    background: #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(52, 73, 94, 0.2);
}

.indicator.active {
    background: var(--primary-color);
    color: white;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .demo-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .zoom-carousel-container {
        max-width: 95%;
        gap: 0.5rem;
    }

    .zoom-carousel-wrapper {
        max-height: 60vh;
    }

    .zoom-carousel-image {
        max-height: 60vh;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-btn i {
        font-size: 1.2rem;
    }

    .carousel-indicators {
        flex-direction: column;
        gap: 0.5rem;
    }

    .indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
