:root {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #17231b;
    background: #f3f6f3;

    --green: #285f3c;
    --green-dark: #19462b;
    --border: #dbe4dd;
    --muted: #647168;
    --white: #ffffff;
    --yellow: #fff0ba;
    --red: #ffe0dc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at top left,
            #e7f2e8,
            transparent 30rem
        ),
        #f3f6f3;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: var(--green);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;

    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(1350px, calc(100% - 32px));
    min-height: 72px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand div {
    display: grid;
}

.brand span {
    color: var(--muted);
    font-size: 0.84rem;
}

.header-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.header-actions form {
    margin: 0;
}

.header-actions a,
.link-button {
    border: 0;
    background: transparent;

    color: var(--green);
    font-weight: 700;

    cursor: pointer;
    text-decoration: none;
}

.admin-main {
    width: min(1350px, calc(100% - 32px));
    margin: 32px auto 60px;
}

.page-heading {
    margin-bottom: 22px;
}

.page-heading h1,
.card-heading h2 {
    margin: 3px 0 0;
}

.eyebrow {
    margin: 0;

    color: var(--green);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-bottom: 24px;
}

.stat-card {
    display: grid;
    gap: 8px;

    padding: 20px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;

    box-shadow:
        0 12px 32px rgb(27 53 35 / 6%);
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    color: var(--green);
    font-size: 2rem;
}

.pending-stat {
    background: #fffaf0;
}

.admin-card {
    margin-bottom: 24px;
    padding: 24px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow:
        0 14px 38px rgb(27 53 35 / 6%);
}

.card-heading {
    margin-bottom: 20px;
}

.request-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.request-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #fcfdfc;
}

.request-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 17px;
}

.request-top h3 {
    margin: 9px 0 0;
    font-size: 1.35rem;
}

.price {
    color: var(--green);
    font-size: 1.35rem;
}

.status-badge {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 800;
}

.status-badge.pending {
    background: var(--yellow);
}

.status-badge.approved {
    color: #17512a;
    background: #dcefe1;
}

.status-badge.refused,
.status-badge.cancelled {
    color: #78271f;
    background: var(--red);
}

.details-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;

    margin: 0;
}

.details-list div {
    min-width: 0;
}

.details-list dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.details-list dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.comments {
    margin-top: 17px;
    padding: 13px;

    background: #f3f7f4;
    border-radius: 11px;
}

.comments p {
    margin: 6px 0 0;
}

.decision-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;

    margin-top: 18px;
}

.decision-buttons form,
.decision-buttons button {
    width: 100%;
}

.approve-button,
.refuse-button,
.primary-button,
.secondary-button,
.small-danger-button {
    border: 0;
    border-radius: 11px;

    padding: 12px 16px;

    font-weight: 800;
    cursor: pointer;
}

.approve-button,
.primary-button {
    color: #fff;
    background: var(--green);
}

.approve-button:hover,
.primary-button:hover {
    background: var(--green-dark);
}

.refuse-button,
.small-danger-button {
    color: #812a21;
    background: var(--red);
}

.secondary-button {
    color: #263b2d;
    background: #e4ebe6;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-form {
    display: grid;
    gap: 15px;
}

.admin-form label,
.login-form label {
    display: grid;
    gap: 7px;

    font-weight: 700;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

input,
textarea,
select {
    width: 100%;

    padding: 11px 12px;

    color: #17231b;
    background: #fff;

    border: 1px solid var(--border);
    border-radius: 10px;
}

input:focus,
textarea:focus,
select:focus {
    outline:
        3px solid rgb(40 95 60 / 14%);

    border-color: var(--green);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 12px;

    border-bottom:
        1px solid var(--border);

    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
}

td small {
    display: block;
    margin-top: 4px;

    color: var(--muted);
}

.table-actions {
    width: 1%;
    white-space: nowrap;
}

.small-danger-button {
    padding: 8px 11px;
    font-size: 0.8rem;
}

.empty-state {
    padding: 25px;

    color: var(--muted);
    background: #f5f7f5;

    border-radius: 13px;

    text-align: center;
}

.blocked-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.blocked-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;

    padding: 14px;

    background: #f3f5f4;
    border-radius: 12px;
}

.blocked-card div {
    display: grid;
    gap: 4px;
}

.blocked-card span {
    color: var(--muted);
    font-size: 0.85rem;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;

    border-radius: 12px;

    font-weight: 700;
}

.alert.success {
    color: #174d2b;
    background: #dff2e4;
}

.alert.warning {
    color: #76520d;
    background: var(--yellow);
}

.alert.error {
    color: #78271f;
    background: var(--red);
}

.login-body {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 20px;
}

.login-card {
    width: min(440px, 100%);

    padding: 34px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow:
        0 20px 60px rgb(27 53 35 / 12%);
}

.login-card h1 {
    margin: 6px 0;
}

.admin-logo {
    width: 72px;
    height: 72px;

    object-fit: contain;

    margin-bottom: 12px;
}

.muted {
    color: var(--muted);
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 17px;

    margin-top: 24px;
}

.back-link {
    display: inline-block;

    margin-top: 20px;

    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 950px) {
    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .request-grid,
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .blocked-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .admin-main,
    .header-inner {
        width: min(100% - 18px, 1350px);
    }

    .header-inner {
        min-height: 64px;
    }

    .header-actions a {
        display: none;
    }

    .admin-card {
        padding: 17px;
        border-radius: 16px;
    }

    .stats-grid,
    .details-list,
    .form-columns,
    .blocked-grid {
        grid-template-columns: 1fr;
    }

    .decision-buttons {
        grid-template-columns: 1fr;
    }
}


/* ADMIN_COPIED_FOOTER_CSS_START */

:root {

  --navy-950: #041d38;
  --navy-900: #062b55;
  --navy-800: #073b72;
  --navy-700: #0b4f91;
  --blue-600: #1769c2;
  --blue-100: #dcecff;
  --blue-050: #eef6ff;

  --green-600: #4c7a4d;
  --gold-500: #f5bd45;

  --white: #ffffff;
  --surface: #f3f7fb;
  --surface-strong: #e8f0f8;
  --text: #16324d;
  --text-soft: #53697e;
  --border: #d8e3ed;

  --shadow-sm: 0 8px 24px rgba(4, 29, 56, 0.08);
  --shadow-md: 0 18px 50px rgba(4, 29, 56, 0.13);
  --shadow-lg: 0 28px 90px rgba(4, 29, 56, 0.24);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --container: 1160px;
  --header-height: 92px;

}

.container {

  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;

}

.site-footer {

  padding-block: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-950);
  color: var(--white);

}

.footer-inner {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

}

.footer-brand {

  display: flex;
  align-items: center;
  gap: 12px;

}

.footer-brand img {

  width: 42px;
  height: 42px;
  object-fit: contain;

}

.footer-brand div {

  display: grid;
  gap: 2px;

}

.footer-brand strong {

  font-size: 0.92rem;

}

.footer-brand span,
.site-footer p {

  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;

}

.site-footer p {

  margin: 0;

}

@media (max-width: 1080px) {
:root {

    --header-height: 82px;
  
}
}

@media (max-width: 640px) {
:root {

    --header-height: 74px;
  
}

.container {

    width: min(calc(100% - 28px), var(--container));
  
}

.footer-inner {

    flex-direction: column;
    align-items: flex-start;
  
}
}

.footer-vdgf,
.footer-vdgf:visited {

  color: rgb(255 255 255 / 25%);
  font-size: 0.7rem;
  text-decoration: none;

}

.footer-vdgf:hover,
.footer-vdgf:focus-visible {

  color: rgb(255 255 255 / 75%);

}

/* Ajustements propres à la page Réservation */

.admin-copied-footer {
    width: 100%;
    margin-top: 70px;
}

.admin-copied-footer img {
    max-width: 100%;
}

.admin-copied-footer {
    width: 100%;
    margin-top: 60px;
}

/* Permet au footer de rester au bas des petites pages. */
body {
    min-height: 100vh;
}

/* ADMIN_COPIED_FOOTER_CSS_END */


/* Edition rapide des activités */
.small-secondary-button {
    border: 0;
    border-radius: 11px;
    padding: 8px 11px;
    color: #263b2d;
    background: #e4ebe6;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.inline-edit-event {
    margin-bottom: 8px;
    white-space: normal;
}

.inline-edit-event summary {
    display: inline-flex;
    padding: 8px 11px;
    color: #263b2d;
    background: #e4ebe6;
    border-radius: 11px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.inline-edit-event summary::-webkit-details-marker {
    display: none;
}

.event-edit-form {
    display: grid;
    gap: 10px;
    min-width: 310px;
    margin-top: 10px;
    padding: 12px;
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    white-space: normal;
}

.event-edit-form label {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.event-edit-form textarea {
    min-height: 70px;
    resize: vertical;
}

/* CSLAC_EDIT_EVENT_LAYOUT_V2 */
.table-actions {
    vertical-align: top;
    min-width: 180px;
}

.inline-edit-event {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    white-space: normal;
}

.inline-edit-event summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: auto;
    min-width: 92px;
    padding: 8px 12px;

    color: #263b2d;
    background: #e4ebe6;
    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.inline-edit-event summary::-webkit-details-marker {
    display: none;
}

.inline-edit-event[open] {
    width: min(520px, calc(100vw - 56px));
    max-width: 100%;
}

.event-edit-form {
    display: grid;
    gap: 12px;

    width: min(520px, calc(100vw - 56px));
    min-width: 0;
    max-width: 100%;

    margin-top: 10px;
    padding: 14px;

    background: #f8faf8;
    border: 1px solid var(--border, #d8e3ed);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgb(0 0 0 / 8%);

    white-space: normal;
}

.event-edit-form label {
    display: grid;
    gap: 6px;

    color: #263b2d;
    font-size: 0.84rem;
    font-weight: 800;
}

.event-edit-form input,
.event-edit-form textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.event-edit-form textarea {
    min-height: 82px;
    resize: vertical;
}

.event-edit-form .form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.event-edit-form .small-secondary-button {
    justify-self: start;

    border: 0;
    border-radius: 999px;
    padding: 9px 14px;

    color: white;
    background: #285f3c;

    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
}

.table-actions > form button,
.table-actions .danger-button,
.table-actions button[name="action"][value="delete_event"] {
    border-radius: 999px;
}

@media (max-width: 760px) {
    .table-actions {
        min-width: 240px;
    }

    .inline-edit-event[open],
    .event-edit-form {
        width: min(420px, calc(100vw - 48px));
    }

    .event-edit-form .form-columns {
        grid-template-columns: 1fr;
    }
}


/* CSLAC_CONTRACT_BUTTON */
.contract-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    color: #263b2d;
    background: #e4ebe6;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.contract-button:hover {
    background: #d6e3da;
}

/* CSLAC_ADMIN_FINAL_POLISH_2026 */

/* Boutons actions traitées : Contrat / Annuler */
.table-actions {
    vertical-align: top;
    min-width: 145px;
}

.table-actions a[href*="contract.php"],
.contract-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 92px;
    margin: 0 0 8px;
    padding: 8px 12px;

    color: #ffffff !important;
    background: #285f3c;
    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
}

.table-actions a[href*="contract.php"]:hover,
.contract-button:hover {
    background: #1f4d30;
}

.table-actions form {
    margin: 0;
}

.table-actions button,
.table-actions .danger-button {
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

/* Section Activités du Club : édition plus propre */
.inline-edit-event {
    width: 100%;
    margin: 0 0 10px;
    white-space: normal;
}

.inline-edit-event summary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 110px;
    padding: 9px 14px;

    color: #ffffff;
    background: #285f3c;
    border-radius: 999px;

    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.inline-edit-event summary::-webkit-details-marker {
    display: none;
}

.inline-edit-event summary:hover {
    background: #1f4d30;
}

.inline-edit-event[open] summary {
    margin-bottom: 12px;
}

.event-edit-form {
    display: grid !important;
    gap: 12px;

    width: 390px;
    max-width: calc(100vw - 80px);
    min-width: 0;

    padding: 16px;

    background: #ffffff;
    border: 1px solid #d8e3ed;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgb(4 29 56 / 12%);
}

.event-edit-form label {
    display: grid !important;
    gap: 6px;

    color: #263b2d;
    font-size: 0.82rem;
    font-weight: 900;
}

.event-edit-form input,
.event-edit-form textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;

    border: 1px solid #d8e3ed;
    border-radius: 10px;
    background: #ffffff;

    font-size: 0.9rem;
}

.event-edit-form textarea {
    min-height: 78px;
    resize: vertical;
}

.event-edit-form .form-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.event-edit-form button[type="submit"],
.event-edit-form .small-secondary-button {
    justify-self: start;

    min-width: 115px;
    padding: 10px 14px;

    color: #ffffff;
    background: #285f3c;
    border: 0;
    border-radius: 999px;

    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
}

.event-edit-form button[type="submit"]:hover,
.event-edit-form .small-secondary-button:hover {
    background: #1f4d30;
}

/* Bouton Retirer des activités */
.inline-edit-event + form button,
.table-actions form button[value="delete_event"],
.table-actions form button[name="action"][value="delete_event"] {
    color: #9f2118;
    background: #fde0dc;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
}

.inline-edit-event + form button:hover,
.table-actions form button[value="delete_event"]:hover,
.table-actions form button[name="action"][value="delete_event"]:hover {
    background: #f9c7c0;
}

/* Plus d'espace pour les actions des activités */
section:has(.inline-edit-event) table th:last-child,
section:has(.inline-edit-event) table td:last-child {
    width: 430px;
    min-width: 430px;
}

/* Mobile */
@media (max-width: 760px) {
    section:has(.inline-edit-event) table th:last-child,
    section:has(.inline-edit-event) table td:last-child {
        width: 320px;
        min-width: 320px;
    }

    .event-edit-form {
        width: 300px;
    }

    .event-edit-form .form-columns {
        grid-template-columns: 1fr;
    }
}

