@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #080808;
    --card: #121212;
    --line: #262626;
    --text: #f4f4f4;
    --muted: #aaa;
    --accent: #fff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top, #1b1b1b, #070707 55%);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
}

.wrap {
    width: min(1600px, 92vw);
    margin: 0 auto;
    padding: 44px 0;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.brand,
.title,
h1,
h2 {
    font-family: Anton, sans-serif;
    font-weight: 400;
    letter-spacing: .05em;
}

.brand {
    font-size: 28px;
    text-decoration: none;
}

.card {
    padding: 28px;
    background: rgba(18, 18, 18, .88);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.login {
    max-width: 520px;
    margin: 8vh auto;
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.photo {
    overflow: hidden;
    background: #171717;
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform .22s ease, border-color .22s ease;
}

.photo:hover {
    border-color: rgba(255, 255, 255, .24);
    transform: translateY(-3px);
}

.photo img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.photo .p {
    padding: 12px;
    color: #ddd;
    font-size: 13px;
    word-break: break-word;
}

.photo .p a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

input,
button,
textarea {
    font: inherit;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea,
input:not([type]) {
    width: 100%;
    margin: 7px 0 16px;
    padding: 14px 15px;
    background: #0b0b0b;
    color: #fff;
    border: 1px solid #333;
    border-radius: 14px;
}

label {
    display: block;
    color: #ddd;
    font-weight: 600;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.btn.ghost,
button.ghost {
    background: transparent;
    color: #fff;
    border-color: #555;
}

.btn.danger,
button.danger {
    background: #ff4545;
    color: #fff;
    border-color: #ff4545;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notice {
    margin: 12px 0;
    padding: 12px 14px;
    background: #1e1e1e;
    color: #ddd;
    border: 1px solid #333;
    border-radius: 14px;
}

.error {
    background: #241010;
    border-color: #8a2a2a;
}

.success {
    background: #102419;
    border-color: #2a6d45;
}

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

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

.table th,
.table td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid #242424;
    white-space: nowrap;
}

.table th {
    color: #aaa;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.mini-stats span {
    padding: 10px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #ddd;
    font-weight: 700;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, .92);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 94vw;
    max-height: 88vh;
}

.x {
    position: fixed;
    top: 18px;
    right: 22px;
    background: none;
    color: #fff;
    border: none;
    font-size: 34px;
}

.footer {
    margin-top: 28px;
    color: #777;
    font-size: 12px;
}

.gallery-page {
    padding-bottom: 58px;
}

.gallery-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.gallery-hero-content {
    min-width: min(100%, 480px);
}

.download-all {
    padding: 15px 22px;
    font-size: 15px;
}

.download-note {
    margin: 14px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.donation-block {
    max-width: 760px;
    margin: 120px auto 50px;
    padding: 48px 36px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    text-align: center;
}

.donation-block .eyebrow {
    margin-bottom: 14px;
}

.donation-block h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
}

.donation-block p {
    max-width: 560px;
    margin: 0 auto 18px;
    color: #cfcfcf;
    line-height: 1.7;
}

.donation-block .donation-note {
    margin-top: 22px;
    color: #888;
    font-size: .9rem;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 26px;
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.donate-btn:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 800px) {
    .top {
        align-items: flex-start;
        flex-direction: column;
    }

    .table {
        font-size: 13px;
    }
}

@media (max-width: 700px) {
    .gallery-hero {
        align-items: flex-start;
    }

    .download-all,
    .donate-btn {
        width: 100%;
    }

    .donation-block {
        margin: 80px 16px 35px;
        padding: 36px 22px;
    }
}
.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.table-actions form {
    margin: 0;
}

.btn-small {
    min-width: 82px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.btn-edit {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
}

.btn-view {
    background: #1c1c1c;
    color: #fff;
    border: 1px solid #444;
}

.btn-delete {
    background: #ff4545;
    color: #fff;
    border: 1px solid #ff4545;
}

.btn-edit:hover,
.btn-view:hover {
    background: #fff;
    color: #000;
}

.btn-delete:hover {
    background: #d93636;
}

.actions-head {
    text-align: right;
}

@media (max-width: 900px) {
    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-small {
        width: 100%;
    }
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    min-width: 1350px;
}

.table th,
.table td {
    white-space: nowrap;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 300px;
}

.table-actions form {
    margin: 0;
}

.btn-small {
    min-width: 78px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
}

.btn-delete {
    min-width: 92px;
}
.btn-mail {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-mail:hover {
    background: transparent;
    color: #fff;
}
/* =========================================================
   Fenêtre de soutien avant téléchargement
========================================================= */

body.support-modal-open {
    overflow: hidden;
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.support-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.support-modal-card {
    position: relative;
    z-index: 1;

    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    padding: clamp(28px, 5vw, 50px);

    text-align: center;

    background:
        radial-gradient(
            circle at top right,
            rgba(0, 112, 186, 0.2),
            transparent 36%
        ),
        #101010;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;

    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7);

    transform: translateY(20px) scale(0.97);

    transition: transform 0.3s ease;
}

.support-modal.is-open .support-modal-card {
    transform: translateY(0) scale(1);
}

.support-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    background: rgba(255, 255, 255, 0.06);
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;

    font-size: 27px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.support-modal-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.support-modal-eyebrow {
    margin: 0 0 18px;

    color: #9d9d9d;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.support-modal-card h2 {
    max-width: 500px;
    margin: 0 auto 20px;

    color: #fff;

    font-family: "Anton", Impact, sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.support-modal-intro {
    max-width: 510px;
    margin: 0 auto;

    color: #d0d0d0;

    font-size: 1rem;
    line-height: 1.7;
}

.support-modal-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 26px 0;
}

.support-modal-benefits span {
    padding: 9px 13px;

    background: rgba(255, 255, 255, 0.05);
    color: #d7d7d7;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 700;
}

.support-paypal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 100%;
    min-height: 76px;
    padding: 13px 22px;

    background: linear-gradient(135deg, #0070ba, #003087);
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;

    text-align: left;
    text-decoration: none;

    box-shadow: 0 18px 45px rgba(0, 48, 135, 0.32);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.support-paypal-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 25px 60px rgba(0, 48, 135, 0.48);
}

.support-paypal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 86px;
    min-height: 42px;

    padding: 0 12px;

    background: #fff;
    color: #003087;

    border-radius: 10px;

    font-size: 1rem;
    font-weight: 900;
    font-style: italic;
}

.support-paypal-button > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;

    font-size: 1rem;
    font-weight: 900;
}

.support-paypal-button small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 500;
}

.support-modal-separator {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 22px 0;
}

.support-modal-separator::before,
.support-modal-separator::after {
    content: "";

    flex: 1;
    height: 1px;

    background: rgba(255, 255, 255, 0.12);
}

.support-modal-separator span {
    color: #777;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.support-continue-button {
    width: 100%;
    min-height: 52px;

    padding: 0 22px;

    background: transparent;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    font: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.support-continue-button:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.support-modal-note {
    margin: 16px 0 0;

    color: #777;

    font-size: 0.76rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .support-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .support-modal-card {
        width: 100%;
        max-height: calc(100vh - 24px);

        padding: 34px 20px 26px;

        border-radius: 26px 26px 18px 18px;
    }

    .support-paypal-button {
        align-items: stretch;
        flex-direction: column;

        text-align: center;
    }

    .support-paypal-logo {
        align-self: center;
    }

    .support-modal-benefits {
        display: grid;
        grid-template-columns: 1fr;
    }
}
.table-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
}

.table-actions form{
    margin:0;
}

.icon-btn{

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.12);

    background:#171717;

    color:#fff;

    transition:.25s;

    text-decoration:none;

    cursor:pointer;
}

.icon-btn svg{

    width:18px;
    height:18px;

    stroke-width:2;
}

.icon-btn:hover{

    background:#fff;
    color:#000;

    transform:translateY(-2px);
}

.icon-btn.mail{

    background:#0070ba;
    border-color:#0070ba;
}

.icon-btn.mail:hover{

    background:#005ea6;
    color:#fff;
}

.icon-btn.delete{

    background:#ff4545;
    border-color:#ff4545;
}

.icon-btn.delete:hover{

    background:#d83131;
    color:#fff;
}

/* =========================================================
   ACTIONS DU TABLEAU ADMIN — ICÔNES LUCIDE
========================================================= */

.actions-head {
    min-width: 210px;
    text-align: center !important;
}

.table td:last-child {
    padding-right: 14px;
}

.table-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 210px;
    white-space: nowrap;
}

.table-actions form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 0;
}

.table-actions .icon-btn,
.table-actions button.icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;

    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;

    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #171717;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px !important;

    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.table-actions .icon-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    pointer-events: none;
}

.table-actions .icon-btn:hover {
    background: #fff;
    color: #050505;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.table-actions .icon-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.table-actions .icon-btn.mail {
    background: #f4f4f4;
    color: #080808;
    border-color: #f4f4f4;
}

.table-actions .icon-btn.mail:hover {
    background: #dcdcdc;
    color: #080808;
    border-color: #dcdcdc;
}

.table-actions .icon-btn.delete,
.table-actions button.icon-btn.delete {
    background: #ff4545;
    color: #fff;
    border-color: #ff4545;
}

.table-actions .icon-btn.delete:hover,
.table-actions button.icon-btn.delete:hover {
    background: #d93636;
    color: #fff;
    border-color: #d93636;
}

@media (max-width: 900px) {
    .table-actions {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 190px;
    }

    .table-actions .icon-btn,
    .table-actions button.icon-btn {
        flex-basis: 36px !important;

        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;

        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
}