/* ============================================
   RECHERCHE JEUNES - STYLES GÉNÉRAUX
   ============================================ */

.rj-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   BANDEAU URGENCE
   ============================================ */

.rj-urgence {
    background: #1062AC;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 98, 172, 0.2);
}

.rj-urgence-label {
    font-size: 0.7em;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    letter-spacing: 1px;
}

/* ============================================
   SECTIONS
   ============================================ */

.rj-section {
    background: white;
    border: 2px solid #A1DEF4;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(161, 222, 244, 0.3);
}

.rj-section-title {
    background: #1062AC;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
    border: none;
}

.rj-section-content {
    padding: 20px;
}

.rj-empty-section {
    padding: 20px;
    color: #999;
    font-style: italic;
    text-align: center;
}

/* ============================================
   NOUVELLES LIGNES (label léger + value gras)
   ============================================ */

.rj-ligne {
    padding: 10px 0;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.rj-ligne:last-child {
    border-bottom: none;
}

.rj-label {
    font-weight: 400;
    font-size: 0.95em;
    color: #666;
}

.rj-value {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

/* ============================================
   CHAMPS - AFFICHAGE STANDARD (pour sections non personnalisées)
   ============================================ */

.rj-field {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rj-field:last-child {
    border-bottom: none;
}

.rj-field-label {
    font-weight: 400;
    font-size: 0.9em;
    color: #666;
}

.rj-field-value {
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

/* ============================================
   BLOC PARCOURS ASE (dans juridique)
   ============================================ */

.rj-parcours-ase {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #1062AC;
}

.rj-parcours-ase-title {
    font-weight: 600;
    color: #1062AC;
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* ============================================
   SCOLARITÉ - BLOCS PAR ANNÉE
   ============================================ */

.rj-annee-scolaire {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #1062AC;
}

.rj-annee-titre {
    font-weight: 600;
    color: #1062AC;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.rj-annee-details {
    margin-bottom: 5px;
}

.rj-annee-details strong {
    color: #555;
}

/* ============================================
   BOUTONS - NOUVEAU SYSTÈME
   ============================================ */

.rj-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.rj-back,
input[type="submit"].rj-back {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    background: #1062AC;
    color: white;
    cursor: pointer;
    font-size: 1em;
    font-family: inherit;
}

.rj-back:hover,
input[type="submit"].rj-back:hover {
    background: #0d4d8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 98, 172, 0.3);
}

/* ============================================
   NAVIGATION (ancien système, conservé pour compatibilité)
   ============================================ */

.rj-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.rj-toggle {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid #1062AC;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    background: white;
    color: #1062AC;
}

.rj-toggle:hover {
    background: #1062AC;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   MESSAGE ACCÈS REFUSÉ
   ============================================ */

.rj-no-access {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.rj-no-access p {
    margin: 0;
    color: #856404;
}

.rj-no-access a {
    color: #1062AC;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */

@media (max-width: 767px) {
    .rj-urgence {
        font-size: 1em;
        padding: 12px;
    }

    .rj-section-title {
        font-size: 1em;
        padding: 12px 15px;
    }

    .rj-section-content {
        padding: 15px;
    }
    
    .rj-label {
        font-size: 0.9em;
    }
    
    .rj-value {
        font-size: 0.95em;
    }
    
    .rj-buttons,
    .rj-navigation {
        flex-direction: column;
    }
    
    .rj-back,
    .rj-toggle,
    input[type="submit"].rj-back {
        width: 100%;
        text-align: center;
    }
}