/*
 * Calcul d'Âge - Age Calculator Styles (FR)
 * Tool-specific styles only. Base styles from /shared/styles.css
 */

/* ========== Age Display ========== */
.age-display {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    margin: var(--space-lg) 0;
}

.age-unit {
    text-align: center;
    flex: 1;
}

.age-unit .result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.age-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

/* ========== Detail Rows ========== */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ========== Input Row ========== */
.calc-mode .input-row {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
}

.calc-mode .input-group {
    flex: 1;
    margin-bottom: var(--space-md);
}

.calc-mode .input-group:first-child {
    flex: 0 0 80px;
}

.calc-mode .input-group:nth-child(3) {
    flex: 0 0 80px;
}

.calc-mode .input-group:nth-child(5) {
    flex: 0 0 100px;
}

.input-connector {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.25rem;
    padding-bottom: var(--space-md);
}

/* ========== Tool Instructions & FAQ ========== */
.tool-instructions {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.tool-instructions h2 {
    margin-bottom: var(--space-md);
}

.tool-instructions ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.tool-instructions li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.tool-instructions strong {
    color: var(--text-primary);
}

.tool-faq {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.tool-faq h2 {
    margin-bottom: var(--space-lg);
}

.faq-item {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* ========== Sidebar ========== */
.tool-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.related-tools {
    list-style: none;
    padding: 0;
}

.related-tools li {
    margin-bottom: var(--space-sm);
}

.related-tools a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.related-tools a:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
    .calc-mode .input-row {
        flex-wrap: wrap;
    }

    .calc-mode .input-group,
    .calc-mode .input-group:first-child,
    .calc-mode .input-group:nth-child(3),
    .calc-mode .input-group:nth-child(5) {
        flex: 1 1 60px;
        min-width: 60px;
    }

    .age-display {
        gap: var(--space-md);
    }

    .age-unit .result-value {
        font-size: 1.75rem;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}
