.admin-camp main { max-width:1120px; }
.camp-tabs { display:flex; gap:12px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.camp-tabs a { padding:10px 3px; color:var(--ink); text-decoration:none; }
.camp-tabs [aria-current] { border-bottom:3px solid var(--ocean); font-weight:700; color:var(--ocean); }
.camp-panel { margin-top:24px; }
.camp-panel small { font-size:.8em; }
.camp-scroll { overflow-x:auto; }
.camp-panel table { border-collapse:collapse; width:100%; }
.camp-panel td,.camp-panel th { padding:12px 9px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.camp-panel th { background:var(--pale); font-size:.9rem; }
.camp-panel td details { background:transparent; margin:0; padding:0; }
.camp-panel td details[open] { min-width:255px; }
.camp-panel td dl { display:block; }
.camp-panel td dd { margin:0 0 8px; }
.camp-panel table input[type=date] { min-width:145px; }
.camp-panel table input[inputmode=decimal] { min-width:75px; }
.camp-panel .remove-payment { background:#842f28; }
.camp-panel .payment-entry form { margin-top:18px; max-width:100%; }
.camp-panel .camp-sr { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.camp-panel .remove-due { display: inline-flex; position: relative; margin: 10px 0; cursor: pointer; }
.remove-due input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.remove-due span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 5px; color: #842f28; }
.remove-due .remove-icon { font: 26px/1 system-ui, sans-serif; }
.remove-due .undo-remove, .remove-due input:checked ~ .remove-icon { display: none; }
.remove-due input:checked ~ .undo-remove { display: grid; padding: 0 8px; text-decoration: underline; }
.remove-due:hover span, tr:has(.remove-due input:checked) { background: #fff1ed; }
.remove-due input:focus-visible ~ span { outline: 2px solid var(--ocean); outline-offset: 2px; }

#paiements > form, .payment-actions > section, .camp-settings {
    padding: clamp(16px, 2.5vw, 28px);
    border: 1px solid #d3e1e2;
    border-radius: 16px;
    background: #f8fbfa;
}
#paiements > form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) auto; gap:12px; align-items:end; max-width:none; }
#paiements > form :is(input, select, button) { margin-bottom:0; min-height:46px; border-radius:8px; }
#paiements > form button { margin:0; }
#camp-matches { grid-column:1/-1; grid-row:2; }
#camp-matches:empty { display:none; }
.payment-balance, .mon-camp .payment-balance, .camp-overview {
    margin:20px 0;
    padding:clamp(18px,3vw,32px);
    background:linear-gradient(115deg,#123e49,#115b64);
    color:white;
    border-radius:16px;
}
#paiements .payment-balance h3 { margin:0 0 18px; color:white; font-size:1.45rem; }
#paiements .payment-balance label { color:#e0f3f2; }
.balance-meter { appearance:none; display:block; width:100%; height:9px; border:0; border-radius:8px; overflow:hidden; margin:8px 0 20px; background:#477078; }
.balance-meter::-webkit-progress-bar { background:#477078; }
.balance-meter::-webkit-progress-value { background:#91e2cd; }
.balance-meter::-moz-progress-bar { background:#91e2cd; }
:is(#paiements,.mon-camp) .balance-figures { background:transparent; color:white; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:0; border-top:1px solid #628487; padding-top:16px; }
:is(#paiements,.mon-camp) .balance-figures dt { color:#d7eae9; font-size:.9rem; }
:is(#paiements,.mon-camp) .balance-figures dd { margin:4px 0 0; font-size:clamp(1.15rem,2vw,1.65rem); font-weight:700; font-variant-numeric:tabular-nums; }
.payment-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.payment-actions h3 { margin-top:0; }
.payment-actions .payment-entry { background:white; border:1px solid #d3e1e2; border-radius:10px; }
.payment-actions input { min-width:0; }
@media(max-width:850px) {
    #paiements > form, .payment-actions { grid-template-columns:1fr; }
    #camp-matches { grid-row:auto; }
}
@media(max-width:480px) {
    :is(#paiements,.mon-camp) .balance-figures { grid-template-columns:1fr; gap:8px; }
    .balance-figures div { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
}

.camp-panel .camp-overview h2 { margin:0; color:white; }
.camp-overview p { margin:8px 0 0; color:#e0f3f2; }
.camp-settings + .camp-settings { margin-top:16px; }
.camp-settings h3 { margin:0 0 16px; }
.camp-settings > p:last-child { margin-bottom:0; }
#echeancier > form { max-width:none; }
:is(#inscriptions,#echeancier) .camp-scroll { background:white; border:1px solid #d3e1e2; border-radius:12px; }
:is(#inscriptions,#echeancier) :is(input,select,button) { border-radius:8px; }
:is(#inscriptions,#echeancier) tbody tr:last-child td { border-bottom:0; }
#inscriptions tbody tr:nth-child(even) { background:#f8fbfa; }
#inscriptions tbody tr:focus-within { background:#eff7f6; }
#inscriptions tbody td { font-variant-numeric:tabular-nums; }
#inscriptions tbody td:last-child a, #ajouter-echeance { display:inline-block; background:#e1efed; color:#075461; border-radius:8px; padding:8px 14px; text-decoration:none; font-weight:700; }
@media(max-width:600px) {
    .camp-settings { padding:14px; }
    .camp-settings table :is(td,th) { padding:8px; }
}

.mon-camp .payment-balance h2 { color:white; margin:0; }
.mon-camp .payment-balance :is(p,label) { color:#e0f3f2; }
.mon-camp main > form:not(footer form) { padding:clamp(16px,3vw,28px); border:1px solid #d3e1e2; border-radius:16px; background:#f8fbfa; }
#paiements .payment-actions { grid-template-columns:1fr; margin-top:16px; }
@media(min-width:750px) {
    .payment-actions > section:first-child form { display:flex; align-items:end; gap:16px; max-width:none; }
    .payment-actions > section:first-child .fields { flex:1; }
    .payment-actions > section:first-child :is(label,input,button) { margin-bottom:0; }
}

:is(#informations-jeune,.mon-camp) .profile-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:16px 24px; margin:20px 0; padding:0; background:transparent; }
.profile-summary div { border-top:1px solid #d3e1e2; padding-top:8px; }
.profile-summary dt { font-size:.88rem; color:#42616a; }
.profile-summary dd { margin:3px 0 0; }

.profile-nav { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0; padding:6px; background:#eef5f4; border-radius:12px; }
.profile-nav a { padding:9px 14px; border-radius:8px; text-decoration:none; color:#124b55; font-weight:600; }
.profile-nav a[aria-current] { background:#115b64; color:white; }
.profile-nav a:hover { text-decoration:underline; }

.family-record { margin:24px 0; }
.family-record .payment-balance h3 { color:white; margin-top:0; }
.family-payments { list-style:none; margin:0; padding:0; }
.family-payments li { display:flex; justify-content:space-between; padding:12px 0; border-top:1px solid #d3e1e2; }
.family-record [hidden] { display:none; }

#paiements .profile-status-summary { grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); padding-bottom:18px; }
#paiements .profile-status-summary dd { font-size:1rem; }

.mon-camp .family-status { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:12px; background:transparent; padding:16px 0; border-top:1px solid #628487; }
.family-status dt { font-size:.9rem; color:#d7eae9; }
.family-status dd { margin:4px 0 0; font-weight:700; color:white; }

.family-schedule { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.family-schedule :is(th,td) { text-align:right; border-bottom:1px solid #d3e1e2; padding:10px 4px; }
.family-schedule tr > :first-child { text-align:left; }
.family-schedule thead, .family-schedule tfoot { background:#e8f2f1; }
.family-schedule tfoot { font-weight:700; }

#statut-inscription .camp-choices { border:0; padding:0; margin:18px 0; }
#statut-inscription h3 { font-size:1.25rem; line-height:1.3; }
#statut-inscription .camp-choices legend { width:auto; margin:0 0 6px; padding:0; border:0; font-size:1rem; font-weight:600; line-height:1.4; }
#statut-inscription .camp-choices button { background:white; color:#115361; border:1px solid #99b7bb; border-radius:9px; margin:3px; }
#statut-inscription .camp-choices button[aria-pressed=true] { background:#075969; color:white; border-color:#075969; }
.camp-choices button[aria-pressed=true]::before { content:"✓ "; }

.open-profile { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 18px; margin:20px 0 0; padding:14px 20px; background:#124b55; color:white; border-radius:12px; }
:is(.admin-camp .camp-panel,.family-record) .open-profile h2 { color:white; font-size:clamp(1.45rem,3vw,2rem); margin:0; overflow-wrap:anywhere; }
.open-profile span { color:#dcf0ed; }
.open-profile + .profile-nav { margin-top:8px; }

.camp-arrears { display:inline-block; padding:1px 5px; border-radius:4px; background:#faf5ec; color:#754d22; font-size:.875rem; font-weight:600; }
.camp-arrears-age { display:block; margin-top:3px; color:#6e6256; }

.doc-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.doc-heading h2,.doc-item h3 { margin:0; }
.doc-heading span { color:#516c73; }
#documents .doc-compose,.doc-item { padding:clamp(14px,2vw,22px); border:1px solid #cfdfdf; border-radius:12px; margin:12px 0; background:#fff; }
#documents .doc-compose { background:#f6faf9; }
#documents .doc-compose summary { font-size:1.1rem; }
.doc-compose form { max-width:700px; }
#documents .doc-compose fieldset { border:0; padding:0; margin:14px 0; min-width:0; }
#documents .doc-compose legend { width:auto; font-size:1rem; border:0; padding:0; margin:0 0 6px; }
.doc-options,.doc-actions { display:flex; flex-wrap:wrap; gap:8px; }
#documents .doc-options label { display:inline-flex; align-items:center; gap:9px; padding:10px 14px; border:1px solid #b5caca; border-radius:8px; background:white; margin:0; cursor:pointer; }
#documents .doc-options label:has(:checked) { background:#e2f2ef; border-color:#11626a; }
#documents .doc-options input[type=radio] { appearance:auto; width:17px; height:17px; min-height:0; padding:0; margin:0; flex:none; accent-color:#075969; }
.doc-item { border-left:4px solid #186672; }
.doc-item p { margin:6px 0; }
#documents .doc-actions form { margin:12px 0 0; }
#documents .doc-actions button { background:#e7f1ef; color:#11545d; margin:0; }
#documents .doc-actions button:disabled { opacity:.55; }
@media(max-width:600px) { .doc-options { flex-direction:column; } }

.doc-followup { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 28px; margin-top:14px; padding:14px; background:#f2f8f7; border-radius:10px; }
.doc-followup progress { display:block; width:min(230px,100%); height:9px; accent-color:#11636b; margin:6px 0; }
#documents .doc-followup form, #documents .doc-followup button { margin:0; }
.doc-followup small { display:block; color:#465d62; margin-top:5px; }

.deposit-reason { border-left:3px solid #bb631f; background:#fff3e6; color:#663714; padding:10px 14px; margin:10px 0; }
.deposit-reason p { margin:4px 0 0; overflow-wrap:anywhere; }

.mon-camp main:has(.family-record) { max-width:1440px; }

.family-schedule .schedule-state { display:block; width:fit-content; margin-top:5px; border-radius:6px; padding:.24rem .65rem; line-height:1.25; font-size:.85rem; font-weight:600; }
.schedule-state.paid { background:#e1f4e8; color:#185630; }
.schedule-state.late { background:#ffead5; color:#843604; }
.schedule-state.today { background:#e2effc; color:#164a78; }
.schedule-state.future { background:#eff2f3; color:#44545c; }

.mon-camp .camp-news { padding:18px 22px; border-radius:12px; border-left:4px solid #146b70; background:#f2f8f7; }
.camp-news article + article { border-top:1px solid #cddfdd; padding-top:12px; margin-top:12px; }
.camp-news h3,.camp-news p { margin:5px 0; overflow-wrap:anywhere; }

.news-count { display:inline-grid; place-items:center; min-width:1.5em; padding:1px 5px; margin-left:3px; border-radius:1em; background:#ffdfae; color:#693500; font-size:.85em; font-weight:700; }

/* Dossier ouvert, commun aux espaces famille et administration. */
:is(.admin-camp .camp-panel,.family-record) .open-profile {
    align-items:center; justify-content:space-between; padding:clamp(20px,3vw,38px);
    min-height:110px; border-radius:14px 14px 0 0;
    background-color:#134d56;
    background-image:linear-gradient(90deg,#103e46 0%,rgba(16,62,70,.93) 34%,rgba(16,62,70,.54) 72%,rgba(16,62,70,.43)),var(--camp-landscape,none);
    background-size:cover; background-position:center,center 46%;
}
:is(.admin-camp .camp-panel,.family-record) .open-profile h2 { letter-spacing:-.035em; font-size:clamp(1.55rem,3vw,2.25rem); }
.open-profile > span { color:white; padding:4px 10px; background:#164953; border:1px solid #87a6aa; border-radius:6px; font-size:.86rem; }
:is(.admin-camp .camp-panel,.family-record) .open-profile + .profile-nav {
    margin:0 0 18px; padding:8px; gap:3px; background:white;
    border:1px solid #d4e1e1; border-top:0; border-radius:0 0 12px 12px;
}
:is(.admin-camp .camp-panel,.family-record) .profile-nav a { padding:8px 11px; font-size:.91rem; }
:is(#paiements,.family-record) .payment-balance { background:white; color:#17383f; margin:0; border:1px solid #d4e1e1; border-radius:12px; padding:clamp(16px,2.2vw,28px); }
:is(#paiements,.family-record) .payment-balance :is(h3,label,p) { color:#24484e; }
:is(#paiements,.mon-camp) .payment-balance :is(.family-status,.balance-figures) { border-color:#d5e2e2; color:#183c42; }
:is(#paiements,.mon-camp) .payment-balance dt { color:#47656b; }
:is(#paiements,.mon-camp) .payment-balance dd { color:#17383f; }
:is(#paiements,.mon-camp) .balance-figures:not(.profile-status-summary) > div { background:#eff5f4; border-radius:8px; padding:10px 12px; }
:is(#paiements,.mon-camp) .balance-figures:not(.profile-status-summary) > div:last-child { background:#174f57; }
:is(#paiements,.mon-camp) .balance-figures:not(.profile-status-summary) > div:last-child :is(dt,dd) { color:white; }
.payment-balance .balance-meter { background:#dee9e8; }
.payment-balance .balance-meter::-webkit-progress-bar { background:#dee9e8; }
.payment-balance .balance-meter::-webkit-progress-value { background:#20776e; }
.payment-balance .balance-meter::-moz-progress-bar { background:#20776e; }
.mon-camp:has(.family-record) { background:#f5f7f7; }
.mon-camp main:has(.family-record) { background:transparent; }
.family-record .camp-settings { background:white; border:1px solid #d4e1e1; padding:clamp(16px,2.2vw,28px); border-radius:12px; }
.mon-camp .family-home .camp-news { margin:16px 0 0; padding:20px; background:#edf5f2; border-radius:12px; }
.mon-camp .family-home .camp-news h2 { font-size:1.2rem; }
@media(min-width:1100px) {
    .family-home:not([hidden]) { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); align-items:start; gap:18px; }
    .family-home-followup { min-width:0; }
}

.mon-camp .member-header { display:flex; align-items:center; justify-content:space-between; min-height:58px; padding:0 max(5vw,calc((100vw - 1440px)/2)); background:white; border-bottom:1px solid #d4e1e1; }
.member-header .camp-logo { width:46px; height:46px; }
.member-header .member-account,.open-profile .child-picker { position:relative; margin:0; padding:0; border:0; background:transparent; }
.member-account > summary,.child-picker > summary { padding:9px 12px; cursor:pointer; }
.member-account > div,.child-picker > div { position:absolute; top:100%; right:0; z-index:5; width:min(320px,88vw); padding:16px; background:white; color:#17383f; border:1px solid #cbdadb; border-radius:10px; box-shadow:0 8px 20px #14383f22; overflow-wrap:anywhere; }
.member-account p { margin:0 0 12px; }
.child-picker a { display:block; padding:8px; }
.mon-camp .member-page-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.mon-camp main:has(.family-record) { padding-top:16px; }
.mon-camp .family-record,.family-record .open-profile { margin-top:0; }
.family-record[hidden] { display:none; }
.news-count { background:#d9ecff; color:#163f65; }
@media(max-width:600px){
    .family-record .profile-nav { gap:2px; }
    .family-record .profile-nav a { padding:8px 9px; }
    .member-header .camp-logo { width:40px; height:40px; }
    .child-picker > div { right:auto; left:0; width:200px; }
}

.mon-camp .next-steps { grid-column:1/-1; background:#eef6f3; border-left:4px solid #17685f; padding:16px 20px; margin:0 0 12px; border-radius:10px; }
.next-steps h3,.next-steps p { margin:4px 0; }

.deposit-badge { display:inline-block; padding:.2em .65em; border-radius:1em; background:#e6edf1; color:#203447; }
.deposit-valid { background:#dff3e8; color:#145435; }
.deposit-invalid,.deposit-missing { background:#fce5e4; color:#872923; }
.deposit-pending { background:#fff1cd; color:#694c04; }
.announcement-delete { margin-top:1rem; }
.announcement-delete > summary { color:#982a25; font-weight:700; }
.document-review-list { margin-top:1rem; }
.admin-camp .camp-panel > .open-profile:not(:has(+ .profile-nav)):not(:has(+ #record-picker)) { border-radius:14px; margin-bottom:16px; }

.camp-settings .deposit-summary-list { margin-inline:0; padding-inline-start:0; list-style:none; }
.deposit-summary-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; padding:.6rem 0; border-bottom:1px solid #dbe7e7; }
.deposit-summary-action { display:inline-block; padding:.4rem .65rem; border:1px solid #19616b; border-radius:.45rem; color:#174d56; font-weight:700; text-decoration:none; }
.deposit-summary-action:hover,.deposit-summary-action:focus-visible { background:#e9f5f5; }

.family-home-followup { display:grid; gap:1rem; }
.family-home-followup > .camp-settings { margin:0; }
