/* Apple-style Feature Blocks */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-block {
    background: transparent;
    border-radius: 28px;
    padding: 50px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(107, 70, 193, 0.08);
}

.feature-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(107, 70, 193, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6B46C1 0%, #4A90E2 100%);
    border-radius: 18px;
    padding: 14px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.feature-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #6B46C1 0%, #4A90E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.feature-block h4 {
    font-size: 1.05rem;
    color: #6e6e73;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.feature-block p {
    color: #1d1d1f;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.feature-list li {
    padding: 12px 0;
    color: #1d1d1f;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.feature-list li svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-highlight {    background: linear-gradient(135deg, rgba(107, 70, 193, 0.08) 0%, rgba(74, 144, 226, 0.08) 100%);    padding: 22px 28px;    border-radius: 18px;    margin-top: 28px;    border-left: 5px solid;    border-image: linear-gradient(135deg, #6B46C1 0%, #4A90E2 100%) 1;    box-shadow: 0 2px 12px rgba(107, 70, 193, 0.08);    transition: all 0.3s ease;    min-height: 60px;    display: flex;    align-items: center;}.feature-highlight:hover {    background: linear-gradient(135deg, rgba(107, 70, 193, 0.12) 0%, rgba(74, 144, 226, 0.12) 100%);    transform: translateX(5px);    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.15);}

.feature-highlight p {
    margin: 0;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 0.98rem;
}

.feature-image {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    margin-bottom: 24px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
}

/* Responsive */
@media (max-width: 768px) {
    #features,
    #mobile-section,
    #quantum-section {
        background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url(/static/client/images/contact-bg.png) center/cover no-repeat !important;
        background-attachment: fixed !important;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 50px 16px;
    }
    
    .feature-block {
        padding: 36px 24px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-block h3 {
        font-size: 1.5rem;
    }
    
    .feature-block h4 {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .feature-block p,
    .feature-list li {
        font-size: 0.9rem;
    }
    
    .feature-image {
        height: 160px;
    }
}

/* Bouton Estimation dans les blocs */
.feature-cta {
    margin-top: 28px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6B46C1 0%, #4A90E2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.feature-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.4);
    background: linear-gradient(135deg, #7B56D1 0%, #5AA0F2 100%);
}

.feature-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

@media (max-width: 768px) {
    #features,
    #mobile-section,
    #quantum-section {
        background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url(/static/client/images/contact-bg.png) center/cover no-repeat !important;
        background-attachment: fixed !important;
    }
    .feature-cta {
        width: 100%;
        text-align: center;
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* Rendre les blocs transparents style iOS */
#features .feature-block {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#features .feature-block:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Textes en blanc sur fond image */
#features .feature-block h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

#features .feature-block h4,
#features .feature-block p,
#features .feature-list li {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

#features .feature-highlight {
    background: rgba(255, 255, 255, 0.1) !important;
    border-left-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

#features .feature-highlight p {
    color: #ffffff !important;
}

/* Titre section en blanc */
#features > div:first-child h2 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

#features > div:first-child p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive image de fond sur mobile */
@media (max-width: 768px) {
    #features,
    #mobile-section,
    #quantum-section {
        background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url(/static/client/images/contact-bg.png) center/cover no-repeat !important;
        background-attachment: fixed !important;
    }
    #features {
        background-attachment: fixed !important;
        background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url(/static/client/images/features-bg.png) center/cover no-repeat !important;
    }
}

/* Rendre mobile-device et paris-view transparents style iOS */
.mobile-device,
.paris-view {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border-radius: 28px !important;
    padding: 40px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.mobile-device:hover,
.paris-view:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-5px);
}

/* Device frame transparent */
.device-frame {
    background: transparent !important;
}

.device-screen {
    background: transparent !important;
}

/* Textes en blanc pour mobile-section */
#mobile-section h3,
#mobile-section h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

#mobile-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Rendre le conteneur de la carte quantum transparent */
.quantum-section .mobile-container,
.quantum-section > div {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border-radius: 28px !important;
    padding: 50px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Titre et description en blanc */
.quantum-section h3,
.quantum-section h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.quantum-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Forcer transparence sur mobile aussi */
@media (max-width: 768px) {
    #features,
    #mobile-section,
    #quantum-section {
        background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url(/static/client/images/contact-bg.png) center/cover no-repeat !important;
        background-attachment: fixed !important;
    }
    #features .feature-block,
    .mobile-device,
    .paris-view,
    .mobile-container > div > div {
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(40px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    }
    
    /* Textes blancs sur mobile aussi */
    #features h3,
    #features h4,
    #features p,
    #features li,
    .mobile-device h3,
    .mobile-device p,
    .paris-view h3,
    .paris-view p {
        color: #ffffff !important;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* Titre Comment ça marche sur mobile */
    #features h2 {
        color: #ffffff !important;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Rendre les textes de la carte visible en blanc */
.leaflet-popup-content-wrapper,
.leaflet-popup-content {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.leaflet-popup-content h3,
.leaflet-popup-content p,
.leaflet-popup-content strong {
    color: #ffffff !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5) !important;
}
