/* ============================================================
   Mon profil — Préfixe .pf- pour éviter tout conflit avec
   EasyAdmin et les autres pages custom
   ============================================================ */

.pf-wrap {
    --pf-accent:      #16a34a;
    --pf-accent-d:    #15803d;
    --pf-accent-soft: #eafbea;
    --pf-accent-tint: rgba(22, 163, 74, .1);
    --pf-ink:         #1f2430;
    --pf-mut:         #646c7a;
    --pf-line:        #e7e9ee;
    --pf-line-soft:   #eef0f4;
    --pf-card:        #fff;

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

.pf-head { margin-bottom: 18px; }
.pf-head h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.pf-head p { margin: 5px 0 0; color: var(--pf-mut); font-size: 13.5px; }

.pf-target {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    background: var(--pf-accent-soft); border: 1px solid var(--pf-accent-tint);
    border-radius: 10px; padding: 14px 18px; margin-bottom: 18px;
}
.pf-target__kcal { font-size: 28px; font-weight: 800; color: var(--pf-accent-d); }
.pf-target__label { font-size: 12.5px; color: var(--pf-mut); line-height: 1.3; }
.pf-target--empty { color: var(--pf-mut); font-size: 13.5px; background: var(--pf-line-soft); border-color: var(--pf-line); }
.pf-target--hydro { background: #eff6ff; border-color: rgba(59, 130, 246, .18); }
.pf-target--hydro .pf-target__kcal { color: #1d4ed8; }
.pf-target--hydro.pf-target--empty { background: var(--pf-line-soft); border-color: var(--pf-line); }
.pf-target--hydro.pf-target--empty .pf-target__kcal { color: var(--pf-mut); }
.pf-target--hydro { justify-content: space-between; align-items: center; width: 100%; }
.pf-target__main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pf-target__toggle { display: flex; align-items: center; gap: 10px; flex: none; }
.pf-target__toggle-label { font-size: 12px; font-weight: 600; color: var(--pf-mut); max-width: 120px; text-align: right; line-height: 1.3; }

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

.pf-card {
    position: relative;
    display: flex; flex-direction: column; gap: 18px;
    background: var(--pf-card); border: 1px solid var(--pf-line);
    border-radius: 12px; padding: 20px;
}

.pf-save-status {
    position: absolute; top: 20px; right: 20px; margin: 0;
    font-size: 12px; font-weight: 700; color: transparent; transition: color .15s ease;
}
.pf-save-status--saving { color: var(--pf-mut); }
.pf-save-status--saved { color: var(--pf-accent-d); }
.pf-save-status--error { color: #dc2626; }

.pf-field { display: flex; flex-direction: column; gap: 8px; }
.pf-field > label { font-size: 12px; font-weight: 700; color: var(--pf-mut); text-transform: uppercase; letter-spacing: .03em; }

.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.pf-input, .pf-select {
    height: 40px; padding: 0 12px; border: 1px solid var(--pf-line); border-radius: 8px;
    font-size: 14px; font-family: inherit; color: var(--pf-ink); background: #fff;
}
.pf-input:focus, .pf-select:focus { outline: none; border-color: var(--pf-accent); box-shadow: 0 0 0 3px var(--pf-accent-tint); }

.pf-radios { display: flex; gap: 14px; }
.pf-radio { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }

.pf-hint { margin: -4px 0 0; font-size: 12px; color: var(--pf-mut); font-weight: 400; text-transform: none; letter-spacing: normal; }

.pf-rhythms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-rhythm {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; cursor: pointer;
    border: 1px solid var(--pf-line); border-radius: 10px; transition: border-color .12s, background .12s;
}
.pf-rhythm:has(input:checked), .pf-rhythm--selected { border-color: var(--pf-accent); background: var(--pf-accent-soft); }
.pf-rhythm input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pf-rhythm__label { font-weight: 700; font-size: 13.5px; }
.pf-rhythm__desc { font-size: 12px; color: var(--pf-mut); line-height: 1.35; }
.pf-rhythm__kcal { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 800; color: var(--pf-accent-d); }

.pf-rhythm__custom-input {
    margin-top: auto;
    width: 100%; height: 34px; padding: 0 10px;
    border: 1px solid var(--pf-line); border-radius: 6px;
    font-size: 14px; font-weight: 700; font-family: inherit; color: var(--pf-ink); background: #fff;
}
.pf-rhythm__custom-input:focus { outline: none; border-color: var(--pf-accent); box-shadow: 0 0 0 3px var(--pf-accent-tint); }

@media (max-width: 640px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-rhythms { grid-template-columns: 1fr; }
}
