.private-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.25rem;
    background: rgba(31, 25, 28, .96);
    color: #fff;
}
.private-bar nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.private-bar a { color: #fff; }
.flash { max-width: 900px; margin: 1rem auto; padding: 1rem; border-radius: .75rem; }
.flash-success { background: #e8f7ec; color: #164e2b; }
.auth-page, .form-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card, .form-card { width: min(100%, 620px); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.5rem; background: rgba(255,255,255,.96); box-shadow: 0 1rem 3rem rgba(0,0,0,.12); }
.auth-card form, .form-card form { display: grid; gap: 1rem; }
.auth-card input:not([type="checkbox"]):not([type="radio"]),
.form-card input:not([type="checkbox"]):not([type="radio"]),
.form-card select,
.form-card textarea { width: 100%; box-sizing: border-box; padding: .85rem; border: 1px solid #cfc7ca; border-radius: .6rem; }
.auth-card button, .form-card button, .admin-page .button { display: inline-block; padding: .85rem 1.2rem; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
.checkbox-line { display: flex; align-items: center; gap: .5rem; }
.checkbox-line input { width: auto; }
.form-error { margin-bottom: 1rem; padding: .8rem; background: #fde8e8; color: #7f1d1d; border-radius: .6rem; }
.small { font-size: .9rem; opacity: .75; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.admin-page { width: min(1400px, calc(100% - 2rem)); margin: 2rem auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stats-grid article { padding: 1.25rem; border-radius: 1rem; background: #fff; box-shadow: 0 .4rem 1.5rem rgba(0,0,0,.08); }
.stats-grid strong { display: block; font-size: 2rem; }
.table-wrapper { overflow-x: auto; background: #fff; border-radius: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem; border-bottom: 1px solid #ece7e9; text-align: left; vertical-align: top; }
.status { display: inline-block; padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; }
.status-pending { background: #f4f1f2; }
.status-attending { background: #dff4e5; }
.status-declined { background: #fde8e8; }
@media (max-width: 720px) {
    .private-bar, .admin-header { align-items: flex-start; flex-direction: column; }
}


/* Alignement des choix RSVP */
#rsvp_status {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

#rsvp_status > div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.form-card input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
    accent-color: #d677a9;
}

#rsvp_status label {
    margin: 0;
    cursor: pointer;
}

/* RSVP : radio et libellé sur la même ligne */
#rsvp_status {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.75rem;
}

#rsvp_status > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem;
    margin: 0 !important;
}

#rsvp_status input[type="radio"] {
    display: inline-block !important;
    width: 1.1rem !important;
    min-width: 1.1rem !important;
    height: 1.1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 1.1rem !important;
    cursor: pointer;
}

#rsvp_status label {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
    cursor: pointer;
}

/* Correction définitive des radios Symfony RSVP */
.form-card #rsvp_status {
    display: grid !important;
    grid-template-columns: 1.15rem minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 0.7rem !important;
    row-gap: 0.9rem !important;
    margin: 0.75rem 0 1.25rem !important;
}

.form-card #rsvp_status input[type="radio"] {
    display: block !important;
    width: 1.15rem !important;
    min-width: 1.15rem !important;
    max-width: 1.15rem !important;
    height: 1.15rem !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: start !important;
    accent-color: #d677a9;
    cursor: pointer;
}

.form-card #rsvp_status label {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    cursor: pointer;
}

/* === Bandeau privé mariage : début === */

.private-bar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;

    padding: 0.8rem clamp(1rem, 4vw, 3rem);

    color: #4f352d;
    background:
        linear-gradient(
            135deg,
            rgba(255, 249, 245, 0.97),
            rgba(241, 224, 214, 0.97)
        );

    border-bottom: 1px solid rgba(118, 80, 68, 0.18);

    box-shadow:
        0 5px 20px rgba(70, 45, 35, 0.08);

    backdrop-filter: blur(10px);
}

.private-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.private-bar > span::before {
    content: "♡";

    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;

    color: #765044;
    background: rgba(118, 80, 68, 0.1);

    border-radius: 50%;
    font-size: 1.05rem;
}

.private-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}

.private-bar nav a {
    position: relative;

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

    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;

    color: #5e4036;
    background: rgba(255, 255, 255, 0.55);

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.private-bar nav a:hover,
.private-bar nav a:focus-visible {
    color: #ffffff;
    background: #765044;
    border-color: #765044;

    box-shadow:
        0 7px 16px rgba(90, 56, 45, 0.18);

    transform: translateY(-1px);
}

.private-bar nav a:focus-visible {
    outline: 3px solid rgba(201, 162, 126, 0.38);
    outline-offset: 2px;
}

.private-bar nav a[href*="logout"] {
    margin-left: 0.2rem;

    color: #7a3434;
    background: rgba(153, 55, 55, 0.06);
    border-color: rgba(153, 55, 55, 0.14);
}

.private-bar nav a[href*="logout"]:hover,
.private-bar nav a[href*="logout"]:focus-visible {
    color: #ffffff;
    background: #8a4141;
    border-color: #8a4141;
}

@media (max-width: 850px) {
    .private-bar {
        position: static;

        display: grid;
        gap: 0.8rem;

        padding: 0.9rem 1rem;
    }

    .private-bar > span {
        justify-content: center;
    }

    .private-bar nav {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .private-bar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .private-bar nav a {
        width: 100%;
        box-sizing: border-box;
        padding-inline: 0.55rem;
        text-align: center;
    }

    .private-bar nav a[href*="logout"] {
        margin-left: 0;
    }
}

/* === Bandeau privé mariage : fin === */

/* Wedding settings admin */
.admin-settings {
    width: min(1400px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 .4rem 1.5rem rgba(0, 0, 0, .08);
}

.admin-settings h2 {
    margin: 0 0 1.5rem;
    font-size: 1.65rem;
    line-height: 1.2;
    color: #17324d;
}

.admin-settings form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.admin-settings form > div {
    min-width: 240px;
}

.admin-settings label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 700;
    color: #203247;
}

.admin-settings input[type="time"] {
    min-width: 150px;
    padding: .7rem .85rem;
    border: 1px solid #d9dde3;
    border-radius: .7rem;
    background: #fff;
    color: #17263a;
    font: inherit;
    font-weight: 600;
}

.admin-settings input[type="time"]:focus {
    border-color: #547ba4;
    outline: 3px solid rgba(84, 123, 164, .14);
}

.admin-settings .form-text,
.admin-settings [id$="_help"] {
    margin-top: .45rem;
    color: #687484;
    font-size: .9rem;
}

.admin-settings button[type="submit"] {
    display: inline-block;
    padding: .8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: #547ba4;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .08);
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.admin-settings button[type="submit"]:hover,
.admin-settings button[type="submit"]:focus {
    background: #41698f;
    transform: translateY(-1px);
    box-shadow: 0 .45rem 1.2rem rgba(0, 0, 0, .12);
}

@media (max-width: 700px) {
    .admin-settings {
        padding: 1.25rem;
    }

    .admin-settings form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-settings form > div,
    .admin-settings input[type="time"] {
        width: 100%;
    }

    .admin-settings button[type="submit"] {
        width: 100%;
    }
}



/* === LANGUAGE FLAGS === */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.language-switcher .lang-button {
    width: 48px;
    height: 34px;
    padding: 0;
    border-radius: 18px;
    border: 1px solid rgba(80, 65, 60, .20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-decoration: none;
    box-sizing: border-box;
}

.language-switcher .lang-fr {
    background-image:
        linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)),
        url('/images/flags/fr.svg');
}

.language-switcher .lang-ru {
    background-image:
        linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)),
        url('/images/flags/ru.svg');
}

.language-switcher .lang-en {
    background-image:
        linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)),
        url('/images/flags/en.svg');
}

.language-switcher .language-code {
    position: relative;
    z-index: 1;
    min-width: 28px;
    padding: 2px 4px;
    border-radius: 10px;
    background: rgba(255,255,255,.76);
    color: #453a35;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.language-switcher .lang-button[aria-current="true"] {
    outline: 2px solid #785c4c;
    outline-offset: 2px;
}

.public-language-bar {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1000;
}

/* Sélecteurs de fichiers traduisibles */
.custom-file-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
}

.custom-file-input__native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.custom-file-input__button {
    flex: 0 0 auto;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(92, 58, 47, 0.35);
    border-radius: 0.5rem;
    background: #fff;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.custom-file-input__button:hover {
    background: rgba(92, 58, 47, 0.06);
}

.custom-file-input__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.custom-file-input__filename {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bouton secondaire Annuler */
.partition-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1.25rem;

    border: 1px solid rgba(113, 70, 55, 0.35);
    border-radius: 999px;

    background: transparent;
    color: #704637;

    font: inherit;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.partition-cancel-button:hover {
    background: rgba(113, 70, 55, 0.07);
    border-color: rgba(113, 70, 55, 0.6);
    text-decoration: none;
}

.partition-cancel-button:active {
    transform: translateY(1px);
}

.partition-cancel-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.partition-form__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.partition-form__actions .participation-action,
.partition-form__actions .partition-cancel-button {
    margin: 0;
}

/* Lien Annuler du formulaire d'ajout de partition */
.partition-form__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0.65rem 1.4rem;
    margin-top: 0.75rem;

    border: 1px solid #875946;
    border-radius: 999px;

    background: #ffffff;
    color: #875946;

    font-weight: 600;
    text-decoration: none;

    cursor: pointer;

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

.partition-form__actions a:hover {
    background: #875946;
    color: #ffffff;
    text-decoration: none;
}

.partition-form__actions a:active {
    transform: translateY(1px);
}

.partition-form__actions a:focus-visible {
    outline: 2px solid #875946;
    outline-offset: 3px;
}
