/* Hero Section adapté BPC */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../../../assets/swim-camp/hero-swim-pool.jpg');
    /* Adjusted path for modular structure */
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: white;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    color: var(--bpc-on-dark);
}

/* Container principal */
.predictor-container {
    max-width: 1200px;
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-md);
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

@media (max-width: 968px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Section Input */
.input-section {
    background: var(--bpc-surface, #fff);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--bpc-border-soft);
}

.input-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--bpc-text);
}

.section-title-red {
    border-left: 4px solid var(--bpc-primary, #DC2626);
    padding-left: 12px;
}

.section-title-blue {
    border-left: 4px solid var(--bpc-secondary, #155E75);
    padding-left: 12px;
}

.input-group {
    margin-bottom: var(--spacing-md);
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bpc-text);
    font-size: 0.95rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-inputs input {
    width: 90px;
    padding: 12px;
    border: 2px solid var(--bpc-border-soft);
    border-radius: var(--radius);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    color: var(--bpc-text);
}

.time-inputs input:focus {
    outline: none;
    border-color: var(--bpc-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.time-inputs span {
    font-size: 0.9rem;
    color: var(--bpc-text-muted);
    font-weight: 500;
}

.bpc-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bpc-border-soft);
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
    color: var(--bpc-text);
}

.bpc-select:focus {
    outline: none;
    border-color: var(--bpc-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.helper-text {
    font-size: 0.82rem;
    color: var(--bpc-text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.range-description {
    font-size: 0.85rem;
    color: var(--bpc-text-muted);
    margin-top: 8px;
    font-style: italic;
    background: var(--bpc-water);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--bpc-secondary);
}

/* Bouton de calcul */
.calc-btn {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--bpc-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.calc-btn:active {
    transform: translateY(0);
}

/* Zone de résultats */
.results-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.results-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-dark);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.algorithm-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-result {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.main-result h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-bottom: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.big-time {
    font-size: 3.5rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.sub-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-val {
    font-weight: 800;
    font-size: 1.3rem;
    color: #38bdf8;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.warning-pill {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.analysis-text {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.analysis-text strong {
    color: #38bdf8;
    font-weight: 700;
}

/* Lien vers stage */
.stage-link {
    margin-top: 1.5rem;
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.stage-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .results-section {
        position: relative;
        top: 0;
    }
}

/* Calibration Box */
.calibration-box {
    margin: 20px 0;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    overflow: hidden;
}

.calib-header {
    padding: 12px 16px;
    background: #e0f2fe;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #0369a1;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.calib-header:hover {
    background: #bae6fd;
}

.calib-content {
    padding: 16px;
    display: none;
}

.calib-result {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    color: #0284c7;
    text-align: center;
    border: 1px dashed #0284c7;
    font-size: 0.9rem;
}

.range-pill {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}