/* Thème Famille : bande dessinée, ligne claire.
   Contours encre, ombres franches, trame de points. Variantes : anniversaire (rouge et jaune), Noël (rouge et vert). */
:root[data-theme="famille"] {
  --bg: #F1F6FB;
  --surface: #FFFFFF;
  --fg: #14213D;
  --muted: #44536C;
  --line: #C8D5E6;
  --field-line: #14213D;
  --accent: #D32F24;
  --accent-fg: #FFFFFF;
  --accent-soft: #FFE08A;
  --ink: #14213D;
  --dots: rgba(211, 47, 36, 0.16);

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --display-weight: 800;
  --display-track: 0;
  --h1-size: clamp(32px, 7vw, 52px);

  --radius: 16px;
  --radius-btn: 999px;
  --img-radius: 22px;
  --bw: 2.5px;
  --bc: var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --btn-w: 2.5px;
  --btn-line: var(--ink);
  --btn-main-line: var(--ink);
  --btn-shadow: 4px 4px 0 var(--ink);
  --ico-shadow: 2px 2px 0 var(--ink);
  --room: 10px;
  --section-line: transparent;
  color-scheme: light;
}

:root[data-theme="famille"][data-variant="noel"] {
  --bg: #FBF6F0;
  --fg: #1D2B22;
  --muted: #485A4E;
  --line: #D9E0D3;
  --field-line: #1D2B22;
  --accent: #B3202A;
  --accent-soft: #D4EAD9;
  --ink: #1D2B22;
  --dots: rgba(30, 91, 58, 0.16);
}

:root[data-theme="famille"] .star { color: var(--accent-soft); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
:root[data-theme="famille"] .hero {
  margin-top: 4px;
  padding: 16px 16px 20px;
  border-radius: var(--radius);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.8px, transparent 2px);
  background-size: 16px 16px;
}
:root[data-theme="famille"] .hero-img { border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); margin-bottom: 22px; }
:root[data-theme="famille"] .eq { border-width: 2px; }
:root[data-theme="famille"] .qbtn { border: 2px solid var(--ink); }
:root[data-theme="famille"] .pill { border-width: 2px; }
:root[data-theme="famille"] .pill[aria-pressed="true"] { border-color: var(--ink); }
:root[data-theme="famille"] .btn,
:root[data-theme="famille"] .dbtn,
:root[data-theme="famille"] .btn-ico { transition: transform 0.1s ease, box-shadow 0.1s ease; }
:root[data-theme="famille"] .btn:hover,
:root[data-theme="famille"] .dbtn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
:root[data-theme="famille"] .btn:active,
:root[data-theme="famille"] .dbtn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="famille"] .btn,
  :root[data-theme="famille"] .dbtn,
  :root[data-theme="famille"] .btn-ico { transition: none; }
}

/* Couleurs du calendrier de disponibilités */
:root[data-theme="famille"] { --cal-libre: #A9DDB0; --cal-pris: #FF9C94; --cal-proche: #FFD35C; --cal-ink: #14213D; }

:root[data-theme="famille"] .btn-ico,
:root[data-theme="famille"] .pastille,
:root[data-theme="famille"] .tuile { transition: transform 0.1s ease, box-shadow 0.1s ease; }
:root[data-theme="famille"] .btn-ico:hover,
:root[data-theme="famille"] .pastille:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
:root[data-theme="famille"] .tuile:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="famille"] .btn-ico, :root[data-theme="famille"] .pastille, :root[data-theme="famille"] .tuile { transition: none; }
}
