/* ==========================================================================
   Ma Nounou Aude — style de la vitrine publique et de l'espace parents
   Design « autocollant » : contours épais, ombres franches, couleurs vives.
   ========================================================================== */

:root {
  --ink: #1F2A44;
  --ink-soft: #3C4660;
  --cream: #FFF8EC;
  --white: #FFFFFF;
  --sky: #BFE3FF;
  --blue: #2459B8;
  --blue-l: #8EC5FF;
  --blue-t: #DDEBFF;
  --red: #FF5A4E;
  --yellow: #FFD23F;
  --yellow-t: #FFF1C2;
  --green: #3CC47C;
  --green-l: #8BDDA9;
  --green-t: #DFF6E7;
  --pink: #FF7EB6;
  --pink-t: #FFD6E8;
  --orange: #FF9F1C;
  --peach: #FFE3C8;
  --blush: #FFE4E1;
  --lilac: #E8E0FF;
  --lilac-d: #C9B8FF;
  --grey-t: #EDE6D8;
  --radius: 30px;
  --shadow: 8px 8px 0 var(--ink);
  --font-title: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 800; line-height: 1.04; margin: 0; }
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { width: min(1312px, calc(100% - 32px)); margin: 0 auto; }
.hand { font-family: var(--font-hand); font-weight: 700; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

/* Couleurs de fond utilitaires */
.bg-sky { background: var(--sky); } .bg-green { background: var(--green); } .bg-yellow { background: var(--yellow); }
.bg-pink { background: var(--pink); } .bg-rose { background: var(--pink-t); } .bg-orange { background: var(--orange); }
.bg-blue { background: var(--blue-l); } .bg-lilac { background: var(--lilac); } .bg-cream { background: var(--cream); }
.t-rose { background: var(--pink-t); } .t-sky { background: var(--blue-t); } .t-mint { background: var(--green-t); }
.t-lemon { background: var(--yellow-t); } .t-peach { background: var(--peach); } .t-blush { background: var(--blush); }
.t-lilac { background: var(--lilac); } .t-grey { background: var(--grey-t); } .t-white { background: var(--white); }

/* --------------------------------------------------------------------------
   Composants
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 999px; font: 900 17px/1 var(--font-body); text-decoration: none; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); color: var(--ink); cursor: pointer; background: var(--white); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 9px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn--yellow { background: var(--yellow); } .btn--pink { background: var(--pink); } .btn--green { background: var(--green); } .btn--blue { background: var(--blue-l); }
.btn--block { width: 100%; }

.stk { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; border: 2.5px solid var(--ink); font-weight: 900; font-size: 15px; background: var(--white); color: var(--ink); text-decoration: none; white-space: nowrap; }
.tag--sm { font-size: 13px; padding: 5px 11px; }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(2deg); } .tilt-l1 { transform: rotate(-1deg); } .tilt-r1 { transform: rotate(1deg); }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 15px; color: #6B5A36; background: repeating-linear-gradient(45deg, #FFF1D6 0 16px, #FFE7BA 16px 32px); border: 3px solid var(--ink); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { font-family: var(--font-hand); font-weight: 700; font-size: 32px; display: inline-block; transform: rotate(-2deg); }

.wave { display: block; width: 100%; height: 60px; }
.section { position: relative; padding: 80px 0; }
.section--tight { padding: 50px 0; }
.section h2.title { font-size: clamp(34px, 5vw, 58px); margin-bottom: 10px; }

/* Animations douces (coupées si l'utilisateur les refuse) */
.float { animation: floaty 4.5s ease-in-out infinite; }
.float2 { animation: floaty 5.5s ease-in-out -2s infinite; }
.spin { animation: spin 30s linear infinite; }
.drift { animation: drift 16s ease-in-out infinite; }
.wig { animation: wig 3s ease-in-out infinite; }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(60px); } }
@keyframes wig { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .float, .float2, .spin, .drift, .wig, .pulse { animation: none; } html { scroll-behavior: auto; } }

/* --------------------------------------------------------------------------
   En-tête, menu, guirlande
   -------------------------------------------------------------------------- */
.site-header { background: var(--cream); position: relative; z-index: 20; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 78px; width: auto; }
.brand__name { font-family: var(--font-title); font-weight: 800; font-size: 32px; line-height: .95; }
.brand__name .c1 { color: #1E7BE0; } .brand__name .c2 { color: #E53935; } .brand__name .c3 { color: #7B3FC4; }
.brand__sub { display: block; font-family: var(--font-hand); font-weight: 700; font-size: 19px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; padding: 9px 10px; border-radius: 999px; border: 2.5px solid transparent; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--ink); }
.nav a:hover { border-color: var(--ink); background: var(--white); }
.nav a[aria-current="page"] { border-color: var(--ink); background: var(--yellow); box-shadow: 0 3px 0 var(--ink); font-weight: 900; transform: rotate(-2deg); }
.btn-families { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 3px solid var(--ink); background: var(--pink); box-shadow: 0 5px 0 var(--ink); font-weight: 900; font-size: 15px; color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; }
.bunting { height: 30px; display: flex; justify-content: space-around; border-top: 2.5px solid var(--ink); padding: 0 8px; overflow: hidden; }
.bunting span { width: 28px; height: 24px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bunting span:nth-child(6n+1) { background: var(--red); } .bunting span:nth-child(6n+2) { background: var(--yellow); } .bunting span:nth-child(6n+3) { background: #3D8BFF; }
.bunting span:nth-child(6n+4) { background: var(--green); } .bunting span:nth-child(6n+5) { background: var(--pink); } .bunting span:nth-child(6n) { background: var(--orange); }

/* --------------------------------------------------------------------------
   Héros et décor
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 60px 0 0; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: .98; }
.hero__lead { font-size: 20px; font-weight: 700; max-width: 580px; color: #22304F; }
.hero__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; min-height: 520px; }
.hero__photo { position: absolute; left: 12%; top: 22%; width: 76%; aspect-ratio: 1; border-width: 5px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: 10px 10px 0 var(--ink); transform: rotate(3deg); }
.hero__mascot { position: absolute; left: -4%; bottom: 0; height: 60%; z-index: 2; filter: drop-shadow(6px 8px 0 rgba(31, 42, 68, .25)); }
.hero__rainbow { position: absolute; left: 6%; top: 4%; width: 88%; }
.hero--page { padding: 60px 0 90px; }
.hero__grid--aside { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 60px; }
.grid-aside { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 50px; align-items: start; }
.hero--page h1 { font-size: clamp(40px, 6vw, 88px); }
.hero--page .hero__mascot-r { position: absolute; right: 6%; top: 30px; height: 240px; }
.deco { position: absolute; pointer-events: none; }
.hills { display: block; width: 100%; height: 160px; margin-top: -10px; }
.underline { position: relative; display: inline-block; }
.underline svg { position: absolute; left: 0; bottom: -6px; width: 100%; height: 20px; }

/* --------------------------------------------------------------------------
   Cartes « places », raisons, journée
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.place-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px; text-align: center; text-decoration: none; color: var(--ink); min-height: 340px; }
.place-card__circle { position: relative; width: 130px; height: 130px; border-radius: 50%; border: 3px solid var(--ink); }
.place-card__circle img { position: absolute; left: 50%; bottom: 4px; height: 150px; transform: translateX(-50%); }
.place-card h3 { font-size: 32px; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 30px; }
.timeline__path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.timeline__step { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.timeline__step:nth-of-type(even) { padding-top: 100px; }
.timeline__bubble { position: relative; width: 120px; height: 120px; border-radius: 50%; border: 3.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); transition: transform .2s; }
.timeline__bubble:hover { transform: scale(1.08) rotate(-4deg); }
.timeline__bubble img { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); }
.timeline__time { font-family: var(--font-title); font-size: 30px; line-height: 1; }

.polaroid { position: relative; background: var(--white); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.polaroid::before { content: ""; position: absolute; left: 50%; top: -18px; width: 110px; height: 34px; margin-left: -55px; background: var(--tape, rgba(255, 126, 182, .8)); transform: rotate(-4deg); }
.polaroid .ph { height: 260px; border-width: 2px; }

.bubble { position: relative; padding: 30px; border: 3px solid var(--ink); border-radius: 34px; box-shadow: 7px 7px 0 var(--ink); }
.bubble blockquote { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 24px; line-height: 1.3; }
.bubble figcaption { margin-top: 12px; font-size: 15px; font-weight: 800; }

.cta-band { position: relative; overflow: hidden; background: var(--blue); border: 3.5px solid var(--ink); border-radius: 44px; box-shadow: 10px 10px 0 var(--ink); padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--white); transform: rotate(-1deg); }
.cta-band h2 { color: var(--white); font-size: clamp(30px, 4vw, 54px); }

/* --------------------------------------------------------------------------
   Disponibilités
   -------------------------------------------------------------------------- */
.avail { padding: 28px; overflow-x: auto; }
.avail__grid { display: grid; grid-template-columns: repeat(12, minmax(64px, 1fr)); gap: 10px; min-width: 820px; }
.avail__month { text-align: center; font-weight: 900; }
.avail__month small { display: block; font-size: 12px; color: var(--ink-soft); }
.avail__cell { height: 64px; border-radius: 18px; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; transition: transform .15s; }
.avail__cell:hover { transform: scale(1.08) rotate(-4deg); }
.avail__cell--libre { background: var(--green); } .avail__cell--partiel { background: var(--yellow); } .avail__cell--complet { background: var(--grey-t); color: #5A5347; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* --------------------------------------------------------------------------
   Projet d'accueil
   -------------------------------------------------------------------------- */
.toc { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.promise { position: relative; padding: 26px 26px 26px 150px; border: 3px solid var(--ink); border-radius: 32px; box-shadow: 7px 7px 0 var(--ink); min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.promise img { position: absolute; left: 18px; bottom: 14px; max-height: 140px; width: auto; }
.promise strong { font-family: var(--font-title); font-size: 26px; line-height: 1.15; }
.theme { padding: 30px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 20px; }
.theme header { display: flex; align-items: center; gap: 16px; }
.theme h2 { font-size: 32px; }
.theme ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-weight: 600; color: #22304F; }
.num { width: 56px; height: 56px; border-radius: 18px; border: 3px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 800; font-size: 28px; flex-shrink: 0; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.day b { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 14px; line-height: 1; }
.day b span { font-size: 28px; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 15px; font-weight: 900; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { font: 700 17px var(--font-body); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 12px 16px; background: #FFFDF7; min-height: 56px; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 18px; border: 3px solid var(--ink); background: var(--white); font-weight: 900; font-size: 15px; transition: transform .15s; }
.choice input:checked + span { background: var(--pink); box-shadow: 0 4px 0 var(--ink); }
.choice--day input:checked + span { background: var(--green); }
.choice input:focus-visible + span { outline: 4px solid var(--yellow); outline-offset: 2px; }
.error { color: #B3261E; font-weight: 800; font-size: 14px; }
.alert-box { padding: 14px 18px; border-radius: 18px; border: 2.5px solid var(--ink); font-weight: 800; }
.alert-box--ok { background: var(--green-t); } .alert-box--err { background: var(--blush); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { position: relative; color: var(--white); margin-top: -1px; }
.site-footer__body { background: var(--blue); padding: 40px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: var(--yellow); font-family: var(--font-body); font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.site-footer__bottom { border-top: 2px dashed #5A86D6; padding: 14px 0; font-size: 13px; color: #DCE7FB; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Responsive (mobile d'abord pour les parents pressés)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 0 3px 0 var(--ink); align-items: center; justify-content: center; cursor: pointer; }
  .nav.is-open { display: flex; position: absolute; left: 16px; right: 16px; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
  .nav.is-open a { background: var(--white); border-color: var(--ink); font-family: var(--font-title); font-size: 22px; padding: 10px 18px; transform: none; }
  .btn-families span { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero__grid, .hero__grid--aside, .grid-aside, .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero__visual { min-height: 360px; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline__path { display: none; }
  .timeline__step { flex-direction: row; text-align: left; padding-top: 0 !important; }
  .timeline__bubble { width: 76px; height: 76px; flex-shrink: 0; }
  .timeline__bubble img { max-height: 84px; }
  .promise { padding-left: 110px; }
  .promise img { max-height: 100px; }
  .days { grid-template-columns: 1fr; }
  .day { flex-direction: row; text-align: left; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .brand img { height: 58px; } .brand__name { font-size: 24px; } .brand__sub { display: none; }
  .hero--page .hero__mascot-r { height: 140px; top: 10px; right: 0; }
  .section { padding: 56px 0; }
}


/* --------------------------------------------------------------------------
   Connexion
   -------------------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth__side { position: relative; overflow: hidden; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; border-right: 4px solid var(--ink); background: linear-gradient(to bottom, var(--sky) 72%, var(--green-l) 72%, var(--green-l) 80%, var(--green) 80%); }
.auth__side .tag { position: relative; align-self: flex-start; box-shadow: 0 4px 0 var(--ink); }
.auth__mascot { position: absolute; right: 10%; top: 190px; height: 250px; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--cream); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__side { border-right: 0; border-bottom: 4px solid var(--ink); min-height: 320px; padding: 24px 16px; } .auth__mascot, .auth__side .deco { display: none; } .auth__side { background: var(--sky); min-height: 0; } }

/* --------------------------------------------------------------------------
   Espace familles (mobile d'abord)
   -------------------------------------------------------------------------- */
.family { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; background: var(--cream); }
.family__hero { position: relative; overflow: hidden; padding: 20px 16px 10px; }
.family__body { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 24px; }
.family__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { position: relative; padding: 14px; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); min-height: 112px; display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: 13px; font-weight: 900; }
.tile strong { font-family: var(--font-title); font-size: 25px; line-height: 1; }
.tile img { position: absolute; right: 6px; bottom: 6px; width: auto; }
.fil { position: relative; display: flex; flex-direction: column; }
.fil__item { display: grid; grid-template-columns: 52px 44px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.fil__icon { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink); }
.fil__card { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); padding: 10px 12px; }
.fil__card img { display: block; margin-top: 8px; width: 100%; border-radius: 12px; border: 2px solid var(--ink); }
.c-green { background: var(--green-t); } .c-grey { background: var(--grey-t); } .c-orange { background: var(--peach); } .c-blue { background: var(--blue-t); }
.c-pink { background: var(--pink-t); } .c-yellow { background: var(--yellow-t); } .c-red { background: var(--blush); }
.tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); height: 84px; padding: 8px 10px 12px; background: var(--white); border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; z-index: 30; }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-soft); font: 800 12px var(--font-body); background: none; border: 0; cursor: pointer; width: 100%; height: 100%; }
.tabbar form { display: contents; }
.tabbar span { width: 58px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tabbar [aria-current="page"] { color: var(--ink); font-weight: 900; }
.tabbar [aria-current="page"] span { background: var(--c, var(--yellow)); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.tabbar [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-families { white-space: nowrap; flex-shrink: 0; }
.brand__sub { max-width: 210px; }
.ph--filled { background: var(--white); }

/* Espace familles — pages Planning, Messages, Dossier */
.tabbar { grid-template-columns: repeat(4, 1fr); }
.tabbar span { position: relative; width: 52px; }
.tab-badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #E53935; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.family__flash { margin: 12px 16px 0; }
.bg-green-l { background: #BDEBD0; } .bg-rose { background: #FFD4E8; }
.week-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.week-switch strong { font-family: var(--font-title); font-size: 20px; }
.days-list { display: flex; flex-direction: column; gap: 10px; }
.day-card { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: 20px; background: var(--white); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.day-card.is-today { background: var(--yellow-t); }
.day-card__name { font-family: var(--font-title); font-size: 18px; padding-top: 4px; }
.day-card__kids { display: flex; flex-direction: column; gap: 6px; }
.kid-slot { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--ink); font-weight: 800; font-size: 14px; }
.kid-slot small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.kid-slot.is-off { border-style: dashed; color: var(--ink-soft); background: transparent; }
.request-form { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.request-form .choice span { min-height: 44px; font-size: 15px; padding: 0 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-msg { font-weight: 800; font-size: 14px; min-height: 1em; }
.form-msg.is-ok { color: #16753F; } .form-msg.is-err { color: #B3261E; }
.request-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; font: 800 14px var(--font-body); color: #B3261E; text-decoration: underline; cursor: pointer; padding: 4px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat--family .chat__list { min-height: 300px; max-height: calc(100vh - 380px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 10px; }
.bubble-msg { max-width: 82%; align-self: flex-start; background: var(--white); border: 2.5px solid var(--ink); border-radius: 20px 20px 20px 6px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink); }
.bubble-msg.is-mine { align-self: flex-end; background: var(--pink-t); border-radius: 20px 20px 6px 20px; }
.bubble-msg p { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.bubble-msg small { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.chat__empty { text-align: center; font-weight: 800; color: var(--ink-soft); padding: 40px 10px; }
.chat--family .chat__form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 92px; background: var(--cream); padding: 8px 0; }
.chat--family .chat__form textarea { flex: 1; font: 700 16px var(--font-body); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 14px; resize: none; background: var(--white); }
.file-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.file-card h2 { font-size: 22px; }
.facts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.facts-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 2px dashed rgba(31, 42, 68, .15); font-weight: 700; }
.facts-list li:first-child { border-top: 0; }
.facts-list li strong { text-align: right; }
.facts-list li.total { font-family: var(--font-title); font-size: 20px; }
.statement-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--cream); border: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:has(.family) { scroll-padding-bottom: 110px; }
[hidden] { display: none !important; }
.two > * { min-width: 0; }
.two input { width: 100%; min-width: 0; }
.day-menu { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Espace familles — alignement maquette (journal, planning, documents, fiche, relevé, messages)
   -------------------------------------------------------------------------- */
.btn--sm { min-height: 46px; padding: 0 16px; font-size: 15px; box-shadow: 0 4px 0 var(--ink); }
.btn--orange { background: var(--orange); }
.two-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-btn .btn { padding: 0 10px; text-align: center; line-height: 1.1; }
.hero-line { position: relative; display: flex; align-items: center; gap: 14px; }
.hero-back { position: relative; z-index: 2; display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--white); border: 3px solid var(--ink); color: var(--ink); margin-bottom: 10px; box-shadow: 0 3px 0 var(--ink); }
.hero-avatar { flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow-t); display: inline-flex; align-items: center; justify-content: center; font: 700 32px var(--font-title); object-fit: cover; box-shadow: 3px 3px 0 var(--ink); }
.hero-chip { align-self: flex-start; margin-top: 6px; background: var(--white); }
.ack-btn { margin-top: 10px; background: var(--white); }
.ack-done { margin-top: 8px; font-weight: 900; font-size: 14px; color: #17693A; }
.polaroids { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; overflow-x: auto; padding: 6px 4px 12px; scroll-snap-type: x mandatory; }
.polaroid { margin: 0; background: var(--white); border: 3px solid var(--ink); padding: 8px 8px 6px; box-shadow: 4px 4px 0 var(--ink); scroll-snap-align: start; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 2px solid var(--ink); }
.polaroid figcaption { font: 700 17px var(--font-hand, 'Caveat', cursive); color: #D93A30; padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil__icon { display: flex; align-items: center; justify-content: center; }
.fil__item:not(:last-child) .fil__icon { position: relative; }
.live { font-style: normal; font-size: 12px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

.cal { padding: 16px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head h2 { font-size: 22px; }
.cal__nav { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-weight: 900; background: var(--white); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal__wd { font-size: 12px; font-weight: 900; color: var(--ink-soft); padding-bottom: 4px; }
.cal__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 900; font-size: 14px; border: 2.5px solid transparent; }
.cal__day.is-here { background: var(--blue-l); border-color: var(--ink); }
.cal__day.is-away { background: #F3E6D0; border-color: var(--ink); }
.cal__day.is-leave { background: var(--pink-t); border-color: var(--ink); }
.cal__day.is-holiday { background: var(--yellow-t); color: var(--ink-soft); }
.cal__day.is-today { background: var(--yellow); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.cal__day.is-pending { border-style: dashed; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.leg-here { background: var(--blue-l); } .leg-away { background: #F3E6D0; } .leg-leave { background: var(--pink-t); } .leg-today { background: var(--yellow); }
.pill-time { border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; background: var(--white); font-size: 13px; white-space: nowrap; }
.facts-list li small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.facts-list li.total { border-top: 3px solid var(--ink); font-size: 17px; }

.due-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; transform: rotate(-1deg); }
.due-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; }
.due-card__amount { font: 700 38px/1.05 var(--font-title); }
.due-card__sub { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.doc-filters .tag { cursor: pointer; }
.doc-filters [aria-pressed="true"] { background: var(--pink); }
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); border-radius: 18px; }
.doc-row[hidden] { display: none; }
.doc-row__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.doc-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-row__text strong { font-size: 15px; }
.doc-row__text small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.secure-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; border: 2.5px solid var(--ink); background: var(--green-t); font-size: 13px; font-weight: 800; }
.secure-note svg { flex-shrink: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch-row small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.switch-row input[type=checkbox] { appearance: none; flex-shrink: 0; width: 56px; height: 32px; border-radius: 999px; border: 3px solid var(--ink); background: #E6E0D4; position: relative; cursor: pointer; transition: background .15s; }
.switch-row input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); transition: left .15s; }
.switch-row input[type=checkbox]:checked { background: var(--green); }
.switch-row input[type=checkbox]:checked::after { left: 27px; }
.check-row { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; cursor: pointer; }
.check-row input { width: 26px; height: 26px; accent-color: #1F8A4C; flex-shrink: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
summary.card-head { list-style: none; cursor: pointer; }
summary.card-head::-webkit-details-marker { display: none; }
.people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 2px dashed rgba(31, 42, 68, .15); }
.people-list li:first-child { border-top: 0; }
.people-list li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.people-list li small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.people-list .tag { white-space: normal; text-align: center; }
.people-list__av { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }
.add-person summary { list-style: none; cursor: pointer; text-align: center; padding: 14px; border: 3px dashed var(--ink); border-radius: 16px; font-weight: 900; }
.add-person summary::-webkit-details-marker { display: none; }
.habit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.habit-chips .tag { white-space: normal; }
.chat__day { display: flex; justify-content: center; }
.chat__day span { font-size: 12px; font-weight: 900; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; background: var(--white); }
.chat--family .bubble-msg.is-mine { background: var(--blue-l); }
.chat__quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; }
.chat__quick button { flex-shrink: 0; font: 900 13px var(--font-body); border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 13px; background: var(--blue-t); cursor: pointer; color: var(--ink); }
.chat__quick button:nth-child(2) { background: var(--pink-t); } .chat__quick button:nth-child(3) { background: var(--green-t); }
.chat__send { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.chat__send:disabled { opacity: .6; }
@media print {
  .tabbar, .hero-back, .no-print, [data-copy], .family__flash { display: none !important; }
  .family { padding-bottom: 0 !important; }
  .stk { box-shadow: none; }
}
.due-card.t-lemon { background: var(--yellow); }
.facts-list li:has(.pill-time) { align-items: center; }
.detail-list li strong { white-space: nowrap; }

/* Galerie : scotch de couleur variable + visionneuse */
.gal-item::before { transform: rotate(var(--tape-rot, -4deg)); }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-open:focus-visible { outline: 3px solid var(--blue, #2459B8); outline-offset: 3px; }
.gal-open .ph img { transition: transform .25s ease; }
.gal-open:hover .ph img { transform: scale(1.04); }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20, 26, 40, .92); display: flex; align-items: center; justify-content: center; padding: 56px 12px 40px; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border: 6px solid #fff; border-radius: 6px; background: #fff; }
.lb__fig figcaption { color: #fff; font: 700 26px var(--font-hand); text-align: center; }
.lb__close, .lb__nav { position: absolute; border: 0; background: #fff; color: var(--ink); border-radius: 50%; cursor: pointer; font: 900 26px/1 var(--font-body); display: flex; align-items: center; justify-content: center; }
.lb__close { top: 12px; right: 12px; width: 46px; height: 46px; font-size: 20px; }
.lb__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 34px; }
.lb__nav[hidden] { display: none; }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
.lb__count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; font-size: 14px; }
@media (max-width: 640px) { .lb__nav { top: auto; bottom: 10px; margin: 0; } .lb__prev { left: 30%; } .lb__next { right: 30%; } }
.sign-banner { text-decoration: none; color: var(--ink); }
