/* Reset de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Typo */
body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937; /* text-gray-800 */
    background-color: #f9fafb; /* bg-gray-100 */
    min-height: 100vh;
}

/* Liens */
a {
    color: #2563eb;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Boutons g�n�riques */
button {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
    }

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    outline: none;
}

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    }

/* Form validation */
.text-red-600 {
    color: #dc2626;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Aide contextuelle
   ======================================== */

.aide-contextuelle .card {
    transition: all 0.3s ease;
}

.aide-contextuelle .card-body {
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.aide-contextuelle.collapsed .card-body {
    display: none;
}

.aide-contextuelle.collapsed .aide-toggle i {
    transform: rotate(180deg);
}

.aide-toggle i {
    transition: transform 0.3s ease;
}

.aide-conseils {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 0 0.375rem 0.375rem 0;
}

.aide-conseils ul {
    margin-bottom: 0;
}

.aide-conseils li {
    color: #78350f;
}

.aide-liens a {
    font-size: 0.85rem;
}

.aide-rappel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
