/* ============================================
   SCHÉMA D'ARCHITECTURE SVG - STYLES
   ============================================ */

.architecture-diagram-container {
    margin: 60px 0;
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.architecture-diagram {
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}

/* Textes SVG */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    fill: #1F77B4;
    letter-spacing: 1px;
}

.section-title-small {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    fill: #1F77B4;
    letter-spacing: 1px;
}

.module-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: #333;
}

.module-label-big {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    fill: #333;
}

.api-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    fill: white;
}

.api-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    fill: white;
    opacity: 0.9;
}

.security-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    fill: #333;
}

.binary-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    fill: #1F77B4;
}

.integration-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    fill: #333;
}

/* Animations au survol */
.module-box:hover rect,
.security-box:hover rect {
    filter: drop-shadow(0 8px 20px rgba(31, 119, 180, 0.3));
    transition: all 0.3s ease;
}

.api-box:hover path {
    filter: drop-shadow(0 8px 30px rgba(31, 119, 180, 0.5));
    transition: all 0.3s ease;
}

/* Légende */
.architecture-legend {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #1F77B4;
}

.architecture-legend h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.legend-items {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    display: inline-block;
}

/* Détails des modules */
.modules-details {
    margin-top: 60px;
}

.module-detail {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    border-left: 4px solid #FFC300;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.module-detail h3 {
    font-size: 1.5rem;
    color: #1F77B4;
    margin-bottom: 15px;
}

.module-detail ul {
    list-style: none;
    padding: 0;
}

.module-detail ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.module-detail ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FFC300;
    font-weight: bold;
}

.module-detail p {
    line-height: 1.8;
    color: #555;
}

/* Section Sécurité */
.security-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(31, 119, 180, 0.05) 0%, rgba(255, 195, 0, 0.05) 100%);
    border-radius: 20px;
}

.security-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.security-feature {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.security-feature:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.security-feature h3 {
    font-size: 1.3rem;
    color: #1F77B4;
    margin-bottom: 15px;
}

.security-feature p {
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .architecture-diagram {
        height: auto;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .api-title {
        font-size: 20px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 15px;
    }
    
    .modules-details {
        margin-top: 40px;
    }
    
    .security-features {
        grid-template-columns: 1fr;
    }
}