:root {
    --bs-primary: #0d9488;
    --bs-primary-rgb: 13, 148, 136;
    --bs-secondary: #0284c7;
    --bs-secondary-rgb: 2, 132, 199;
    --bs-dark: #0f172a;
    --bs-light-bg: #f8fafc;

    /* Palette santé & médicale étendue */
    --primary-teal: #0f766e;
    --primary-teal-light: #14b8a6;
    --primary-teal-subtle: #f0fdfa;
    --medical-blue: #0284c7;
    --medical-blue-subtle: #f0f9ff;
    --dark-navy: #0f172a;
    --light-surface: #f8fafc;
}

/* ==========================================================================
   Typographie & Base
   ========================================================================== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bs-light-bg);
    color: #334155;
    line-height: 1.65;
}

/* ==========================================================================
   En-têtes (Hero) & Effets Visuels
   ========================================================================== */
.hero-banner {
    background: linear-gradient(135deg, #042f2e 0%, #0f172a 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem 0;
    border-bottom: 3px solid #0d9488;
}

.hero-gradient {
    background: linear-gradient(135deg, #093b37 0%, #0f4c47 50%, #0c334d 100%);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.text-teal-accent {
    color: var(--primary-teal-light);
}

/* ==========================================================================
   Cartes & Élévations
   ========================================================================== */
.card-custom {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-modern {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
    border-color: rgba(20, 184, 166, 0.35);
}

/* ==========================================================================
   Badges IG (Index Glycémique)
   ========================================================================== */
.badge-ig-low {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-ig-med {
    background-color: #fef9c3;
    color: #a16207;
    border: 1px solid #fde047;
}

.badge-ig-high {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ==========================================================================
   Badge Profil & Photo
   ========================================================================== */
.profile-img-wrapper {
    position: relative;
    display: inline-block;
}

.custom-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background-color: #0077b6;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 14px;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 180px;
}

.custom-badge i {
    font-size: 1.35rem;
    margin-bottom: 5px;
    display: inline-block;
}

/* Icône personnalisée */
.icone-bleue {
    color: #1e88e5 !important;
}

/* ==========================================================================
   Cohérence Cardiaque / Bulle Respiratoire
   ========================================================================== */
.breath-bubble {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #2dd4bf 0%, #0d9488 100%);
    box-shadow: 0 0 25px rgba(13, 148, 136, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    transition: transform 5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.breath-bubble.expand,
.breath-bubble.breath-inhale {
    transform: scale(1.4);
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.6);
}

.breath-bubble.breath-exhale {
    transform: scale(0.9);
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.3);
}

/* ==========================================================================
   Étapes & Timeline
   ========================================================================== */
.step-circle {
    width: 42px;
    height: 42px;
    background-color: #e0f2fe;
    color: #0369a1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.timeline-step {
    position: relative;
}

.timeline-step::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #cbd5e1;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .timeline-step::after {
        display: none;
    }
}

/* ==========================================================================
   Tableaux & Navigation
   ========================================================================== */
.table-custom th {
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
}

.nav-link.active {
    color: var(--primary-teal) !important;
    font-weight: 600;
}