/* ============================================================
   Jeûne intermittent — Préfixe .ft- pour éviter tout conflit avec
   EasyAdmin et les autres pages custom (.wt- poids, .tk- suivi journalier…).
   Variables --ft-* scopées sous .ft-wrap (jamais sur :root).
   ============================================================ */

.ft-wrap {
    --ft-brand:      #6366f1;
    --ft-brand-d:    #4f46e5;
    --ft-brand-2:    #8b5cf6;
    --ft-ink:        #23263a;
    --ft-mut:        #6b7080;
    --ft-line:       #e7e9ee;
    --ft-card:       #fff;

    color-scheme: light;
    font-family: 'Public Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ft-ink);
    font-size: 14px;
    box-sizing: border-box;
}
.ft-wrap *, .ft-wrap *::before, .ft-wrap *::after { box-sizing: border-box; }

.ft-inner { max-width: 640px; margin: 0 auto; }

/* ════ En-tête ════ */
.ft-head { margin-bottom: 18px; }
.ft-back {
    display: inline-flex; align-items: center; gap: 4px; color: var(--ft-mut);
    font-size: 13.5px; font-weight: 700; text-decoration: none; margin-bottom: 6px;
}
.ft-back:hover { color: var(--ft-brand-d); }
.ft-head h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.025em; }

/* ════ Activation (opt-in, désactivé par défaut) ════ */
.ft-toggle-card {
    background: var(--ft-card); border: 1px solid var(--ft-line); border-radius: 16px;
    padding: 16px 20px; margin-bottom: 18px;
}
.ft-toggle-row { display: flex; align-items: center; gap: 16px; }
.ft-toggle-txt { flex: 1; min-width: 0; }
.ft-toggle-title { margin: 0 0 3px; font-size: 14px; font-weight: 800; color: var(--ft-ink); }
.ft-toggle-sub { margin: 0; font-size: 12.5px; color: var(--ft-mut); line-height: 1.5; }

.ft-switch {
    flex: none; width: 46px; height: 26px; padding: 3px; border: 0; border-radius: 99px;
    background: #d7d9ea; cursor: pointer; display: flex; align-items: center; transition: background .15s ease;
}
.ft-switch:disabled { opacity: .6; cursor: default; }
.ft-switch-knob { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.ft-switch.is-on { background: var(--ft-brand); }
.ft-switch.is-on .ft-switch-knob { transform: translateX(20px); }

/* ════ Héros : compteur en direct ════ */
.ft-hero {
    position: relative; background: linear-gradient(150deg, var(--ft-brand-d), var(--ft-brand-2) 88%);
    border-radius: 24px; padding: 26px 24px; color: #fff; overflow: hidden; text-align: center;
    box-shadow: 0 16px 34px rgba(79, 70, 229, .28); margin-bottom: 18px; transition: background .3s ease;
}
.ft-hero.is-concluded-success { background: linear-gradient(150deg, #15803d, #22c55e 88%); box-shadow: 0 16px 34px rgba(21, 128, 61, .28); }
.ft-hero.is-concluded-missed { background: linear-gradient(150deg, #b45309, #d97706 88%); box-shadow: 0 16px 34px rgba(180, 83, 9, .28); }
.ft-hero.is-waiting { background: linear-gradient(150deg, #475569, #64748b 88%); box-shadow: 0 16px 34px rgba(71, 85, 105, .28); }
.ft-hero-glow { position: absolute; top: -60px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.ft-hero-label { position: relative; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.ft-hero-timer { position: relative; display: block; font-size: 42px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ft-hero-sub { position: relative; margin: 6px 0 16px; font-size: 13.5px; font-weight: 700; opacity: .9; }

.ft-progress { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.ft-progress[hidden] { display: none; }
.ft-progress-fill { height: 100%; width: 0; border-radius: 99px; background: #fff; transition: width .4s ease; }

/* ════ Objectif ════ */
.ft-goal-card {
    background: var(--ft-card); border: 1px solid var(--ft-line); border-radius: 16px;
    padding: 18px 20px; margin-bottom: 18px;
}
.ft-goal-label { display: block; font-size: 13px; font-weight: 700; color: var(--ft-mut); margin-bottom: 10px; }
.ft-goal-tabs { display: inline-flex; background: #f5f5fa; border-radius: 999px; padding: 3px; gap: 2px; }
.ft-goal-tab {
    border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--ft-mut);
    padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.ft-goal-tab.is-active { background: #fff; color: var(--ft-brand-d); box-shadow: 0 1px 4px rgba(40, 40, 90, .12); }
.ft-goal-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--ft-mut); line-height: 1.5; }

/* ════ Début de la fenêtre de repas ════ */
.ft-window-select {
    font: inherit; font-size: 13.5px; font-weight: 800; color: var(--ft-brand-d);
    background: #f5f5fa; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}

/* ════ Autorisé pendant le jeûne ════ */
.ft-info-card {
    background: var(--ft-card); border: 1px solid var(--ft-line); border-radius: 16px;
    padding: 18px 20px; margin-bottom: 18px;
}
.ft-info-card h2 {
    display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 14.5px; font-weight: 800; color: var(--ft-ink);
}
.ft-info-card ul { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ft-mut); line-height: 1.9; }

/* ════ Avertissement ════ */
.ft-disclaimer {
    display: flex; align-items: flex-start; gap: 10px; background: #f5f5fa; border-radius: 14px;
    padding: 14px 16px; color: var(--ft-mut);
}
.ft-disclaimer svg { flex: none; margin-top: 2px; }
.ft-disclaimer p { margin: 0; font-size: 12.5px; line-height: 1.6; }
