:root {
  --navy: #112f4d;
  --navy-light: #1f4d75;
  --sky: #a4d7ff;
  --sky-soft: #e5f4ff;
  --page: #f7f1ee;
  --white: #ffffff;
  --ink-muted: #52708c;
  --shadow: 5px 6px 2px rgba(31, 39, 47, .23);
  --shadow-hover: 8px 10px 15px rgba(31, 39, 47, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px; margin: 0; overflow-x: hidden; color: var(--navy);
  background: radial-gradient(circle at 8% 9%, rgba(164, 215, 255, .19), transparent 20rem), radial-gradient(circle at 92% 40%, rgba(255, 255, 255, .74), transparent 22rem), var(--page);
  font-family: "Nunito", Arial, sans-serif; -webkit-font-smoothing: antialiased;
}
a, button { -webkit-tap-highlight-color: transparent; }

.site-header { width: 100%; min-height: 158px; padding: 37px clamp(24px, 3.2vw, 58px) 0; display: flex; justify-content: space-between; align-items: flex-start; }
.brand { display: block; width: 188px; border-radius: 15px; transition: transform .22s ease, filter .22s ease; }
.brand:hover { filter: drop-shadow(0 7px 7px rgba(17, 47, 77, .16)); transform: translateY(-3px) rotate(-1deg); }
.brand img { display: block; width: 100%; height: auto; }

.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 17px; overflow: hidden;
  border: 2px solid var(--navy); border-radius: 9px; color: var(--white); background: var(--navy); box-shadow: 0 3px 0 #08243d;
  font: 900 15px/1 "Nunito", sans-serif; letter-spacing: -.1px; text-decoration: none; cursor: pointer; isolation: isolate;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.button::after { position: absolute; z-index: -1; top: 0; left: -110%; width: 75%; height: 100%; content: ""; background: rgba(255,255,255,.15); transform: skewX(-25deg); transition: left .5s ease; }
.button:hover { border-color: var(--navy-light); background: var(--navy-light); box-shadow: 0 5px 0 #0b2943; transform: translateY(-3px); }
.button:hover::after { left: 135%; }
.button:active { box-shadow: 0 1px 0 #0b2943; transform: translateY(2px); }
.button:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.button--small { margin-top: 14px; min-height: 39px; padding-inline: 16px; font-size: 14px; }

.page-content { width: min(690px, calc(100% - 40px)); margin: 0 auto 56px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 900; }
h1 { margin-bottom: 21px; font-size: clamp(32px, 4vw, 39px); line-height: 1.12; letter-spacing: -1.15px; }
h2 { position: relative; width: fit-content; margin: 44px 0 23px; font-size: clamp(32px, 4vw, 38px); line-height: 1.1; letter-spacing: -1.1px; }
h2::after { position: absolute; right: 3px; bottom: -7px; left: 2px; height: 5px; border-radius: 20px; content: ""; background: var(--sky); transform: scaleX(.42); transform-origin: left; }

.surface, .news-card { border: 1px solid rgba(17,47,77,.025); border-radius: 19px; background: var(--white); box-shadow: var(--shadow); }
.intro__message { position: relative; padding: 20px 20px 21px; overflow: hidden; }
.intro__message::before { position: absolute; top: -30px; right: -25px; width: 115px; height: 115px; border: 18px solid var(--sky-soft); border-radius: 50%; content: ""; }
.intro__message p, .text-panel p { position: relative; z-index: 1; margin-bottom: 0; font-size: 25px; line-height: 1.4; letter-spacing: -.35px; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.news-card { padding: 17px 17px 15px; overflow: hidden; border-radius: 18px; }
.news-card img { width: 100%; height: 73px; display: block; border-radius: 12px; object-fit: cover; }
.news-card h3 { margin: 10px 0 8px; font-size: 16px; line-height: 1.05; }
.news-card p { margin-bottom: 13px; color: #264663; font-size: 12px; line-height: 1.38; }
.news-card small { display: block; color: var(--ink-muted); font-size: 8px; line-height: 1.1; font-weight: 800; }
.news, .ideas { text-align: left; }
.button--overlap { display: flex; width: max-content; min-height: 38px; margin: -6px auto 0; padding: 8px 14px; border-radius: 7px; font-size: 14px; }

.text-panel { padding: 24px 20px 21px; }
.text-panel h3 { margin: 38px 0 37px; font-size: 24px; line-height: 1.1; letter-spacing: -.55px; }
.ideas .text-panel p + h3 { margin-top: 37px; }
.button--idea { margin-top: -7px; font-size: 14px; }
.information h2 { margin-top: 44px; }
.text-panel--footer { padding-bottom: 21px; }
.text-panel--footer h3 { margin: 0 0 37px; font-size: 24px; }
.text-panel--footer p { margin-bottom: 38px; }
.text-panel--footer p:last-child { margin-bottom: 0; }
.text-panel strong { color: var(--navy-light); font-weight: 900; }

@media (max-width: 720px) {
  .site-header { min-height: 132px; padding: 27px 24px 0; }
  .brand { width: 154px; }
  .button--small { margin-top: 9px; }
  .page-content { width: min(560px, calc(100% - 36px)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .news-card { padding: 16px; }
  .news-card img { height: 112px; }
}
@media (max-width: 520px) {
  .site-header { min-height: 104px; padding: 20px 16px 0; }
  .brand { width: 126px; }
  .button--small { min-height: 35px; margin-top: 7px; padding: 8px 11px; border-radius: 8px; font-size: 12px; }
  .page-content { width: calc(100% - 28px); margin-bottom: 36px; }
  h1 { margin-bottom: 17px; font-size: 30px; letter-spacing: -.9px; }
  h2 { margin-top: 37px; margin-bottom: 21px; font-size: 30px; letter-spacing: -.85px; }
  .surface, .news-card { border-radius: 16px; }
  .intro__message, .text-panel { padding: 18px 17px; }
  .intro__message p, .text-panel p { font-size: 20px; line-height: 1.42; letter-spacing: -.2px; }
  .intro__message::before { top: -47px; right: -47px; width: 110px; height: 110px; }
  .news-grid { grid-template-columns: 1fr; gap: 15px; }
  .news-card { padding: 14px; }
  .news-card img { height: 145px; }
  .news-card h3 { margin-top: 12px; font-size: 17px; }
  .news-card p { font-size: 13px; }
  .news-card small { font-size: 9px; }
  .button--overlap { min-height: 39px; font-size: 13px; }
  .text-panel h3, .text-panel--footer h3 { margin: 34px 0; font-size: 21px; }
  .text-panel--footer p { margin-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Page connexion et espace membre */
.account-page { min-height: 100vh; }
.account-header { min-height: 145px; }
.back-link {
  margin-top: 24px; color: var(--navy); font-size: 15px; font-weight: 900;
  text-decoration: none; transition: color .2s ease, transform .2s ease;
}
.back-link:hover { color: var(--navy-light); transform: translateX(-3px); }
.back-link:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 4px; }
.account-layout { width: min(510px, calc(100% - 40px)); margin: 0 auto 64px; }
.account-card {
  position: relative; padding: 34px; overflow: hidden; border: 1px solid rgba(17,47,77,.04); border-radius: 24px; background: var(--white);
  box-shadow: var(--shadow);
}
.account-card::after {
  position: absolute; top: -74px; right: -70px; width: 155px; height: 155px; border: 24px solid var(--sky-soft); border-radius: 50%; content: "";
}
.account-card[hidden] { display: none; }
.eyebrow { position: relative; z-index: 1; margin-bottom: 10px; color: var(--navy-light); font-size: 12px; font-weight: 900; letter-spacing: 1.15px; }
.account-card h1 { position: relative; z-index: 1; margin-bottom: 13px; }
.account-intro { position: relative; z-index: 1; max-width: 380px; margin-bottom: 28px; color: #42627e; font-size: 18px; line-height: 1.42; }
.account-form { position: relative; z-index: 1; display: grid; gap: 9px; }
.account-form label { margin-top: 8px; font-size: 14px; font-weight: 900; }
.account-form input, .account-form select {
  width: 100%; min-height: 47px; padding: 10px 13px; border: 2px solid #d8e4ee; border-radius: 10px; color: var(--navy); background: #fbfdff;
  font: 700 16px/1.2 "Nunito", sans-serif; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.account-form input:hover, .account-form select:hover { border-color: #b8d4e9; }
.account-form input:focus, .account-form select:focus { border-color: var(--sky); background: var(--white); box-shadow: 0 0 0 4px rgba(164,215,255,.28); }
.form-message { min-height: 18px; margin: 3px 0 0; color: #a9333a; font-size: 13px; font-weight: 800; line-height: 1.3; }
.form-message[data-type="success"] { color: #16714c; }
.button--form { justify-self: start; margin-top: 5px; }
.account-form--create { padding-top: 25px; border-top: 1px solid #e6edf2; }
.account-form--create h2 { margin: 0; font-size: 25px; letter-spacing: -.55px; }
.account-form--create > p:not(.form-message) { margin: 0 0 4px; color: #52708c; font-size: 15px; line-height: 1.4; }
.text-button { position: relative; z-index: 1; margin-top: 27px; padding: 0; border: 0; color: var(--navy-light); background: transparent; font: 900 14px/1 "Nunito", sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: #a9333a; }
.text-button:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 3px; }

/* Navigation, pages publiques et tableau de bord */
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 25px); }
.site-nav > a:not(.button) { color: var(--navy); font-size: 15px; font-weight: 900; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.site-nav > a:not(.button):hover, .site-nav > a.is-current { color: var(--navy-light); transform: translateY(-2px); }
.site-nav > a.is-current { text-decoration: underline 3px var(--sky); text-underline-offset: 7px; }
.page-header { min-height: 142px; }
.listing-page, .ideas-page { width: min(940px, calc(100% - 40px)); margin: 0 auto 65px; }
.listing-page > h1, .idea-intro h1 { margin-bottom: 12px; }
.listing-intro, .idea-intro > p:last-child { max-width: 620px; margin-bottom: 34px; color: #42627e; font-size: 20px; line-height: 1.45; }
.public-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.public-card { overflow: hidden; border-radius: 19px; background: var(--white); box-shadow: var(--shadow); }
.public-card > img { display: block; width: 100%; height: 174px; object-fit: cover; }
.public-card__content { padding: 19px; }
.public-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.1; letter-spacing: -.45px; }
.public-card h2::after { display: none; }
.public-card p { margin-bottom: 17px; color: #34526d; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.public-card small, .idea-card small, .moderation-item small { color: var(--ink-muted); font-size: 12px; font-weight: 800; }
.empty-state { margin: 18px 0; padding: 16px; border-radius: 12px; color: #42627e; background: rgba(255,255,255,.7); font-weight: 800; text-align: center; }
.idea-intro { max-width: 690px; }
.idea-submit { max-width: 660px; padding: 27px; }
.idea-submit h2 { margin: 0 0 21px; font-size: 26px; }
.idea-submit h2::after { display: none; }
.account-form textarea { width: 100%; min-height: 122px; padding: 12px 13px; resize: vertical; border: 2px solid #d8e4ee; border-radius: 10px; color: var(--navy); background: #fbfdff; font: 700 16px/1.4 "Nunito", sans-serif; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.account-form textarea:focus { border-color: var(--sky); background: var(--white); box-shadow: 0 0 0 4px rgba(164,215,255,.28); }
.check-label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.check-label input { width: 18px; min-height: auto; height: 18px; accent-color: var(--navy); }
.ideas-list-section h2 { margin-top: 52px; }
.ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.idea-card { padding: 21px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.idea-card > p { min-height: 76px; margin-bottom: 17px; font-size: 17px; font-weight: 700; line-height: 1.42; white-space: pre-wrap; }
.vote-box { display: flex; gap: 9px; margin-top: 18px; }
.vote-button, .action-accept, .action-reject { padding: 8px 11px; border: 1px solid #d6e3ed; border-radius: 8px; color: var(--navy); background: #f7fbff; font: 900 13px/1 "Nunito", sans-serif; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.vote-button:hover, .vote-button.is-selected { color: var(--white); background: var(--navy); transform: translateY(-2px); }
.dashboard-nav { position: relative; z-index: 1; display: flex; gap: 11px; flex-wrap: wrap; margin: 0 0 5px; }
.dashboard-nav a { padding: 9px 11px; border-radius: 8px; color: var(--navy-light); background: var(--sky-soft); font-size: 13px; font-weight: 900; text-decoration: none; }
.dashboard-nav a:hover { color: var(--white); background: var(--navy-light); }
.dashboard-section { position: relative; z-index: 1; margin-top: 32px; padding-top: 26px; border-top: 1px solid #e6edf2; }
.dashboard-section h2 { margin: 0 0 8px; font-size: 25px; }
.dashboard-section h2::after { display: none; }
.dashboard-section > p { margin-bottom: 18px; color: #52708c; font-size: 15px; line-height: 1.4; }
.moderation-list, .accounts-list { display: grid; gap: 11px; }
.moderation-item { padding: 15px; border-radius: 12px; background: #f6faff; }
.moderation-item p { margin-bottom: 9px; font-weight: 700; line-height: 1.4; white-space: pre-wrap; }
.moderation-actions { display: flex; gap: 9px; margin-top: 13px; }
.action-accept { color: #116a49; background: #e5f8ee; border-color: #bde9d2; }
.action-reject { color: #a9333a; background: #fff0f1; border-color: #f0c7ca; }
.action-accept:hover, .action-reject:hover { transform: translateY(-2px); filter: brightness(.96); }
.account-row { display: grid; grid-template-columns: 1fr minmax(130px, .8fr) auto auto; gap: 8px; align-items: center; padding: 11px; border-radius: 11px; background: #f6faff; }
.account-row select { min-height: 34px; padding: 6px; border: 1px solid #ccdce7; border-radius: 6px; color: var(--navy); font: 800 12px "Nunito", sans-serif; }
.account-row button:disabled, .account-row select:disabled { opacity: .48; cursor: not-allowed; }

/* Tableau de bord CVL */
.account-layout { width: min(1000px, calc(100% - 40px)); }
#login-view { width: min(510px, 100%); margin-inline: auto; }
.account-card--dashboard { padding: clamp(24px, 4vw, 42px); }
.dashboard-hero { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 26px; border-bottom: 1px solid #e3edf4; }
.dashboard-hero .account-intro { margin-bottom: 0; }
.dashboard-badge { display: grid; width: 88px; height: 88px; flex: 0 0 auto; place-content: center; border-radius: 22px; color: var(--navy); background: var(--sky-soft); box-shadow: inset 0 0 0 2px rgba(164,215,255,.36); font-size: 15px; font-weight: 900; line-height: 1.05; text-align: center; transform: rotate(4deg); }
.account-card--dashboard .dashboard-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.dashboard-panel { min-width: 0; margin: 0; padding: 21px; border: 1px solid #e2edf5; border-radius: 16px; background: linear-gradient(145deg, #fbfdff, #f4faff); }
.dashboard-panel h2 { margin: 0; font-size: 23px; }
.dashboard-panel > p:not(.form-message) { margin: 0 0 4px; color: #52708c; font-size: 14px; line-height: 1.42; }
.account-card--dashboard .dashboard-section { padding: 25px; border: 1px solid #e2edf5; border-radius: 16px; background: #fbfdff; }
.management-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.management-item { display: grid; gap: 9px; padding: 15px; border: 1px solid #e1ebf2; border-radius: 12px; background: var(--white); }
.management-item input, .management-item textarea { width: 100%; padding: 9px; border: 1px solid #cfdee8; border-radius: 8px; color: var(--navy); font: 700 14px/1.35 "Nunito", sans-serif; }
.management-item textarea { min-height: 94px; resize: vertical; }
.management-item input:focus, .management-item textarea:focus { outline: 3px solid rgba(164,215,255,.4); border-color: var(--sky); }

/* La page d'idées est volontairement centrée */
.ideas-page { width: min(690px, calc(100% - 40px)); text-align: center; }
.idea-intro { margin-inline: auto; }
.idea-intro > p:last-child { margin-inline: auto; }
.idea-submit { margin-inline: auto; text-align: left; }
.ideas-list-section { margin-inline: auto; }
.ideas-list-section h2 { display: inline-block; }
.ideas-grid { grid-template-columns: 1fr; text-align: left; }
.idea-card { text-align: left; }
.home-news-empty { margin-bottom: 6px; }

@media (max-width: 520px) {
  .account-header { min-height: 112px; }
  .account-header .brand { width: 126px; }
  .back-link { margin-top: 13px; font-size: 13px; }
  .account-layout { width: calc(100% - 28px); margin-bottom: 36px; }
  .account-card { padding: 25px 20px; border-radius: 18px; }
  .account-card::after { top: -85px; right: -78px; }
  .account-intro { margin-bottom: 23px; font-size: 16px; }
  .account-form input, .account-form select { min-height: 45px; font-size: 15px; }
  .site-nav { gap: 10px; }
  .site-nav > a:not(.button) { font-size: 13px; }
  .page-header { min-height: 116px; }
  .listing-page, .ideas-page { width: calc(100% - 28px); margin-bottom: 40px; }
  .listing-intro, .idea-intro > p:last-child { margin-bottom: 26px; font-size: 17px; }
  .public-grid, .ideas-grid { grid-template-columns: 1fr; }
  .public-card > img { height: 185px; }
  .idea-submit { padding: 20px 17px; }
  .account-row { grid-template-columns: 1fr 1fr; }
  .account-layout { width: calc(100% - 28px); }
  .dashboard-hero { gap: 14px; }
  .dashboard-badge { width: 68px; height: 68px; border-radius: 17px; font-size: 12px; }
  .dashboard-grid, .management-list { grid-template-columns: 1fr; }
  .account-card--dashboard { padding: 20px 16px; }
  .account-card--dashboard .dashboard-section { padding: 17px; }
  .ideas-page { width: calc(100% - 28px); }
}
.management-text { margin: 0; font-weight: 700; line-height: 1.4; white-space: pre-wrap; }

[hidden] { display: none !important; }
.dashboard-nav { margin: 24px 0 0; }
.dashboard-grid--single { grid-template-columns: 1fr !important; }

/* Onglets du tableau de bord */
.dashboard-tabs { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-bottom: 16px; border-bottom: 1px solid #e3edf4; }
.dashboard-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 2px solid transparent; border-radius: 10px; color: var(--navy-light); background: var(--sky-soft); font: 900 14px/1 "Nunito", sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.dashboard-tab:hover { background: #d3ebff; }
.dashboard-tab.is-active { color: var(--white); background: var(--navy); }
.dashboard-tab:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.tab-count { min-width: 20px; padding: 3px 6px; border-radius: 20px; color: var(--white); background: #c8424a; font-size: 11px; line-height: 1; text-align: center; }
.tab-panel:not(.is-active) { display: none; }
.account-card--dashboard .tab-panel.dashboard-section { margin-top: 20px; }
.dashboard-grid.tab-panel { margin-top: 20px; }

/* Recherche dans les listes */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.filter-bar input { min-height: 40px; padding: 8px 12px; border: 2px solid #d8e4ee; border-radius: 10px; color: var(--navy); background: #fbfdff; font: 700 14px "Nunito", sans-serif; outline: none; }
.filter-bar input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(164,215,255,.28); }
.filter-text { flex: 1 1 220px; min-width: 0; }
.filter-bar .text-button { margin-top: 0; }

.dashboard-section > .account-form--create { margin-top: 28px; padding: 25px 0 0; border-radius: 0; border-width: 1px 0 0; background: transparent; }

.dashboard-section > .account-form--create { margin: 0 0 32px; padding: 0 0 28px; border-width: 0 0 1px; }

#create-news-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.manage-part { margin-top: 30px; padding-top: 28px; border-top: 1px solid #e6edf2; }
.manage-part > h2 { margin-top: 0; }

/* Dashboard : caisses et recettes */
.register-create { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.register-create input { flex: 1 1 260px; min-width: 0; min-height: 43px; padding: 9px 13px; border: 2px solid #d8e4ee; border-radius: 10px; color: var(--navy); background: #fbfdff; font: 700 15px "Nunito", sans-serif; outline: none; }
.register-create input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(164,215,255,.28); }
.register-create__button { margin-top: 0; }
.registers-list { display: grid; gap: 12px; margin-top: 14px; }
.register-card { border: 1px solid #e1ebf2; border-radius: 14px; background: var(--white); }
.register-card > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.register-card > summary::-webkit-details-marker { display: none; }
.register-card > summary::before { content: "▸"; color: var(--navy-light); font-size: 14px; transition: transform .2s ease; }
.register-card[open] > summary::before { transform: rotate(90deg); }
.register-card__name { font-size: 17px; }
.register-card__meta { margin-left: auto; color: var(--ink-muted); font-size: 13px; font-weight: 800; }
.register-card__meta + .register-card__total { margin-left: 4px; }
.register-card__total { color: var(--navy); font-size: 16px; }
.register-badge { padding: 4px 9px; border-radius: 20px; font-size: 11px; font-weight: 900; letter-spacing: .3px; }
.register-badge--ouverte { color: #116a49; background: #e5f8ee; }
.register-badge--fermee { color: #a9333a; background: #fff0f1; }
.register-body { display: grid; gap: 18px; padding: 4px 16px 18px; border-top: 1px solid #eef3f7; }
.register-body h3 { margin: 14px 0 0; font-size: 15px; }
.register-header { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.register-header input { flex: 1 1 220px; min-width: 0; padding: 9px; border: 1px solid #cfdee8; border-radius: 8px; color: var(--navy); font: 800 14px "Nunito", sans-serif; }
.register-items { display: grid; gap: 9px; }
.register-hint { margin: 0; color: var(--ink-muted); font-size: 14px; font-weight: 700; }
.item-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(90px, .6fr) auto auto; gap: 9px; align-items: center; padding: 10px; border-radius: 11px; background: #f6faff; }
.item-row input:not([type="checkbox"]) { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #cfdee8; border-radius: 8px; color: var(--navy); font: 700 14px "Nunito", sans-serif; }
.item-row__custom { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.item-row__custom input { accent-color: var(--navy); }
.item-row__actions { display: flex; gap: 7px; }
.item-row--new { background: transparent; border: 1px dashed #bcd3e4; }
.recettes-total { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; color: var(--white); background: var(--navy); }
.recettes-total span { font-size: 14px; font-weight: 800; }
.recettes-total strong { font-size: 26px; }
.sales-summary { display: grid; gap: 6px; }
.sales-summary__row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 8px 12px; border-radius: 9px; background: #f6faff; font-size: 14px; font-weight: 700; }
.sales-list { display: grid; gap: 9px; }
.sale-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px; border-radius: 11px; background: #f6faff; }
.sale-row__main { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.sale-row__class { padding: 2px 8px; border-radius: 20px; color: var(--navy-light); background: var(--sky-soft); font-size: 12px; font-weight: 900; }
.sale-row__product { margin: 4px 0 3px; font-size: 14px; font-weight: 700; }
.sale-row small { color: var(--ink-muted); font-size: 12px; font-weight: 800; }
.sale-row__amount { font-size: 16px; white-space: nowrap; }

/* Page caisse */
.cash-page { width: min(980px, calc(100% - 40px)); margin: 0 auto 65px; }
.cash-login { width: min(510px, 100%); margin-inline: auto; }
.cash-login[hidden], #cash-app[hidden], #picker-view[hidden], #register-view[hidden] { display: none; }
.back-link--button { display: inline-block; margin: 0 0 18px; padding: 0; border: 0; background: transparent; font-family: "Nunito", sans-serif; cursor: pointer; }
.cash-register-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cash-register-button { min-height: 110px; padding: 18px; border: 2px solid transparent; border-radius: 19px; color: var(--navy); background: var(--white); box-shadow: var(--shadow); font: 900 21px/1.2 "Nunito", sans-serif; text-align: left; cursor: pointer; transition: border-color .2s ease; }
.cash-register-button:hover, .cash-register-button:focus-visible { border-color: var(--navy-light); outline: none; }
.cash-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cash-panel { padding: 22px; }
.cash-panel h2, .cash-recent h2 { width: auto; margin: 0 0 16px; font-size: 24px; }
.cash-panel h2::after { display: none; }
.cash-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.cash-item { display: grid; gap: 4px; align-content: start; min-height: 92px; padding: 14px; border: 2px solid #d8e4ee; border-radius: 14px; color: var(--navy); background: #fbfdff; font: 800 15px/1.2 "Nunito", sans-serif; text-align: left; cursor: pointer; }
.cash-item:hover { border-color: #b8d4e9; }
.cash-item.is-selected { border-color: var(--navy); background: var(--sky-soft); }
.cash-item__price { color: var(--navy-light); font-size: 17px; font-weight: 900; }
.cash-item small { color: var(--ink-muted); font-size: 11px; font-weight: 800; }
.cash-selected { margin: 0 0 6px; padding: 11px 13px; border-radius: 10px; color: #28516f; background: var(--sky-soft); font-size: 15px; font-weight: 800; }
.cash-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cash-names > div { display: grid; gap: 9px; }
.cash-form [hidden] { display: none; }
.cash-total { margin: 8px 0 0; font-size: 18px; font-weight: 800; }
.cash-total strong { font-size: 26px; }
.cash-recent { margin-top: 20px; }
.cash-recent__row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #eef3f7; font-size: 14px; font-weight: 700; }
.cash-recent__row:first-child { border-top: 0; }

@media (max-width: 760px) {
  .cash-layout { grid-template-columns: 1fr; }
  .cash-page { width: calc(100% - 28px); }
  .item-row { grid-template-columns: 1fr 1fr; }
  .item-row__actions { grid-column: 1 / -1; }
  .sale-row { grid-template-columns: 1fr auto; }
  .sale-row .action-reject { grid-column: 1 / -1; justify-self: start; }
}

.register-export { display: inline-block; text-decoration: none; }
