/* ============================================
   SUPTECH THEME CSS - SIMULATEUR D'ORIENTATION
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
    --suptech-blue: #003366;
    --suptech-light-blue: #1a4a8b;
    --suptech-orange: #FF6600;
    --suptech-light-orange: #ff944d;
    --suptech-gray: #f8f9fa;
    --suptech-dark: #343a40;
    --suptech-border: #dee2e6;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
}

/* ---------- GÉNÉRAL ---------- */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container, .container-fluid {
    padding: 0 15px;
}

/* ---------- CARTES ---------- */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--suptech-blue), var(--suptech-light-blue));
    color: white;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

.card-header h1, .card-header h2, .card-header h3, .card-header h4 {
    margin: 0;
    font-weight: 600;
}

.card-header i {
    margin-right: 8px;
    color: var(--suptech-orange);
}

.card-body {
    padding: 2rem;
}

/* ---------- TITRES ---------- */
h1, h2, h3, h4, h5 {
    color: var(--suptech-blue);
}

h4 i, h3 i {
    color: var(--suptech-orange);
    margin-right: 8px;
}

/* ---------- BOUTONS ---------- */
.btn-primary {
    background: linear-gradient(135deg, var(--suptech-blue), var(--suptech-light-blue));
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--suptech-light-blue), var(--suptech-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 51, 102, 0.2);
}

.btn-secondary {
    background-color: var(--suptech-orange);
    border-color: var(--suptech-orange);
    color: white;
}

.btn-secondary:hover {
    background-color: #e65c00;
    border-color: #e65c00;
}

.btn-outline-primary {
    border: 2px solid var(--suptech-blue);
    color: var(--suptech-blue);
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--suptech-blue);
    color: white;
}

/* ---------- FORMULAIRES ---------- */
.form-label {
    font-weight: 600;
    color: var(--suptech-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-label.required::after {
    content: " *";
    color: var(--error);
    font-weight: bold;
}

.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--suptech-border);
    transition: all 0.3s;
    font-size: 1rem;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--suptech-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--error);
}

.invalid-feedback {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

.form-check-input:checked {
    background-color: var(--suptech-blue);
    border-color: var(--suptech-blue);
}

.form-check-input:focus {
    border-color: var(--suptech-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25);
}

/* ---------- TABLEAUX ---------- */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: var(--suptech-blue);
    color: white;
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 102, 0, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 51, 102, 0.02);
}

/* ---------- ALERTES ---------- */
.alert {
    border-radius: 10px;
    border-left: 5px solid;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: var(--success);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--error);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--warning);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* ---------- NAVIGATION ---------- */
.navbar {
    background: linear-gradient(135deg, var(--suptech-blue), var(--suptech-light-blue));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--suptech-orange) !important;
}

.navbar-nav .nav-link.active {
    border-bottom: 3px solid var(--suptech-orange);
}

/* ---------- LOGO ---------- */
.text-center img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
    max-width: 200px;
    height: auto;
}

.text-center img:hover {
    transform: scale(1.02);
}

/* ---------- SCORE BADGES ---------- */
.badge-score {
    background: linear-gradient(135deg, var(--suptech-blue), var(--suptech-light-blue));
    color: white;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .table thead th {
        font-size: 0.8rem;
        padding: 10px;
    }

    .table tbody td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .text-center img {
        max-width: 150px;
    }
}

/* ---------- UTILITAIRES ---------- */
.text-suptech-blue {
    color: var(--suptech-blue);
}

.text-suptech-orange {
    color: var(--suptech-orange);
}

.bg-suptech-gradient {
    background: linear-gradient(135deg, var(--suptech-blue), var(--suptech-light-blue));
    color: white;
}

/* ---------- STYLES SPÉCIFIQUES AU SIMULATEUR ---------- */
.field-group {
    background: white;
    border: 1px solid var(--suptech-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.field-group:hover {
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
}

.subsection-title {
    color: var(--suptech-blue);
    border-bottom: 3px solid var(--suptech-orange);
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.subsection-title i {
    color: var(--suptech-orange);
    margin-right: 10px;
    font-size: 1.2em;
}
/* -------------------------------------------
   Animation progressive des lignes du tableau
------------------------------------------- */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.table tbody tr {
    opacity: 0; /* caché au départ */
    animation: fadeSlideUp 0.6s forwards;
}