/* Famille JL : styles bornés à la vue, aucune modification de l’interface privée. */
.foyer{--foyer-navy:#233c58;--foyer-warm:#faf7f0;--foyer-line:#d1d8de;background:var(--foyer-warm);color:#182e43;font-family:Inter,system-ui,sans-serif;padding:clamp(12px,3vw,28px);max-width:1200px;margin:auto;overflow-wrap:anywhere}
.foyer *{box-sizing:border-box}.foyer [hidden]{display:none!important}.foyer h1,.foyer h2,.foyer h3{color:var(--foyer-navy)}
.foyer button,.foyer input,.foyer select,.foyer textarea,.foyer summary{font:inherit;min-height:48px;max-width:100%}.foyer button,.foyer summary{cursor:pointer}.foyer button{padding:10px 16px;border:1px solid #718396;border-radius:12px;background:white;color:var(--foyer-navy);font-weight:600;white-space:normal}.foyer button:hover{background:#e8eef3}.foyer button:disabled{opacity:.55;cursor:wait}.foyer button:focus-visible,.foyer input:focus-visible,.foyer select:focus-visible,.foyer textarea:focus-visible,.foyer summary:focus-visible{outline:3px solid #8a5613;outline-offset:3px}
.foyer input,.foyer select,.foyer textarea{width:100%;padding:10px;border:1px solid #718396;border-radius:8px;background:white;color:#182e43}.foyer input[type=checkbox]{width:24px;min-height:24px;flex-shrink:0}.foyer input[type=color]{padding:4px}.foyer label{display:grid;gap:6px;font-weight:600}.foyer .foyer-check{display:flex;align-items:center;gap:12px;min-height:48px}.foyer summary{padding:12px 0}.foyer details{margin-block:12px}.foyer p{line-height:1.55}.foyer li{margin-block:8px}
.foyer .foyer-tabs,.foyer .foyer-toolbar,.foyer .foyer-actions,.foyer .foyer-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.foyer .foyer-tabs{margin-block:20px}.foyer .foyer-tabs [aria-current=page],.foyer .foyer-tabs [aria-current=page]:hover,.foyer .foyer-primary,.foyer .foyer-primary:hover{background:var(--foyer-navy);color:white}.foyer .foyer-panel{min-width:0}.foyer .foyer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.foyer .foyer-card,.foyer .foyer-detail{background:white;border:1px solid var(--foyer-line);border-radius:16px;padding:18px;min-width:0}.foyer .foyer-form{display:grid;gap:14px;margin-block:16px;max-width:560px}.foyer .foyer-form button{justify-self:start}.foyer .foyer-muted,.foyer .foyer-empty{color:#4a5d6d}.foyer .foyer-error{color:#9a271d;font-weight:600}.foyer .foyer-danger{color:#9a271d;border-color:#9a271d}.foyer .foyer-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:48px;height:48px;color:white;font-weight:700;margin-right:8px}.foyer .foyer-agenda-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.foyer .foyer-agenda-week>*{min-width:0}.foyer textarea{min-height:96px}
@media(max-width:700px){.foyer .foyer-agenda-week{grid-template-columns:1fr}.foyer .foyer-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.foyer .foyer-tabs button{min-width:0;width:100%;padding:10px 12px;overflow-wrap:normal;word-break:normal;hyphens:none}.foyer .foyer-toolbar>*{max-width:100%}.foyer .foyer-row{align-items:stretch}.foyer .foyer-card{padding:14px}.foyer .foyer-actions button{flex:1}.foyer{padding:12px}}

.foyer .foyer-agenda-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}.foyer .foyer-mobile-only{display:none}@media(max-width:700px){.foyer .foyer-agenda-layout{grid-template-columns:1fr}.foyer .foyer-mobile-only{display:block}.foyer .foyer-desktop-only{display:none!important}}

.foyer label:has(>input[type=checkbox]){display:flex;align-items:center;gap:12px;min-height:48px;padding-block:8px}.foyer fieldset{min-width:0;border:1px solid var(--foyer-line);border-radius:12px}

.foyer pre{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;max-width:100%}

/* Cadre familial : une navigation hiérarchisée et un aperçu des données partagées. */
.foyer{--foyer-navy:#1b2a4a;--foyer-warm:#f7f6f2;--foyer-line:#dfe4ec;font-family:Inter,system-ui,sans-serif;border-radius:24px;padding:clamp(16px,3vw,36px);max-width:1200px;line-height:1.5}
.foyer h1,.foyer h2,.foyer h3,.foyer p{margin-top:0}.foyer h1{font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-.035em;margin-bottom:10px}.foyer h2{font-size:clamp(23px,3vw,29px);line-height:1.25;letter-spacing:-.025em;margin-bottom:8px}.foyer h3{font-size:19px;line-height:1.3;margin-bottom:8px}.foyer p{color:#4a5568}.foyer button{border-color:#b5bfd0;border-radius:12px;transition:background .15s ease,border-color .15s ease;line-height:1.3}.foyer button:hover{background:#e9edf5;border-color:#8b97ad}.foyer button:focus-visible,.foyer input:focus-visible,.foyer select:focus-visible,.foyer textarea:focus-visible,.foyer summary:focus-visible{outline:3px solid #986217;outline-offset:3px}.foyer .foyer-primary,.foyer .foyer-primary:hover{background:#1b2a4a;color:#fff;border-color:#1b2a4a}.foyer .foyer-primary:hover{background:#121d36}
.foyer .foyer-eyebrow{font-size:11px;font-weight:750;letter-spacing:.11em;line-height:1.5;color:#4f5b73;margin-bottom:10px}.foyer .foyer-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:6px 0 24px}.foyer .foyer-header>div:first-child{min-width:0}.foyer .foyer-header p:last-child{margin-bottom:0;font-size:16px}.foyer .foyer-household{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}.foyer .foyer-person{display:grid;justify-items:center;gap:5px;font-size:12px;font-weight:650;color:#33476b;max-width:90px;text-align:center}.foyer .foyer-person .foyer-avatar{margin:0;border:3px solid white;box-shadow:0 1px 5px #233c5812;width:46px;height:46px;font-size:14px}.foyer .foyer-privacy{font-size:12px;border-top:1px solid var(--foyer-line);padding-top:14px;margin-bottom:0;color:#4f5b73}.foyer [data-message]:empty{display:none}.foyer [data-message]:not(:empty){padding:12px;background:white;border:1px solid var(--foyer-line);border-radius:12px;margin-block:12px}
.foyer .foyer-switcher{display:flex;align-items:flex-start;gap:24px;justify-content:space-between;margin:18px 0}.foyer .foyer-switcher>label{font-size:12px;min-width:180px;max-width:100%}.foyer .foyer-switcher select{font-size:14px;background:#fff}.foyer .foyer-switcher>details{margin:0;max-width:560px}.foyer .foyer-switcher summary{font-size:13px;min-height:48px;color:#33476b}.foyer .foyer-switcher .foyer-form{background:white;padding:18px;border:1px solid var(--foyer-line);border-radius:16px}
.foyer .foyer-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;background:#fff;border:1px solid var(--foyer-line);border-radius:18px;margin-bottom:30px;box-shadow:0 4px 16px #233c5804}.foyer .foyer-nav-main,.foyer .foyer-nav-secondary,.foyer .foyer-nav-jo{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.foyer .foyer-nav-secondary{border-left:1px solid var(--foyer-line);padding-left:8px}.foyer .foyer-nav-jo{margin-left:auto}.foyer .foyer-navigation button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;background:transparent;padding:12px 11px;font-size:13px;font-weight:650;white-space:normal;min-height:48px}.foyer .foyer-navigation button:hover{background:#eef1f7}.foyer .foyer-navigation [aria-current=page],.foyer .foyer-navigation [aria-current=page]:hover{background:#1b2a4a;border-color:#1b2a4a;color:white}.foyer .foyer-nav-icon{font-size:19px;line-height:1;flex-shrink:0}.foyer .foyer-nav-jo button{background:#f4efdf;color:#65501c}.foyer .foyer-nav-jo button:hover{background:#e9dfc6}.foyer .foyer-nav-jo [aria-current=page]{background:#65501c;color:white}.foyer .foyer-nav-jo [aria-current=page]:hover{background:#65501c;color:white}
.foyer .foyer-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.foyer .foyer-dashboard-heading p:last-child{font-size:14px;margin-bottom:0}.foyer .foyer-today{border:1px solid var(--foyer-line);background:#fff;border-radius:12px;padding:10px 14px;font-size:13px;color:#33476b;white-space:nowrap}.foyer .foyer-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.foyer .foyer-card,.foyer .foyer-detail{border-color:var(--foyer-line);border-radius:18px;padding:22px;box-shadow:0 3px 14px #233c5803}.foyer .foyer-overview{display:flex;flex-direction:column;min-height:285px;border-top:3px solid #506b98}.foyer .foyer-overview-taches{border-top-color:#bd9c66}.foyer .foyer-overview-repas{border-top-color:#bc8c78}.foyer .foyer-overview-courses{border-top-color:#8f9db6}.foyer .foyer-overview>header{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}.foyer .foyer-overview>header p{font-size:13px;line-height:1.5;margin-bottom:0}.foyer .foyer-overview h3{margin:2px 0 5px}.foyer .foyer-card-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;background:#ebeff7;color:#1b2a4a;font-size:23px}.foyer .foyer-overview-taches .foyer-card-icon{background:#f4eddf;color:#765829}.foyer .foyer-overview-repas .foyer-card-icon{background:#f8ece5;color:#874e35}.foyer .foyer-overview-courses .foyer-card-icon{background:#eaf0f8;color:#42567e}.foyer .foyer-overview>.foyer-empty{font-size:14px;padding:20px 0;margin-bottom:12px}.foyer .foyer-overview>button{align-self:flex-start;margin-top:auto;font-size:13px;border:0;background:#eef1f7;color:#1b2a4a}.foyer .foyer-overview>button:hover{background:#dfe5f0}.foyer .foyer-preview-list{padding:0;list-style:none;margin:0 0 18px}.foyer .foyer-preview-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eef0f4;padding:12px 0;margin:0;font-size:14px}.foyer .foyer-preview-list li>div{min-width:0}.foyer .foyer-preview-list strong{font-weight:650}.foyer .foyer-item-detail{display:block;color:#4f5b73;font-size:12px;margin-top:4px}.foyer .foyer-assignee{display:grid;justify-items:center;gap:3px;font-size:11px;max-width:80px;flex-shrink:0;text-align:center}.foyer .foyer-assignee .foyer-avatar{width:30px;height:30px;margin:0;font-size:10px}.foyer .foyer-jo-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;background:#eeeadc;border:1px solid #ddd5be;border-radius:18px;padding:24px}.foyer .foyer-jo-banner p{font-size:14px;margin-bottom:0;max-width:610px}.foyer .foyer-jo-banner h3{margin:5px 0 8px}.foyer .foyer-jo-banner button{flex-shrink:0}.foyer .foyer-welcome{padding:24px;border:1px solid var(--foyer-line);background:white;border-radius:18px}.foyer .foyer-error{color:#9a271d}
@media(max-width:1000px){.foyer .foyer-nav-jo{margin-left:0}.foyer .foyer-navigation{gap:8px}.foyer .foyer-nav-secondary{border-left:0;padding-left:0}.foyer .foyer-header{align-items:flex-start}.foyer .foyer-household{max-width:240px}}
@media(max-width:700px){.foyer{border-radius:16px;padding:16px}.foyer .foyer-header{display:block;padding-bottom:18px}.foyer .foyer-household{justify-content:flex-start;max-width:none;margin-top:20px;gap:14px}.foyer .foyer-person{font-size:11px}.foyer .foyer-switcher{display:block;margin:14px 0}.foyer .foyer-switcher>label{max-width:none}.foyer .foyer-switcher>details{margin-top:4px}.foyer .foyer-navigation{display:grid;gap:8px;margin-bottom:24px;padding:8px}.foyer .foyer-nav-main{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.foyer .foyer-nav-main button{flex-direction:column;font-size:12px;gap:7px;padding:10px 2px;min-width:0}.foyer .foyer-nav-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--foyer-line);padding-top:8px}.foyer .foyer-nav-secondary button{font-size:12px;padding:10px 4px;gap:4px;min-width:0}.foyer .foyer-nav-secondary .foyer-nav-icon{display:none}.foyer .foyer-nav-jo{display:block}.foyer .foyer-nav-jo button{width:100%;font-size:13px}.foyer .foyer-dashboard-heading{display:block}.foyer .foyer-today{display:inline-block;margin-top:12px}.foyer .foyer-dashboard{grid-template-columns:1fr;gap:16px}.foyer .foyer-overview{min-height:250px}.foyer .foyer-card,.foyer .foyer-detail{padding:18px}.foyer .foyer-jo-banner{display:block;padding:20px}.foyer .foyer-jo-banner button{margin-top:18px}.foyer .foyer-assignee{max-width:62px}.foyer .foyer-eyebrow{font-size:10px}.foyer .foyer-preview-list li{gap:8px}}
@media(prefers-reduced-motion:reduce){.foyer button{transition:none}}

.foyer .foyer-nav-more{position:relative;margin:0!important}.foyer .foyer-nav-more>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 14px;list-style:none;font-size:13px;font-weight:650;border-radius:10px;color:#1b2a4a}.foyer .foyer-nav-more>summary::-webkit-details-marker{display:none}.foyer .foyer-nav-more>summary:hover,.foyer .foyer-nav-more[open]>summary{background:#eef1f7}.foyer .foyer-nav-more .foyer-nav-secondary{position:absolute;right:0;top:calc(100% + 10px);z-index:5;display:grid;min-width:220px;padding:8px;background:#fff;border:1px solid var(--foyer-line);border-radius:14px;box-shadow:0 10px 30px #233c5820}.foyer .foyer-nav-more .foyer-nav-secondary button{justify-content:flex-start}.foyer .foyer-switcher{display:block;margin:8px 0 14px}.foyer .foyer-switcher>summary{min-height:48px;padding:12px 0;font-size:12px;color:#4f5b73}.foyer .foyer-switcher>label{max-width:360px}.foyer .foyer-switcher>details{margin-top:8px}
/* Composants partagés des rubriques : données avant formulaires. */
.foyer .foyer-section-head,.foyer .fa-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.foyer .foyer-section-head h2,.foyer .fa-header h2{margin-bottom:6px}.foyer .foyer-shopping-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}.foyer .foyer-shopping-toolbar>label{flex:1;min-width:150px}.foyer .foyer-shopping-toolbar details{margin:0}.foyer .foyer-quick-add,.foyer .fa-quick-add{display:flex;flex-wrap:wrap;align-items:end;gap:10px;max-width:none;margin:16px 0}.foyer .foyer-quick-add label,.foyer .fa-quick-add label{flex:1;min-width:140px}.foyer .foyer-quick-add input{min-width:0}.foyer .foyer-secondary{background:#eef1f7;border-color:transparent}.foyer .foyer-editor{border:1px solid var(--foyer-line);border-radius:14px;padding:0 16px;background:white;margin-block:16px}.foyer .foyer-editor>summary{font-weight:650}.foyer .foyer-shopping-list{list-style:none;padding:0;margin:18px 0}.foyer .foyer-shopping-item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--foyer-line);border-radius:14px;padding:12px 16px;margin:8px 0}.foyer .foyer-shopping-item>label,.foyer .foyer-item-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.foyer .foyer-item-name{font-weight:650}.foyer .foyer-item-meta,.foyer .foyer-contact-meta{display:block;color:#4f5b73;font-size:13px;font-weight:400}.foyer .foyer-item-done .foyer-item-name{text-decoration:line-through;color:#4f5b73}.foyer .foyer-shopping-item details{margin:0;flex-shrink:0}.foyer .foyer-shopping-item summary{font-size:13px;padding:12px 6px}.foyer .foyer-progress{color:#4f5b73;font-size:13px;margin-block:12px}.foyer .foyer-meals-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;align-items:start}.foyer .foyer-week-cards{display:grid;gap:12px}.foyer .foyer-day-card{background:#fff;border:1px solid var(--foyer-line);border-radius:14px;padding:16px}.foyer .foyer-day-card h3{font-size:16px}.foyer .foyer-meal-card{border-top:1px solid #eef0f4;padding:12px 0}.foyer .foyer-meal-card h4{margin:0 0 6px;color:#1b2a4a}.foyer .foyer-recipe-grid,.foyer .foyer-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}.foyer .foyer-recipe-card,.foyer .foyer-contact-card{background:white;border:1px solid var(--foyer-line);border-radius:16px;padding:18px}.foyer .foyer-badge{display:inline-block;font-size:12px;font-weight:650;padding:4px 9px;background:#eef1f7;color:#33476b;border-radius:8px}
/* Agenda : grille calme, événements lisibles et éditeurs ouverts sur demande. */
.foyer .fa-period,.foyer .fa-views{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.foyer .fa-period input{width:auto;max-width:100%}.foyer .fa-views{padding:4px;background:#e9edf5;border-radius:12px;width:fit-content}.foyer .fa-views button{border-color:transparent;background:transparent;font-size:13px}.foyer .fa-views [aria-pressed=true],.foyer .fa-views [aria-pressed=true]:hover{background:#1b2a4a;color:white}.foyer .fa-filters{margin-block:14px}.foyer .fa-member-chip{display:inline-flex;align-items:center;gap:8px;background:white;border:1px solid var(--foyer-line);border-radius:24px;padding:8px 12px;font-size:13px;margin:4px}.foyer .fa-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border:1px solid var(--foyer-line);border-radius:14px;overflow:hidden;background:white}.foyer .fa-week-head{padding:12px 4px;text-align:center;font-size:12px;font-weight:650;background:#eef1f7;color:#33476b;min-width:0}.foyer .fa-day-cell,.foyer .fa-month-cell{min-width:0;min-height:125px;padding:8px;border-top:1px solid var(--foyer-line);border-right:1px solid var(--foyer-line);background:white}.foyer .fa-outside{background:#f5f6fa;color:#5b6273}.foyer .fa-today{background:#f1f4fa;box-shadow:inset 0 3px #506b98}.foyer .fa-event{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;border:0;border-left:3px solid #506b98;border-radius:5px;background:#ebeff7;padding:8px;margin-top:6px;text-align:left;font-size:12px;color:#1b2a4a;min-height:48px;line-height:1.4}.foyer .fa-event:hover{background:#dfe5f0}.foyer .fa-event-time{font-size:11px;font-weight:650}.foyer .fa-event-title{font-weight:650}.foyer .fa-event-person{font-size:11px}.foyer .fa-color-1,.foyer .fa-color-5{border-left-color:#506b98;background:#edf1f8;color:#304c75}.foyer .fa-color-2,.foyer .fa-color-6{border-left-color:#a56a41;background:#f7eee5;color:#77502d}.foyer .fa-color-3,.foyer .fa-color-7{border-left-color:#8f6084;background:#f4ecf2;color:#6b4262}.foyer .fa-event:hover{color:#1b2a4a}.foyer .fa-list-day{background:white;padding:18px;border:1px solid var(--foyer-line);border-radius:14px;margin-block:12px}.foyer .fa-day-empty{font-size:13px;color:#4f5b73}.foyer .fa-task-row{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--foyer-line);border-radius:12px;margin:8px 0;padding:8px}.foyer .fa-task-check{min-width:48px;min-height:48px;display:grid;place-items:center}.foyer .fa-task-open{flex:1;text-align:left;border:0;background:transparent}.foyer .fa-dialog{width:min(780px,calc(100% - 24px));max-height:90dvh;border:1px solid var(--foyer-line);border-radius:20px;padding:24px;color:#182e43;background:#f7f6f2;overflow:auto}.foyer .fa-dialog::backdrop{background:#182e4380}.foyer .fa-dialog-close{position:sticky;top:0;display:block;margin-left:auto;z-index:2;background:white}.foyer .fa-dialog-body{min-width:0}.foyer .fa-mobile-day{margin-top:16px}
@media(max-width:700px){.foyer .foyer-header{display:flex;gap:10px;padding-bottom:10px}.foyer .foyer-header h1{font-size:25px;margin-bottom:6px}.foyer .foyer-header .foyer-eyebrow{margin-bottom:5px;font-size:9px}.foyer .foyer-header p:last-child{font-size:12px;max-width:180px}.foyer .foyer-household{gap:4px;margin-top:0;max-width:110px;max-height:74px;overflow:auto;flex-shrink:0}.foyer .foyer-person .foyer-avatar{width:30px;height:30px;border-width:2px;font-size:10px}.foyer .foyer-person>span:last-child{display:none}.foyer .foyer-privacy{font-size:11px;line-height:1.5;padding-top:10px}.foyer .foyer-switcher{margin:0 0 6px}.foyer .foyer-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px;margin-bottom:20px;padding:4px}.foyer .foyer-nav-main{gap:0}.foyer .foyer-nav-main button{font-size:11px;min-height:48px;padding:8px 2px;gap:4px}.foyer .foyer-nav-main .foyer-nav-icon{display:none}.foyer .foyer-nav-more>summary{font-size:11px;padding:10px 7px;gap:3px}.foyer .foyer-nav-more .foyer-nav-secondary{display:grid;grid-template-columns:1fr;padding:8px}.foyer .foyer-nav-more .foyer-nav-secondary button{font-size:13px;padding:12px}.foyer .foyer-section-head,.foyer .fa-header{align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:16px}.foyer .foyer-meals-layout{grid-template-columns:1fr}.foyer .foyer-shopping-item{padding:10px;gap:8px}.foyer .foyer-shopping-item>label{font-size:14px}.foyer .foyer-quick-add,.foyer .fa-quick-add{gap:8px}.foyer .foyer-quick-add button{padding-inline:12px}.foyer .fa-grid .fa-day-cell,.foyer .fa-grid .fa-month-cell{min-height:52px;padding:2px}.foyer .fa-week-head{font-size:10px;padding:10px 1px}.foyer .fa-dialog{padding:16px}.foyer .fa-period{gap:6px}.foyer .fa-period button{padding:8px 10px}.foyer .fa-period input{width:100%;flex-basis:100%}}

.foyer .fa-week-table{width:100%;table-layout:fixed;border-collapse:collapse;background:white;font-size:12px}.foyer .fa-week-table th,.foyer .fa-week-table td{border:1px solid var(--foyer-line);padding:6px;vertical-align:top;overflow-wrap:anywhere}.foyer .fa-time-column{width:58px}.foyer .fa-week-day-head{background:#eef1f7;color:#33476b;padding:12px 4px;font-weight:650;text-align:center}.foyer .fa-week-slot{height:76px;vertical-align:top}.foyer .fa-hour-cell{font-size:11px;font-weight:500;color:#4f5b73;text-align:center;background:#f5f6fa}.foyer .fa-week-table .fa-event{font-size:11px;padding:6px;gap:2px}

@media(max-width:700px){.foyer .foyer-nav-jo{grid-column:1/-1}.foyer .foyer-nav-jo button{min-height:44px;padding:8px;font-size:12px}}

.foyer .foyer-quick-add-main{display:flex;align-items:end;gap:10px;flex:1;min-width:0}.foyer .foyer-quick-add-main>label{flex:1;min-width:0}.foyer .foyer-quick-add-main>button{flex-shrink:0}.foyer .foyer-quick-options{flex-basis:100%;margin:0}.foyer .foyer-quick-options>summary{font-size:12px;color:#4f5b73}.foyer .foyer-list-tools{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}.foyer .foyer-item-tools[open]{max-width:100%}.foyer .foyer-undo{padding:12px 16px;background:#eef1f7;border:1px solid var(--foyer-line);border-radius:12px;margin-block:12px}.foyer .foyer-recipe-book{min-width:0}.foyer .foyer-day-today{border-color:#506b98;box-shadow:inset 3px 0 #506b98}.foyer .foyer-trust-note{font-size:11px;color:#4f5b73;margin-block:12px}.foyer .foyer-item-tools summary{min-width:48px;text-align:center}
@media(max-width:700px){.foyer .foyer-quick-add-main{gap:8px}.foyer .foyer-quick-add-main>button{padding-inline:10px}.foyer .foyer-shopping-item:has(.foyer-item-tools[open]){flex-wrap:wrap}.foyer .foyer-item-tools[open]{flex-basis:100%}}

.foyer .fa-kind-nav,.foyer .fa-period-buttons{display:flex;align-items:center;gap:6px}.foyer .fa-kind-nav{flex-wrap:wrap;margin-block:12px}.foyer .fa-period-buttons{flex-wrap:nowrap}.foyer .fa-date{min-width:0}.foyer .fa-period-title{margin:0;font-size:17px}.foyer .fa-day-number{margin:0;min-width:32px;min-height:32px;padding:4px;font-size:12px}.foyer .fa-month-pick{width:100%;min-width:0;padding:2px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:transparent;font-size:13px}.foyer .fa-month-pick:hover{background:#e6ebf5}.foyer .fa-dot-count,.foyer .fa-day-count{display:inline-block;font-size:10px;padding:2px 5px;border-radius:8px;background:#e6ebf5;color:#1b2a4a}.foyer .fa-event-person{display:block}.foyer .fa-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.foyer .fa-list-day>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:650;min-height:48px}.foyer .fa-task-done .fa-event-title,.foyer .fa-task-done .fa-task-open{text-decoration:line-through;color:#4f5b73}
@media(max-width:700px){.foyer .fa-month-pick{font-size:13px;padding:2px;min-width:0}.foyer .fa-day-number{padding:2px;min-width:0}.foyer .fa-period-buttons button{min-width:44px;padding:8px}.foyer .fa-dot-count{font-size:9px;padding:1px 3px}}

.foyer .foyer-day-card h4{margin:0 0 10px;color:#1b2a4a;font-size:16px}.foyer .foyer-meal-card h5{margin:0 0 6px;color:#1b2a4a;font-size:15px}.foyer .foyer-quick-add-main{flex:1 0 100%}.foyer .foyer-progress>progress{width:100%;height:8px;accent-color:#527c62}.foyer .foyer-item-tools[open] .foyer-list-tools{display:flex;flex-wrap:wrap;max-width:100%}.foyer .foyer-item-tools[open] button{max-width:100%}

.foyer .fa-week-table .fa-event-title{font-size:13px}.foyer .fa-week-table .fa-event-person{font-size:12px}

.foyer .foyer-avatar{background:#1b2a4a;color:white}
@media(max-width:700px){.foyer .foyer-header{display:block;position:relative;padding-right:0}.foyer .foyer-header h1{font-size:23px;line-height:1.18;overflow-wrap:normal;word-break:normal;hyphens:none;max-width:none;letter-spacing:-.025em}.foyer .foyer-header .foyer-eyebrow{padding-right:96px;min-height:30px;display:flex;align-items:center;margin-bottom:5px}.foyer .foyer-household{position:absolute;right:0;top:0;max-height:30px;max-width:98px;overflow:hidden;flex-wrap:nowrap}.foyer .foyer-header p:last-child{max-width:none;margin-bottom:0}.foyer .foyer-header{padding-bottom:8px}.foyer .foyer-privacy{padding-top:8px;font-size:10px;margin-bottom:0}.foyer .foyer-switcher>summary{min-height:44px;font-size:11px}.foyer .foyer-navigation{margin-bottom:16px}}

.foyer .foyer-pilot-note{font-size:11px;line-height:1.45;margin-bottom:6px}.foyer [data-q-status]{font-size:12px;line-height:1.45;margin-bottom:12px}
@media(max-width:700px){.foyer:not([data-foyer-tab=accueil]) .foyer-header .foyer-eyebrow,.foyer:not([data-foyer-tab=accueil]) .foyer-header>div:first-child>p:last-child,.foyer:not([data-foyer-tab=accueil]) .foyer-household{display:none}.foyer:not([data-foyer-tab=accueil]) .foyer-header h1{font-size:20px;margin:0}.foyer:not([data-foyer-tab=accueil]) .foyer-header{padding:0 0 8px}}

.foyer .foyer-privacy{display:inline-block;vertical-align:top;width:48%;border:0;padding:0;margin:0 2% 10px 0;font-size:12px}.foyer .foyer-privacy>summary{font-size:12px;color:#4f5b73;min-height:44px;padding:12px 0}.foyer .foyer-privacy>p{font-size:12px;line-height:1.5;background:white;border:1px solid var(--foyer-line);border-radius:12px;padding:12px}.foyer .foyer-switcher{display:inline-block;vertical-align:top;width:48%;margin:0 0 10px}.foyer .foyer-switcher>summary{min-height:44px;padding:12px 0;font-size:12px}.foyer .foyer-privacy[open],.foyer .foyer-switcher[open]{width:100%}
@media(max-width:700px){.foyer .foyer-privacy,.foyer .foyer-switcher{margin-bottom:6px}.foyer .foyer-privacy>summary,.foyer .foyer-switcher>summary{font-size:11px}.foyer .foyer-privacy{padding:0}}

.foyer .foyer-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.foyer .foyer-list-picker{flex:1;min-width:0}.foyer .foyer-list-picker select{min-width:0;width:100%;min-height:48px}.foyer .foyer-undo:empty{display:none}
@media(max-width:700px){.foyer .foyer-shopping-toolbar{flex-wrap:nowrap;align-items:center;gap:8px;margin:10px 0}.foyer .foyer-shopping-toolbar>.foyer-list-picker{min-width:0;flex:1}.foyer .foyer-shopping-toolbar>button{flex-shrink:0;min-height:48px;padding:10px 12px;font-size:13px}.foyer .foyer-shopping-list{margin:10px 0}.foyer .foyer-section-head{margin-bottom:10px;gap:8px}.foyer .foyer-nav-jo button{min-height:44px}.foyer .foyer-navigation{margin-bottom:12px}.foyer [data-q-status]{margin-bottom:8px}}

@media(max-width:700px){.foyer .foyer-shopping-toolbar:has(.foyer-list-tools){flex-wrap:wrap;align-items:flex-start}.foyer .foyer-shopping-toolbar>.foyer-badge{flex-shrink:0;font-size:11px;padding:5px 8px}.foyer .foyer-shopping-toolbar:has(.foyer-list-tools)>.foyer-list-tools{min-width:0;max-width:100%;margin:0}}

/* Accueil Famille : hiérarchie des échéances et en-tête commun compact. */
.foyer{--foyer-navy:#172743;--foyer-forest:#1b2a4a;--foyer-warm:#F5F6F2;--foyer-line:#dde2ea;--foyer-surface:#FFFEFC;color:#172743;background:#F5F6F2;padding:24px;max-width:1280px}
body[data-espace="famille"],body[data-espace="famille"] .entete{background:#F5F6F2}
:root body[data-espace="famille"] .onglets{background:#FFFEFC}
:root body[data-espace="famille"] .onglets button{color:#172743}
:root body[data-espace="famille"] .onglets button[aria-current="page"],:root body[data-espace="famille"] .onglets button[aria-current="page"]:hover,:root body[data-espace="famille"] .onglets button[aria-current="page"]:focus-visible{color:#FFFEFC;background:#172743}
.foyer .foyer-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:18px;margin:0 0 6px;border:1px solid #dde2ea;border-radius:16px;background:#FFFEFC}
.foyer .foyer-header-identity{min-width:0}.foyer .foyer-header h1{font-size:clamp(21px,2.1vw,30px);line-height:1.2;letter-spacing:-.025em;margin:0 0 5px;color:#172743;overflow-wrap:anywhere}
.foyer .foyer-header-date{display:block;font-size:13px;line-height:1.5;color:#4b5964}
.foyer .foyer-header-members{display:flex;flex-wrap:wrap;align-items:start;gap:10px;list-style:none;padding:0;margin:0;max-width:320px}
.foyer .foyer-header-members li{display:grid;justify-items:center;gap:3px;max-width:64px;margin:0;font-size:11px;line-height:1.4;color:#172743}
.foyer .foyer-header-members li>span:last-child{display:block;max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.foyer .foyer-header-members .foyer-avatar{width:28px;height:28px;font-size:10px;margin:0;border:2px solid #FFFEFC}
.foyer .foyer-organise,.foyer .foyer-organise:hover{background:#1b2a4a;border-color:#1b2a4a;color:#FFFEFC;min-height:48px;font-size:13px;padding:12px 16px;white-space:nowrap}
.foyer .foyer-organise:hover{background:#121d36}
.foyer .foyer-household-settings{margin:0 0 8px;color:#172743}.foyer .foyer-household-settings>summary{width:fit-content;min-height:44px;padding:10px 6px;font-size:13px;line-height:1.6;color:#172743}
.foyer .foyer-household-settings[open]{padding:0 14px 14px;border:1px solid var(--foyer-line);border-radius:12px;background:#FFFEFC}
.foyer .foyer-household-settings-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.foyer .foyer-household-settings-body h2{font-size:17px}.foyer .foyer-household-settings-body p{font-size:13px;color:#4b5964}.foyer .foyer-household-settings-body>button{justify-self:start;align-self:start}
.foyer .foyer-navigation{margin:0 0 18px;padding:5px;background:#FFFEFC;border-radius:12px;box-shadow:none;gap:4px}
.foyer .foyer-navigation button,.foyer .foyer-nav-more>summary{color:#172743;min-height:44px;font-size:13px}
.foyer .foyer-navigation button[aria-current=page],.foyer .foyer-navigation button[aria-current=page]:hover{background:#172743;border-color:#172743;color:#FFFEFC}
.foyer .foyer-nav-more .foyer-nav-secondary{background:#FFFEFC}
.foyer .foyer-home-loading{font-size:14px;color:#4b5964}
.foyer .foyer-home-priorities{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:18px;margin-bottom:18px}
.foyer .foyer-home-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}
.foyer[data-foyer-tab=accueil] .foyer-overview{display:block;min-height:0;height:auto;padding:20px;border-radius:14px;border:1px solid var(--foyer-line);border-top:3px solid #8f9db6;background:#FFFEFC;box-shadow:0 3px 12px #17274305}
.foyer[data-foyer-tab=accueil] .foyer-overview-taches{border-top-color:#b2884a}
.foyer[data-foyer-tab=accueil] .foyer-overview-repas{border-top-color:#b56e58}
.foyer[data-foyer-tab=accueil] .foyer-overview-courses{border-top-color:#8f9db6}
.foyer[data-foyer-tab=accueil] .foyer-overview>header{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.foyer[data-foyer-tab=accueil] .foyer-overview h2{font-size:20px;line-height:1.3;margin:0;color:#172743}
.foyer[data-foyer-tab=accueil] .foyer-card-icon{width:32px;height:32px;font-size:18px;border-radius:10px;background:#ebeff7;color:#1b2a4a}
.foyer[data-foyer-tab=accueil] .foyer-overview-taches .foyer-card-icon{background:#f6eddd;color:#79591f}
.foyer[data-foyer-tab=accueil] .foyer-overview-repas .foyer-card-icon{background:#f6eae4;color:#874832}
.foyer[data-foyer-tab=accueil] .foyer-preview-list{margin:0 0 10px}
.foyer[data-foyer-tab=accueil] .foyer-preview-list li{padding:10px 0;border-top:0;font-size:16px;line-height:1.45;color:#172743}
.foyer[data-foyer-tab=accueil] .foyer-item-detail{font-size:14px;line-height:1.5;color:#4b5964;margin-top:5px}
.foyer[data-foyer-tab=accueil] .foyer-assignee{color:#4b5964;font-size:11px}
.foyer[data-foyer-tab=accueil] .foyer-home-scope{font-size:12px;line-height:1.5;margin:0 0 10px;color:#4b5964}
.foyer[data-foyer-tab=accueil] .foyer-overview>.foyer-empty{padding:0;margin:0 0 12px;font-size:14px;color:#4b5964}
.foyer[data-foyer-tab=accueil] .foyer-overview>button{margin:0;min-height:44px;border:1px solid #c9d1df;background:#eef1f7;color:#1b2a4a;font-size:13px;display:inline-flex;align-items:center;gap:10px}
.foyer[data-foyer-tab=accueil] .foyer-overview>button:hover{background:#dfe5f0}
.foyer .foyer-home-secondary .foyer-overview{padding:16px}
.foyer .foyer-home-secondary .foyer-overview h2{font-size:17px}
.foyer .foyer-home-secondary .foyer-preview-list li{font-size:14px;padding:4px 0}
.foyer .foyer-home-secondary .foyer-item-detail{font-size:13px}
.foyer .foyer-home-secondary .foyer-assignee{display:none}
.foyer button:focus-visible,.foyer input:focus-visible,.foyer select:focus-visible,.foyer textarea:focus-visible,.foyer summary:focus-visible{outline:3px solid #172743;outline-offset:3px}
@supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))){.foyer .foyer-header{background:rgba(255,254,252,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}}
@media(max-width:700px){
  body[data-espace="famille"] main{padding:10px 10px 28px}
  .foyer{padding:10px;border-radius:14px}
  .foyer .foyer-header{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;margin-bottom:2px}
  .foyer .foyer-header-identity{grid-column:1/-1}
  .foyer .foyer-header h1{font-size:21px;line-height:1.2;margin:0 0 4px}
  .foyer .foyer-header-date{font-size:12px}
  .foyer .foyer-header-members{gap:6px;max-width:none}
  .foyer .foyer-header-members li{max-width:48px;font-size:10px}
  .foyer .foyer-header-members li>span:last-child{max-width:48px}
  .foyer .foyer-header-members .foyer-avatar{width:24px;height:24px;font-size:9px}
  .foyer .foyer-organise{font-size:12px;padding:10px 12px;min-height:44px}
  .foyer .foyer-household-settings{margin-bottom:4px}
  .foyer .foyer-household-settings-body{grid-template-columns:1fr}
  .foyer .foyer-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:4px;margin-bottom:12px}
  .foyer .foyer-navigation button,.foyer .foyer-nav-more>summary{font-size:11px;min-height:44px}
  .foyer .foyer-home-priorities,.foyer .foyer-home-secondary{grid-template-columns:1fr;gap:12px;margin-bottom:12px}
  .foyer[data-foyer-tab=accueil] .foyer-overview{padding:14px}
  .foyer[data-foyer-tab=accueil] .foyer-overview h2{font-size:18px}
  .foyer[data-foyer-tab=accueil] .foyer-preview-list li{font-size:16px}
  .foyer[data-foyer-tab=accueil] .foyer-item-detail{font-size:13px}
  .foyer .foyer-home-secondary .foyer-overview{padding:14px}
  @supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))){:root body[data-espace="famille"] .onglets{background:rgba(255,254,252,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}}
}
@media(prefers-contrast:more),(prefers-reduced-transparency:reduce){.foyer .foyer-header,:root body[data-espace="famille"] .onglets{background:#FFFEFC;backdrop-filter:none;-webkit-backdrop-filter:none}}
/* audit mobile : le bouton « Actualiser l'agenda » (icône seule, .fa-period) faisait 36 px de large */
@media (pointer:coarse),(max-width:600px){.foyer button[data-reload]{min-width:44px;min-height:44px;flex:none}}
