/* ==========================================================================
   TunisieVet — calque de douceur (soft theme)
   Adoucit le rendu global sans toucher à l'identité (bleu conservé) :
   arrondis généreux, ombres diffuses, gris bleutés, fonds pastel.
   Réversible : retirer le <link> dans layouts/front.blade.php.
   ========================================================================== */

/* --- 1. Arrondis généreux (Bootstrap 5.3 : les composants pointent sur
       ces variables à l'exécution : cartes, modales, dropdowns, alertes,
       champs de formulaire, pagination, images .rounded…) --- */
:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
    --bs-border-radius: 0.875rem;      /* 14px (base ~8px avant) */
    --bs-border-radius-sm: 0.625rem;   /* 10px */
    --bs-border-radius-lg: 1.125rem;   /* 18px */
    --bs-border-radius-xl: 1.375rem;   /* 22px */
    --bs-border-radius-xxl: 1.75rem;   /* 28px */
}

/* Boutons en pilule, comme les interfaces douces */
.btn {
    --bs-btn-border-radius: 50rem;
}

/* Exceptions : boutons dans les groupes d'input et éditeurs (alignement) */
.input-group .btn,
.ck.ck-button {
    --bs-btn-border-radius: var(--bs-border-radius);
}

/* --- 2. Ombres diffuses teintées du bleu de marque (au lieu du noir) --- */
:root,
[data-bs-theme=light] {
    --bs-box-shadow: 0 8px 24px -8px rgba(32, 62, 160, 0.14);
    --bs-box-shadow-sm: 0 4px 14px -6px rgba(32, 62, 160, 0.12);
    --bs-box-shadow-lg: 0 18px 48px -12px rgba(32, 62, 160, 0.18);
}

/* --- 3. Textes : gris bleutés désaturés au lieu des gris purs --- */
[data-bs-theme=light] {
    --bs-body-color: #2e3650;              /* noir bleuté chaud */
    --bs-body-color-rgb: 46, 54, 80;
    --bs-secondary-color: rgba(92, 106, 140, 0.95);  /* text-muted, .text-body-secondary */
    --bs-secondary-color-rgb: 92, 106, 140;
    --bs-tertiary-color: rgba(92, 106, 140, 0.6);
    --bs-tertiary-color-rgb: 92, 106, 140;
}

/* --- 4. Fonds de section : bleu très pâle au lieu du gris --- */
[data-bs-theme=light] {
    --bs-tertiary-bg: #f5f7fc;             /* .bg-body-tertiary (sections Finder) */
    --bs-tertiary-bg-rgb: 245, 247, 252;
    --bs-secondary-bg: #eef1f9;
    --bs-secondary-bg-rgb: 238, 241, 249;
    --bs-light: #f5f7fc;                   /* .bg-light */
    --bs-light-rgb: 245, 247, 252;
    --bs-border-color: #e6eaf5;            /* traits de séparation adoucis */
}

/* --- 5. Cartes : bordure quasi invisible, le relief vient de l'ombre --- */
[data-bs-theme=light] .card {
    --bs-card-border-color: rgba(32, 62, 160, 0.07);
}

/* --- 6. Badges : pastels du bleu de marque au lieu des aplats vifs --- */
[data-bs-theme=light] .badge.text-bg-secondary {
    background-color: #eef2ff !important;
    color: #3b4f9e !important;
}
[data-bs-theme=light] .badge.text-bg-info {
    background-color: #e0f4fa !important;
    color: #0b6d85 !important;
}
[data-bs-theme=light] .badge.text-bg-success {
    background-color: #e4f7ee !important;
    color: #0b7a4b !important;
}
[data-bs-theme=light] .badge.text-bg-warning {
    background-color: #fdf3dc !important;
    color: #8a6410 !important;
}
[data-bs-theme=light] .badge.text-bg-danger {
    background-color: #fdeaea !important;
    color: #a33a3a !important;
}

/* --- 7. Formulaires : focus doux (halo pâle au lieu du contour dur) --- */
[data-bs-theme=light] .form-control:focus,
[data-bs-theme=light] .form-select:focus {
    border-color: #a8b8e8;
    box-shadow: 0 0 0 0.25rem rgba(32, 62, 160, 0.09);
}
