/* --- CONTENEUR GLOBAL --- */
.adoption-step-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Cache les inputs radio natifs sans casser l'accessibilité */
.adoption-radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* --- GRILLE HABITAT (TUILES) --- */
.housing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.selectable-tile {
    cursor: pointer;
    border: 2px solid #EBE5F7;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selectable-tile i,
.selectable-tile span {
    pointer-events: none; /* Empêche l'icône de bloquer le clic sur le label */
}

.selectable-tile i {
    font-size: 2.5rem;
    color: #1C103B;
    margin-bottom: 12px;
}

.selectable-tile span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #1C103B;
}

/* --- PILLS (OUI/NON) --- */
.pills-group {
    display: flex;
    gap: 10px;
}

.pill-item {
    flex: 1;
    cursor: pointer;
    border: 2px solid #EBE5F7;
    border-radius: 50px;
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    background-color: #fff;
    color: #1C103B;
    transition: all 0.2s ease;
    display: block; /* S'assure que le label prend toute la place */
}

/* --- QUESTIONS FINALES (PETITS BOUTONS) --- */
/* Style pour les labels btn-outline-secondary que tu utilises en bas */
.adoption-radio-group label.btn-outline-secondary {
    border: 2px solid #EBE5F7 !important; /* On force la bordure visible */
    background-color: #fff !important;
    color: #1C103B !important;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* --- ÉTATS HOVER (SURVOL) --- */
.selectable-tile:hover,
.pill-item:hover,
.adoption-radio-group label.btn-outline-secondary:hover {
    border-color: #F64141;
    background-color: #FFF9F9;
}

/* --- ÉTATS SÉLECTIONNÉS (CHECKED) --- */
/* Pour les tuiles Habitat */
input[type="radio"]:checked + .selectable-tile {
    border-color: #F64141 !important;
    background-color: #FFF9F9;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(246, 65, 65, 0.15);
}

input[type="radio"]:checked + .selectable-tile i,
input[type="radio"]:checked + .selectable-tile span {
    color: #F64141;
}

/* Pour les Pills (Oui/Non) et Boutons finaux */
input[type="radio"]:checked + .pill-item,
input[type="radio"]:checked + label.btn-outline-secondary {
    background-color: #F64141 !important;
    color: #fff !important;
    border-color: #F64141 !important;
    box-shadow: 0 4px 10px rgba(246, 65, 65, 0.2);
}

/* --- AJUSTEMENTS INPUTS DYNAMIQUES --- */
.input_title {
    font-weight: 700;
    color: #1C103B;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form_item input {
    border-radius: 10px;
    border: 2px solid #EBE5F7;
    padding: 12px;
}

.form_item input:focus {
    border-color: #F64141;
    box-shadow: none;
}

.custom-input {
    border: 2px solid #EBE5F7 !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-input:focus {
    border-color: #F64141 !important;
    box-shadow: 0 0 0 4px rgba(246, 65, 65, 0.1) !important;
}

.custom-select {
    border: 2px solid #EBE5F7 !important;
    border-radius: 12px !important;
    height: 50px;
    cursor: pointer;
}