/* ==========================================================================
   Hoomly — feuille de style (charte : docs/charte-graphique.md)
   Ordinateur : menu latéral. Téléphone : barre fine, menu en tiroir, onglets en bas.
   ========================================================================== */
:root {
  --bg: #F6F5F1;           /* Lin : fond chaleureux */
  --card: #ffffff;
  --text: #1A2433;         /* Encre */
  --text-2: #3b4253;
  --muted: #687082;
  --line: #e7e9ee;
  --line-strong: #d5d9e1;
  --hover: #f2f4f7;
  --accent: #0B7A64;       /* Vert Hoomly */
  --accent-hover: #08624F;
  --accent-soft: #E5F4EF;
  --accent-ink: #063F34;
  --tuile: #E8704A;        /* Tuile : accent chaleureux (les « oo », mises en avant) */
  --tuile-soft: #FDEDE7;
  --danger: #d14343;
  --danger-soft: #fdecec;
  --warn: #9a6a00;
  --warn-bg: #fff7e6;
  --busy: #e8f0fe;
  --busy-strong: #3b6fd8;
  --cohab: #fff1e3;
  --cohab-strong: #e07b1a;
  --rented: #f3ecfb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 6px 20px rgba(16, 24, 40, .07);
  --ring: 0 0 0 3px rgba(11, 122, 100, .2);
  --sidebar: 264px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-size: 1.7rem; line-height: 1.2; letter-spacing: -.02em; margin: .1rem 0 1rem; font-weight: 700; }
h2 { font-size: 1.12rem; letter-spacing: -.01em; margin: .1rem 0 .9rem; font-weight: 650; }
h3 { font-size: .98rem; margin: 1.1rem 0 .5rem; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.inline { display: inline; }
.subtitle { margin: -.6rem 0 0; }
.text-danger { color: var(--danger); }
.ico { width: 20px; height: 20px; flex: none; }

/* --- Structure ------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.content { min-width: 0; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 48px; flex: 1; }
.public .container { max-width: 1040px; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem;
        color: var(--text); text-decoration: none; letter-spacing: -.01em; padding: 2px 8px; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
             background: var(--accent); color: #fff; }
.logo-mark .ico { width: 18px; height: 18px; }
.house-switch { margin-top: 14px; padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 12px;
                background: #fafbfc; display: flex; flex-direction: column; gap: 1px; }
.house-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.house-name { font-weight: 650; color: var(--text); text-decoration: none; overflow: hidden;
              text-overflow: ellipsis; white-space: nowrap; }
.switch-link { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted);
               text-decoration: none; margin-top: 4px; }
.switch-link .ico { width: 14px; height: 14px; }
.switch-link:hover { color: var(--accent); }

.mainnav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mainnav a, .usermenu a, .usermenu .linklike {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .94rem;
}
.mainnav a .ico, .usermenu .ico { color: #8a91a1; }
.mainnav a:hover, .usermenu a:hover, .usermenu .linklike:hover { background: var(--hover); }
.mainnav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.mainnav a.active .ico { color: var(--accent); }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
               padding: 16px 12px 6px; font-weight: 600; }
.usermenu { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 1px; }
.usermenu form { margin: 0; }
.usermenu .linklike { width: 100%; text-decoration: none; text-align: left; }
.user-card { margin-bottom: 4px; }
.user-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-id strong, .user-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
          background: linear-gradient(135deg, #12A386, #0B7A64); color: #fff; font-weight: 700; text-decoration: none; }
.small-avatar { width: 32px; height: 32px; font-size: .9rem; }

.mobilebar, .backdrop, .tabbar { display: none; }

/* Pages publiques */
.publicbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
             max-width: 1040px; margin: 0 auto; padding: 18px 24px; }
.publicbar nav { display: flex; align-items: center; gap: 1.1rem; }
.publicbar nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; }

/* Bandeaux */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 32px; font-size: .9rem;
          border-bottom: 1px solid var(--line); }
.banner .ico { width: 18px; height: 18px; }
.banner a { font-weight: 600; }
.banner-admin { background: #eef4ff; color: #233b7a; }
.banner-warn { background: var(--warn-bg); color: #5f4300; }
.banner-info { background: #e7f3ef; color: #0b5a4a; }  /* démonstration (vert Hoomly clair) */

.sitefooter { text-align: center; padding: 0 16px 28px; font-size: .82rem; color: var(--muted); }
.sitefooter a { color: var(--muted); text-decoration: none; }
.sitefooter a:hover { color: var(--text); }

/* --- Composants ----------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 18px; overflow-x: auto; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
            margin-bottom: 18px; }
.pagehead h1, .pagehead h2 { margin: 0; }
.pagehead .subtitle { margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; }

/* Formulaires */
form label { display: block; margin-bottom: 14px; font-weight: 550; font-size: .9rem; color: var(--text-2); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px; min-height: 40px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-weight: 400;
  color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[readonly] { background: #f8f9fb; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.filters label { margin: 0; min-width: 160px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.actions.centered { justify-content: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.inline-form label { margin: 0; flex: 1; min-width: 150px; }
.inline-form label.wide { flex: 3; min-width: 240px; }

/* Cases à cocher : interrupteurs */
label.check { display: flex; gap: 12px; align-items: center; font-weight: 450; color: var(--text); margin-bottom: 12px; }
label.check input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 40px; height: 24px; border-radius: 99px; background: #cfd4dc; position: relative;
  transition: background .18s;
}
label.check input[type=checkbox]::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s;
}
label.check input[type=checkbox]:checked { background: var(--accent); }
label.check input[type=checkbox]:checked::before { transform: translateX(16px); }
label.check input[type=checkbox]:focus-visible { box-shadow: var(--ring); outline: none; }
label.check input[type=checkbox]:disabled { opacity: .45; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; min-height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); text-decoration: none; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: #f8f9fb; border-color: #c4c9d3; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: #f1c4c4; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { padding: 5px 11px; min-height: 32px; font-size: .84rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit;
            text-decoration: underline; text-underline-offset: 2px; }
.linklike.danger { color: var(--danger); }

/* Messages */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid transparent;
         border-left-width: 4px; background: #fff; box-shadow: var(--shadow-sm); }
.flash ul { margin: .4rem 0 0; }
.flash-success { border-color: #bfe3da; border-left-color: var(--accent); background: #f3faf8; }
.flash-error { border-color: #f3c7c7; border-left-color: var(--danger); background: #fef5f5; color: #8a2424; }
.flash-warning { border-color: #f4dfaa; border-left-color: #e0a100; background: #fffaf0; color: #5f4300; }
.flash-info { border-color: #cfdcf6; border-left-color: var(--busy-strong); background: #f5f8ff; }

/* Tableaux */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { padding: 10px 10px; text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
            color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tbody tr:hover td { background: #fafbfc; }
.table tr:last-child td { border-bottom: 0; }
.table th.right, .table td.right { text-align: right; }
.table.compact td { padding: 7px 8px; }
.table tr.inactive { color: var(--muted); }
tr.echec td { background: #fef5f5 !important; }
.journal td { vertical-align: top; }
.pos { color: var(--accent); font-weight: 650; }
.neg { color: var(--danger); font-weight: 650; }
.bigtotal { font-size: 2.1rem; font-weight: 750; letter-spacing: -.02em; margin: 0; }

/* Pastilles */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px;
         background: #f1f3f6; font-size: .76rem; font-weight: 600; color: var(--text-2); text-decoration: none;
         white-space: nowrap; }
.b-admin { background: var(--accent-soft); color: var(--accent-ink); }
.b-limited { background: #f1f3f6; }
.b-cohab { background: var(--cohab); color: #7a3c00; }
.prio-badge-urgente { background: #fde2e2; color: #9b1c1c; }
.prio-badge-haute { background: #ffedd5; color: #7a3c00; }
.prio-badge-basse { background: #f1f3f6; color: #555; }
.badge.col-termine, .badge.etat-actif, .badge.etat-offert { background: var(--accent-soft); color: var(--accent-ink); }
.badge.col-en_cours, .badge.etat-essai { background: var(--busy); color: #1e3a8a; }
.badge.col-abandonne { background: #f1f3f6; color: #888; }
.badge.etat-retard { background: #ffedd5; color: #7a3c00; }
.badge.etat-expire { background: #fde2e2; color: #9b1c1c; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.pill { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.pill.on { background: var(--accent-soft); color: var(--accent-ink); }
.pill.off { background: #f1f3f6; color: #9aa1af; text-decoration: line-through; }

/* Tuiles du tableau de bord */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
        padding: 16px 18px; text-decoration: none; color: var(--text); display: block; position: relative;
        transition: box-shadow .15s, border-color .15s; }
a.tile:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile-label { color: var(--muted); font-size: .82rem; font-weight: 500; }
.tile-value { font-size: 1.55rem; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; }
.tile-free::before, .tile-busy::before, .tile-cohab::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; }
.tile-free::before { background: var(--accent); }
.tile-busy { background: linear-gradient(0deg, #fff, #f5f8ff); }
.tile-busy::before { background: var(--busy-strong); }
.tile-cohab { background: linear-gradient(0deg, #fff, #fff8f1); }
.tile-cohab::before { background: var(--cohab-strong); }
form.tile { display: block; }

/* Gérer la maison */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hub-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--card);
            border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
            color: var(--text); text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .15s; }
.hub-card:hover { box-shadow: var(--shadow); border-color: #bfe3da; transform: translateY(-1px); }
.hub-card.ghost { border-style: dashed; background: #fbfcfd; box-shadow: none; }
.hub-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none;
            background: var(--accent-soft); color: var(--accent); }
.hub-icon .ico { width: 22px; height: 22px; }
.hub-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hub-body strong { font-size: 1rem; }
.hub-go { color: #b3b9c5; }

/* Listes */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
details.card > summary { cursor: pointer; list-style: revert; }
details.card > summary h2 { display: inline; }
details summary { cursor: pointer; }

/* --- Planning ------------------------------------------------------------- */
.calnav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.calmonth { margin: 0; min-width: 11rem; text-align: center; text-transform: capitalize; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 14px; color: var(--muted); }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); vertical-align: middle; }
.lg-free { background: #fff; } .lg-busy { background: var(--busy); } .lg-cohab { background: var(--cohab); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calhead { text-align: center; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
           color: var(--muted); padding: 2px; }
.calday { min-height: 96px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff;
          position: relative; overflow: hidden; transition: border-color .15s; }
.calday:hover { border-color: var(--line-strong); }
.calday.out { opacity: .45; }
.calday.busy { background: var(--busy); border-color: #d6e2fb; }
.calday.cohab { background: var(--cohab); border-color: #f7dcc0; }
.calday.rented { background: var(--rented); border-color: #e6d9f5; }
.calday.today { box-shadow: inset 0 0 0 2px var(--accent); }
.calday.over { box-shadow: inset 0 0 0 2px var(--danger); }
.daynum { font-size: .8rem; font-weight: 650; color: var(--text); text-decoration: none; display: inline-grid;
          place-items: center; min-width: 24px; height: 24px; border-radius: 7px; }
.daynum:hover { background: rgba(15, 118, 110, .12); color: var(--accent-ink); }
.calday.today .daynum { background: var(--accent); color: #fff; }
.cohab-flag { position: absolute; right: 6px; top: 6px; font-size: .8rem; }
.chip { display: block; margin-top: 3px; padding: 1px 7px; border-radius: 6px; font-size: .72rem; font-weight: 600;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
        color: #fff; background: var(--busy-strong); }
span.chip { display: inline-block; }
.chip.st-demandee { background: #fff; color: var(--busy-strong); border: 1px dashed var(--busy-strong); }
.chip.st-confirmee { background: var(--busy-strong); color: #fff; border: 1px solid var(--busy-strong); }
.chip.st-annulee { background: #eee; color: #888; text-decoration: line-through; }
.chip.st-refusee { background: #fdecea; color: #a1281c; text-decoration: line-through; }
.chip.rental { background: #7c4dbd; color: #fff; border: 1px solid #7c4dbd; }
.chip.rental.pf-airbnb { background: #ff5a5f; border-color: #ff5a5f; }
.chip.rental.pf-booking { background: #003b95; border-color: #003b95; }
.chip.rental.pf-abritel { background: #1a6d84; border-color: #1a6d84; }
.chip.blocked { background: #4b5563; color: #fff; border: 1px solid #4b5563; }
.chip.platform-block { background: #fff; color: #6b7280; border: 1px dashed #a3a9b5; }
.guests { display: block; font-size: .7rem; color: var(--muted); }
.guests.over { color: var(--danger); font-weight: 700; }
.prio-band { display: block; font-size: .68rem; color: #6b4e00; background: #fdf1c4; border-radius: 5px;
             padding: 0 .3rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio-band.static { display: inline-block; }

/* --- Travaux -------------------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.column { background: #eef0f4; border-radius: var(--radius); padding: 10px; min-height: 200px; }
.column h2 { font-size: .88rem; display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.count { background: #fff; border-radius: 99px; padding: 0 .55rem; font-size: .76rem; color: var(--muted); }
.ticket { display: block; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
          text-decoration: none; color: var(--text); border: 1px solid var(--line); border-left: 4px solid #c4c9d3;
          box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.ticket:hover { box-shadow: var(--shadow); }
.ticket.prio-urgente { border-left-color: var(--danger); }
.ticket.prio-haute { border-left-color: var(--cohab-strong); }
.ticket.prio-normale { border-left-color: var(--busy-strong); }
.ticket-title { font-weight: 650; font-size: .9rem; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.description { white-space: pre-wrap; }
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.statusform { display: flex; gap: 8px; align-items: end; margin: 1rem 0; }
.statusform label { flex: 1; margin: 0; }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; background: #eef0f4; padding: 4px; border-radius: 12px; }
.tabs a { padding: 7px 14px; border-radius: 9px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.tabs a.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* --- Galerie -------------------------------------------------------------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.album { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
         text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.album:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.album img, .nocover { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.nocover { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: #eef0f4; }
.album-info { padding: 10px 14px 12px; display: flex; flex-direction: column; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.upload { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.upload label { flex: 1; min-width: 220px; margin: 0; }
.viewer { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.viewer img { max-width: 100%; max-height: 75vh; border-radius: 12px; display: block; }
.navbtn { font-size: 2.5rem; text-decoration: none; min-width: 2rem; text-align: center; }
.caption { font-size: 1.1rem; }

/* --- Locations ------------------------------------------------------------ */
.feed-error { color: var(--danger); }
.copyline { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.copyline input { flex: 1; margin-top: 0 !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }

/* --- Pages publiques ------------------------------------------------------ */
.hero { padding: 48px 20px 36px; }
.hero h1 { font-size: 2.4rem; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 640px; margin: .6rem auto 1.4rem; }

/* --- Téléphone et tablette ------------------------------------------------- */
@media (max-width: 900px) {
  .shell { display: block; }
  .mobilebar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30;
    height: 56px; padding: 0 12px; background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-title { flex: 1; min-width: 0; font-weight: 700; color: var(--text); text-decoration: none;
                  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
  .mini-mark img { display: block; border-radius: 7px; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0;
                 background: transparent; color: var(--text); cursor: pointer; }
  .menu-toggle:hover { background: var(--hover); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: min(300px, 86vw); height: auto;
             transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .menu-open .sidebar { transform: none; }
  .backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(15, 23, 42, .38); }
  .menu-open .backdrop { display: block; }
  /* Les rubriques du quotidien sont dans la barre d'onglets */
  .with-tabbar .sidebar .in-tab { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button { flex: 1; display: flex; background: none; border: 0; font: inherit; cursor: pointer; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px;
              font-size: .68rem; font-weight: 600; color: #8a91a1; text-decoration: none; }
  .tabbar a .ico, .tabbar button .ico { width: 22px; height: 22px; }
  .tabbar a.active, .tabbar button.active { color: var(--accent); }
  .container { padding: 16px 14px 32px; }
  .with-tabbar .container { padding-bottom: 92px; }
  .with-tabbar .sitefooter { padding-bottom: 84px; }
  .banner { padding: 8px 14px; font-size: .82rem; }
  h1 { font-size: 1.4rem; }
  .pagehead { margin-bottom: 14px; }
  .grid-main { grid-template-columns: 1fr; }
  .card { padding: 16px 14px; border-radius: 12px; }
  .table th, .table td { padding: 8px 6px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 12px 14px; }
  .tile-value { font-size: 1.25rem; }
  .hub { grid-template-columns: 1fr; gap: 10px; }
  .hub-card { padding: 14px; }
  .calnav { flex-wrap: wrap; gap: 6px; }
  .calmonth { min-width: 0; flex: 1; font-size: 1.05rem; }
  .calendar { gap: 3px; }
  .calhead { font-size: .66rem; }
  .calday { min-height: 56px; padding: 3px; border-radius: 8px; }
  .daynum { min-width: 20px; height: 20px; font-size: .74rem; }
  .chip { font-size: .6rem; padding: 0 4px; border-radius: 4px; }
  .filters { gap: 8px 10px; }
  .filters label { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .filters label.check { flex: 1 1 100%; }
  .publicbar { padding: 14px 16px; }
  .hero h1 { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .row2, .row3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .mobilebar, .tabbar, .backdrop, .sitefooter, .banner, .btn, .flash { display: none !important; }
  .shell { display: block; }
  .card { box-shadow: none; }
}

/* Fil d'Ariane des pages de gestion */
.backlink { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: .85rem;
            font-weight: 600; color: var(--muted); text-decoration: none; }
.backlink:hover { color: var(--accent); }
.backlink .ico { width: 16px; height: 16px; }
.ico.flip { transform: rotate(180deg); }

/* Devis et votes */
.badge.quote-accepte { background: var(--accent-soft); color: var(--accent-ink); }
.badge.quote-refuse { background: #f1f3f6; color: #9aa1af; }
.badge.quote-propose { background: var(--busy); color: #1e3a8a; }
details.add-quote { margin-top: 12px; }
details.add-quote > summary { list-style: none; display: inline-flex; }
details.add-quote > summary::-webkit-details-marker { display: none; }
details.add-quote[open] > summary { margin-bottom: 12px; }
.quote-form { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: #fafbfc; }
.poll-list { display: grid; gap: 10px; margin-bottom: 22px; }
fieldset.choices { padding: 10px 14px 2px; margin-bottom: 14px; }
fieldset.choices legend { font-weight: 600; font-size: .85rem; color: var(--muted); padding: 0 4px; }
.ballot { display: grid; gap: 8px; margin-bottom: 8px; }
.ballot .choice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; cursor: pointer;
                  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 500; }
.ballot .choice:hover { border-color: var(--accent); }
.ballot .choice.chosen, .ballot .choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ballot .choice input { width: 18px; height: 18px; margin: 0; flex: none; }
.ballot .choice a { margin-left: 6px; }
.ballot .btn { justify-self: start; margin-top: 6px; }
h2.mt { margin-top: 26px; }
.results { display: grid; gap: 14px; }
.result-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.result.winner .result-head { color: var(--accent-ink); font-weight: 650; }
progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: 99px;
               background: #eef0f4; overflow: hidden; display: block; margin-bottom: 4px; }
progress.bar::-webkit-progress-bar { background: #eef0f4; border-radius: 99px; }
progress.bar::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.result:not(.winner) progress.bar::-webkit-progress-value { background: #7fb9b2; }
.result:not(.winner) progress.bar::-moz-progress-bar { background: #7fb9b2; }
.card > h2:not(:first-child), .card > h2[id]:not(:first-child) { margin-top: 26px; }
.card > .actions + details, .card > details + h2 { margin-top: 14px; }
@media (max-width: 900px) { .tabbar a { font-size: .62rem; } }

/* Informations et documents */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 12px; }
.note { margin-bottom: 0; }
.note.pinned { border-color: #bfe3da; background: linear-gradient(0deg, #fff, #f6fbfa); }
.note-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.note-head h3 { margin: 0; }
.badge .ico { width: 13px; height: 13px; }
.badge.vis-occupants { background: #f1f3f6; }
.badge.vis-gestionnaires { background: #eef4ff; color: #233b7a; }
.badge.vis-proprietaires { background: #fdf1c4; color: #6b4e00; }
.section-head { margin-top: 28px; }
.compact-select { min-width: 220px !important; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.doc-link .ico { width: 18px; height: 18px; }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; display: flex; flex-direction: column; }
.offer h3 { margin: 0 0 6px; font-size: 1.05rem; }
.offer .actions { margin-top: auto; }
.offer.featured { border-color: #bfe3da; box-shadow: var(--shadow); }
.offer.current { border: 2px solid var(--accent); }
.offer-price { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; margin: 0 0 8px; }
.offer ul.plain li { padding: 6px 0; }
.promo { max-width: 320px; }
.mt-s { margin-top: 14px; }
progress.bar.full::-webkit-progress-value { background: var(--danger); }
progress.bar.full::-moz-progress-bar { background: var(--danger); }
.badge.etat-gratuit { background: #f1f3f6; }

/* Événements des alentours */
.chip.nearby { background: #fff7e6; color: #8a5a00; border: 1px solid #f4dfaa; }
.chip.nearby.cat-fete { background: #fdf2f8; color: #9d174d; border-color: #f9c9e1; }
.chip.nearby.cat-marche { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.chip.nearby.cat-culture { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.chip.nearby.cat-sport { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.chip.nearby.cat-pratique { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* Planning : jours cliquables, pastilles et agenda sur téléphone */
a.calday { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.calday:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
a.calday:focus-visible { outline: none; box-shadow: var(--ring); }
.calday .daynum { pointer-events: none; }
.dots { display: none; gap: 3px; justify-content: center; margin-top: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.d-stay { background: var(--busy-strong); }
.d-rent { background: #7c4dbd; }
.d-near { background: #e0a100; }
.mobile-only { display: none; }
.calhint { margin: -4px 0 10px; }
.day-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.day-title::first-letter { text-transform: uppercase; }
.badge.day-status.st-libre { background: var(--accent-soft); color: var(--accent-ink); }
.badge.day-status.st-occupée { background: var(--busy); color: #1e3a8a; }
.badge.day-status.st-louée, .badge.day-status.st-bloquée { background: var(--rented); color: #5b21b6; }
.agenda ul.plain li { display: flex; gap: 10px; align-items: baseline; }
.agenda-day { min-width: 58px; text-decoration: none; color: var(--text); }
.agenda-items { display: flex; flex-wrap: wrap; gap: 4px; }
.agenda-items .chip { display: inline-block; margin: 0; font-size: .72rem; }
.btn.block { width: 100%; }
@media (max-width: 600px) {
  .calday { min-height: 46px; text-align: center; }
  .calday .chip, .calday .prio-band, .calday .guests, .calday .cohab-flag { display: none; }
  .dots { display: flex; }
  .mobile-only { display: block; }
  .calhint { font-size: .78rem; }
}

/* Discussions */
.topic-list { display: grid; gap: 10px; }
.topic-row { display: flex; align-items: center; gap: 14px; margin: 0; text-decoration: none; color: var(--text); padding: 14px 18px; }
.topic-row:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.topic-row.pinned { border-color: #bfe3da; }
.topic-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.topic-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.message-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.message-head form { margin-left: auto; }
.poll-fields { border-left: 3px solid var(--accent-soft); padding-left: 12px; }

/* Page de présentation (marketing) */
.mk-hero { text-align: center; padding: 56px 8px 40px; }
.mk-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.035em; line-height: 1.08; margin: 10px 0 18px; }
.mk-accent { background: linear-gradient(90deg, #0B7A64, #E8704A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-kicker { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 12px; border-radius: 99px; margin: 0; }
.mk-hero .lead { margin: 0 auto 26px; max-width: 680px; font-size: 1.15rem; }
.mk-cta { min-height: 46px; padding: 10px 22px; font-size: 1rem; }
.mk-section { padding: 36px 0; }
.mk-h2 { font-size: 1.6rem; letter-spacing: -.02em; text-align: center; margin-bottom: 22px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.mk-card h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.mk-card p { margin: 0; color: var(--text-2); }
.mk-band { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; margin: 20px 0; }
.mk-band .mk-h2 { text-align: left; font-size: 1.3rem; }
.mk-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.mk-list { padding-left: 18px; margin: 0; }
.mk-list li { margin-bottom: 10px; }
.mk-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.mk-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.mk-faq summary { font-weight: 600; }
.mk-faq p { margin: 10px 0 0; color: var(--text-2); }
.mk-final { text-align: center; padding-bottom: 60px; }
.auth-wrap { display: grid; gap: 18px; }
.demo-entry { text-align: center; background: linear-gradient(180deg, #f3faf8, #fff); }
.demo-entry .actions { justify-content: center; }
.legal-doc h2 { margin-top: 26px; }
.legal-doc li { margin-bottom: 6px; }
.legal-box { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 16px; background: #fafbfc; }
.label-like { display: block; font-weight: 550; font-size: .9rem; color: var(--text-2); margin-bottom: 6px; }

/* Identité Hoomly : logo (symbole + mot-symbole) */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; min-width: 0; }
.brand-word { font-weight: 800; font-size: 1.42rem; letter-spacing: -.05em; color: var(--text); }
.brand-oo { color: var(--tuile); }
.brand-tagline { font-size: .72rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 3px; white-space: normal; max-width: 240px; }
.logo { padding: 2px 6px; }
.logo .brand-mark { width: 34px; height: 34px; }
.brand-hero .brand-mark { width: 64px; height: 64px; }
.brand-hero .brand-word { font-size: 2.6rem; }
.mk-kicker { background: var(--tuile-soft); color: #8A3B1F; }
.mk-hero .mk-what { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.mk-what li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.mk-what li span { color: var(--tuile); margin-right: 6px; }
@media (max-width: 900px) { .publicbar .brand-tagline { display: none; } }.auth-brand { margin-bottom: 14px; display: flex; justify-content: center; }
.auth-brand .brand-text { text-align: left; }
.badge.premium { background: var(--tuile-soft); color: #8A3B1F; }

/* Matrice « Accès aux fonctions » : défile seule sur téléphone, 1re colonne fixe */
.matrix-wrap { overflow-x: auto; margin: 0 -4px; }
.matrix th[scope="col"] { white-space: nowrap; }
.matrix th[scope="row"] { position: sticky; left: 0; background: var(--card, #fff); text-transform: none; letter-spacing: 0; font-size: .9rem; color: inherit; }
.matrix input[type="checkbox"] { width: 20px; height: 20px; }
.matrix th.center, .matrix td.center { text-align: center; }

/* Configuration des frais, pas à pas */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.steps a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; font-weight: 600; }
.steps .current a { background: var(--accent); border-color: transparent; color: #fff; }
.step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.08); font-size: .8rem; }
.steps .current .step-n { background: rgba(255,255,255,.25); }
.rule-row { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 8px; }
.rule-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.shares { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; }
.share { display: flex; flex-direction: column; font-size: .9rem; width: 120px; }
.narrow-field { max-width: 260px; }
.shares > span { flex-basis: 100%; }
