/**
 * Language-Specific Adjustments
 * Reduce font sizes slightly when French is active to prevent text overflow
 */

/* French font size adjustments */
body[data-language="fr"] {
    /* Reduce heading sizes by ~8% */
    --h1-reduction: 0.92;
    --h2-reduction: 0.92;
    --h3-reduction: 0.94;
    --body-reduction: 0.96;
}

/* Hero sections */
body[data-language="fr"] .hero h1,
body[data-language="fr"] h1 {
    font-size: calc(3rem * 0.92) !important;
}

body[data-language="fr"] .hero p {
    font-size: calc(1.3rem * 0.94) !important;
}

/* Section titles */
body[data-language="fr"] .section-title,
body[data-language="fr"] h2 {
    font-size: calc(2.5rem * 0.92) !important;
}

body[data-language="fr"] .section-subtitle {
    font-size: calc(1.1rem * 0.96) !important;
}

/* Card titles */
body[data-language="fr"] .mission-card h3,
body[data-language="fr"] .program-content h3,
body[data-language="fr"] .value-card h3,
body[data-language="fr"] h3 {
    font-size: calc(1.5rem * 0.94) !important;
}

/* Body text in cards */
body[data-language="fr"] .mission-card p,
body[data-language="fr"] .program-content p,
body[data-language="fr"] .value-card p,
body[data-language="fr"] .card p {
    font-size: calc(1rem * 0.96) !important;
    line-height: 1.65 !important;
}

/* Navigation and buttons */
body[data-language="fr"] .nav-item,
body[data-language="fr"] .btn,
body[data-language="fr"] button {
    font-size: calc(1rem * 0.96) !important;
}

/* Footer text */
body[data-language="fr"] footer {
    font-size: calc(1rem * 0.96) !important;
}

body[data-language="fr"] footer h3 {
    font-size: calc(1.4rem * 0.94) !important;
}

/* Stats and numbers (keep these the same) */
body[data-language="fr"] .stat-number,
body[data-language="fr"] .impact-number {
    /* Don't reduce numbers */
    font-size: inherit !important;
}

/* Timeline */
body[data-language="fr"] .timeline-content h3 {
    font-size: calc(1.3rem * 0.94) !important;
}

body[data-language="fr"] .timeline-content p {
    font-size: calc(1rem * 0.96) !important;
}

/* Stories and quotes */
body[data-language="fr"] .story-quote {
    font-size: calc(1.1rem * 0.96) !important;
}

/* Impact labels */
body[data-language="fr"] .impact-label,
body[data-language="fr"] .stat-label {
    font-size: calc(0.85rem * 0.96) !important;
}

/* Responsive adjustments for French on mobile */
@media (max-width: 768px) {
    body[data-language="fr"] .hero h1,
    body[data-language="fr"] h1 {
        font-size: calc(2rem * 0.92) !important;
    }

    body[data-language="fr"] .hero p {
        font-size: calc(1.1rem * 0.94) !important;
    }

    body[data-language="fr"] .section-title,
    body[data-language="fr"] h2 {
        font-size: calc(2rem * 0.92) !important;
    }

    body[data-language="fr"] h3 {
        font-size: calc(1.3rem * 0.94) !important;
    }
}

@media (max-width: 480px) {
    body[data-language="fr"] .hero h1,
    body[data-language="fr"] h1 {
        font-size: calc(1.8rem * 0.92) !important;
    }

    body[data-language="fr"] .section-title,
    body[data-language="fr"] h2 {
        font-size: calc(1.8rem * 0.92) !important;
    }

    body[data-language="fr"] h3 {
        font-size: calc(1.2rem * 0.94) !important;
    }

    body[data-language="fr"] p,
    body[data-language="fr"] .card p {
        font-size: calc(0.95rem * 0.96) !important;
    }
}
