/**
 * Calculateur de Taille de Soutien-Gorge - Styles
 */

:root {
    --ctf-primary: #8b5cf6;
    --ctf-primary-dark: #7c3aed;
    --ctf-secondary: #ec4899;
    --ctf-success: #10b981;
    --ctf-warning: #f59e0b;
    --ctf-text: #1f2937;
    --ctf-text-light: #6b7280;
    --ctf-bg: #ffffff;
    --ctf-bg-soft: #f9fafb;
    --ctf-bg-muted: #f3f4f6;
    --ctf-border: #e5e7eb;
    --ctf-radius: 12px;
    --ctf-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --ctf-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.ctf-calculator {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ctf-text);
    line-height: 1.6;
}

/* Hero */
.ctf-hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
    border-radius: var(--ctf-radius);
    margin-bottom: 30px;
}

.ctf-hero__badge {
    margin-bottom: 16px;
}

.ctf-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ctf-primary);
    box-shadow: var(--ctf-shadow);
}

.ctf-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--ctf-primary), var(--ctf-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ctf-hero__subtitle {
    font-size: 1.1rem;
    color: var(--ctf-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Intro Section */
.ctf-intro-section {
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
    border-radius: var(--ctf-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.ctf-intro-section h2 {
    font-size: 1.5rem;
    margin: 0 0 16px;
}

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

.ctf-feature-list li {
    padding: 8px 0 8px 28px;
    position: relative;
}

.ctf-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ctf-success);
    font-weight: bold;
}

/* Calculator Container */
.ctf-calc-container {
    margin-bottom: 40px;
}

.ctf-calc-card {
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
    border-radius: var(--ctf-radius);
    box-shadow: var(--ctf-shadow-lg);
    overflow: hidden;
}

.ctf-calc-header {
    padding: 24px;
    border-bottom: 1px solid var(--ctf-border);
    background: var(--ctf-bg-soft);
}

.ctf-calc-header h2 {
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.ctf-calc-header > p {
    color: var(--ctf-text-light);
    margin: 0 0 20px;
    font-size: 14px;
}

/* Unit Toggle */
.ctf-unit-toggle {
    display: inline-flex;
    background: var(--ctf-bg);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--ctf-border);
}

.ctf-unit-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ctf-unit-btn.active {
    background: var(--ctf-primary);
    color: white;
}

/* Form */
.ctf-form {
    padding: 24px;
}

.ctf-measurement-group {
    margin-bottom: 30px;
}

.ctf-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.ctf-group-icon {
    font-size: 1.25rem;
}

.ctf-group-desc {
    color: var(--ctf-text-light);
    font-size: 14px;
    margin: 0 0 16px;
}

.ctf-inputs-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.ctf-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.ctf-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--ctf-bg-muted);
    border-radius: 50%;
    font-size: 11px;
    color: var(--ctf-text-light);
    cursor: help;
    margin-left: 4px;
}

.ctf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ctf-input-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--ctf-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.ctf-input-wrapper input:focus {
    outline: none;
    border-color: var(--ctf-primary);
}

.ctf-unit {
    position: absolute;
    right: 16px;
    color: var(--ctf-text-light);
    font-size: 14px;
}

/* Submit Button */
.ctf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--ctf-primary), var(--ctf-secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ctf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Results */
.ctf-results {
    padding: 24px;
    border-top: 1px solid var(--ctf-border);
    background: var(--ctf-bg-soft);
}

.ctf-results-header {
    text-align: center;
    margin-bottom: 24px;
}

.ctf-results-header h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.ctf-results-header p {
    color: var(--ctf-text-light);
    margin: 0;
}

/* Main Result */
.ctf-main-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.ctf-primary-size {
    background: linear-gradient(135deg, var(--ctf-primary), var(--ctf-secondary));
    border-radius: var(--ctf-radius);
    padding: 24px;
    text-align: center;
    color: white;
}

.ctf-size-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.ctf-primary-size .ctf-size-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.ctf-confidence {
    background: var(--ctf-bg);
    border-radius: var(--ctf-radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--ctf-border);
}

.ctf-confidence-label {
    display: block;
    font-size: 14px;
    color: var(--ctf-text-light);
    margin-bottom: 12px;
}

.ctf-confidence-bar {
    height: 8px;
    background: var(--ctf-bg-muted);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ctf-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ctf-success), #34d399);
    border-radius: 4px;
    transition: width 0.5s;
}

.ctf-confidence-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ctf-success);
}

/* International Sizes */
.ctf-international-sizes {
    margin-bottom: 30px;
}

.ctf-international-sizes h3 {
    font-size: 1.1rem;
    margin: 0 0 16px;
}

.ctf-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.ctf-size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
    border-radius: 8px;
}

.ctf-size-flag {
    font-size: 1.5rem;
}

.ctf-size-country {
    font-size: 12px;
    color: var(--ctf-text-light);
}

.ctf-size-item .ctf-size-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Sister Sizes */
.ctf-sister-sizes {
    margin-bottom: 30px;
}

.ctf-sister-sizes h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.ctf-sister-sizes > p {
    font-size: 14px;
    color: var(--ctf-text-light);
    margin: 0 0 16px;
}

.ctf-sister-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ctf-sister-item {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
}

.ctf-sister-item.ctf-sister-current {
    background: linear-gradient(135deg, var(--ctf-primary), var(--ctf-secondary));
    color: white;
    border: none;
}

.ctf-sister-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.ctf-sister-size {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ctf-sister-note {
    font-size: 11px;
    opacity: 0.7;
}

/* Shape Analysis */
.ctf-shape-analysis h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.ctf-shape-indicators {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ctf-shape-badge {
    padding: 6px 14px;
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

/* Fit Tips */
.ctf-fit-tips {
    margin-bottom: 24px;
}

.ctf-fit-tips h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.ctf-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctf-tips-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 14px;
    border-bottom: 1px solid var(--ctf-border);
}

.ctf-tips-list li:last-child {
    border-bottom: none;
}

.ctf-tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ctf-success);
    font-weight: bold;
}

/* Results Actions */
.ctf-results-actions {
    display: flex;
    gap: 12px;
}

.ctf-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ctf-btn--primary {
    background: linear-gradient(135deg, var(--ctf-primary), var(--ctf-secondary));
    color: white;
}

.ctf-btn--secondary {
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
    color: var(--ctf-text);
}

.ctf-btn:hover {
    transform: translateY(-1px);
}

/* How It Works */
.ctf-how-it-works {
    margin-bottom: 40px;
}

.ctf-how-it-works h2 {
    font-size: 1.5rem;
    margin: 0 0 24px;
}

.ctf-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ctf-step {
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
    border-radius: var(--ctf-radius);
    padding: 24px;
    text-align: center;
}

.ctf-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ctf-primary), var(--ctf-secondary));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ctf-step h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.ctf-step p {
    font-size: 14px;
    color: var(--ctf-text-light);
    margin: 0;
}

/* Size Guide */
.ctf-size-guide {
    margin-bottom: 40px;
}

.ctf-size-guide h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.ctf-size-guide h3 {
    font-size: 1.1rem;
    margin: 30px 0 16px;
}

.ctf-size-guide > p {
    color: var(--ctf-text-light);
    margin: 0 0 20px;
}

.ctf-table-scroll {
    overflow-x: auto;
}

.ctf-size-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.ctf-size-table th,
.ctf-size-table td {
    padding: 12px 16px;
    text-align: center;
    border: 1px solid var(--ctf-border);
}

.ctf-size-table th {
    background: var(--ctf-primary);
    color: white;
    font-weight: 600;
}

.ctf-size-table tr:nth-child(even) {
    background: var(--ctf-bg-soft);
}

.ctf-table-note {
    text-align: center;
    font-size: 13px;
    color: var(--ctf-text-light);
    margin-top: 12px;
}

/* Why Wrong Size */
.ctf-why-wrong {
    margin-bottom: 40px;
}

.ctf-why-wrong h2 {
    font-size: 1.5rem;
    margin: 0 0 24px;
}

.ctf-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ctf-reason {
    background: var(--ctf-bg);
    border: 1px solid var(--ctf-border);
    border-radius: var(--ctf-radius);
    padding: 24px;
    text-align: center;
}

.ctf-reason-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.ctf-reason h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.ctf-reason p {
    font-size: 14px;
    color: var(--ctf-text-light);
    margin: 0;
}

/* Trust Stats */
.ctf-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
    border-radius: var(--ctf-radius);
    padding: 40px 20px;
    margin-bottom: 40px;
}

.ctf-trust-item {
    text-align: center;
}

.ctf-trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ctf-primary), var(--ctf-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ctf-trust-label {
    font-size: 14px;
    color: var(--ctf-text-light);
}

/* FAQ */
.ctf-faq {
    margin-bottom: 40px;
}

.ctf-faq h2 {
    font-size: 1.5rem;
    margin: 0 0 24px;
}

.ctf-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ctf-faq-item {
    border: 1px solid var(--ctf-border);
    border-radius: var(--ctf-radius);
    overflow: hidden;
}

.ctf-faq-q {
    width: 100%;
    padding: 18px 24px;
    background: var(--ctf-bg);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ctf-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--ctf-primary);
}

.ctf-faq-item.active .ctf-faq-q::after {
    content: '−';
}

.ctf-faq-q:hover {
    background: var(--ctf-bg-soft);
}

.ctf-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.ctf-faq-item.active .ctf-faq-a {
    max-height: 500px;
}

.ctf-faq-a p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 15px;
    color: var(--ctf-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .ctf-hero {
        padding: 40px 16px;
    }
    
    .ctf-hero__title {
        font-size: 1.75rem;
    }
    
    .ctf-main-result {
        grid-template-columns: 1fr;
    }
    
    .ctf-sister-grid {
        grid-template-columns: 1fr;
    }
    
    .ctf-trust {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .ctf-results-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ctf-calculator {
        padding: 12px;
    }
    
    .ctf-calc-header,
    .ctf-form,
    .ctf-results {
        padding: 16px;
    }
    
    .ctf-inputs-row {
        grid-template-columns: 1fr;
    }
}

/* Print */
@media print {
    .ctf-hero,
    .ctf-intro-section,
    .ctf-how-it-works,
    .ctf-why-wrong,
    .ctf-faq,
    .ctf-results-actions,
    .ctf-submit-btn {
        display: none;
    }
    
    .ctf-results {
        display: block !important;
    }
}
