/* Filial — démo de l'application */
:root {
  --corail: #FF6B4A; --corail-fonce: #C2410C; --corail-doux: #FFE3DA;
  --soleil: #F5A623; --soleil-doux: #FFF0CC;
  --lilas: #5B3C88; --lilas-doux: #EDE4F7;
  --menthe: #1F7A5C; --menthe-doux: #DDF3EA;
  --prune: #2E1F3A; --prune-2: #4A3A57; --gris: #5B4D66; --gris-clair: #8A7D94;
  --creme: #FFF4E8; --fond: #FBF7F2; --ligne: #EEDFD0; --blanc: #fff;
  --rouge: #B42318; --rouge-doux: #FDE2DD;
  --ombre: 0 1px 2px rgba(46,31,58,.06), 0 6px 18px rgba(46,31,58,.06);
  --titre: 'Fredoka', 'Poppins', system-ui, sans-serif;
  --texte: 'Nunito', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --barre: 260px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texte); font-size: 16px; line-height: 1.5; color: var(--prune); background: var(--fond); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--corail-fonce); }
button { font: inherit; color: inherit; }
svg.i { width: 22px; height: 22px; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Bandeau démo */
.bandeau-demo { background: var(--prune); color: #fff; font-size: .9rem; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; text-align: center; position: relative; z-index: 30; }
.bandeau-demo a, .bandeau-demo button { color: #fff; font-weight: 800; background: none; border: 0; padding: 4px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Structure */
.app { display: flex; min-height: calc(100vh - 38px); }
.barre-laterale { width: var(--barre); flex-shrink: 0; background: #fff; border-right: 1px solid var(--ligne); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.marque { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--prune); padding: 4px 10px 16px; }
.marque img { width: 30px; height: 35px; }
.marque span { font-family: var(--titre); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1; }
.choix-cercle { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--creme); margin-bottom: 10px; border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--prune); text-decoration: none; }
.choix-cercle:hover { background: var(--corail-doux); }
.choix-cercle .nom { font-weight: 800; line-height: 1.2; }
.choix-cercle .sous { font-size: .8rem; color: var(--gris); }
.nav-app { display: flex; flex-direction: column; gap: 2px; }
.nav-app a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--prune-2); text-decoration: none; font-weight: 700; min-height: 44px; }
.nav-app a:hover { background: var(--fond); color: var(--prune); }
.nav-app a[aria-current="page"] { background: var(--corail-doux); color: var(--prune); }
.nav-app a[aria-current="page"] svg { color: var(--corail-fonce); }
.nav-app .compte { margin-left: auto; background: var(--corail); color: var(--prune); font-size: .75rem; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.barre-laterale .bas { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ligne); }
.moi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.moi .nom { font-weight: 800; line-height: 1.2; }
.moi .sous { font-size: .8rem; color: var(--gris); }

.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.haut { display: flex; align-items: center; gap: 12px; padding: 18px 32px; position: sticky; top: 0; z-index: 10; background: rgba(251,247,242,.92); backdrop-filter: blur(8px); }
.haut h1 { font-size: 1.6rem; flex: 1; min-width: 0; }
.haut .marque-mobile { display: none; }
.vue { padding: 8px 32px 48px; max-width: 1200px; width: 100%; }

@media (max-width: 960px) {
  .barre-laterale { display: none; }
  .haut { padding: 12px 16px; }
  .haut h1 { font-size: 1.3rem; }
  .haut .marque-mobile { display: block; }
  .haut .marque-mobile img { width: 26px; height: 30px; }
  .vue { padding: 4px 16px 110px; }
  .onglets-mobile { display: flex !important; }
}

/* Onglets mobiles */
.onglets-mobile { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--ligne); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
.onglets-mobile a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; font-weight: 800; color: var(--gris); text-decoration: none; padding: 6px 4px; min-width: 56px; border-radius: 12px; }
.onglets-mobile a[aria-current="page"] { color: var(--corail-fonce); background: var(--corail-doux); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; cursor: pointer; text-decoration: none; background: var(--prune); color: #fff; white-space: nowrap; transition: background-color .15s, transform .1s; }
.btn:hover { background: #1E1327; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--doux { background: #fff; color: var(--prune); border-color: var(--ligne); }
.btn--doux:hover { background: var(--creme); }
.btn--corail { background: var(--corail); color: var(--prune); }
.btn--corail:hover { background: #FF8466; }
.btn--petit { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn--fantome { background: transparent; color: var(--prune-2); border-color: transparent; }
.btn--fantome:hover { background: var(--creme); }
.btn--danger { background: #fff; color: var(--rouge); border-color: var(--rouge-doux); }
.btn-icone { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--ligne); cursor: pointer; position: relative; color: var(--prune); flex-shrink: 0; }
.btn-icone:hover { background: var(--creme); }
.btn-icone .point { position: absolute; top: 8px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--corail); border: 2px solid #fff; }

/* Cartes et grilles */
.grille { display: grid; gap: 20px; }
.grille--tableau { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-12 { grid-column: span 12; }
@media (max-width: 1100px) { .col-8, .col-4, .col-6 { grid-column: span 12; } }
.carte { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--ombre); min-width: 0; }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.carte-tete h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.carte-tete a { font-weight: 800; font-size: .9rem; text-decoration: none; }
.vide { color: var(--gris); text-align: center; padding: 24px 12px; font-size: .95rem; }
.salut { margin: 4px 0 20px; }
.salut h2 { font-size: 1.9rem; }
.salut p { color: var(--gris); font-size: 1.05rem; margin-top: 4px; }

/* Avatars et pastilles */
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titre); font-weight: 600; font-size: .95rem; flex-shrink: 0; color: var(--prune); }
.av--grand { width: 56px; height: 56px; font-size: 1.4rem; }
.av--petit { width: 26px; height: 26px; font-size: .72rem; }
.c-corail { background: var(--corail-doux); } .c-soleil { background: var(--soleil-doux); } .c-lilas { background: var(--lilas-doux); } .c-menthe { background: var(--menthe-doux); } .c-gris { background: #EEE8F2; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; border-radius: 99px; padding: 3px 10px; background: var(--fond); color: var(--prune-2); white-space: nowrap; }
.etiquette--alerte { background: var(--rouge-doux); color: var(--rouge); }
.etiquette--ok { background: var(--menthe-doux); color: #14523D; }
.etiquette--attention { background: var(--soleil-doux); color: #7A4F00; }
.etiquette--lilas { background: var(--lilas-doux); color: var(--lilas); }

/* Listes */
.liste { list-style: none; margin: 0; padding: 0; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne); min-width: 0; }
.liste > .ligne:first-child { border-top: 0; padding-top: 4px; }
.ligne .corps { flex: 1; min-width: 0; }
.ligne .titre { font-weight: 800; line-height: 1.3; }
.ligne .detail { color: var(--gris); font-size: .88rem; line-height: 1.35; }
.ligne.faite .titre { text-decoration: line-through; color: var(--gris-clair); }
.date-bloc { width: 52px; text-align: center; border-radius: 12px; background: var(--corail-doux); padding: 6px 0; flex-shrink: 0; line-height: 1.1; }
.date-bloc small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--corail-fonce); font-weight: 800; }
.date-bloc b { font-family: var(--titre); font-size: 1.35rem; font-weight: 600; }
.date-bloc.passe { background: #F1ECF4; }
.date-bloc.passe small { color: var(--gris); }

/* Case à cocher */
.case { width: 30px; height: 30px; border-radius: 10px; border: 2px solid #D9C9BA; background: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; padding: 0; color: #fff; transition: background-color .15s, border-color .15s; }
.case:hover { border-color: var(--menthe); }
.case svg { width: 18px; height: 18px; opacity: 0; }
.case[aria-pressed="true"], .case[aria-checked="true"] { background: var(--menthe); border-color: var(--menthe); }
.case[aria-pressed="true"] svg, .case[aria-checked="true"] svg { opacity: 1; }
.case--manquee { border-color: var(--rouge); background: var(--rouge-doux); }

/* Alertes */
.alerte { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--soleil-doux); font-size: .92rem; }
.alerte + .alerte { margin-top: 8px; }
.alerte svg { color: #7A4F00; margin-top: 1px; }
.alerte--rouge { background: var(--rouge-doux); }
.alerte--rouge svg { color: var(--rouge); }
.alerte b { display: block; }
.alerte .actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Barres */
.barre { height: 8px; border-radius: 99px; background: var(--ligne); overflow: hidden; }
.barre i { display: block; height: 100%; border-radius: 99px; background: var(--soleil); }
.barre i.bas { background: var(--corail); }
.barre i.ok { background: var(--menthe); }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--ombre); }
.stat b { display: block; font-family: var(--titre); font-weight: 600; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--gris); font-size: .88rem; }

/* Barre d'outils */
.outils { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.outils .espace { flex: 1; }
.filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.filtre { border: 1px solid var(--ligne); background: #fff; border-radius: 99px; padding: 0 14px; min-height: 38px; font-weight: 800; font-size: .88rem; cursor: pointer; color: var(--prune-2); }
.filtre[aria-pressed="true"] { background: var(--prune); border-color: var(--prune); color: #fff; }

/* Calendrier */
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-jour-nom { text-align: center; font-size: .75rem; font-weight: 800; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; padding: 6px 0; }
.cal-case { aspect-ratio: 1 / .9; border-radius: 12px; border: 1px solid transparent; background: var(--fond); padding: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; min-height: 48px; text-align: left; }
.cal-case:hover { border-color: var(--ligne); background: #fff; }
.cal-case.hors { opacity: .4; }
.cal-case.aujourdhui .n { background: var(--corail); color: var(--prune); }
.cal-case[aria-pressed="true"] { border-color: var(--prune); background: #fff; box-shadow: 0 0 0 1px var(--prune); }
.cal-case .n { font-weight: 800; font-size: .9rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.cal-case .points { display: flex; gap: 3px; flex-wrap: wrap; }
.cal-case .points i { width: 7px; height: 7px; border-radius: 50%; background: var(--corail); }
.cal-case .points i.sans { background: var(--soleil); }
.cal-mois { display: flex; align-items: center; gap: 8px; }
.cal-mois h2 { font-size: 1.25rem; min-width: 180px; text-transform: capitalize; }

/* Médicaments */
.prise { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.prise:first-child { border-top: 0; }
.prise .heure { font-family: var(--titre); font-weight: 600; font-size: 1.05rem; width: 62px; flex-shrink: 0; }
.med-pastille { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.adherence { display: flex; gap: 6px; align-items: flex-end; height: 64px; }
.adherence div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.adherence i { width: 100%; max-width: 28px; border-radius: 6px 6px 3px 3px; background: var(--menthe); min-height: 3px; }
.adherence span { font-size: .7rem; color: var(--gris); font-weight: 800; }

/* Répartition des tâches */
.repartition .r { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.repartition .r .nom { width: 70px; font-weight: 800; font-size: .9rem; }
.repartition .r .barre { flex: 1; height: 12px; }
.repartition .r b { width: 24px; text-align: right; font-size: .9rem; }

/* Documents */
.dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.dossier { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--ombre); border: 2px solid transparent; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.dossier[aria-pressed="true"] { border-color: var(--prune); }
.dossier .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.dossier b { font-weight: 800; }
.dossier span { color: var(--gris); font-size: .85rem; }
.fichier-ic { width: 40px; height: 48px; border-radius: 8px; background: var(--fond); border: 1px solid var(--ligne); display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: var(--corail-fonce); flex-shrink: 0; letter-spacing: .03em; }

/* Journal */
.note { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--ligne); }
.note:first-child { border-top: 0; padding-top: 4px; }
.note .corps { flex: 1; min-width: 0; }
.note .entete-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.note .entete-note b { font-weight: 800; }
.note .entete-note time { color: var(--gris); font-size: .85rem; }
.note p { white-space: pre-line; }
.humeurs { display: flex; gap: 8px; flex-wrap: wrap; }
.humeur { border: 2px solid var(--ligne); background: #fff; border-radius: 14px; padding: 8px 12px; cursor: pointer; font-weight: 800; font-size: .88rem; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.humeur[aria-pressed="true"] { border-color: var(--prune); background: var(--creme); }

/* Famille */
.membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.membre { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 12px; }
.membre .qui { display: flex; align-items: center; gap: 12px; }
.membre .qui b { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; display: block; line-height: 1.2; }
.membre .qui span { color: var(--gris); font-size: .88rem; }
.membre .infos { font-size: .9rem; color: var(--prune-2); display: grid; gap: 4px; }
.membre .infos div { display: flex; gap: 8px; align-items: center; }
.membre .infos svg { width: 16px; height: 16px; color: var(--gris); }

/* Fiche du proche */
.fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .fiche { grid-template-columns: 1fr; } }
.fiche dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: .95rem; }
.fiche dt { color: var(--gris); font-weight: 700; }
.fiche dd { margin: 0; font-weight: 700; }
.entete-proche { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.entete-proche h2 { font-size: 1.8rem; }
.entete-proche p { color: var(--gris); }

/* Assistant */
.assistant { display: flex; flex-direction: column; height: calc(100vh - 200px); min-height: 460px; background: #fff; border-radius: 24px; box-shadow: var(--ombre); overflow: hidden; }
.fil { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; white-space: pre-line; }
.msg--moi { align-self: flex-end; background: var(--prune); color: #fff; border-bottom-right-radius: 6px; }
.msg--ia { align-self: flex-start; background: var(--fond); border-bottom-left-radius: 6px; }
.msg--ia ul { margin: 6px 0 0; padding-left: 20px; white-space: normal; }
.msg--ia li { margin: 2px 0; }
.msg .avert { display: block; margin-top: 8px; font-size: .8rem; color: var(--gris); }
.ecrit { display: inline-flex; gap: 4px; }
.ecrit i { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-clair); animation: saute 1s infinite; }
.ecrit i:nth-child(2) { animation-delay: .15s; } .ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes saute { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.suggestions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 12px; }
.suggestion { border: 1px solid var(--ligne); background: #fff; border-radius: 99px; padding: 8px 14px; font-size: .88rem; font-weight: 700; cursor: pointer; color: var(--prune-2); min-height: 40px; }
.suggestion:hover { background: var(--creme); }
.saisie { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--ligne); }
.saisie input { flex: 1; min-width: 0; }
@media (max-width: 960px) { .assistant { height: calc(100vh - 230px); } .msg { max-width: 90%; } }

/* Formulaires */
.champ { display: grid; gap: 6px; }
.champ label, .champ .lib { font-weight: 800; font-size: .9rem; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=email], input[type=tel], input[type=search], select, textarea { font: inherit; font-size: 1rem; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ligne); background: #fff; color: var(--prune); width: 100%; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--prune); outline: none; box-shadow: 0 0 0 4px rgba(245,166,35,.3); }
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .rangee { grid-template-columns: 1fr; } }
.recherche { position: relative; }
.recherche svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gris); }
.recherche input { padding-left: 38px; min-height: 40px; border-radius: 99px; }

/* Fenêtre modale */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(46,31,58,.3); color: var(--prune); }
dialog::backdrop { background: rgba(46,31,58,.45); }
.modale { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modale-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; }
.modale-tete h2 { font-size: 1.35rem; }
.modale-corps { padding: 12px 24px; display: grid; gap: 14px; overflow-y: auto; }
.modale-pied { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; flex-wrap: wrap; }

/* Notifications (panneau) */
.panneau-notifs { position: absolute; right: 32px; top: 70px; width: min(380px, calc(100vw - 32px)); background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(46,31,58,.2); padding: 16px; z-index: 40; }
@media (max-width: 960px) { .panneau-notifs { right: 16px; top: 62px; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--prune); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(46,31,58,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast.visible { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--soleil); font-weight: 800; cursor: pointer; text-decoration: underline; }
@media (max-width: 960px) { .toast { bottom: 92px; } }

/* Impression : fiche d'urgence */
@media print {
  .bandeau-demo, .barre-laterale, .onglets-mobile, .haut .actions-haut, .pas-imprimer, .toast { display: none !important; }
  body { background: #fff; }
  .carte { box-shadow: none; border: 1px solid #ccc; }
  .vue { padding: 0; }
}

/* Vue semaine */
.semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
@media (max-width: 1250px) { .semaine { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) { .semaine { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .semaine { grid-template-columns: 1fr; } .jour-sem { min-height: 0; } .vide-jour { padding: 4px 0; } }
.jour-sem { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 8px; min-height: 240px; min-width: 0; }
.jour-sem.auj { box-shadow: 0 0 0 2px var(--corail), var(--ombre); }
.jour-sem.passe { background: #FCFAF7; }
.jour-sem header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px solid var(--ligne); }
.jour-sem .jn { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); }
.jour-sem header b { font-family: var(--titre); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.jour-sem header .etiquette { font-size: .68rem; padding: 2px 8px; margin-left: auto; }
.item-rdv { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; display: block; width: 100%; text-align: left; border: 0; background: var(--corail-doux); border-radius: 12px; padding: 8px 10px; font-size: .84rem; line-height: 1.3; cursor: pointer; color: var(--prune); }
.item-rdv:hover { background: #FFD5C8; }
.item-rdv b { font-weight: 800; }
.qui { display: flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 800; color: var(--prune-2); margin-top: 4px; }
.qui .av--petit { width: 20px; height: 20px; font-size: .6rem; }
.sans-acc { color: var(--rouge); }
.item-tache { display: flex; gap: 6px; align-items: flex-start; font-size: .86rem; line-height: 1.3; padding: 4px 2px; border-radius: 10px; min-width: 0; }
.item-tache .corps { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.item-tache .corps a { color: var(--prune); text-decoration: none; font-weight: 700; }
.item-tache .corps a:hover { text-decoration: underline; }
.item-tache .case { width: 24px; height: 24px; border-radius: 8px; }
.item-tache .case svg { width: 14px; height: 14px; }
.item-tache .etiquette { font-size: .68rem; padding: 1px 7px; margin-top: 3px; }
.item-tache.faite .corps a { text-decoration: line-through; color: var(--gris-clair); font-weight: 600; }
.item-tache.prevue { color: var(--gris); border: 1px dashed #D9C9BA; padding: 6px; }
.lien-prendre { border: 0; background: none; padding: 0; color: var(--corail-fonce); font-weight: 800; font-size: .76rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.vide-jour { color: var(--gris-clair); font-size: .85rem; text-align: center; padding: 12px 0; }
.ajout-jour { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px dashed #D9C9BA; background: transparent; border-radius: 10px; min-height: 36px; font-weight: 800; font-size: .84rem; color: var(--prune-2); cursor: pointer; }
.ajout-jour:hover { background: var(--creme); border-color: var(--corail); }
