/* ============================================
   NOUVEAUX STYLES POUR L'INTERFACE REFONDÉE
   ============================================ */

/* Section descriptions */
.section-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(79, 195, 247, 0.1);
    border-left: 3px solid #4fc3f7;
    border-radius: 5px;
}

/* Help text */
.help-text {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ============================================
   CHECKBOXES (Type de construction)
   ============================================ */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(79, 195, 247, 0.1);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #4fc3f7;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #4fc3f7, #00bcd4);
    border-color: #4fc3f7;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* ============================================
   RADIO BUTTONS (Motorisable)
   ============================================ */

.radio-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.radio-label:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: #4fc3f7;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #4fc3f7;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #4fc3f7;
    border-width: 2px;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #4fc3f7, #00bcd4);
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked {
    & + .radio-custom {
        background: rgba(79, 195, 247, 0.1);
    }
}

/* ============================================
   CURSEURS ANTINOMIQUES
   ============================================ */

.slider-item.antinomique {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 237, 234, 0.3), rgba(254, 214, 227, 0.3));
    border-radius: 15px;
    border: 2px solid rgba(79, 195, 247, 0.3);
}

.antinomique-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c5530;
}

.label-left {
    text-align: left;
    color: #00bcd4;
}

.label-right {
    text-align: right;
    color: #ff6b9d;
}

.slider-main-label {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #555;
}

.antinomique-slider {
    margin-bottom: 0.5rem;
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

.slider-markers span {
    flex: 1;
}

.slider-markers span:first-child {
    text-align: left;
}

.slider-markers span:nth-child(2) {
    text-align: center;
}

.slider-markers span:last-child {
    text-align: right;
}

/* Curseur personnalisé */
input[type="range"].kawaii-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #00bcd4 0%, #a8edea 50%, #ff6b9d 100%);
    outline: none;
}

input[type="range"].kawaii-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4fc3f7;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type="range"].kawaii-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"].kawaii-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4fc3f7;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type="range"].kawaii-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RÉSULTATS
   ============================================ */

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2c5530;
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    z-index: 10;
}

.canoe-card.result-card {
    position: relative;
    padding-top: 3rem;
}

/* ============================================
   IMAGES ET PLACEHOLDERS DE CANOË
   ============================================ */

.canoe-image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.canoe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.canoe-image:hover {
    transform: scale(1.05);
}

.canoe-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.canoe-svg {
    width: 100%;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.placeholder-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Couleurs de fond selon catégorie */
.canoe-placeholder.loisirs {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.canoe-placeholder.riviere {
    background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%);
}

.canoe-placeholder.eau-vive {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa8c5 100%);
}

.canoe-placeholder.peche {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}

.score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #4fc3f7, #00bcd4);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(79, 195, 247, 0.4);
}

.score-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.score-detail {
    font-size: 0.65rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.canoe-category {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.category-badge, .type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-badge {
    background: linear-gradient(135deg, rgba(168, 237, 234, 0.6), rgba(254, 214, 227, 0.6));
    color: #2c5530;
}

.type-badge {
    background: linear-gradient(135deg, rgba(255, 211, 182, 0.6), rgba(255, 218, 193, 0.6));
    color: #2c5530;
}

.canoe-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.spec-value {
    font-weight: 600;
    color: #2c5530;
}

.canoe-characteristics {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.char-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
}

.char-section-title:first-child {
    margin-top: 0;
}

/* Grille d'aptitudes */
.aptitudes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.aptitude-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid #4fc3f7;
}

.aptitude-label {
    font-size: 0.8rem;
    color: #555;
}

.aptitude-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c5530;
}

/* Coloration selon la valeur */
.aptitude-item:has(.aptitude-value:contains("6")),
.aptitude-item:has(.aptitude-value:contains("5")) {
    border-left-color: #66bb6a;
    background: rgba(102, 187, 106, 0.1);
}

.aptitude-item:has(.aptitude-value:contains("0")),
.aptitude-item:has(.aptitude-value:contains("1")) {
    border-left-color: #e0e0e0;
    background: rgba(224, 224, 224, 0.1);
}

.char-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.char-bar:last-child {
    margin-bottom: 0;
}

.char-bar.highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.15));
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.char-bar.highlight .char-label {
    font-weight: 600;
    color: #2c5530;
}

.char-bar.highlight .char-fill {
    background: linear-gradient(90deg, #ffc107, #ffb300);
}

.char-label {
    flex: 0 0 160px;
    font-size: 0.85rem;
    color: #555;
}

.char-progress {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.char-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #00bcd4);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.char-value {
    flex: 0 0 40px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c5530;
}

.motorisable-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #81c784, #66bb6a);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.canoe-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

/* ============================================
   SECTIONS COLLAPSIBLES
   ============================================ */

.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 2rem;
}

.collapsible-header:hover {
    color: #4fc3f7;
}

.toggle-icon {
    position: absolute;
    right: 0.5rem;
    transition: transform 0.3s ease;
}

.collapsible.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ============================================
   GRILLES DE FILTRES
   ============================================ */

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

.kawaii-input-sm {
    padding: 0.5rem;
    border: 2px solid #e1f5fe;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.kawaii-input-sm:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.kawaii-input {
    padding: 0.75rem;
    border: 2px solid #e1f5fe;
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.kawaii-input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .checkbox-group {
        gap: 0.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-label {
        min-width: auto;
    }

    .canoe-specs {
        grid-template-columns: 1fr;
    }

    .char-label {
        flex: 0 0 120px;
        font-size: 0.75rem;
    }

    .slider-markers {
        font-size: 0.65rem;
    }
}
