/* =============================================
   ACCREDITATIONS - Palm Dog 2026
   ============================================= */

/* Form */
.form-accreditation {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.form-accreditation input[type="text"],
.form-accreditation input[type="email"],
.form-accreditation input[type="tel"],
.form-accreditation input[type="url"],
.form-accreditation textarea {
    padding: 10px 8px;
}

.form-accreditation select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #222;
    min-height: 45px;
    padding: 10px 30px 10px 8px;
    background: transparent;
    font: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Guests */
.guest-row {
    padding: 10px 0;
    border-bottom: 1px solid #e0d5c8;
    align-items: center;
}

.col-guest {
    flex: 1;
    min-width: 150px;
}

.col-guest-remove {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 22px;
}

.col-guest-remove .removeGuest,
.col-guest-remove .removeGuestManage {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    padding: 0;
    transition: background 0.2s;
}

.col-guest-remove .removeGuest:hover,
.col-guest-remove .removeGuestManage:hover {
    background: #333;
}

.col-guest-remove .label-remove {
    display: none;
}

.col-guest-remove .icon-remove {
    display: inline;
}

.btn-small {
    padding: 5px 12px;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

.btn-refuse {
    background: #c0392b;
    color: white;
}

/* Cellule d'actions du dashboard : VOIR + icône de suppression espacés */
.dashboard-table .actions-cell {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.dashboard-table .actions-cell form {
    margin: 0;
    line-height: 0;
}

.btn-icon-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #999;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-icon-danger:hover,
.btn-icon-danger:focus {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    outline: none;
    transform: scale(1.05);
}

.btn-icon-danger svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

#addGuest, #addGuestManage {
    margin-top: 10px;
    margin-bottom: 30px;
    display: block;
    width: fit-content;
}

/* Messages */
.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 15px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Accreditation Card */
.accreditation-card {
    background: white;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accreditation-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.accreditation-date {
    font-size: 13px;
    color: #666;
}

.accreditation-num {
    font-weight: bold;
    font-size: 14px;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-refused {
    background: #f8d7da;
    color: #721c24;
}

/* Info table */
.info-table {
    width: 100%;
    margin-bottom: 20px;
}

.info-table td, .info-table th {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

.info-table th {
    background: #f8f8f8;
    font-weight: bold;
}

.info-table a {
    color: #000;
}

/* Guests list */
.guests-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.guests-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.guests-list li:before {
    content: "\2022";
    margin-right: 10px;
    color: #f3e0cd;
    font-weight: bold;
}

/* Review actions */
.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    justify-content: center;
}

.btn-accept {
    background: #27ae60;
    color: white;
    border: none;
}

.btn-refuse {
    border: none;
}

.accreditation-message {
    background: #f9f9f9;
    padding: 15px;
    border-left: 3px solid #f3e0cd;
    margin-bottom: 20px;
    font-style: italic;
}

/* Stats grid */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.stat-card {
    background: white;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    margin-top: 5px;
}

.stat-pending .stat-number { color: #856404; }
.stat-accepted .stat-number { color: #155724; }
.stat-refused .stat-number { color: #721c24; }

/* Filters bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.filters-bar .btn {
    font-size: 13px;
    padding: 8px 15px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

.dropdown-toggle {
    border: 1px solid #000;
}

.dropdown-toggle::after {
    content: " \25BE";
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 180px;
    margin-top: 5px;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #000;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #fef7ef;
}

/* Dashboard views */
.dashboard-mobile {
    display: none;
}

.dashboard-card {
    display: block;
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #000;
    transition: background 0.15s;
}

.dashboard-card:hover {
    background: #fef7ef;
}

.dashboard-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dashboard-card-num {
    font-family: monospace;
    font-size: 11px;
    color: #999;
}

.dashboard-card-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 3px;
}

.dashboard-card-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.dashboard-card-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

/* Dashboard table */

.dashboard-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-table th {
    background: #000;
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.dashboard-table tr:hover td {
    background: #fef7ef;
}

.dashboard-table small {
    color: #666;
}

/* Verify page */
.verify-card {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.verify-valid {
    background: #d4edda;
    border: 2px solid #28a745;
}

.verify-invalid {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.verify-already {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.verify-icon {
    font-size: 50px;
    line-height: 1;
    margin-bottom: 10px;
}

.verify-valid .verify-icon { color: #28a745; }
.verify-invalid .verify-icon { color: #dc3545; }
.verify-already .verify-icon { color: #856404; }

.verify-card h1 {
    font-size: 22px;
    margin-bottom: 5px;
}

.verify-checkin-time {
    font-size: 14px;
    font-weight: bold;
}

.verify-details {
    background: white;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.verify-name {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.verify-badge {
    text-align: center;
    margin-bottom: 15px;
}

.btn-checkin {
    font-size: 16px;
    padding: 14px 40px;
    width: 100%;
}

/* Login */
.form-login {
    max-width: 400px;
    margin: 0 auto;
}

.form-login input[type="password"] {
    padding: 10px 8px;
}

/* Check-in search */
.checkin-search {
    margin-bottom: 20px;
}

.checkin-search input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #000;
    background: #fff;
    font-family: inherit;
}

.checkin-search input:focus {
    outline: none;
    border-color: #f3e0cd;
}

/* Check-in page */

.checkin-group {
    background: white;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.checkin-group-header {
    background: #000;
    color: #fff;
    padding: 8px 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.checkin-media {
    font-weight: bold;
}

.checkin-media-type {
    font-size: 11px;
    opacity: 0.9;
}

.checkin-accnum {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.9;
}

.checkin-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.checkin-person:last-child {
    border-bottom: none;
}

.checkin-arrived {
    background: #f0faf0;
}

.checkin-waiting {
    background: #fff;
}

.checkin-person-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.checkin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-green { background: #28a745; }
.dot-red { background: #dc3545; }

.checkin-person-name {
    font-weight: bold;
    font-size: 15px;
}

.checkin-person-name-guest {
    font-weight: normal;
}

.checkin-person-badge {
    font-size: 10px;
    text-transform: uppercase;
    background: #f3e0cd;
    padding: 2px 8px;
    letter-spacing: 0.5px;
}

.checkin-person-badge-guest {
    background: #eee;
}

.checkin-time {
    font-size: 13px;
    color: #28a745;
    font-weight: bold;
}

.checkin-person-action {
    flex-shrink: 0;
    margin-left: 10px;
}

.checkin-person-flat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.checkin-person-flat.checkin-arrived {
    background: #f0faf0;
}

.checkin-person-org {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Checkin toolbar */
.checkin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.checkin-toolbar-left,
.checkin-toolbar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkin-toolbar .btn {
    font-size: 13px;
    padding: 8px 15px;
}

@media (min-width: 768px) {
    .checkin-toolbar {
        justify-content: space-between;
    }
}

.btn-sort {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-checkin-small {
    padding: 6px 14px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-undo {
    background: #eee;
    color: #666;
}

.btn-undo:hover {
    background: #ddd;
}

/* Scanner QR */
#qr-reader {
    border: 2px solid #000;
    margin-bottom: 20px;
}

#scanResult {
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

#scanResult h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.scan-result-name {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 8px;
}

.scan-result-media {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.scan-result-time {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
}

.scan-result-tags {
    margin-top: 8px;
}

/* Tags */
.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 1px 2px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Guest cards (manage) */
.guest-tags-line {
    margin-top: 4px;
}

.guest-card {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.guest-card:last-child {
    border-bottom: none;
}

.guest-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guest-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.guest-card-name {
    font-weight: bold;
    font-size: 14px;
}

.guest-card-job {
    font-size: 13px;
    color: #666;
}

.guest-card-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tags-toggle-section {
    margin: 10px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-toggle {
    display: inline-block;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    margin: 3px 2px;
}

.tag-inactive {
    background: #e0e0e0;
    color: #999;
}

.tag-inactive:hover {
    background: #ccc;
    color: #666;
}

.tag-active:hover {
    opacity: 0.8;
}

/* Tags management page */
.tag-manage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-manage-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-manage-count {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.tag-manage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-edit-btn {
    border: none;
}

.tag-edit-form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 8px;
}

.tag-input {
    width: 120px !important;
    min-height: 28px !important;
    font-size: 12px !important;
    padding: 3px 6px !important;
    border: 1px solid #ccc !important;
    border-bottom: 1px solid #ccc !important;
}

.tag-color {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 1px solid #ccc !important;
    cursor: pointer;
}

.tag-color-big {
    width: 100% !important;
    height: 45px !important;
    min-height: 45px !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #222 !important;
    cursor: pointer;
}

/* Invite cards */
/* Liste des invitations envoyées (page /invite/) */
.invite-list-wrap {
    max-width: 800px;
    margin: 30px auto 0;
}

.invite-list-wrap > h2 {
    margin-bottom: 15px;
}

.invite-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-left: 4px solid #c8b08f;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.invite-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Couleur de la barre latérale selon le statut */
.invite-card:has(.status-pending) { border-left-color: #d4a017; }
.invite-card:has(.status-accepted) { border-left-color: #1b7d3e; }
.invite-card:has(.status-refused) { border-left-color: #c0392b; }

.invite-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.invite-card-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.invite-card-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.invite-card-email {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.invite-card-meta {
    display: flex;
    gap: 0;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
}

.invite-card-meta span {
    padding: 0 12px;
    border-right: 1px solid #e0e0e0;
}

.invite-card-meta span:first-child { padding-left: 0; }
.invite-card-meta span:last-child { border-right: none; }

/* Confirm response */
.confirm-response-card {
    text-align: center;
    background: #fff;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 0 auto;
}

.confirm-response-logo {
    width: 60px;
    margin: 0 auto 15px;
}

.confirm-response-title {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.confirm-response-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

.confirm-response-success {
    border-top: 4px solid #28a745;
}

/* Admin notes */
.admin-notes-section {
    margin-bottom: 20px;
}

.admin-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    resize: vertical;
    margin-bottom: 8px;
}

.admin-notes-textarea:focus {
    outline: none;
    border-color: #f3e0cd;
}

.notes-saved {
    font-size: 12px;
    color: #28a745;
    margin-left: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #fff;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-message {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-actions .btn {
    min-width: 120px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utilities */
.mt-30 {
    margin-top: 30px;
}

hr {
    border: 0;
    border-bottom: 1px solid #ddd;
    margin: 25px 0;
}

/* Responsive */
@media (max-width: 767px) {
    .accreditation-card {
        padding: 20px 15px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        min-width: 80px;
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .review-actions {
        flex-direction: column;
    }

    .review-actions .btn {
        text-align: center;
        width: 100%;
    }

    .review-actions form {
        width: 100%;
    }

    .review-actions form .btn {
        width: 100%;
    }

    .dashboard-desktop {
        display: none;
    }

    .dashboard-mobile {
        display: block;
    }

    .filters-bar .btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .checkin-person .tag-badge,
    .checkin-person-flat .tag-badge {
        font-size: 9px;
        padding: 1px 6px;
    }

    .col-guest {
        width: 100%;
    }

    .form-accreditation .h2-tag-dark {
        display: block;
        text-align: center;
    }

    .col-guest-remove {
        width: 100%;
        padding-top: 0;
        justify-content: flex-start;
    }

    .col-guest-remove .removeGuest,
    .col-guest-remove .removeGuestManage {
        width: auto;
        height: auto;
        border-radius: 0;
        padding: 6px 15px;
        font-size: 13px;
    }

    .col-guest-remove .label-remove {
        display: inline;
    }

    .col-guest-remove .icon-remove {
        display: none;
    }
}

/* ===========================================================
   Page : Envoi du Communiqué de Presse (press.php)
   =========================================================== */

.press-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 30px;
}

.press-section-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.press-section-help {
    font-size: 13px;
    color: #666;
    margin: 8px 0 20px;
}

/* --- Form d'ajout d'un contact CP (3 lignes) --- */
.press-add-form {
    background: #fafafa;
    padding: 22px 24px;
    border: 1px solid #ececec;
    border-radius: 6px;
    margin-bottom: 25px;
}

.press-add-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.press-add-row:last-child {
    margin-bottom: 0;
}

.press-add-row .form-group {
    margin: 0;
}

.press-add-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.press-add-row label small {
    text-transform: none;
    font-weight: 400;
    color: #999;
    letter-spacing: 0;
    margin-left: 4px;
}

.press-add-row label .req {
    color: #c0392b;
    margin-left: 2px;
}

.press-add-row input[type="text"],
.press-add-row input[type="email"],
.press-add-row textarea,
.press-add-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
    background: #fff;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.press-add-row textarea {
    resize: vertical;
    min-height: 70px;
}

/* Reset du style natif du select + flèche custom pour matcher les inputs */
.press-add-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1.5 6,6.5 11,1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.press-add-row select::-ms-expand {
    display: none;
}

.press-add-row input:focus,
.press-add-row textarea:focus,
.press-add-row select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Ligne 1 : Prénom + Nom (50/50) */
.press-add-row-name {
    grid-template-columns: 1fr 1fr;
}

/* Ligne 2 : Email + Média + Langue */
.press-add-row-contact {
    grid-template-columns: 1.3fr 1fr 0.8fr;
}

/* Ligne 3 : Notes pleine largeur */
.press-add-row-notes {
    grid-template-columns: 1fr;
}

/* Ligne 4 : action alignée à droite */
.press-add-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.press-add-actions button {
    padding: 10px 22px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .press-add-row-name,
    .press-add-row-contact,
    .press-add-row-notes {
        grid-template-columns: 1fr;
    }
    .press-add-actions {
        justify-content: stretch;
    }
    .press-add-actions button {
        width: 100%;
    }
}

/* --- Tableau des abonnés CP --- */
.press-subs-table,
.press-recipients-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.press-subs-table th,
.press-recipients-table th {
    background: #f3e0cd;
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #000;
}

.press-subs-table td,
.press-recipients-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.press-recipients-table tr.press-row-sent {
    background: #fafafa;
    color: #888;
}

.press-recipients-table tr:hover {
    background: #fff8ee;
}

/* --- Composition FR / EN cote-à-cote --- */
.press-compose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 15px;
}

.press-compose-block {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 20px;
    background: #fafafa;
}

.press-compose-block-title {
    font-size: 15px;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.press-compose-block-title small {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-left: auto;
}

.press-compose-block textarea {
    width: 100%;
    padding: 10px;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    resize: vertical;
}

@media (max-width: 900px) {
    .press-compose-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Pills langue / origine --- */
.lang-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.lang-fr {
    background: #002654;
    color: #fff;
}

.lang-en {
    background: #c8102e;
    color: #fff;
}

.origin-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.origin-main {
    background: #d4edda;
    color: #155724;
}

.origin-press {
    background: #fff3cd;
    color: #856404;
}

.sent-info {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.sent-info-none {
    color: #ccc;
}

.sent-info-warn {
    display: inline-block;
    font-size: 11px;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.4;
}

/* --- Filtres + bouton d'envoi --- */
.press-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 15px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 6px;
}

.press-filters-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.press-filters-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-right: 4px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #d0d0d0;
    color: #333;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover:not(.is-active) {
    background: #f0f0f0;
    border-color: #b0b0b0;
}

.filter-btn.is-active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
}

.press-row.is-hidden-by-filter {
    display: none;
}

.press-send-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.press-send-hint {
    font-size: 12px;
    color: #888;
}

.press-recipients-count {
    color: #888;
    font-size: 12px;
}

/* Modal contenu (pour les tableaux récap) */
.modal-box.modal-large {
    max-width: 600px;
}

.modal-message table {
    border-collapse: collapse;
}

.modal-message table td {
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
}

/* ===========================================================
   Lien "danger" dans le dropdown + modal de réinitialisation
   =========================================================== */

.dropdown-menu .dropdown-danger {
    color: #c0392b;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.dropdown-menu .dropdown-danger:hover {
    background: #c0392b;
    color: #fff;
}

/* ===========================================================
   Modal "Archiver & Réinitialiser" — design v2
   =========================================================== */

.modal-box.modal-reset {
    max-width: 580px;
    width: 95%;
    text-align: left;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* Header bandeau sombre avec icône */
.modal-reset-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 26px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.modal-reset-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-reset-icon svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px;
    fill: #fff;
    display: block;
}

.modal-reset-header-text h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}

.modal-reset-header-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

/* Effets visuels (3 chips côte à côte) */
.modal-reset-effects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 22px 26px 6px;
}

.effect-chip {
    padding: 12px 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.effect-chip strong {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.effect-chip span {
    color: #555;
    font-size: 12px;
}

.effect-keep {
    background: #eafaf1;
    border-color: #b6e6c7;
}
.effect-keep strong { color: #1b7d3e; }

.effect-archive {
    background: #e8f0fc;
    border-color: #b9d1ee;
}
.effect-archive strong { color: #1f57a4; }

.effect-empty {
    background: #fdecea;
    border-color: #f4b9b3;
}
.effect-empty strong { color: #b1342f; }

/* Étapes numérotées */
.modal-reset-form {
    padding-bottom: 0;
}

.modal-reset-step {
    display: flex;
    gap: 14px;
    padding: 16px 26px;
    align-items: flex-start;
}

.modal-reset-step + .modal-reset-step {
    border-top: 1px dashed #eee;
}

.modal-reset-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-top: 2px;
}

.modal-reset-step-content {
    flex: 1;
    min-width: 0;
}

.modal-reset-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.modal-reset-label code {
    background: #fdecea;
    color: #b1342f;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-reset-year,
.modal-reset-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 17px;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin: 0;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modal-reset-year {
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
}

.modal-reset-input {
    text-align: center;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 6px;
}

.modal-reset-year:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.15);
}

.modal-reset-input:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.modal-reset-year.is-valid,
.modal-reset-input.is-valid {
    border-color: #1b7d3e;
    background: #f4faf6;
}

.modal-reset-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

/* Footer actions */
.modal-reset .modal-actions {
    padding: 16px 26px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
}

.modal-reset .modal-actions .btn {
    padding: 10px 20px;
    font-size: 13px;
}

.modal-reset .btn-refuse:disabled {
    background: #e0a8a0;
    cursor: not-allowed;
    opacity: 0.55;
}

/* Case à cocher "Hard reset" */
.modal-reset-hardreset {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 4px 26px 16px;
    padding: 14px 16px;
    background: #fdf6f5;
    border: 1px solid #f1d6d2;
    border-left: 3px solid #c0392b;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-style: normal;
    line-height: 1.45;
}

.modal-reset-hardreset:hover {
    background: #fceeea;
}

.modal-reset-hardreset input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    cursor: pointer;
    accent-color: #c0392b;
    appearance: auto;
    -webkit-appearance: checkbox;
}

.modal-reset-hardreset input[type="checkbox"]:checked ~ .modal-reset-hardreset-content .modal-reset-hardreset-title {
    text-decoration: none;
}

.modal-reset-hardreset:has(input:checked) {
    background: #fceeea;
    border-color: #c0392b;
}

.modal-reset-hardreset-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
}

.modal-reset-hardreset-title {
    font-size: 14px;
    font-weight: 700;
    color: #c0392b;
    line-height: 1.3;
}

.modal-reset-hardreset-desc {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

/* Mode "hard reset" actif : champ année grisé + chip "Archivé" devient rouge "Effacé" */
.modal-reset-year:disabled {
    background: #f3f3f3;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.modal-reset.is-hard-reset .effect-archive {
    background: #fdecea;
    border-color: #f4b9b3;
}

.modal-reset.is-hard-reset .effect-archive strong {
    color: #b1342f;
}

/* Mobile */
@media (max-width: 600px) {
    .modal-reset-effects {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .modal-reset-header,
    .modal-reset-step,
    .modal-reset-effects,
    .modal-reset .modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ===========================================================
   Modal "Envoyer le CP" — design dédié
   =========================================================== */

.modal-box.modal-send {
    max-width: 620px;
    width: 95%;
    text-align: left;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-send-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 26px;
    background: linear-gradient(135deg, #1f3a5f 0%, #2c5282 100%);
    color: #fff;
}

.modal-send-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-send-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    fill: #fff;
    display: block;
}

.modal-send-header-text h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
}

.modal-send-header-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.modal-send-body {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.send-recap-card {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 16px 18px;
    background: #fff;
    transition: opacity 0.15s ease;
}

.send-recap-card.is-skipped {
    opacity: 0.55;
    background: #fafafa;
}

.send-recap-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.send-recap-card-head .lang-pill {
    font-size: 13px;
    padding: 3px 10px;
}

.send-recap-card-head strong {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.send-recap-card-lang {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.send-recap-card-skip {
    margin-left: auto;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    background: #eee;
    padding: 2px 8px;
    border-radius: 3px;
}

.send-recap-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 6px 14px;
    font-size: 13px;
    line-height: 1.45;
}

.send-recap-card dt {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding-top: 2px;
}

.send-recap-card dd {
    margin: 0;
    color: #222;
    word-break: break-word;
}

.send-recap-missing {
    color: #c0392b;
    font-style: italic;
    font-size: 12px;
    background: #fdecea;
    padding: 2px 8px;
    border-radius: 3px;
}

.send-recap-dash {
    color: #bbb;
}

.send-recap-file {
    background: #eaf3ff;
    color: #1f57a4;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

.modal-send .modal-actions {
    padding: 16px 26px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
}

.modal-send .modal-actions .btn {
    padding: 10px 20px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .modal-send-header,
    .modal-send-body,
    .modal-send .modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }
    .send-recap-card dl {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }
    .send-recap-card dt {
        margin-top: 6px;
    }
}

/* Badge "Ajout manuel" sur la page de gestion */
.badge-manual {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(243, 156, 18, 0.35);
}

.badge-manual::before {
    content: "✋";
    font-size: 12px;
    line-height: 1;
}

/* Bloc historique des envois d'invitation */
.send-log {
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-left: 3px solid #1b7d3e;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
}

.send-log-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #444;
}

.send-log-summary strong {
    color: #1b7d3e;
}

.send-log-toggle {
    margin-left: auto;
    background: transparent;
    border: 1px solid #cdd5c8;
    color: #1b7d3e;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.send-log-toggle:hover {
    background: #eafaf1;
}

.send-log-list {
    margin: 10px 0 0;
    padding-left: 22px;
    font-size: 12px;
    color: #555;
}

.send-log-list li {
    padding: 2px 0;
}

.send-log-list em {
    color: #1b7d3e;
    font-style: normal;
    font-weight: 600;
}

/* ===========================================================
   Modal "Répondre par email" (review.php)
   =========================================================== */

.modal-box.modal-reply {
    max-width: 620px;
    width: 95%;
    text-align: left;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-reply-header {
    padding: 22px 26px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.modal-reply-header h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
}

.modal-reply-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.modal-reply-quote {
    margin: 18px 26px 0;
    padding: 14px 16px;
    background: #f5f5f5;
    border-left: 3px solid #c8b08f;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

.modal-reply-quote-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #888;
    margin-bottom: 6px;
}

.modal-reply-quote blockquote {
    margin: 0;
    padding: 0;
    font-style: italic;
    color: #333;
}

.modal-reply-form {
    padding: 18px 26px 0;
}

.modal-reply-form .form-group {
    margin-bottom: 14px;
}

.modal-reply-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.modal-reply-form input[type="text"],
.modal-reply-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-reply-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}

.modal-reply-form input:focus,
.modal-reply-form textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.modal-reply-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.modal-reply .modal-actions {
    padding: 16px 26px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 0 0;
}

.modal-reply .modal-actions .btn {
    padding: 10px 20px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .modal-reply-header,
    .modal-reply-quote,
    .modal-reply-form,
    .modal-reply .modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }
    .modal-reply-quote {
        margin-left: 18px;
        margin-right: 18px;
    }
}

/* Historique des réponses sur review.php */
.reply-history {
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-left: 3px solid #2c3e50;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
}

.reply-history-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
}

.reply-history-title strong {
    color: #2c3e50;
}

.reply-history-toggle {
    margin-left: auto;
    background: transparent;
    border: 1px solid #c5cdd6;
    color: #2c3e50;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.reply-history-toggle:hover {
    background: #eef2f7;
}

.reply-history-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-history-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 0;
}

.reply-history-item summary {
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reply-history-item summary::-webkit-details-marker { display: none; }

.reply-history-item summary::before {
    content: "▸";
    color: #888;
    font-size: 11px;
    transition: transform 0.15s ease;
}

.reply-history-item[open] summary::before {
    transform: rotate(90deg);
}

.reply-history-date {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

.reply-history-subject {
    font-weight: 600;
    color: #222;
    flex: 1;
    min-width: 0;
}

.reply-history-body {
    padding: 0 12px 12px 26px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    border-top: 1px dashed #eee;
    margin-top: 0;
    padding-top: 10px;
}

/* h2-tag-dark : permettre d'aligner un bouton à droite du titre */
.h2-tag-dark .btn-small {
    vertical-align: middle;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* Fil de discussion : message initial + réponses inline (review.php) */
.thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.thread-msg {
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #e6e6e6;
    background: #fff;
}

/* Message reçu (du demandeur) — beige doux Palm Dog */
.thread-msg-incoming {
    background: #fdf6ed;
    border-left: 3px solid #c8b08f;
}

/* Réponse envoyée (admin) — bleu nuit, aligné avec le langage des modales */
.thread-msg-outgoing {
    background: #f4f7fb;
    border-left: 3px solid #2c3e50;
    margin-left: 30px;
    position: relative;
}

.thread-msg-outgoing::before {
    content: "↳";
    position: absolute;
    left: -22px;
    top: 14px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
}

.thread-msg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
    font-size: 12px;
}

.thread-msg-author {
    font-weight: 700;
    color: #222;
    flex: 1;
    min-width: 0;
}

.thread-msg-outgoing .thread-msg-author {
    color: #1f3a5f;
}

.thread-msg-date {
    color: #888;
    white-space: nowrap;
}

.thread-msg-body {
    color: #333;
    white-space: normal;
}

.thread-msg-incoming .thread-msg-body {
    font-style: italic;
}

@media (max-width: 600px) {
    .thread-msg-outgoing {
        margin-left: 18px;
    }
    .thread-msg-outgoing::before {
        left: -14px;
        top: 12px;
        font-size: 14px;
    }
}

/* Bouton "Répondre" placé sous le fil + état vide */
.thread-actions {
    margin: 5px 0 25px;
}

.thread-actions .btn {
    text-transform: none;
    letter-spacing: 0;
}

.thread-empty {
    margin: 0 0 18px;
    padding: 14px 18px;
    color: #888;
    font-style: italic;
    font-size: 13px;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 6px;
}

/* ===========================================================
   Édition du demandeur principal et des accompagnants
   =========================================================== */

/* Ligne d'info avec bouton crayon à droite */
.person-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.person-line-info {
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

/* Bouton "crayon" : icône discret qui se révèle au hover */
.btn-icon-edit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #888;
    border-radius: 4px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-icon-edit:hover,
.btn-icon-edit:focus {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
    outline: none;
}

.btn-icon-edit svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}

/* Cellule d'actions sur les guest cards (crayon + supprimer) */
.guest-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Modal d'édition (demandeur + accompagnant) */
.modal-box.modal-edit {
    max-width: 640px;
    width: 95%;
    text-align: left;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-edit-header {
    padding: 22px 26px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.modal-edit-header h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
}

.modal-edit-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.modal-edit-form {
    padding: 22px 26px 0;
}

.modal-edit-form .form-group {
    margin-bottom: 14px;
}

.modal-edit-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.modal-edit-form input[type="text"],
.modal-edit-form input[type="email"],
.modal-edit-form input[type="tel"],
.modal-edit-form input[type="url"],
.modal-edit-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-edit-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1.5 6,6.5 11,1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.modal-edit-form input:focus,
.modal-edit-form select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.modal-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.modal-edit-grid .form-group {
    margin-bottom: 0;
}

.modal-edit .modal-actions {
    padding: 16px 26px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 0 0;
}

.modal-edit .modal-actions .btn {
    padding: 10px 20px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .modal-edit-grid {
        grid-template-columns: 1fr;
    }
    .modal-edit-header,
    .modal-edit-form,
    .modal-edit .modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }
}
