/* Mise en page : une colonne façon application mobile, centrée sur grand écran. */
:root {
  --fond: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --encre: #18212f;
  --doux: #5a6476;
  --trait: #dbe1ea;
  --accent: #2f5bd3;
  --accent-doux: #e4ebfb;
  --bulle-moi: #2f5bd3;
  --bulle-moi-texte: #ffffff;
  --erreur: #b42318;
  --avis-fond: #fff5e0;
  --avis-texte: #7a4b00;
  --titre: "Outfit", "Segoe UI", system-ui, sans-serif;
  --texte: "Inter", "Segoe UI", system-ui, sans-serif;
  --rayon: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #11151c; --surface: #1a202a; --surface-2: #222937; --encre: #e8ecf3; --doux: #9aa4b6;
    --trait: #2e3646; --accent: #7d9df0; --accent-doux: #25304a; --bulle-moi: #3d63cf; --bulle-moi-texte: #ffffff;
    --erreur: #ff8a80; --avis-fond: #3a2e14; --avis-texte: #f5d08a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #11151c; --surface: #1a202a; --surface-2: #222937; --encre: #e8ecf3; --doux: #9aa4b6;
  --trait: #2e3646; --accent: #7d9df0; --accent-doux: #25304a; --bulle-moi: #3d63cf; --bulle-moi-texte: #ffffff;
  --erreur: #ff8a80; --avis-fond: #3a2e14; --avis-texte: #f5d08a; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 15px/1.5 var(--texte);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
#app { max-width: 600px; margin: 0 auto; padding-block: 12px 40px; }
h1, h2 { font-family: var(--titre); text-wrap: balance; margin: 0; }
h1 { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; font-weight: 600; }
small { color: var(--doux); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { flex: none; }

.page { display: flex; flex-direction: column; gap: 22px; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; }
.aide { color: var(--doux); font-size: 0.88rem; margin: 0; display: flex; align-items: center; gap: 6px; }
.vide { color: var(--doux); margin: 0; padding: 18px; text-align: center; border: 1px dashed var(--trait); border-radius: var(--rayon); }
.erreur { color: var(--erreur); margin: 0; font-size: 0.9rem; }
.avis { background: var(--avis-fond); color: var(--avis-texte); padding: 10px 12px; border-radius: 10px; margin: 0; font-size: 0.92rem; }
.note { color: var(--doux); font-size: 0.85rem; text-align: center; margin: 0; }
.lien { background: none; border: 0; color: var(--accent); text-decoration: underline; padding: 0; }

.bouton { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bouton.principal { background: var(--accent); color: #fff; }
.bouton.secondaire { background: var(--surface); border: 1px solid var(--trait); }
.bouton.large { width: 100%; }

.avatar { --c: var(--accent); width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--titre); font-weight: 600; font-size: 1.05rem; flex: none; }
.logo { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.logo.grand { width: 56px; height: 56px; border-radius: 16px; font-size: 30px; }

/* Connexion */
.connexion { display: flex; flex-direction: column; gap: 16px; }
.titre-connexion { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-block: 18px 6px; }
.titre-connexion p { margin: 0; color: var(--doux); }
.famille h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.famille h2 small { font-family: var(--texte); font-weight: 400; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.membre { background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.membre:hover { border-color: var(--accent); }
.membre .prenom { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membre small { font-size: 0.75rem; }

/* En-tête et onglets */
/* Barre du haut fixe : onglets + personne ; seul le contenu défile dessous */
.entete { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: -12px 0 20px; padding: 12px 0 10px; background: var(--fond); }
.entete .onglets { flex: 1; margin: 0; }
.marque { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marque strong { font-family: var(--titre); font-size: 1.1rem; display: block; line-height: 1.2; }
.marque small { display: block; font-size: 0.8rem; }
.moi { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--trait); border-radius: 999px; padding: 4px; font-weight: 600; flex: none; }
.moi .avatar { width: 38px; height: 38px; font-size: 1rem; }
.onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.onglets button { border: 0; background: none; border-radius: 10px; padding: 9px; font-weight: 600; color: var(--doux); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.95rem; }
.onglets button.actif { background: var(--accent-doux); color: var(--accent); }

/* Accueil */
.bienvenue { display: flex; flex-direction: column; gap: 12px; }
.composer { display: flex; gap: 8px; align-items: flex-end; background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: 8px 8px 8px 14px; }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { flex: 1; min-width: 0; border: 0; background: none; resize: none; padding: 8px 0; min-height: 40px; max-height: 160px; field-sizing: content; outline: none; }
.envoyer { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.envoyer:disabled { opacity: 0.7; }

.experts { display: flex; flex-direction: column; gap: 10px; }
.experts-titre p { margin: 2px 0 0; color: var(--doux); font-size: 0.86rem; }
.rangee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.expert { --e: var(--accent); position: relative; background: var(--surface); border: 1.5px solid var(--trait); border-radius: 14px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.expert .icone { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--e); background: color-mix(in srgb, var(--e) 14%, transparent); }
.expert .nom { font-weight: 600; font-size: 0.86rem; text-align: center; line-height: 1.2; }
.expert.choisi { border-color: var(--e); background: color-mix(in srgb, var(--e) 8%, var(--surface)); }
.expert.tous { --e: var(--doux); }
.expert:disabled { opacity: 0.55; }
.expert:disabled .icone { filter: grayscale(1); }
.bientot { position: absolute; top: 6px; right: 6px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-2); color: var(--doux); border-radius: 6px; padding: 1px 5px; }

.discussions, .bilans, .jour { display: flex; flex-direction: column; gap: 10px; }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.discussion, .evenement { width: 100%; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
.discussion:hover { border-color: var(--accent); }
.pastille { --e: var(--accent); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--e); background: color-mix(in srgb, var(--e) 14%, transparent); flex: none; }
.corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.corps strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corps small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 0.8rem; color: var(--doux); text-align: right; display: flex; flex-direction: column; flex: none; font-variant-numeric: tabular-nums; }
.grille-bilans { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.bilan { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.bilan b { font-variant-numeric: tabular-nums; }

/* Discussion */
.conversation { gap: 14px; }
.barre-discussion { display: flex; align-items: center; gap: 10px; }
.barre-discussion div { min-width: 0; display: flex; flex-direction: column; }
.barre-discussion strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retour { background: none; border: 0; padding: 6px; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 1rem; align-self: flex-start; }
.barre-discussion .retour { font-size: 1.3rem; align-self: center; }
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.messages li { max-width: 85%; padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; }
.messages .ia { background: var(--surface); border: 1px solid var(--trait); border-bottom-left-radius: 6px; align-self: flex-start; }
.messages .moi { background: var(--bulle-moi); color: var(--bulle-moi-texte); border-bottom-right-radius: 6px; align-self: flex-end; }
.points { display: inline-flex; gap: 4px; }
.points i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: point 1s infinite; }
.points i:nth-child(2) { animation-delay: 0.15s; }
.points i:nth-child(3) { animation-delay: 0.3s; }
@keyframes point { 50% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .points i { animation: none; opacity: 0.8; } }

/* Agenda et famille */
.jour h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--doux); }
.heure { font-family: var(--titre); font-weight: 600; color: var(--accent); width: 52px; flex: none; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.25; }
.heure small { font-family: var(--texte); font-weight: 400; font-size: 0.78rem; }
.icone-bouton { background: none; border: 0; color: var(--doux); padding: 6px; font-size: 18px; border-radius: 8px; display: grid; place-items: center; }
.icone-bouton:hover { color: var(--erreur); }
.formulaire { display: flex; flex-direction: column; gap: 10px; }
.formulaire label, legend { font-weight: 600; font-size: 0.88rem; }
.formulaire input, .formulaire select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--surface-2); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deux > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
legend { margin-bottom: 6px; padding: 0; }
.case { display: flex; align-items: center; gap: 6px; font-weight: 400 !important; }
.case input { width: auto; }
#lignes { display: flex; flex-direction: column; gap: 8px; }
.ligne-membre { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.4fr; gap: 6px; }
@media (max-width: 480px) {
  .ligne-membre { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--trait); }
  .rangee { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.note b { white-space: nowrap; }

/* Experts en filtres : petits carrés à droite des discussions */
.zone-discussions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.filtres { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); padding-top: 32px; }
.filtre { --e: var(--accent); width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--trait); background: var(--surface); color: var(--e); display: grid; place-items: center; font-size: 20px; padding: 0; }
.filtre:hover:not(:disabled) { border-color: var(--e); }
.filtre.choisi { border-color: var(--e); background: color-mix(in srgb, var(--e) 16%, var(--surface)); }
.filtre:disabled { opacity: 0.4; filter: grayscale(1); }
.discussions h2 small { font-family: var(--texte); font-weight: 400; }

/* Agenda : vue famille ou moi, navigation par semaine */
.agenda-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bascule { display: flex; background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 3px; }
.bascule button { border: 0; background: none; border-radius: 8px; padding: 6px 12px; font-weight: 600; color: var(--doux); }
.bascule button.actif { background: var(--accent-doux); color: var(--accent); }
.periode { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; padding: 4px; }
.periode strong { font-size: 0.92rem; text-align: center; }
.periode .suivant svg { transform: rotate(180deg); }
.icone-bouton:disabled { opacity: 0.3; }
.trois { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.trois > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* Bouton « + » sous la zone de saisie : photo ou image */
.composer-bloc { display: flex; flex-direction: column; gap: 6px; }
.sous-composer { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.menu-plus { position: relative; }
.bouton-plus { list-style: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--trait); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.bouton-plus::-webkit-details-marker { display: none; }
.bouton-plus svg { width: 20px; height: 20px; }
.menu-plus[open] .bouton-plus { background: var(--accent-doux); }
.menu-plus-choix { position: absolute; top: 42px; left: 0; z-index: 5; background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); min-width: 210px; }
.menu-plus-choix label { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; }
.menu-plus-choix label:hover { background: var(--surface-2); }
.menu-plus-choix svg { width: 18px; height: 18px; color: var(--accent); }
.piece-jointe { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .85rem; }
.piece-jointe:empty { display: none; }
.piece-jointe img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.piece-jointe span { display: flex; flex-direction: column; min-width: 0; }
.piece-jointe small { color: var(--doux); font-size: .75rem; }
.info-image { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgb(255 255 255 / .3); font-size: .8rem; opacity: .9; }
.info-image svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* Deux barres verticales en bas à droite : quota de la semaine et stockage */
.conso { display: grid; gap: 14px; margin-bottom: 14px; }
.conso-titre { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.conso-ligne small { color: var(--doux); font-size: .8rem; }
.barre-h { position: relative; height: 10px; margin: 6px 0 4px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--trait); overflow: hidden; }
.barre-h span { position: absolute; left: 0; top: 0; bottom: 0; background: #16a34a; border-radius: 4px; }
.barre-h span.moyen { background: #d97706; }
.barre-h span.bas { background: var(--erreur); }
.barre-h span.stock { background: var(--accent); }
.barre-h .repere { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--encre); opacity: .45; z-index: 1; }
.page { padding-bottom: 110px; }
.messages li:has(> .info-image) { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.messages .info-image { color: inherit; }

/* V1.0 */
.version { font-family: var(--texte); font-size: .62em; font-weight: 600; color: var(--accent); background: var(--accent-doux); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }

/* Rendez-vous proposés depuis une photo */
.proposition { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--trait); color: var(--encre); width: 100%; }
.proposition strong { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.proposition input[name="titre"], .proposition .trois input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); }
.proposition fieldset { font-size: .85rem; }
.proposition .actions { display: flex; gap: 8px; }
.proposition .bouton { padding: 8px 14px; }
.etat-prop, .coche { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; }
.coche { color: #15803d; }
.coche.annulee { color: var(--doux); }
.messages li:has(> .proposition), .messages li:has(> .etat-prop), .messages li:has(> .coche) { display: flex; flex-direction: column; align-items: flex-start; }

/* Todo list des événements */
.evenement-bloc { display: flex; flex-direction: column; gap: 0; }
.compteur-taches { border: 1px solid var(--trait); background: var(--surface-2); border-radius: 8px; padding: 4px 8px; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--doux); flex: none; }
.compteur-taches.complet { color: #15803d; border-color: #15803d; }
.todo { display: flex; flex-direction: column; gap: 8px; margin: -6px 0 0; padding: 14px 12px 12px; background: var(--surface-2); border: 1px solid var(--trait); border-top: 0; border-radius: 0 0 var(--rayon) var(--rayon); }
.taches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.taches li { display: flex; align-items: center; gap: 8px; }
.taches label { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.taches li.fait label { text-decoration: line-through; color: var(--doux); }
.taches small { font-size: .7rem; background: var(--accent-doux); color: var(--accent); border-radius: 4px; padding: 0 5px; }
.ajout-tache { display: flex; gap: 6px; }
.ajout-tache input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); }
.todo .lien { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .88rem; }
.bandeau-evt { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.bandeau-evt strong { display: inline-flex; align-items: center; gap: 6px; }
.proposition .trois { grid-template-columns: 1fr 1fr; }
.proposition .trois input[type="date"] { grid-column: 1 / -1; }

/* Fiches recettes et instructions */
.fiche-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--trait); background: var(--surface-2); color: var(--accent); font-weight: 600; font-size: .85rem; text-align: left; }
.fiche-lien small { color: var(--doux); font-weight: 400; white-space: nowrap; }
.messages li:has(> .fiche-lien), .messages li:has(> .etapes) { display: flex; flex-direction: column; align-items: flex-start; }
.etapes { margin-top: 6px; font-size: .72rem; color: var(--doux); }
.fiche { display: flex; flex-direction: column; gap: 10px; }
.fiche h1 { font-size: 1.5rem; }
.fiche h2 { font-size: .95rem; margin-top: 6px; }
.fiche ul, .fiche ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.type-fiche { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.infos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--doux); }
.infos b { color: var(--encre); font-weight: 600; }
.plus-loin { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--trait); }
.plus-loin a { color: var(--accent); }
.actions-fiche { display: flex; gap: 8px; flex-wrap: wrap; }
.liens { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--trait); width: 100%; }
.liens a { color: var(--accent); font-size: .86rem; font-weight: 600; text-decoration: none; }
.liens a:hover { text-decoration: underline; }
.liens small { color: var(--doux); font-weight: 400; margin-left: 4px; }
.messages li:has(> .liens) { display: flex; flex-direction: column; align-items: flex-start; }

/* Comptes personnels : code à 4 chiffres, partage, historique */
.avatar.grand { width: 64px; height: 64px; font-size: 1.6rem; margin: 0 auto; }
.code4 { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.messages .autre { background: var(--surface-2); border: 1px solid var(--trait); border-bottom-left-radius: 6px; align-self: flex-start; display: flex; flex-direction: column; align-items: flex-start; }
.messages .auteur { font-weight: 600; font-size: .75rem; color: var(--doux); }
.barre-discussion .partager { margin-left: auto; }
.barre-discussion .partager[aria-expanded="true"] { background: var(--surface-2); }
.partage fieldset { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; padding: 0; margin: 0; }
.partage-info { margin: 0; }
.partagee { font-weight: 600; color: var(--accent); }
.partagee svg { width: 1em; height: 1em; vertical-align: -2px; }
.historique summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.historique summary small { color: var(--doux); }
.historique ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.historique small { color: var(--doux); margin-right: 6px; font-variant-numeric: tabular-nums; }
.historique li.alerte { color: var(--erreur); }
.confirmer { list-style: none; display: grid; gap: 10px; border-color: var(--erreur); }
.confirmer p { margin: 0; font-size: .92rem; }
.alerte-compte { margin-bottom: 12px; }
.alerte-compte svg { width: 1em; height: 1em; vertical-align: -2px; }

/* Agenda : le mien, plus ceux que je coche (fusionnés) */
.agendas { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.agenda-chip { --c: var(--accent); position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--doux); cursor: pointer; }
.agenda-chip input { position: absolute; opacity: 0; pointer-events: none; }
.agenda-chip i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); }
.agenda-chip.actif { color: var(--encre); border-color: var(--c); }
.agenda-chip.actif i { background: var(--c); }
.agenda-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pastilles { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.pastilles i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.version-pied { text-align: center; font-size: .8rem; }
.coche.proposee { flex-wrap: wrap; color: var(--encre); background: var(--surface-2); border: 1px solid var(--trait); border-radius: 12px; padding: 8px 10px; font-size: .9rem; }
.coche.proposee span { display: flex; gap: 6px; }
.bouton.petit { padding: 6px 12px; font-size: .85rem; width: auto; }

/* Ma fiche (centres d'intérêt, style) */
.ma-fiche { display: grid; gap: 10px; }
.ma-fiche-tete { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ma-fiche-tete small { color: var(--doux); }
.ma-fiche .aide { margin: 0; font-size: .85rem; }
.interets { display: flex; flex-wrap: wrap; gap: 6px; }
.interet { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border-radius: 999px; background: var(--accent-doux); color: var(--accent); font-weight: 600; font-size: .9rem; }
.interet.deduit { background: var(--surface-2); color: var(--encre); }
.interet small { font-weight: 400; color: var(--doux); font-size: .7rem; }
.interet .icone-bouton { width: 24px; height: 24px; padding: 0; }
.interet .icone-bouton svg { width: 14px; height: 14px; }
