/* assets/css/style.css - Version corrigée et optimisée */

:root {
    --primary-purple: #6b21a8;
    --secondary-purple: #2563eb;
    --light-purple: #F3E8FF;
    --purple-hover: #581c87;
    --light-grey: #aaa;
    --primary-green: #2ecc71;
    --navbar-height: 76px;
    --section-min-height: calc(100vh - var(--navbar-height));
    --full-section-height: 100vh;
    --primary-energie:25, 135, 84;
    --primary-confiance:13, 202, 240;
    --primary-accessibilite:255, 193, 7;
    --primary-design:#34d399;
        --bs-border-radius:2rem;
                --bs-border-radius-lg:2rem;
}

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

.text-green {
    color: var(--primary-green) !important;
}

.text-light-grey {
    color: var(--light-grey) !important;
}

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

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

.border-purple {
    border-color: var(--primary-purple) !important;
}
/* Violet principal */
.text-purple {
    color: var(--primary-purple) !important;
}
.bg-purple {
    background-color: var(--primary-purple) !important;
}
.border-purple {
    border-color: var(--primary-purple) !important;
}

/* Orange – Rapidité (Énergie) */
.text-energie {
    color: rgb(var(--primary-energie)) !important;
}
.bg-energie {
    background-color: rgb(var(--primary-energie)) !important;
}
.bg-light-energie {
    background-color: rgb(var(--primary-energie),.2) !important;
}
.border-energie {
    border-color: rgb(var(--primary-energie)) !important;
}

/* Bleu clair – Design */
.text-design {
    color: rgb(var(--primary-design)) !important;
}
.bg-design {
    background-color: rgb(var(--primary-design)) !important;
}
.bg-light-design {
    background-color: rgb(var(--primary-design),.2) !important;
}
.border-design {
    border-color: rgb(var(--primary-design)) !important;
}

/* Rose – Inclusif (Confiance) */
.text-confiance {
    color: rgb(var(--primary-confiance)) !important;
}
.bg-confiance {
    background-color: rgb(var(--primary-confiance)) !important;
}
.bg-light-confiance {
    background-color: rgb(var(--primary-confiance),.2) !important;
}
.border-confiance {
    border-color: rgb(var(--primary-confiance)) !important;
}

/* Vert menthe – Accessibilité (Ouverture) */
.text-accessibilite {
    color: rgb(var(--primary-accessibilite)) !important;
}
.bg-accessibilite {
    background-color: rgb(var(--primary-accessibilite)) !important;
}
.bg-light-accessibilite {
    background-color: rgb(var(--primary-accessibilite),.2) !important;
}
.border-accessibilite {
    border-color: rgb(var(--primary-accessibilite)) !important;
}
/* === BUTTONS === */
.btn-purple {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.btn-purple:hover,
.btn-purple:focus {
    background-color: var(--purple-hover);
    border-color: var(--purple-hover);
    color: white;
}

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

.btn-outline-purple:hover,
.btn-outline-purple:focus {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

/* === GRADIENT BACKGROUND === */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* === CARDS === */
.article-card {
    transition: all 0.3s ease;
}

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

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #eee !important;
}

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

.pricing-card {
    transition: all 0.3s ease;
}

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

.pricing-popular {
    position: relative;
    border: 2px solid var(--primary-purple) !important;
}

.pricing-popular::before {
    content: "POPULAIRE";
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: var(--primary-purple);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0.375rem 0 0.375rem;
}

/* === NAVIGATION === */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-purple) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-purple) !important;
    font-weight: 500;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--primary-purple);
}

/* === HERO SECTION === */
.hero-section {
    min-height: var(--full-section-height);
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-section .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hero-section .flex-grow-1 {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Badges de conformité - Pleine largeur */
.compliance-badges-bottom {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 2rem 0 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    animation: fadeInUp 1s ease-out 0.5s both;

}

.compliance-badges-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.compliance-badges-bottom .fas.fa-check-circle {
    font-size: 1rem;
}

.compliance-badges-bottom .fw-medium {
    font-size: 0.875rem;
}

.compliance-badges-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.compliance-badges-bottom .col-md-4 {
    transition: all 0.3s ease;
}

.compliance-badges-bottom .col-md-4:hover {
    transform: translateY(-2px);
}

.compliance-badges-bottom .col-md-4:hover .fas {
    color: #ffffff !important;
}

/* === SECTIONS === */
.section-fullheight {
    min-height: var(--section-min-height);
    display: flex;
    align-items: center;
}

.section-fullheight-absolute {
    min-height: var(--full-section-height);
    display: flex;
    align-items: center;
}

.section-spaced {
    padding: 6rem 0;
}

.section-spaced-lg {
    padding: 8rem 0;
}

.content-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
}

.feature-section {
    min-height: var(--section-min-height);
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
}

.feature-section .content-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--section-min-height);
    width: 100%;
    padding: 4rem 0;
}

.feature-section .content-centered > div {
    flex: 0 0 auto;
}

.feature-section .feature-card {
    height: 100%;
    min-height: 280px;
    transition: all 0.3s ease;
}

/* === WINE BOTTLE === */
.wine-bottle {
    transform: rotate(15deg);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

.qr-code-placeholder {
    background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 10px, #d1d5db 10px, #d1d5db 20px);
}

/* === BROWSER MOCKUP === */
.browser-mockup {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.browser-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red { 
    background-color: #dc3545; 
}

.browser-dot.yellow { 
    background-color: #ffc107; 
}

.browser-dot.green { 
    background-color: #28a745; 
}

.browser-url {
    background-color: white;
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* === ARTICLE CONTENT === */
.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--primary-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-purple);
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-purple);
    background-color: var(--light-purple);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background-color: var(--light-purple);
    color: var(--primary-purple);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content a {
    color: var(--primary-purple);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-purple);
}

.article-content a:hover {
    text-decoration: none;
    border-bottom: 1px solid var(--primary-purple);
}

/* === BREADCRUMB === */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-purple);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* === FOOTER === */
.hover-text-white:hover {
    color: white !important;
    transition: color 0.3s ease;
}

/* === UTILITIES === */
.card-spacing {
    margin-bottom: 2rem;
}

.card-spacing-lg {
    margin-bottom: 3rem;
}

/* Pour éviter le débordement horizontal */
body {
    overflow-x: hidden;
}

/* Alternative pour navigateurs anciens */
@supports not (width: calc(-50vw + 50%)) {
    .compliance-badges-bottom {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    @media (min-width: 576px) {
        .compliance-badges-bottom {
            margin-left: calc(-50vw + 50%);
            margin-right: calc(-50vw + 50%);
            width: 100vw;
        }
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .section-fullheight,
    .section-fullheight-absolute {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .compliance-badges-bottom {
        padding: 1.5rem 0 2rem 0;
        margin-left: calc(-50vw + 50%);
    }
    
    .compliance-badges-bottom .fw-medium {
        font-size: 0.75rem;
    }
    
    .feature-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .feature-section .content-centered {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-spaced {
        padding: 4rem 0;
    }
    
    .section-spaced-lg {
        padding: 5rem 0;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.375rem;
    }
    
    .article-content h3 {
        font-size: 1.125rem;
    }
    
    .floating {
        animation: none; /* Disable animation on mobile for performance */
    }
}

@media (max-width: 576px) {
    .compliance-badges-bottom .row > .col-md-4 {
        margin-bottom: 1rem !important;
    }
    
    .compliance-badges-bottom .fw-medium {
        display: block;
        margin-top: 0.25rem;
    }
    
    .compliance-badges-bottom {
        padding: 1rem 0 1.5rem 0;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .article-navigation,
    .sidebar,
    .compliance-badges-bottom {
        display: none !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-content a {
        color: black !important;
        text-decoration: none !important;
        border-bottom: none !important;
    }
}

/* === MOCKUP SMARTPHONE === */

/*.smartphone-mockup {
    position: relative;
    z-index: 2;
}*/

/* Corps du téléphone */
.phone-frame {
    width: 320px;
    height: 600px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 35px;
    padding: 8px;
    position: relative;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.6s ease;
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Encoche / notch */
.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

/* Écran du téléphone */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

/* Barre de statut */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 5px 20px;
    background: rgba(0,0,0,0.9);
    color: white;
    font-size: 14px;
    font-weight: 600;
    height: 35px;
    position: relative;
    z-index: 5;
}

.status-left .time {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-right i {
    font-size: 12px;
    opacity: 0.9;
}

/* Batterie */
.battery {
    width: 22px;
    height: 11px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 2px;
    position: relative;
    margin-left: 3px;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 5px;
    background: rgba(255,255,255,0.6);
    border-radius: 0 1px 1px 0;
}

.battery-level {
    width: 80%;
    height: 100%;
    background: #4CAF50;
    border-radius: 1px;
}

/* Contenu de l'écran */
.phone-content {
    width: 100%;
    height: calc(100% - 35px - 25px); /* Moins la status bar et l'indicateur home */
    position: relative;
    background: #fff;
}

/* Iframe dans le téléphone */
.phone-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
        transform: scale(0.75);  /* Zoom à 75% pour voir plus de contenu */
    transform-origin: top left;
    width: 133%;             /* 100/75 = 133% */
    height: 133%;
}

/* Indicateur home (barre du bas) */
.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

/* Caption sous le téléphone */
.mockup-caption {
    text-align: center;
    max-width: 280px;
}

/* Animation flottante héritée */
.floating .smartphone-mockup {
    animation: smartphoneFloat 6s ease-in-out infinite;
}

@keyframes smartphoneFloat {
    0%, 100% { 
        transform: translateY(0) perspective(1000px) rotateY(-5deg) rotateX(5deg); 
    }
    50% { 
        transform: translateY(-15px) perspective(1000px) rotateY(-3deg) rotateX(3deg); 
    }
}

/* Effet de brillance sur l'écran */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.1), 
        transparent
    );
    transition: left 0.8s ease;
    z-index: 10;
    pointer-events: none;
}

.phone-frame:hover .phone-screen::before {
    left: 100%;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .phone-frame {
        width: 280px;
        height: 500px;
        transform: perspective(800px) rotateY(-3deg) rotateX(3deg);
    }
    .phone-iframe {
        transform: scale(0.7);  /* Zoom plus petit sur mobile */
        width: 143%;            /* 100/70 = 143% */
        height: 143%;
    }    
    .phone-frame:hover {
        transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.01);
    }
    
    .floating .smartphone-mockup {
        animation: none; /* Désactiver l'animation sur mobile */
    }
    
    .mockup-caption {
        max-width: 240px;
    }
    
    .phone-notch {
        width: 100px;
        height: 20px;
    }
    
    .status-bar {
        padding: 6px 15px 4px 15px;
        font-size: 12px;
        height: 30px;
    }
    
    .phone-home-indicator {
        width: 100px;
    }
}

@media (max-width: 576px) {
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    
    .mockup-caption {
        max-width: 200px;
    }
    
    .phone-notch {
        width: 80px;
        height: 18px;
    }
    
    .status-bar {
        font-size: 11px;
        height: 28px;
    }
}

/* Animation d'entrée pour le smartphone */
.hero-section .smartphone-mockup {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: smartphoneEntrance 1.2s ease-out 0.5s forwards;
}

@keyframes smartphoneEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) perspective(1000px) rotateY(-15deg);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05) perspective(1000px) rotateY(-3deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) perspective(1000px) rotateY(-5deg) rotateX(5deg);
    }
}

/* Amélioration de l'accessibilité */
.phone-iframe {
    border-radius: 0 0 20px 20px;
}

/* Loading state pour l'iframe */
.phone-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(107, 33, 168, 0.3);
    border-top: 3px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.phone-content[data-loaded="true"]::before {
    display: none !important;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Reflets sur le cadre du téléphone */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -2px;
    width: 4px;
    height: 30%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.3), 
        rgba(255,255,255,0.1), 
        transparent
    );
    border-radius: 2px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2px;
    width: 4px;
    height: 15%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        transparent
    );
    border-radius: 2px;
}
/* === EFFET SCAN QR CODE === */

/* === CORRECTION SCAN DEMONSTRATION === */

.scan-demonstration {
    position: relative;
    display: inline-block;
    /* Assurer que le container ne masque pas son contenu */
    min-width: 300px;
    min-height: 600px;
    /* Éviter les débordements cachés */
    overflow: visible !important;
}

/* QR Code en arrière-plan - styles corrigés */
.qr-code-background {
    position: absolute;
    top: 50%;
    right: -140px;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    z-index: 1;
    opacity: 0.9;
    animation: qrCodePulse 3s ease-in-out infinite;
    /* Assurer que le QR code ne bloque pas le smartphone */
    pointer-events: none;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        0 0 0 3px rgba(255,255,255,0.1);
    background: white;
    padding: 8px;
}

/* Smartphone au premier plan - priorité d'affichage */
.smartphone-mockup {
    position: relative;
    z-index: 10 !important;
    display: inline-block !important;
    /* S'assurer que le smartphone est visible */
    opacity: 1 !important;
    visibility: visible !important;
    left:-20px;
}

/* Corps du téléphone - styles renforcés */
.phone-frame {
    width: 300px !important;
    height: 600px !important;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a) !important;
    border-radius: 35px !important;
    padding: 8px !important;
    position: relative !important;
    display: block !important;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) !important;
    transition: transform 0.6s ease !important;
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02) !important;
}

/* Écran du téléphone - styles renforcés */
.phone-screen {
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Encoche - styles renforcés */
.phone-notch {
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 120px !important;
    height: 25px !important;
    background: #000 !important;
    border-radius: 0 0 15px 15px !important;
    z-index: 10 !important;
}

.phone-notch::before {
    content: '' !important;
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: #333 !important;
    border-radius: 50% !important;
}

/* Barre de statut - styles renforcés */
.status-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 20px 5px 20px !important;
    background: rgba(0,0,0,0.9) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    height: 35px !important;
    position: relative !important;
    z-index: 5 !important;
}

.status-left .time {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.status-right {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.status-right i {
    font-size: 12px !important;
    opacity: 0.9 !important;
}

/* Batterie */
.battery {
    width: 22px !important;
    height: 11px !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    border-radius: 2px !important;
    position: relative !important;
    margin-left: 3px !important;
}

.battery::after {
    content: '' !important;
    position: absolute !important;
    right: -3px !important;
    top: 3px !important;
    width: 2px !important;
    height: 5px !important;
    background: rgba(255,255,255,0.6) !important;
    border-radius: 0 1px 1px 0 !important;
}

.battery-level {
    width: 80% !important;
    height: 100% !important;
    background: #4CAF50 !important;
    border-radius: 1px !important;
}

/* Contenu de l'écran */
.phone-content {
    flex: 1 !important;
    background: white !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Iframe dans le téléphone */
.phone-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: #fff !important;
    display: block !important;
    transform: scale(0.8) !important;
    transform-origin: top left !important;
    width: 125% !important;
    height: 125% !important;
}

/* Indicateur home */
.phone-home-indicator {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 120px !important;
    height: 4px !important;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 2px !important;
}

/* Ligne de connexion animée - ajustée */
.connection-line {
    position: absolute;
    top: 50%;
    right: -40px;
    width: 80px;
    height: 2px;
    z-index: 5;
    transform: translateY(-50%);
    /* Ne pas interférer avec le smartphone */
    pointer-events: none;
}

.connection-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: dotWave 1.5s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }

@keyframes dotWave {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 10px rgba(255,255,255,0.8);
    }
}

/* Effet de scan laser sur QR code */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff0040, 
        #ff0040, 
        transparent
    );
    box-shadow: 0 0 10px #ff0040;
    animation: scanLaser 2s linear infinite;
    z-index: 10;
}
.scan-demonstration[data-loaded="true"] .scan-line,
.scan-demonstration.loaded .scan-line {
    animation: scanLaser 1s linear 1;
    animation-fill-mode: forwards;
    opacity: 0;
}
@keyframes scanLaser {
    0% { top: 0; opacity: 1; }
    50% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* Coins de cadrage du scanner */
.scan-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #00ff88;
    border-radius: 2px;
    animation: cornerPulse 2s ease-in-out infinite;
}

.corner.top-left {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

@keyframes cornerPulse {
    0%, 100% { 
        opacity: 0.6;
        box-shadow: 0 0 5px #00ff88;
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 15px #00ff88;
    }
}

/* Animation de pulsation du QR code */
@keyframes qrCodePulse {
    0%, 100% { 
        opacity: 0.9; 
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1.02);
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .scan-demonstration {
        min-width: 260px;
        min-height: 520px;
    }
    
    .qr-code-background {
        right: -80px;
        width: 120px;
        height: 120px;
    }
    
    .connection-line {
        right: -25px;
        width: 50px;
    }
    
    .phone-frame {
        width: 260px !important;
        height: 520px !important;
        transform: perspective(800px) rotateY(-3deg) rotateX(3deg) !important;
    }
    
    .phone-iframe {
        transform: scale(0.75) !important;
        width: 133% !important;
        height: 133% !important;
    }
}

@media (max-width: 576px) {
    .scan-demonstration {
        min-width: 220px;
        min-height: 440px;
    }
    
    .qr-code-background {
        right: -60px;
        width: 100px;
        height: 100px;
    }
    
    .connection-line {
        right: -20px;
        width: 40px;
    }
    
    .phone-frame {
        width: 220px !important;
        height: 440px !important;
    }
    
    .corner {
        width: 15px;
        height: 15px;
    }
    
    .scan-line {
        height: 1px;
    }
}

.btn