/* Composants propres à Anniversaires (le reste vient de kit/kit.css). Tokens uniquement. */

/* Habillage du kit : action d'en-tête pleine terracotta, titres longs, retour, segmenté terracotta */
.kit-act { background: var(--kit-accent); color: var(--kit-accent-fg); }
.kit-title { display: flex; align-items: center; gap: var(--kit-space-1); min-width: 0; }
.kit-title.is-long { font-size: 23px; white-space: nowrap; }
.an-back { width: 40px; height: var(--kit-tap); display: grid; place-items: center; margin-left: -10px; color: var(--kit-accent-strong); flex: none; }
.kit-seg-opt[aria-checked="true"] { background: var(--kit-accent); color: var(--kit-accent-fg); }
.kit-rows { background: var(--kit-surface); border: 0; box-shadow: 0 1px 0 var(--kit-line); }
.kit-row { border-top: var(--an-dashed); }
.kit-row:first-child { border-top: 0; }
.kit-settings .kit-group-title { font-family: var(--kit-font-display); font-size: 18px; font-weight: 600; color: var(--kit-fg); margin: 8px 6px 6px; }
.an-sec { font-family: var(--kit-font-display); font-size: 20px; font-weight: 600; margin: 6px var(--kit-space-1) 0; display: flex; align-items: baseline; justify-content: space-between; gap: var(--kit-space-3); }
.an-sec small { font-family: var(--kit-font-body); font-size: var(--kit-text-sm); font-weight: 500; color: var(--kit-muted); }
.an-hint { font-family: var(--kit-font-display); font-style: italic; font-size: 18px; color: var(--kit-muted); margin: 0 6px 6px; }

/* Avatars à initiales colorées */
.an-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-family: var(--kit-font-display); font-weight: 600; font-size: 20px; background: var(--an-av-0); }
.an-av.c1 { background: var(--an-av-1); }
.an-av.c2 { background: var(--an-av-2); }
.an-av.c3 { background: var(--an-av-3); }
.an-av.c4 { background: var(--an-av-4); }
.an-av.is-sm { width: 40px; height: 40px; font-size: 16px; }
.an-av.is-lg { width: 84px; height: 84px; font-size: 34px; }

/* Prochains : bloc terracotta + liste en pointillés */
.an-hero { position: relative; overflow: hidden; min-height: 250px; border-radius: 32px; padding: 20px 20px 18px; background: var(--an-hero-bg); color: var(--an-hero-fg); display: block; }
.an-hero-when { font-size: var(--kit-text-sm); font-weight: 600; max-width: 62%; }
.an-hero h2 { font-family: var(--kit-font-display); font-size: 40px; font-weight: 600; line-height: 1.02; letter-spacing: -.02em; margin: 6px 0 4px; max-width: 70%; overflow-wrap: anywhere; }
.an-hero h2.is-long { font-size: 32px; max-width: 74%; }
.an-hero-sub { font-family: var(--kit-font-display); font-style: italic; font-size: 18px; max-width: 170px; }
.an-hero-ph { position: absolute; right: -6px; top: -6px; width: 104px; height: 96px; border-radius: 0 0 0 64px; overflow: hidden; background: var(--an-rose); }
.an-hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.an-cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 24px; background: var(--an-cta-bg); color: var(--an-cta-fg); font-weight: 700; font-size: 16px; }
.an-cta b { background: var(--an-rose); color: var(--an-cta-fg); border-radius: 12px; padding: 2px 9px; font-size: 15px; }
:root[data-theme="dark"] .an-cta b { color: var(--an-profile-fg); }
.an-list { background: var(--kit-surface); border-radius: var(--kit-radius); padding: 4px 14px; box-shadow: 0 1px 0 var(--kit-line); }
.an-row { display: flex; align-items: center; gap: 14px; min-height: 76px; width: 100%; text-align: left; }
.an-row + .an-row { border-top: var(--an-dashed); }
.an-row.is-sm { min-height: 56px; }
.an-row-t { flex: 1; min-width: 0; }
.an-row-n { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.an-row-d { font-size: var(--kit-text-sm); color: var(--kit-muted); }
.an-row-j { text-align: right; font-size: var(--kit-text-sm); font-weight: 600; color: var(--kit-accent-strong); flex: none; }
.an-row-j small { display: block; font-weight: 500; color: var(--kit-muted); font-size: 14px; }

/* Fiche d'un proche */
.an-profile { background: var(--an-rose); color: var(--an-profile-fg); border-radius: 32px; padding: 18px 18px 16px; display: flex; gap: 16px; align-items: center; }
.an-profile h2 { font-family: var(--kit-font-display); font-size: 30px; font-weight: 600; line-height: 1.05; overflow-wrap: anywhere; }
.an-profile p { font-size: 16px; margin-top: 4px; }
.an-chip { display: inline-block; background: var(--kit-accent); color: var(--kit-accent-fg); border-radius: 14px; padding: 3px 12px; font-weight: 600; font-size: 15px; margin-top: 8px; }
.an-note { font-family: var(--kit-font-display); font-style: italic; font-size: 17px; color: var(--kit-muted); margin: 0 6px; overflow-wrap: anywhere; }
.an-idea { background: var(--kit-surface); border-radius: 22px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; }
.an-idea-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.an-idea-t b { font-size: 16.5px; overflow-wrap: anywhere; }
.an-idea-p { font-size: var(--kit-text-sm); color: var(--kit-muted); }
.an-idea-n { font-family: var(--kit-font-display); font-style: italic; font-size: 15px; color: var(--kit-fg); overflow-wrap: anywhere; }
.an-idea-link { font-size: var(--kit-text-sm); font-weight: 700; color: var(--kit-accent-strong); text-decoration: underline; min-height: 32px; display: inline-flex; align-items: center; align-self: flex-start; }
.an-st { font-size: 14px; font-weight: 700; border-radius: 14px; padding: 4px 11px; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
.an-st.idee { background: var(--an-ocre-bg); color: var(--an-ocre-fg); }
.an-st.achete { background: var(--an-rose); color: var(--kit-accent-strong); }
.an-st.offert { background: var(--an-sage-bg); color: var(--an-sage-fg); }
.an-st .kit-ic { width: 14px; height: 14px; stroke-width: 2.4; }
.an-hist { display: flex; gap: 12px; align-items: center; padding: 8px 6px; min-height: 56px; width: 100%; text-align: left; }
.an-hist + .an-hist { border-top: var(--an-dashed); }
.an-hist-y { font-family: var(--kit-font-display); font-weight: 600; font-size: 20px; color: var(--kit-accent-strong); width: 54px; flex: none; }
.an-hist-t { min-width: 0; overflow-wrap: anywhere; }
.an-hist-t span { display: block; color: var(--kit-muted); font-size: var(--kit-text-sm); }
.an-actions { display: flex; gap: 10px; }
.an-actions .kit-btn { flex: 1; padding: 0 var(--kit-space-3); }

/* Formulaires */
.an-form { display: flex; flex-direction: column; gap: 12px; }
.an-f { display: block; }
.an-f > label { display: block; font-weight: 600; font-size: var(--kit-text-sm); margin: 0 0 5px 6px; }
.an-f > label i { font-style: normal; font-weight: 500; color: var(--kit-muted); }
.an-f input, .an-f textarea, .an-f select { width: 100%; min-height: 52px; border-radius: var(--kit-radius-sm); border: 2px solid var(--kit-line); background: var(--kit-surface); padding: 0 16px; font: 500 16px var(--kit-font-body); color: var(--kit-fg); }
.an-f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--kit-muted) 50%), linear-gradient(135deg, var(--kit-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.an-f textarea { height: 84px; padding: 12px 16px; resize: none; line-height: 1.35; }
.an-f input:focus, .an-f textarea:focus, .an-f select:focus { outline: 3px solid var(--kit-accent); outline-offset: 1px; border-color: var(--kit-accent); }
.an-f.has-error input, .an-f.has-error select, .an-f.has-error textarea { border-color: var(--kit-danger); }
.an-err { color: var(--kit-danger); font-size: var(--kit-text-sm); font-weight: 600; margin: 4px 6px 0; }
.an-err:empty { display: none; }
.an-row3 { display: flex; gap: 10px; }
.an-row3 > .an-f:nth-child(1) { flex: 0.8; }
.an-row3 > .an-f:nth-child(2) { flex: 1.6; }
.an-row3 > .an-f:nth-child(3) { flex: 1.1; }
.an-split { display: flex; gap: 10px; }
.an-split > .an-f { flex: 1; }
.an-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.an-chipbtn { min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--kit-accent-soft); color: var(--kit-accent-strong); font-weight: 600; font-size: var(--kit-text-sm); }
.an-chipbtn[aria-pressed="true"] { background: var(--kit-accent); color: var(--kit-accent-fg); }
.an-danger { color: var(--kit-danger); }

/* Calendrier */
.an-month { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 0; }
.an-month b { font-family: var(--kit-font-display); font-size: 22px; font-weight: 600; text-align: center; }
.an-month a { width: var(--kit-tap); height: var(--kit-tap); display: grid; place-items: center; color: var(--kit-accent-strong); }
.an-month a .kit-ic { width: 26px; height: 26px; }
.an-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; background: var(--kit-surface); border-radius: var(--kit-radius); padding: 12px 8px; }
.an-grid-w { text-align: center; font-size: 14px; font-weight: 600; color: var(--kit-muted); padding-bottom: 4px; }
.an-d { height: 44px; display: grid; place-items: center; font-size: 16px; position: relative; }
.an-d.is-b { font-weight: 700; }
.an-d.is-b::before { content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%; background: var(--an-rose); }
.an-d.is-b span { position: relative; color: var(--kit-accent-strong); }
.an-d.is-b::after { content: ""; position: absolute; bottom: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--kit-accent); }
.an-d.is-today:not(.is-b)::before { content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--kit-accent); }
.an-d.is-today span { position: relative; }

/* Offerts */
.an-year small { font-family: var(--kit-font-body); font-weight: 600; font-size: var(--kit-text-sm); color: var(--kit-muted); }

/* Écran vide */
.an-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--kit-space-3); padding: 12px var(--kit-space-4) 0; color: var(--kit-muted); }
.an-empty img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; }
.an-empty h2 { font-family: var(--kit-font-display); font-size: 24px; font-weight: 600; color: var(--kit-fg); }
.an-empty .kit-btn { margin-top: var(--kit-space-2); }

/* Carte d'idée : zone de modification + lien + pastille d'état */
.an-idea-edit { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; min-height: 44px; justify-content: center; }
