/**
 * home.css - Styles de la page d'accueil NutriCartes v1.2.0
 */

/* ============================================
   BANDEAU PWA ANIMÉ
   ============================================ */
.pwa-banner {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pwa-banner-icon img {
    border-radius: 12px;
}

.pwa-banner-text h3 {
    margin: 0 0 4px 0;
}

.pwa-banner-text p {
    margin: 0;
}

.pwa-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e30b5d 0%, #be123c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(190, 18, 60, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pwa-install-btn:active {
    transform: scale(0.97);
}

.pwa-install-btn .material-symbols-outlined {
    font-size: 20px;
}

.pwa-dismiss-btn {
    padding: 12px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.pwa-dismiss-btn:hover {
    background: #e5e7eb;
}

.pwa-decline-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: underline;
    cursor: pointer;
}

/* ============================================
   COHÉRENCE CARDIAQUE MINI (Accueil)
   ============================================ */
.coherence-mini-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.coherence-mini-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.coherence-mini-header h3 {
    font-size: 18px;
    color: #166534;
    margin: 0;
    font-weight: 700;
}

.mini-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 16px;
}

#mini-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    animation: breathe-mini 10s ease-in-out infinite;
}

@keyframes breathe-mini {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.coherence-mini-text {
    font-size: 13px;
    color: #166534;
    margin-bottom: 12px;
}

.coherence-mini-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.coherence-mini-btn:active {
    transform: scale(0.95);
}

/* ============================================
   CONSEIL DU JOUR
   ============================================ */
.tip-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tip-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tip-card-header h3 {
    font-size: 16px;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-see-all {
    font-size: 13px;
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
}

.daily-tip-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
}

.tip-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px 0;
}

.tip-text {
    font-size: 14px;
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}

/* Modal tous les conseils */
.tips-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.tips-modal-content {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
}

.tips-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tips-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.tips-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.tip-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f9fafb;
    transition: background 0.2s;
}

.tip-item:hover {
    background: #f3f4f6;
}

.tip-item.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.tip-item-icon {
    font-size: 24px;
}

.tip-item-content strong {
    display: block;
    margin-bottom: 4px;
    color: #374151;
}

.tip-item-content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* ============================================
   FIL D'ACTUALITÉS
   ============================================ */
.news-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.news-section-header h3 {
    font-size: 16px;
    color: #374151;
    margin: 0;
}

.news-card {
    display: block;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border-left: 3px solid #3b82f6;
}

.news-card:active {
    transform: scale(0.98);
}

.news-date {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-link {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

.news-error {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
}

.news-error .material-symbols-outlined {
    font-size: 48px;
    margin-bottom: 12px;
}

.news-error p {
    margin: 0 0 16px 0;
}

.news-external-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

/* ============================================
   PAGE COHÉRENCE CARDIAQUE PLEIN ÉCRAN
   ============================================ */
.coherence-page {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #d1fae5 100%);
    z-index: 100;
    overflow-y: auto;
    padding: 20px;
}

.coherence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.coherence-header h1 {
    font-size: 24px;
    color: #166534;
    margin: 0;
}

.coherence-subtitle {
    font-size: 14px;
    color: #22c55e;
}

.coherence-header-btns {
    display: flex;
    gap: 8px;
}

.coherence-icon-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Settings panel */
.coherence-settings {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.coherence-settings h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #374151;
}

.setting-group {
    margin-bottom: 16px;
}

.setting-group label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.setting-group input[type="range"] {
    width: 100%;
    accent-color: #22c55e;
}

.coherence-rate {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.coherence-apply-btn {
    width: 100%;
    padding: 12px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Breathing zone */
.breathing-zone {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 350px;
    justify-content: center;
}

#coherence-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.4);
    transition: all 0.1s linear;
    margin-bottom: 24px;
}

.instruction {
    text-align: center;
}

#coherence-phase {
    font-size: 28px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
}

#coherence-duration {
    font-size: 16px;
    color: #6b7280;
}

/* Stats */
.coherence-stats {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #166534;
}

.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.control-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.control-btn:active {
    transform: scale(0.95);
}

.start-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.pause-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.reset-btn {
    background: #e5e7eb;
    color: #374151;
}

/* Tip box */
.coherence-tip {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    font-size: 14px;
    color: #166534;
}

/* Animation respiration pour mini cercle */
@keyframes breathe {

    0%,
    100% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    50% {
        width: 90px;
        height: 90px;
        opacity: 1;
    }
}

/* ============================================
   DARK MODE - COHÉRENCE CARDIAQUE
   ============================================ */
.coherence-page.dark-mode {
    background: linear-gradient(135deg, #111827 0%, #064e3b 100%);
    color: #e5e7eb;
}

.coherence-page.dark-mode .coherence-header h1 {
    color: #d1fae5;
}

.coherence-page.dark-mode .coherence-subtitle {
    color: #34d399;
}

.coherence-page.dark-mode .coherence-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.coherence-page.dark-mode .breathing-zone {
    background: rgba(31, 41, 55, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.coherence-page.dark-mode .breathing-zone .instruction {
    color: #e5e7eb;
}

.coherence-page.dark-mode #coherence-phase {
    /* La couleur phase est gérée inline par JS, on laisse */
}

.coherence-page.dark-mode #coherence-duration {
    color: #9ca3af;
}

.coherence-page.dark-mode .coherence-stats,
.coherence-page.dark-mode .coherence-settings {
    background: rgba(31, 41, 55, 0.9);
    color: #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.coherence-page.dark-mode .stat-label {
    color: #9ca3af;
}

.coherence-page.dark-mode .stat-value {
    color: #d1fae5;
}

.coherence-page.dark-mode .coherence-settings h3 {
    color: #d1fae5;
}

.coherence-page.dark-mode .setting-group label {
    color: #d1d5db;
}

.coherence-page.dark-mode .coherence-rate {
    color: #9ca3af;
}

.coherence-page.dark-mode .coherence-tip {
    background: rgba(31, 41, 55, 0.6);
    color: #d1fae5;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.coherence-page.dark-mode .reset-btn {
    background: #374151;
    color: #d1d5db;
}

/* ============================================
   SNACKBAR PWA (Engagement)
   ============================================ */
.pwa-snackbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #e30b5d 0%, #be123c 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(190, 18, 60, 0.4);
    z-index: 300;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.pwa-snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-snackbar .pwa-icon {
    font-size: 20px;
}

.pwa-snackbar .pwa-snack-text {
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   TUILE SUIVI DE POIDS - PREMIUM DESIGN
   ============================================ */
.weight-tile {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef2 50%, #fff0f6 100%);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(255, 107, 129, 0.15);
    border: 2px solid rgba(255, 143, 163, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.weight-tile::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.weight-tile:active {
    transform: scale(0.98);
}

.weight-tile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.weight-tile-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.weight-tile-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8fa3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 107, 129, 0.35);
}

.weight-tile-icon .material-symbols-outlined {
    font-size: 28px;
    color: white;
}

.weight-tile-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-tile-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.weight-tile-value .weight-number {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.weight-tile-value .weight-unit {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

.weight-tile-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.weight-tile-badge.positive {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.weight-tile-badge.negative {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.weight-tile-badge.neutral {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.weight-tile-badge .material-symbols-outlined {
    font-size: 18px;
}

/* Mini Stats Row */
.weight-tile-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.weight-stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.weight-stat-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.weight-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

.weight-stat-value.bmi-green {
    color: #16a34a;
}

.weight-stat-value.bmi-blue {
    color: #2563eb;
}

.weight-stat-value.bmi-orange {
    color: #ea580c;
}

.weight-stat-value.bmi-red {
    color: #dc2626;
}

/* Mini Chart Container */
.weight-tile-chart {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 182, 193, 0.25);
    position: relative;
}

.weight-tile-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weight-tile-chart-title {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-tile-chart-period {
    font-size: 10px;
    color: #94a3b8;
}

.weight-mini-chart {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 4px 0;
}

.weight-chart-bar {
    flex: 1;
    min-height: 8px;
    background: linear-gradient(180deg, #ff6b81 0%, #ffa0ae 100%);
    border-radius: 4px 4px 2px 2px;
    position: relative;
    transition: transform 0.2s ease;
}

.weight-chart-bar:hover {
    transform: scaleY(1.05);
}

.weight-chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.weight-chart-bar:hover::after {
    opacity: 1;
}

/* Footer with action hint */
.weight-tile-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 143, 163, 0.3);
}

.weight-tile-footer span {
    font-size: 13px;
    font-weight: 600;
    color: #ff6b81;
}

.weight-tile-footer .material-symbols-outlined {
    font-size: 18px;
    color: #ff6b81;
}

/* Empty State */
.weight-tile-empty {
    text-align: center;
    padding: 8px 0;
}

.weight-tile-empty p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.weight-tile-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8fa3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.weight-tile-empty-btn:active {
    transform: scale(0.95);
}

/* Animation d'entrée */
@keyframes weight-tile-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.weight-tile {
    animation: weight-tile-appear 0.4s ease-out;
}

/* ============================================
   MODAL WEIGHT TRACKER - THÈME ROSE/CORAIL
   ============================================ */

/* Carte générique */
.wt-card {
    background: linear-gradient(145deg, #ffffff 0%, #fff9fa 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 129, 0.08);
    border: 1px solid rgba(255, 182, 193, 0.2);
}

/* Header card avec fond coloré */
.wt-header-card {
    background: linear-gradient(135deg, #fff5f7 0%, #ffeef2 100%);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255, 143, 163, 0.25);
}

/* Icône ronde colorée */
.wt-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8fa3 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.3);
}

.wt-icon-circle .material-symbols-outlined {
    font-size: 22px;
}

/* Bouton principal rose */
.wt-btn-primary {
    background: linear-gradient(135deg, #ff6b81 0%, #ff8fa3 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wt-btn-primary:active {
    transform: scale(0.97);
}

.wt-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 129, 0.45);
}

/* Poids principal */
.wt-main-weight {
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.wt-weight-unit {
    font-size: 20px;
    font-weight: 600;
    color: #94a3b8;
}

/* Badge IMC */
.wt-bmi-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.wt-bmi-badge.blue {
    background: #dbeafe;
    color: #2563eb;
}

.wt-bmi-badge.green {
    background: #dcfce7;
    color: #16a34a;
}

.wt-bmi-badge.orange {
    background: #ffedd5;
    color: #ea580c;
}

.wt-bmi-badge.red {
    background: #fee2e2;
    color: #dc2626;
}

/* Bouton settings */
.wt-settings-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 12px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.wt-settings-btn:hover {
    background: white;
    color: #ff6b81;
    border-color: #ff6b81;
}

/* Jauge IMC */
.wt-bmi-gauge {
    height: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.wt-bmi-segment {
    height: 100%;
}

.wt-bmi-segment.blue {
    width: 18.5%;
    background: linear-gradient(90deg, #93c5fd, #60a5fa);
}

.wt-bmi-segment.green {
    width: 17.5%;
    background: linear-gradient(90deg, #86efac, #4ade80);
}

.wt-bmi-segment.yellow {
    width: 12.5%;
    background: linear-gradient(90deg, #fde047, #facc15);
}

.wt-bmi-segment.red {
    flex: 1;
    background: linear-gradient(90deg, #fca5a5, #f87171);
}

.wt-bmi-cursor {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 4px;
    background: #1e293b;
    border-radius: 2px;
    box-shadow: 0 0 0 2px white;
    transform: translateX(-50%);
}

/* Stat box */
.wt-stat-box {
    background: linear-gradient(145deg, #fff9fa 0%, #fff5f7 100%);
    border: 1px solid rgba(255, 182, 193, 0.25);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
}

.wt-trend-positive {
    color: #16a34a;
}

.wt-trend-negative {
    color: #dc2626;
}

.wt-trend-neutral {
    color: #64748b;
}

/* Conteneur graphique */
.wt-chart-container {
    height: 200px;
    position: relative;
}

/* État vide graphique */
.wt-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, #fff9fa 0%, #ffeef2 100%);
    border-radius: 16px;
    border: 2px dashed rgba(255, 143, 163, 0.3);
}

.wt-chart-empty p {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

/* État vide général */
.wt-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.wt-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

/* Formulaire pesée - section poids */
.wt-weight-input-section {
    background: linear-gradient(145deg, #fff9fa 0%, #ffeef2 100%);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 182, 193, 0.25);
}

.wt-weight-box {
    flex: 1;
    text-align: center;
}

.wt-weight-field {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 16px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wt-weight-field:focus {
    outline: none;
    border-color: #ff6b81;
    box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.15);
}

.wt-total-display {
    text-align: center;
    margin-top: 16px;
    font-size: 24px;
    font-weight: 800;
    color: #ff6b81;
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 129, 0.2);
}

/* Wheel Picker Styles */
.wt-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 180px;
    margin: 10px 0;
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.wt-wheel-wrapper {
    position: relative;
    flex: 1;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wt-picker-wheel {
    height: 150px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    width: 100%;
    scrollbar-width: none;
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    padding: 50px 0; /* Padding to allow first/last items to be centered */
}

.wt-picker-wheel::-webkit-scrollbar {
    display: none;
}

.wt-picker-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #cbd5e1;
    scroll-snap-align: center;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.wt-picker-item.active {
    font-size: 30px;
    font-weight: 800;
    color: #ff6b81;
}

.wt-picker-indicator {
    position: absolute;
    top: 50px;
    height: 50px;
    left: 10px;
    right: 10px;
    border-top: 2px solid rgba(255, 107, 129, 0.2);
    border-bottom: 2px solid rgba(255, 107, 129, 0.2);
    pointer-events: none;
    background: rgba(255, 107, 129, 0.03);
    border-radius: 10px;
    z-index: 10;
}

.wt-picker-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Illustration état vide */
.wt-empty-illustration {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.wt-empty-illustration svg {
    width: 100%;
    height: 100%;
}

/* Masquer l'icône calendrier du focus tab pour le champ date */
.wt-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Sur mobile, arrondir les valeurs grammes */
@media (max-width: 640px) {
    .wt-weight-field[type="number"] {
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }

    .wt-weight-field[type="number"]::-webkit-inner-spin-button,
    .wt-weight-field[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: inner-spin-button;
        opacity: 1;
        height: 100%;
    }
}