
        .login-wrapper {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: calc(var(--nav) + 30px) 20px 30px;
            position: relative;
            overflow: hidden;
        }

        .login-wrapper .aur-a {
            top: -200px;
            left: -100px;
        }
        .login-wrapper .aur-b {
            bottom: -200px;
            right: -100px;
        }

        .login-card {
            width: 20%;
            min-width: 340px;
            background: var(--sf);
            border: 1px solid var(--bd);
            border-radius: 22px;
            padding: 36px 32px;
            position: relative;
            z-index: 1;
            backdrop-filter: blur(12px);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(47, 179, 90, 0.08);
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .login-card:hover {
            border-color: rgba(47, 179, 90, 0.25);
            box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4), 0 0 50px rgba(47, 179, 90, 0.12);
        }

        .login-card::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--grad);
            border-radius: 0 0 22px 22px;
            opacity: 0.7;
        }

        .login-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            background: var(--grad);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.2rem;
            margin: 0 auto 18px;
            box-shadow: 0 8px 24px rgba(47, 179, 90, 0.35);
        }

        .login-title {
            font-family: "Space Grotesk", sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            text-align: center;
            color: var(--tx);
            margin-bottom: 4px;
        }

        .login-sub {
            font-size: 0.85rem;
            color: var(--tx3);
            text-align: center;
            margin-bottom: 28px;
        }

        .login-card label {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--tx2);
            margin-bottom: 6px;
            display: block;
        }

        .login-card input[type="email"],
        .login-card input[type="password"],
        .login-card input[type="text"] {
            width: 100%;
            padding: 11px 14px;
            border-radius: 12px;
            border: 1px solid var(--bd2);
            background: var(--bg3);
            color: var(--tx);
            font-size: 0.9rem;
            font-family: "Space Grotesk", sans-serif;
            outline: none;
            transition: 0.2s;
            margin-bottom: 16px;
        }

        .login-card input[type="email"]:focus,
        .login-card input[type="password"]:focus,
        .login-card input[type="text"]:focus {
            border-color: var(--pur);
            box-shadow: 0 0 0 3px rgba(47, 179, 90, 0.15);
        }

        .login-btn {
            width: 100%;
            padding: 12px;
            background: var(--grad);
            border: none;
            color: #fff;
            font-family: "Space Grotesk", sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            border-radius: 12px;
            cursor: pointer;
            transition: 0.25s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 6px;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(47, 179, 90, 0.4);
        }

        .login-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--tx3);
            font-size: 0.8rem;
            margin: 20px 0;
        }
        .login-divider::before,
        .login-divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: var(--bd);
        }

        .login-footer {
            text-align: center;
            font-size: 0.83rem;
            color: var(--tx3);
            margin-top: 22px;
        }

        .login-footer a {
            color: var(--pur);
            font-weight: 600;
            transition: 0.2s;
        }

        .login-footer a:hover {
            text-decoration: underline;
        }

        .login-error {
            background: rgba(248, 113, 113, 0.1);
            border: 1px solid rgba(248, 113, 113, 0.25);
            color: #f87171;
            font-size: 0.82rem;
            padding: 10px 14px;
            border-radius: 12px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logged-in-info {
            background: rgba(52, 211, 153, 0.1);
            border: 1px solid rgba(52, 211, 153, 0.25);
            color: #34d399;
            font-size: 0.82rem;
            padding: 10px 14px;
            border-radius: 12px;
            margin-bottom: 18px;
            text-align: center;
        }

        .logged-in-info a {
            color: var(--pur);
            font-weight: 600;
        }

        @media (max-width: 1200px) {
            .login-card {
                width: 35%;
            }
        }

        @media (max-width: 768px) {
            .login-card {
                width: 90%;
                min-width: unset;
                padding: 28px 22px;
            }
        }
 
/* ═══════════════════════════════════════════════════════════════
   MOVIE FORM — templates/movie/_form.html.twig
═══════════════════════════════════════════════════════════════ */
.mform-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav) + 30px) 20px 30px;
    position: relative;
    overflow: hidden;
}

.mform-wrapper .aur-a {
    top: -200px;
    left: -100px;
}
.mform-wrapper .aur-b {
    bottom: -200px;
    right: -100px;
}

.mform-card {
    width: 30%;
    min-width: 380px;
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 22px;
    padding: 36px 32px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(47, 179, 90, 0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: mform-in 0.5s ease both;
}

@keyframes mform-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.mform-card:hover {
    border-color: rgba(47, 179, 90, 0.25);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4), 0 0 50px rgba(47, 179, 90, 0.12);
}

.mform-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad);
    border-radius: 0 0 22px 22px;
    opacity: 0.7;
}

.mform-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(47, 179, 90, 0.35);
}

.mform-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--tx);
    margin-bottom: 4px;
}

.mform-sub {
    font-size: 0.85rem;
    color: var(--tx3);
    text-align: center;
    margin-bottom: 28px;
}

/* Symfony form rows */
.mform > div,
.mform-grid > div {
    margin-bottom: 16px;
}

.mform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.mform label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tx2);
    margin-bottom: 6px;
    display: block;
}

.mform label.required::after {
    content: " *";
    color: var(--pur);
}

.mform input:not([type="hidden"]):not([type="checkbox"]),
.mform select,
.mform textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    color: var(--tx);
    font-size: 0.9rem;
    font-family: "Space Grotesk", sans-serif;
    outline: none;
    transition: 0.2s;
}

.mform select optgroup,
.mform select option {
    background: var(--bg3);
    color: var(--tx);
}

.mform input:focus,
.mform select:focus,
.mform textarea:focus {
    border-color: var(--pur);
    box-shadow: 0 0 0 3px rgba(47, 179, 90, 0.15);
}

.mform input.is-invalid,
.mform select.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

/* Field errors rendered by Symfony (<ul><li>) */
.mform ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #f87171;
}

.mform-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tx3);
    margin: 6px 0 16px;
}
.mform-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bd);
}

.mform-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #f87171;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mform-btn,
.mform-btn-danger {
    width: 100%;
    padding: 12px;
    border: none;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mform-btn {
    background: var(--grad);
    margin-top: 6px;
}

.mform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(47, 179, 90, 0.4);
}

.mform-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* Bouton supprimer : même base que .boc, accent rouge au survol (cf. .profile-menu-item.danger) */
.mform-btn-danger {
    background: transparent;
    border: 1px solid var(--bd2);
    color: var(--tx2);
    font-weight: 500;
}

.mform-btn-danger:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* 2e clic : confirmation, déclinaison rouge de .bgrd */
.mform-btn-danger.confirm {
    background: linear-gradient(135deg, #f87171, #ef4444);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.mform-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tx3);
    font-size: 0.8rem;
    margin: 20px 0;
}
.mform-divider::before,
.mform-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bd);
}

.mform-footer {
    text-align: center;
    font-size: 0.83rem;
    margin-top: 22px;
}

.mform-footer a {
    color: var(--pur);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.mform-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .mform-card {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .mform-card {
        width: 100%;
        min-width: unset;
        padding: 28px 22px;
    }
    .mform-grid {
        grid-template-columns: 1fr;
    }
}

/* Upload zone */
.mform-drop {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 26px 16px;
    border: 1.5px dashed var(--bd2);
    border-radius: 14px;
    background: var(--bg3);
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 0 !important;
}

.mform-drop > i {
    font-size: 1.5rem;
    color: var(--pur);
}

.mform-drop-text {
    font-size: 0.88rem;
    color: var(--tx);
    font-weight: 500;
    word-break: break-all;
}

.mform-drop-text strong {
    color: var(--pur);
}

.mform-drop-hint {
    font-size: 0.75rem;
    color: var(--tx3);
    font-weight: 400;
}

.mform-drop:hover,
.mform-drop.over {
    border-color: var(--pur);
    background: rgba(47, 179, 90, 0.08);
}

.mform-drop.has-file {
    border-style: solid;
    border-color: rgba(52, 211, 153, 0.5);
}

.mform-drop.has-file > i {
    color: #34d399;
}

.mform-drop.is-invalid {
    border-color: #f87171;
}

/* Hidden native input, the whole zone is clickable */
.mform .mform-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    padding: 0;
}

.mform-file {
    margin-bottom: 16px;
}

.mform-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    font-size: 0.82rem;
    color: var(--tx2);
}

.mform-current i {
    color: var(--pur);
}

.mform-current span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mform-current em {
    font-style: normal;
    color: var(--tx3);
}

/* ═══════════════════════════════════════════════════════════════
   PROFIL CREATOR — séries / chapitres (templates/profil_creator)
═══════════════════════════════════════════════════════════════ */
.pc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--bd2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--tx2);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.pc-chip:hover {
    border-color: var(--pur);
    color: var(--tx);
    background: rgba(47, 179, 90, 0.12);
}

.pc-add-chapter {
    align-self: flex-start;
    margin-top: 2px;
    padding: 0;
    border: none;
    background: none;
    color: var(--pur);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.pc-add-chapter:hover {
    text-decoration: underline;
}

/* Modales */
.pc-modal .modal-content {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    color: var(--tx);
}

.pc-modal .modal-header {
    border-bottom: 1px solid var(--bd);
    padding: 1.25rem 1.5rem;
    align-items: flex-start;
}

.pc-modal .modal-body {
    padding: 1.5rem;
}

.pc-modal .modal-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: var(--tx);
}

.pc-modal-sub {
    font-size: 0.78rem;
    color: var(--tx3);
    margin-top: 2px;
}

.pc-modal-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(var(--c), 0.14);
    border: 1px solid rgba(var(--c), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-modal-hint {
    font-size: 0.75rem;
    color: var(--tx3);
    margin-top: -6px;
}

/* Champs Symfony */
.pc-form > div,
.pc-form .row > div > div {
    margin-bottom: 14px;
}

.pc-form label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tx2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: block;
}

.pc-form label.required::after {
    content: " *";
    color: var(--pur);
}

.pc-form input:not([type="hidden"]),
.pc-form select,
.pc-form textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    color: var(--tx);
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}

.pc-form textarea {
    resize: vertical;
}

.pc-form select option {
    background: var(--bg3);
    color: var(--tx);
}

.pc-form input:focus,
.pc-form select:focus,
.pc-form textarea:focus {
    border-color: var(--pur);
    box-shadow: 0 0 0 3px rgba(47, 179, 90, 0.15);
}

.pc-form ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #f87171;
}

.pc-btn-ghost {
    padding: 0.45rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: rgba(255, 255, 255, 0.07);
    color: var(--tx);
    font-size: 0.875rem;
    cursor: pointer;
    transition: 0.2s;
}

.pc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* My Videos — tableau du profil créateur */
.pc-count {
    padding: 1px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--tx2);
    font-size: 0.7rem;
    letter-spacing: 0;
}

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

.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--tx);
}

.pc-table th {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tx3);
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--bd);
    white-space: nowrap;
}

.pc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    white-space: nowrap;
}

.pc-table tbody tr {
    transition: background 0.2s;
}

.pc-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pc-td-title {
    font-weight: 600;
}

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

.pc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 9px;
    border: 1px solid var(--bd2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--tx2);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.pc-icon-btn:hover {
    color: var(--tx);
    border-color: var(--pur);
}

.pc-icon-btn-danger:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.1);
    transform: translateY(-1px);
}

.pc-delete-form {
    margin: 0;
}

.pc-confirm-label {
    display: none;
    font-weight: 600;
}

.pc-icon-btn-danger.confirm {
    background: linear-gradient(135deg, #f87171, #ef4444);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.pc-icon-btn-danger.confirm .pc-confirm-label {
    display: inline;
}

/* ═══════════════════════════════════════════════════════════════
   DEMANDE CRÉATEUR — profil visiteur, CGU, admin
═══════════════════════════════════════════════════════════════ */
.cr-card {
    position: relative;
    overflow: hidden;
}

.cr-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0.7;
}

.cr-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 24px rgba(47, 179, 90, 0.35);
}

.cr-card-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tx);
    margin: 0 0 4px;
}

.cr-card-text {
    font-size: 0.875rem;
    color: var(--tx2);
    margin: 0;
}

.cr-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cr-status-pending {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.cr-status-rejected {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.cr-status-approved {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

/* Formulaire */
.cr-counter {
    font-size: 0.72rem;
    color: var(--tx3);
    text-align: right;
    margin: -10px 0 14px;
}

.cr-cgu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tx2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.cr-cgu-head a {
    color: var(--pur);
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

.cr-cgu-box {
    max-height: 45vh;
    overflow-y: auto;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    outline: none;
}

.cr-cgu-box:focus {
    border-color: var(--pur);
}

.cr-cgu-hint {
    font-size: 0.75rem;
    color: #fbbf24;
    margin: 8px 0 16px;
}

.cr-cgu-hint.done {
    color: #34d399;
}

/* Clic sur la case bloquée : le message clignote pour attirer l'attention */
.cr-cgu-hint.nudge {
    animation: cr-nudge 0.5s ease 2;
}

@keyframes cr-nudge {
    0%, 100% { transform: none; }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Barre de progression de lecture des CGU */
.cr-cgu-progress {
    height: 3px;
    border-radius: 3px;
    background: var(--bd);
    margin-top: 6px;
    overflow: hidden;
}

.cr-cgu-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--grad);
    transition: width 0.15s;
}

.cr-checks > div {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.cr-checks input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    padding: 0 !important;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--pur);
    cursor: pointer;
}

.cr-checks input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.cr-checks label {
    flex: 1;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--tx) !important;
    margin: 0 !important;
    cursor: pointer;
}

.cr-checks ul {
    flex-basis: 100%;
    margin: 0 0 0 28px !important;
}

/* Champ piège anti-robot : hors écran (pas display:none, que certains robots détectent) */
.cr-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Texte des CGU */
.cgu {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--tx2);
}

.cgu h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tx);
    margin: 1.8em 0 0.6em;
    scroll-margin-top: calc(var(--nav) + 20px);
}

.cgu h3:first-of-type {
    margin-top: 0.8em;
}

.cgu h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--tx);
    margin: 1.2em 0 0.4em;
}

.cgu ul {
    padding-left: 1.2em;
}

.cgu li {
    margin-bottom: 0.35em;
}

.cgu strong {
    color: var(--tx);
}

.cgu-meta {
    font-size: 0.78rem;
    color: var(--tx3);
}

.cgu-todo {
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    font-weight: 600;
}

.cgu-end {
    text-align: center;
    font-size: 0.78rem;
    color: var(--tx3);
    margin-top: 2em;
}

/* Bandeau des traductions : seule la version française fait foi */
.legal-notice {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(126, 226, 154, 0.35);
    background: rgba(126, 226, 154, 0.08);
    font-size: 0.85rem;
    color: var(--tx2);
}

.legal-notice a {
    color: #7ee29a;
    font-weight: 600;
}

.cgu-toc {
    position: sticky;
    top: calc(var(--nav) + 20px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cgu-toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tx3);
    padding: 4px 8px 8px;
}

.cgu-toc a {
    font-size: 0.82rem;
    color: var(--tx2);
    padding: 5px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.cgu-toc a:hover {
    background: rgba(47, 179, 90, 0.1);
    color: var(--tx);
}

/* Admin */
.cr-admin-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tx2);
}

.cr-admin-item {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--bd);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
}

.cr-admin-name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--tx);
}

.cr-admin-motivation {
    font-size: 0.85rem;
    color: var(--tx2);
    background: var(--bg3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* Case à cocher à gauche du texte */
.cr-checks input[type="checkbox"] {
    order: -1;
}

/* Case bloquée : le clic passe au conteneur (message d'aide) */
.cr-checks input[type="checkbox"]:disabled {
    pointer-events: none;
}

.cr-checks > div:has(input:disabled) {
    cursor: help;
}

/* Affiche du film — formulaire d'ajout / édition */
.mform-poster {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: stretch;
}

.mform-poster-preview {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mform-poster-preview > i {
    font-size: 1.6rem;
    color: var(--tx3);
}

.mform-poster-preview img {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mform-poster-preview.has-img img {
    display: block;
}

.mform-poster-preview.has-img > i {
    display: none;
}

.mform-drop-poster {
    padding: 18px 14px;
}

@media (max-width: 768px) {
    .mform-poster {
        grid-template-columns: 90px 1fr;
    }
}

/* Miniature de l'affiche — tableau My Videos */
.pc-poster-thumb {
    width: 34px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tx3);
    font-size: 0.75rem;
    vertical-align: middle;
}

/* Sous-titres — pastilles à cocher (formulaire vidéo) */
.mform-subs {
    margin-bottom: 16px;
}

/* Tags (tag-input.js) : pastilles + zone de saisie dans une boîte qui imite un champ */
.mform-tags {
    position: relative;
    margin-bottom: 16px;
}

.tag-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    cursor: text;
    transition: 0.2s;
}

.tag-box:focus-within {
    border-color: var(--pur);
    box-shadow: 0 0 0 3px rgba(47, 179, 90, 0.15);
}

.tag-box.is-invalid {
    border-color: #f87171;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px 3px 10px;
    border-radius: 14px;
    background: rgba(47, 179, 90, 0.18);
    color: #cdf7d8;
    font-size: 0.8rem;
    white-space: nowrap;
}

.tag-pill button {
    border: 0;
    background: none;
    color: inherit;
    opacity: 0.7;
    padding: 0 5px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.tag-pill button:hover {
    opacity: 1;
}

.mform .tag-box input.tag-typing {
    flex: 1;
    min-width: 120px;
    width: auto;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tag-suggest {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin-top: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.tag-suggest div {
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--tx2);
    font-size: 0.85rem;
    cursor: pointer;
}

.tag-suggest div:hover,
.tag-suggest div.active {
    background: rgba(47, 179, 90, 0.18);
    color: var(--tx);
}

.mform-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mform .mform-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    color: var(--tx2);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.mform .mform-chip:hover {
    border-color: var(--pur);
    color: var(--tx);
}

/* Case native masquée : la pastille entière est cliquable */
.mform .mform-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mform .mform-chip:has(input:checked) {
    background: rgba(47, 179, 90, 0.18);
    border-color: var(--pur);
    color: var(--tx);
}

.mform .mform-chip:has(input:checked)::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 0.65rem;
    margin-right: 6px;
    color: var(--pur);
}

.mform .mform-chip:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(47, 179, 90, 0.25);
}

.mform-subs-hint {
    font-size: 0.75rem;
    color: var(--tx3);
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   GALERIE — page d'accueil (templates/home/index.html.twig)
═══════════════════════════════════════════════════════════════ */
.gal-link {
    color: var(--pur);
    font-weight: 600;
    text-decoration: none;
}

.gal-link:hover {
    text-decoration: underline;
}

/* Barre de recherche de la galerie (titres + tags) */
.gal-search {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.gal-search-field {
    position: relative;
    flex: 1;
}

.gal-search-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tx3);
    font-size: 0.85rem;
    pointer-events: none;
}

.gal-search-field input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 22px;
    border: 1px solid var(--bd2);
    background: var(--sf);
    color: var(--tx);
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}

.gal-search-field input:focus {
    border-color: var(--pur);
    box-shadow: 0 0 0 3px rgba(47, 179, 90, 0.18);
}

.gal-search-btn {
    padding: 0 20px;
    border-radius: 22px;
    font-size: 0.85rem;
}

/* Creator Studio : série qui n'a pas encore assez d'épisodes */
.series-risk {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
    font-size: 0.75rem;
}

/* Tags d'une vidéo (page de lecture) */
.gal-chip-tag {
    color: #a7f0bb;
}

.gal-filters {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.gal-filter-label {
    flex-shrink: 0;
    width: 96px;
    padding-top: 7px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tx3);
}

.gal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 20px;
    border: 1px solid var(--bd2);
    background: var(--sf);
    color: var(--tx2);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}

a.gal-chip:hover {
    border-color: var(--pur);
    color: var(--tx);
}

.gal-chip.active {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(47, 179, 90, 0.3);
}

.gal-chip-n {
    font-size: 0.68rem;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.gal-chip.active .gal-chip-n {
    background: rgba(255, 255, 255, 0.22);
}

.gal-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 18px;
    padding-top: 16px;
    border-top: 1px solid var(--bd);
    font-size: 0.85rem;
    color: var(--tx2);
}

.gal-summary strong {
    color: var(--tx);
}

.gal-reset {
    color: var(--tx3);
    font-size: 0.8rem;
    text-decoration: none;
}

.gal-reset:hover {
    color: #f87171;
}

/* Turbo Frame en cours de chargement */
turbo-frame#gallery[busy] .gal-grid {
    opacity: 0.5;
    transition: opacity 0.2s;
}

/* Carte film : base .gc du site (fond, bordure, survol), affiche en haut */
.gal-card {
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.gal-card:hover {
    color: inherit;
}

/* Affiche : même taille pour tous les films (format 2:3, image recadrée) */
.gal-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg3);
    border-bottom: 1px solid var(--bd);
}

/* Badge sur l'affiche : film entier / série */
.gal-type {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(8, 20, 12, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    font-size: 0.68rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.gal-type-series {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.35);
}

.gal-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Icône de catégorie (.ftico) à cheval sur le bas de l'affiche */
.gal-ftico {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
    margin: -35px 0 10px;
    border: 3px solid var(--sf);
    box-shadow: 0 6px 18px rgba(47, 179, 90, 0.35);
}

.gal-text {
    font-size: 0.78rem;
    color: var(--tx2);
    margin-bottom: 10px;
    line-height: 1.5;
}

.gal-card .ftag {
    margin-top: 0;
}

.gal-poster-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--tx3);
    background: linear-gradient(135deg, rgba(47, 179, 90, 0.12), rgba(21, 128, 61, 0.08));
}

.gal-card:hover .gal-poster img {
    transform: scale(1.05);
}

.gal-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to top, rgba(8, 20, 12, 0.85), rgba(8, 20, 12, 0.25));
    opacity: 0;
    transition: opacity 0.3s;
}

.gal-card:hover .gal-overlay,
.gal-card:focus-visible .gal-overlay {
    opacity: 1;
}

.gal-play {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(47, 179, 90, 0.5);
}

.gal-play .fa-play {
    margin-left: 3px;
}

.gal-lock {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.gal-overlay-text {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Titre sur 2 lignes max : toutes les cartes d'une ligne gardent la même hauteur */
.gal-title {
    color: var(--tx);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gal-serie {
    color: var(--pur);
    font-weight: 500;
}

.gal-empty {
    padding: 48px 20px;
    text-align: center;
}

.gal-empty > i {
    font-size: 2rem;
    color: var(--tx3);
    margin-bottom: 12px;
}

.gal-empty-title {
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 8px;
}

.gal-pages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
}

.gal-page {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: var(--sf);
    color: var(--tx2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}

.gal-page:hover {
    border-color: var(--pur);
    color: var(--tx);
}

.gal-page.active {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
}

@media (max-width: 768px) {
    .gal-filters {
        flex-direction: column;
        gap: 6px;
    }

    .gal-filter-label {
        width: auto;
        padding-top: 0;
    }

    /* Filtres sur une ligne défilante sur mobile */
    .gal-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    /* Cartes plus compactes sur 2 colonnes */
    .gal-card .p-3 {
        padding: 0.75rem !important;
    }

    .gal-ftico {
        width: 32px;
        height: 32px;
        margin-top: -28px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PAGE DE LECTURE — templates/movie/show.html.twig
═══════════════════════════════════════════════════════════════ */
.watch-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: var(--tx2);
    text-decoration: none;
}

.watch-back:hover {
    color: var(--pur);
}

.watch-player {
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--bd);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(47, 179, 90, 0.1);
    aspect-ratio: 16 / 9;
}

.watch-player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.watch-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tx);
    margin: 0 0 6px;
}

.watch-serie {
    font-size: 0.88rem;
    color: var(--pur);
    font-weight: 600;
    margin-bottom: 14px;
}

.watch-serie span {
    color: var(--tx2);
    font-weight: 400;
}

.watch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.8rem;
    color: var(--tx3);
}

.watch-side {
    position: sticky;
    top: calc(var(--nav) + 20px);
}

.watch-ep {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.watch-ep:hover {
    background: rgba(255, 255, 255, 0.04);
}

.watch-ep.active {
    background: rgba(47, 179, 90, 0.12);
    box-shadow: inset 2px 0 0 var(--pur);
}

.watch-ep-poster {
    width: 44px;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx3);
}

.watch-ep-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-ep-info {
    flex: 1;
    min-width: 0;
}

.watch-ep-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tx);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-ep-sub {
    font-size: 0.72rem;
    color: var(--tx3);
}

.watch-ep-now {
    color: var(--pur);
}

/* My Videos : vidéo incomplète, absente de la galerie */
.pc-hidden-badge {
    display: table;
    margin-top: 4px;
    padding: 1px 8px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
}

.pc-hidden-badge:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE DE LECTURE — notes, commentaires, signalement
═══════════════════════════════════════════════════════════════ */
.watch-flash {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.watch-flash-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.watch-flash-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

/* Étoiles en lecture seule (remplissage partiel) */
.stars {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 2px;
    vertical-align: middle;
}

.stars-sm {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.stars-lg {
    font-size: 1.5rem;
}

.stars-bg {
    color: rgba(255, 255, 255, 0.15);
}

.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #fbbf24;
}

.watch-avg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--bd2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--tx2);
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
}

.watch-avg strong {
    color: var(--tx);
}

.watch-avg:hover {
    border-color: #fbbf24;
    color: var(--tx);
}

.watch-rating-big strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--tx);
    line-height: 1;
}

.watch-rating-big span {
    color: var(--tx3);
    margin-left: 2px;
}

/* Répartition des notes */
.watch-dist {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--tx2);
    margin-bottom: 6px;
}

.watch-dist > span:first-child {
    width: 30px;
    white-space: nowrap;
}

.watch-dist > span:last-child {
    width: 24px;
    text-align: right;
}

.watch-dist-bar {
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.watch-dist-bar > div {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* Saisie de la note : 5 boutons, ordre inversé → survol en CSS pur */
.watch-rate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bd);
    font-size: 0.85rem;
    color: var(--tx2);
}

.watch-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    margin: 0;
}

.watch-star-input button {
    padding: 0 3px;
    border: none;
    background: none;
    font-size: 1.8rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.watch-star-input button.on {
    color: #fbbf24;
}

/* Survol : l'étoile et toutes celles à sa gauche s'allument */
.watch-star-input:hover button {
    color: rgba(255, 255, 255, 0.18);
}

.watch-star-input button:hover,
.watch-star-input button:hover ~ button {
    color: #fbbf24;
}

.watch-star-input button:hover {
    transform: scale(1.15);
}

.watch-star-input button:focus-visible {
    outline: 2px solid var(--pur);
    border-radius: 4px;
}

/* Signalement */
.watch-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: transparent;
    color: var(--tx2);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.25s;
}

.watch-report-btn:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.watch-reported {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-size: 0.8rem;
}

.report-reasons {
    display: grid;
    gap: 6px;
}

.pc-form .report-reason {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    color: var(--tx) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transition: 0.2s;
}

.pc-form .report-reason input[type="radio"] {
    width: 16px !important;
    height: 16px;
    padding: 0 !important;
    accent-color: #f87171;
    flex-shrink: 0;
}

.pc-form .report-reason:has(input:checked) {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.08);
}

.report-hint {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    color: var(--tx2);
    font-size: 0.75rem;
}

.report-hint i {
    color: #fbbf24;
}

.report-submit {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

/* Commentaires */
.watch-comment-form textarea {
    resize: vertical;
}

.watch-comments {
    margin-top: 20px;
}

.watch-comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--bd);
}

.watch-comment-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.watch-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.watch-comment-head strong {
    color: var(--tx);
}

.watch-comment-badge {
    padding: 0 8px;
    border-radius: 20px;
    background: rgba(47, 179, 90, 0.15);
    color: #7ee29a;
    font-size: 0.68rem;
    font-weight: 600;
}

.watch-comment-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--tx2);
    word-break: break-word;
}

.min-w-0 {
    min-width: 0;
}

/* Admin — onglets et signalements */
.admin-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.report-poster {
    width: 70px;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx3);
}

.report-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr-admin-name {
    text-decoration: none;
}

.report-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    font-size: 0.82rem;
    color: var(--tx);
}

.report-list li {
    padding: 8px 0;
    border-top: 1px solid var(--bd);
}

.report-details {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg3);
    color: var(--tx2);
}

/* Galerie : note moyenne sur la carte */
.gal-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.72rem;
    color: var(--tx3);
}

/* Notifications des actions Turbo Stream (note, commentaire, signalement) */
.watch-toasts {
    position: fixed;
    top: calc(var(--nav) + 16px);
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.watch-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--sf);
    border: 1px solid var(--bd2);
    color: var(--tx);
    font-size: 0.85rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    animation: watch-toast-in 0.3s ease, watch-toast-out 0.4s ease 3.6s forwards;
}

.watch-toast-success i {
    color: #34d399;
}

.watch-toast-error {
    border-color: rgba(248, 113, 113, 0.4);
}

.watch-toast-error i {
    color: #f87171;
}

@keyframes watch-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes watch-toast-out {
    to { opacity: 0; transform: translateY(12px); }
}

/* Conteneur transparent pour la mise en page (bouton Report) */
.d-contents {
    display: contents;
}

/* Bloc mis à jour : léger flash, nouveau commentaire mis en évidence */
#rating,
#comments {
    animation: watch-refresh 0.6s ease;
}

@keyframes watch-refresh {
    from { box-shadow: 0 0 0 2px rgba(47, 179, 90, 0.35); }
    to { box-shadow: none; }
}

.watch-comment.is-new {
    animation: watch-new-comment 2.5s ease;
    border-radius: 10px;
}

@keyframes watch-new-comment {
    from { background: rgba(47, 179, 90, 0.16); }
    to { background: transparent; }
}

.watch-my-score {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
}

/* Note & commentaires verrouillés tant que la vidéo n'a pas été regardée */
.watch-locked {
    border-style: dashed;
}

.watch-locked-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(47, 179, 90, 0.12);
    border: 1px solid rgba(47, 179, 90, 0.25);
    color: #7ee29a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-locked-text {
    font-size: 0.85rem;
    color: var(--tx2);
    margin-bottom: 14px;
}

.watch-progress {
    position: relative;
    height: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 14px;
}

.watch-progress-fill {
    height: 100%;
    border-radius: 8px;
    background: var(--grad);
    transition: width 0.6s ease;
}

.watch-progress-fill.ok {
    background: linear-gradient(90deg, #34d399, #10b981);
}

/* Repère du minimum requis (30 %) */
.watch-progress-mark {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 16px;
    border-radius: 2px;
    background: #fbbf24;
    transform: translateX(-1px);
}

.watch-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    color: var(--tx2);
}

.watch-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.watch-checklist li i {
    font-size: 0.75rem;
    color: var(--tx3);
}

.watch-checklist li.done {
    color: var(--tx);
}

.watch-checklist li.done i {
    color: #34d399;
}

.watch-checklist li span {
    color: var(--tx3);
}

#watch-lock {
    animation: none;
}

#interactions > #rating {
    animation: watch-refresh 0.8s ease;
}

/* ═══════════════════════════════════════════════════════════════
   CONTINUE WATCHING — profils (templates/profil/_continue_watching.html.twig)
═══════════════════════════════════════════════════════════════ */
.cw-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.cw-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.cw-poster {
    position: relative;
    width: 46px;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx3);
}

.cw-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cw-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 20, 12, 0.55);
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.cw-item:hover .cw-play {
    opacity: 1;
}

.cw-info {
    flex: 1;
    min-width: 0;
}

.cw-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tx);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-serie {
    font-size: 0.72rem;
    color: var(--pur);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0 4px;
    overflow: hidden;
}

.cw-bar > div {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.cw-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--tx3);
}

.cw-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    text-align: center;
}

.cw-empty > i {
    font-size: 1.6rem;
    color: #f87171;
}

.cw-empty-title {
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 4px;
}

.cw-empty-text {
    font-size: 0.8rem;
    color: var(--tx2);
}

/* Profil créateur : cartes en grille sur toute la largeur */
.cw-row .cw-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px !important;
}

/* ═══════════════════════════════════════════════════════════════
   SIGNALEMENTS — commentaires, formulaire général, admin
═══════════════════════════════════════════════════════════════ */
/* Drapeau discret sur chaque commentaire, plus visible au survol */
.watch-comment-flag {
    opacity: 0.45;
    border-color: transparent;
    background: transparent;
}

.watch-comment:hover .watch-comment-flag,
.watch-comment-flag:focus-visible {
    opacity: 1;
}

.watch-comment-flag:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.1);
}

.watch-comment-flagged {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fbbf24;
    font-size: 0.8rem;
}

/* Citation du commentaire signalé */
.report-quote {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-left: 3px solid rgba(248, 113, 113, 0.6);
    border-radius: 0 10px 10px 0;
    background: var(--bg3);
    color: var(--tx2);
    font-size: 0.85rem;
    font-style: italic;
    word-break: break-word;
}

.report-quote:empty {
    display: none;
}

/* Page "Report a problem" : suivi des signalements de l'utilisateur */
.my-reports {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}

.my-reports li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--bd);
    color: var(--tx);
}

.my-reports-note {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--tx2);
}

.my-reports .cr-status {
    margin: 0;
    white-space: nowrap;
}

/* Admin : onglets par type */
.report-tabs {
    margin-top: -8px;
}

.report-tab-alert {
    background: #ef4444 !important;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   ZONE ADMIN — gabarit (templates/admin/base.html.twig), basé sur les db-* du thème
═══════════════════════════════════════════════════════════════ */
.admin-shell {
    min-height: 100vh;
    background: var(--bg);
}

.admin-logo-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(47, 179, 90, 0.18);
    color: #7ee29a;
    vertical-align: middle;
}

.db-sidebar .db-nl {
    text-decoration: none;
}

.admin-badge-alert {
    background: #ef4444;
}

.admin-top-title {
    min-width: 0;
}

.admin-page-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tx);
    line-height: 1.2;
}

.admin-page-sub {
    font-size: 0.75rem;
    color: var(--tx3);
}

.admin-page-sub:empty {
    display: none;
}

.admin-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tx);
    line-height: 1.1;
}

.admin-user-role {
    font-size: 0.68rem;
    color: #7ee29a;
}

/* Menu mobile */
.admin-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: transparent;
    color: var(--tx);
    flex-shrink: 0;
}

.admin-sidebar-backdrop {
    display: none;
}

@media (max-width: 991px) {
    .admin-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-menu-open .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 940;
        background: rgba(0, 0, 0, 0.55);
    }

    .db-top {
        padding: 0 16px;
    }

    .db-content {
        padding: 18px 14px;
    }
}

/* Bandeau "à traiter" */
.admin-todo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 0.85rem;
    color: var(--tx2);
}

.admin-todo i {
    color: #f87171;
}

.admin-todo a {
    color: #f87171;
    font-weight: 600;
    text-decoration: none;
}

.admin-todo a:hover {
    text-decoration: underline;
}

/* Cartes d'indicateurs */
.admin-stat-icon {
    color: var(--tx3);
    font-size: 0.95rem;
}

.db-stat-card .db-stat-val {
    font-family: "Space Grotesk", sans-serif;
    color: var(--tx);
    font-size: 1.7rem;
    margin-top: 4px;
}

.db-stat-card .db-stat-delta {
    color: #7ee29a;
}

.admin-stat-sub {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--tx3);
}

.admin-stat-alert {
    border-color: rgba(239, 68, 68, 0.35);
}

.admin-stat-alert::after {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.admin-stat-alert .db-stat-val,
.admin-stat-alert .admin-stat-icon {
    color: #f87171;
}

/* Cartes et graphiques */
.admin-card:hover {
    transform: none;
}

.admin-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--tx3);
}

.admin-legend span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c);
    margin-left: 8px;
}

.admin-chart {
    position: relative;
    height: 260px;
}

/* Classements */
.admin-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

a.admin-rank-row:hover {
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.admin-rank-n {
    width: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tx3);
    text-align: center;
    flex-shrink: 0;
}

.admin-rank-poster {
    width: 30px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx3);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.admin-rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-rank-title,
.admin-rank-sub {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-rank-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tx);
}

.admin-rank-sub {
    font-size: 0.72rem;
    color: var(--tx3);
}

.admin-rank-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tx);
    white-space: nowrap;
}

.admin-rank-val small {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--tx3);
}

/* Dernières actions */
.admin-log-row {
    padding: 8px 0;
    border-top: 1px solid var(--bd);
}

.admin-log-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.admin-log-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
}

.admin-log-action {
    font-weight: 600;
    color: #7ee29a;
    text-transform: capitalize;
}

.admin-log-target {
    font-size: 0.8rem;
    color: var(--tx);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Onglets dans la zone admin : alignés à gauche */
.db-content .admin-nav {
    justify-content: flex-start;
    margin-top: 0;
}

.watch-comment-banned {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN — utilisateurs (liste + fiche)
═══════════════════════════════════════════════════════════════ */
.admin-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-users-table td {
    vertical-align: middle;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    min-width: 220px;
}

.admin-user-cell:hover .admin-rank-title {
    color: #7ee29a;
}

.admin-role {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    border: 1px solid var(--bd2);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tx2);
}

.admin-role-staff {
    border-color: rgba(47, 179, 90, 0.4);
    background: rgba(47, 179, 90, 0.14);
    color: #7ee29a;
}

/* Fiche */
.admin-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.admin-profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.admin-profile-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tx);
}

.admin-profile-meta {
    font-size: 0.8rem;
    color: var(--tx);
    display: grid;
    gap: 4px;
}

.admin-profile-meta span {
    display: inline-block;
    width: 80px;
    color: var(--tx3);
}

.admin-ban-current {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    font-size: 0.85rem;
    color: var(--tx2);
}

.admin-ban-current strong {
    color: #f87171;
    display: block;
    margin-bottom: 4px;
}

.pc-form .admin-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 6px 0 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.85rem !important;
    color: #f87171 !important;
    cursor: pointer;
}

.pc-form .admin-check input {
    width: 16px !important;
    height: 16px;
    padding: 0 !important;
    accent-color: #ef4444;
}

.admin-ban-form .gal-chip {
    cursor: pointer;
    padding: 4px 10px;
    font-size: 0.75rem;
}

.admin-ban-form .gal-chip:disabled,
.admin-ban-form input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.admin-sep {
    border-color: var(--bd);
    margin: 20px 0;
}

/* ═══ ADMIN — équipe ═══ */
.team-role-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.team-role-select,
.team-role-form select {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    color: var(--tx);
    font-size: 0.78rem;
}

.team-confirm {
    font-size: 0.72rem;
    color: #f87171;
}

.team-confirm input {
    accent-color: #ef4444;
}

.team-matrix {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: collapse;
}

.team-matrix th {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tx3);
    text-align: center;
    padding: 0 4px 8px;
}

.team-matrix td {
    padding: 6px 4px;
    border-top: 1px solid var(--bd);
    color: var(--tx2);
}

.team-matrix td + td {
    text-align: center;
    width: 52px;
}

.team-yes {
    color: #34d399;
    font-size: 0.72rem;
    white-space: nowrap;
}

.team-no {
    color: var(--tx3);
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN — CONTENU (vidéos, séries, commentaires, catégories)
═══════════════════════════════════════════════════════════════ */
.ct-filters {
    flex-wrap: wrap;
}

.ct-select {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: var(--bg3);
    color: var(--tx);
    font-size: 0.85rem;
    max-width: 200px;
}

.ct-reported {
    margin: 4px 0 0 !important;
    text-decoration: none;
}

.ct-desc {
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Panneau de retrait motivé (details/summary) */
.ct-remove {
    position: relative;
    display: inline-block;
    text-align: left;
}

.ct-remove > summary {
    list-style: none;
}

.ct-remove > summary::-webkit-details-marker {
    display: none;
}

.ct-remove[open] > summary {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
}

.ct-remove-form {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    width: 300px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg2, #0f2216);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    white-space: normal;
}

.ct-remove-form label {
    font-size: 0.7rem;
}

.ct-remove-form select,
.ct-remove-form textarea {
    font-size: 0.82rem !important;
    padding: 0.45rem 0.7rem !important;
}

/* Catégories */
.ct-cat-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-cat-form input[name="name"] {
    flex: 1;
    min-width: 120px;
    padding: 0.4rem 0.7rem !important;
    font-size: 0.85rem !important;
}

.ct-cat-icon-input,
.ct-cat-form input[name="icon"] {
    width: 150px !important;
    padding: 0.4rem 0.7rem !important;
    font-size: 0.8rem !important;
    font-family: monospace;
}

.ct-cat-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(47, 179, 90, 0.12);
    color: var(--pur);
}

.ct-cat-table .pc-icon-btn[disabled] {
    opacity: 0.3;
    cursor: default;
}

@media (max-width: 767px) {
    .ct-cat-form {
        flex-wrap: wrap;
    }

    .ct-remove-form {
        width: min(300px, calc(100vw - 48px));
    }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN — JOURNAL D'ACTIVITÉ ET PARAMÈTRES
═══════════════════════════════════════════════════════════════ */
.act-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.act-field {
    flex: 1 1 150px;
    min-width: 0;
}

.act-field-wide {
    flex: 2 1 240px;
}

.act-field label {
    font-size: 0.68rem;
}

.act-field input,
.act-field select {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.82rem !important;
    height: 42px;
}

.act-buttons {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}

.act-table td {
    vertical-align: top;
}

.act-date {
    white-space: nowrap;
    font-size: 0.8rem;
}

.act-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(47, 179, 90, 0.12);
    color: #7ee29a;
}

.act-danger {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.act-warning {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.act-success {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.act-summary {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--tx2);
    max-width: 520px;
    overflow-wrap: anywhere;
}

.act-details {
    margin-top: 4px;
    font-size: 0.75rem;
}

.act-details summary {
    cursor: pointer;
    color: var(--tx3);
}

.act-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg3);
}

.act-details dt {
    color: var(--tx3);
    font-weight: 500;
}

.act-details dd {
    margin: 0;
    color: var(--tx2);
    overflow-wrap: anywhere;
}

.act-target {
    font-size: 0.8rem;
    max-width: 260px;
    overflow-wrap: anywhere;
}

/* Paramètres */
.set-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px 0;
    border-top: 1px solid var(--bd);
}

.set-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.set-text {
    flex: 1 1 320px;
    min-width: 0;
}

.set-text p {
    font-size: 0.8rem;
}

.set-meta {
    font-size: 0.72rem !important;
    color: var(--tx3);
}

.set-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.set-input input {
    width: 170px !important;
}

.set-input input[type="number"] {
    width: 110px !important;
}

.set-input .pc-muted {
    font-size: 0.78rem;
}

.set-warning {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    font-size: 0.78rem;
}

.set-system {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    margin: 0;
    font-size: 0.82rem;
}

.set-system dt {
    color: var(--tx3);
    font-weight: 500;
}

.set-system dd {
    margin: 0;
    color: var(--tx2);
}

/* ═══════════════════════════════════════════════════════════════
   CONFIRMATION DE L'ADRESSE E-MAIL — bandeau (bas de l'écran) et connexion
═══════════════════════════════════════════════════════════════ */
.verify-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1060;
    width: min(920px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(20, 17, 8, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    color: #fde68a;
    font-size: 0.82rem;
}

.verify-banner-done {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(8, 20, 16, 0.95);
}

.verify-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.verify-banner-icon {
    font-size: 1.2rem;
    color: #fbbf24;
}

.verify-banner-text {
    flex: 1 1 320px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.verify-banner-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.6);
    background: transparent;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.verify-banner-btn:hover {
    background: rgba(251, 191, 36, 0.15);
}

.verify-banner-msg {
    flex-basis: 100%;
    font-size: 0.8rem;
}

.verify-banner-msg-ok {
    color: #34d399;
}

.verify-banner-msg-error {
    color: #f87171;
}

.lm .verify-banner {
    background: rgba(255, 251, 235, 0.97);
    color: #92400e;
}

.lm .verify-banner-done {
    background: rgba(236, 253, 245, 0.97);
}

.login-error.login-success {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.25);
    color: #34d399;
}

/* ═══════════════════════════════════════════════════════════════
   PIED DE PAGE — liens légaux (templates/_footer.html.twig)
═══════════════════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    padding: 22px 0 90px; /* place pour le bandeau de confirmation d'e-mail, fixé en bas */
    border-top: 1px solid var(--bd);
    color: var(--tx3);
    font-size: 0.8rem;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.site-footer-links a {
    color: var(--tx2);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-links a:hover {
    color: var(--pur);
}

/* ═══════════════════════════════════════════════════════════════
   SÉLECTEUR DE LANGUE (templates/_locale_switcher.html.twig)
═══════════════════════════════════════════════════════════════ */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-switch-menu {
    min-width: 170px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--bd2);
    background: var(--bg2, #0f2216);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lang-switch-menu .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--tx2);
    font-size: 0.88rem;
}

.lang-switch-menu .dropdown-item:hover,
.lang-switch-menu .dropdown-item:focus {
    background: rgba(47, 179, 90, 0.12);
    color: var(--tx);
}

.lang-switch-menu .dropdown-item.active {
    background: rgba(47, 179, 90, 0.18);
    color: var(--tx);
}
