.mlc-bon-cadeau-visuals__selected {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

#mlc-visual-preview img {
    height: auto;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.mlc-visual-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.mlc-visual-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.mlc-visual-lightbox__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    margin: 5% auto;
    background: #fff;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
}

.mlc-visual-lightbox__close {
    position: absolute;
    top: 5px;
    right: 10px;
    padding: 20px 5px;
    font-size: 50px;
    line-height: 0px;
    text-align: center;
    background: transparent;
    color: #b79d68;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.mlc-visual-lightbox__close:hover {
    background: transparent;
    color: #8a5a2e;
}

.mlc-visual-lightbox__sidebar {
    width: 250px;
    background: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
}

.mlc-visual-lightbox__sidebar h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #b79d68;
}

.mlc-visual-lightbox__categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mlc-visual-lightbox__categories li {
    padding: 12px 16px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.mlc-visual-lightbox__categories li:hover {
    background: #e9e9e9;
}

.mlc-visual-lightbox__categories li.active {
    background: #0073aa;
    color: #fff;
}

.mlc-visual-lightbox__visuals {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mlc-visual-lightbox__visuals-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mlc-visual-lightbox__category-visuals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.mlc-visual-lightbox__visual-item {
    cursor: pointer;
    border: 2px solid #e2e1e6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1.586 / 1;
    background: #f4f4f6;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mlc-visual-lightbox__visual-item:hover {
    border-color: #a29fb0;
    box-shadow: 0 4px 16px rgba(33, 27, 66, 0.12);
}

.mlc-visual-lightbox__visual-item--selected {
    border-color: #c1482a;
    border-width: 2px;
    box-shadow: 0 0 0 2px #c1482a;
}

.mlc-visual-lightbox__visual-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    inset: 0;
}

.mlc-visual-lightbox__visual-item__check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #c1482a;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.mlc-visual-lightbox__visual-item--selected .mlc-visual-lightbox__visual-item__check {
    display: flex;
}

@media (max-width: 768px) {
    .mlc-visual-lightbox__content {
        flex-direction: column;
        height: 95%;
    }

    .mlc-visual-lightbox__sidebar {
        width: 100%;
        max-height: 150px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .mlc-visual-lightbox__categories {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mlc-visual-lightbox__categories li {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
}

/* ============================================================
   STICKY FIX — Storefront définit overflow:hidden sur #page,
   ce qui casse position:sticky. On utilise overflow:visible
   ciblé sur ce template. Le sticky lui-même est en JS.
   ============================================================ */

.page-template-template-offrir-bon-cadeau-php #page {
    overflow: visible;
}

.offrir-bon-cadeau-form-section,
.offrir-bon-cadeau-form-section__inner,
.offrir-bon-cadeau-form-section__form,
.mlc-classic-wrapper,
.mlc-bon-cadeau-form-classic {
    overflow: visible;
}

/* ============================================================
   INTRO — titre + slider partenaires + texte
   ============================================================ */

.mlc-bon-cadeau-intro {
    padding: 48px 24px 40px;
    text-align: center;
    border-bottom: 1px solid #ebebee;
    margin-bottom: 48px;
}

.mlc-bon-cadeau-intro__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mlc-bon-cadeau-intro__title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    color: #b79d68;
    margin: 0 0 32px 0;
    letter-spacing: -0.3px;
}

.mlc-bon-cadeau-intro__text {
    max-width: 760px;
    margin: 24px auto 0;
}

.mlc-bon-cadeau-intro__text p {
    font-size: 15px;
    line-height: 1.7;
    color: #9a8050;
    margin: 0 0 10px 0;
}

.mlc-bon-cadeau-intro__text p:last-child {
    margin-bottom: 0;
}

/* ---- Partners marquee slider ---- */

.mlc-partners-slider {
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
    position: relative;
}

.mlc-partners-slider::before,
.mlc-partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.mlc-partners-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.mlc-partners-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.mlc-partners-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: mlc-marquee linear infinite;
}

.mlc-partners-track:hover {
    animation-play-state: paused;
}

.mlc-partners-slide {
    flex: 0 0 auto;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlc-partners-slide img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(40%) opacity(0.75);
    transition: filter 0.2s;
}

.mlc-partners-slide img:hover {
    filter: none;
}

@keyframes mlc-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   CLASSIC FORM LAYOUT
   ============================================================ */

.mlc-classic-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.mlc-classic-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 56px;
    align-items: start;
}

/* LEFT — sticky géré par JS (voir visual-lightbox.js) */

.mlc-classic-layout__left {
    will-change: transform;
}

.mlc-classic-layout__sticky {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.mlc-classic-visual-preview {
    width: 100%;
    aspect-ratio: 1.586 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    transition: border-color 0.2s;
}

.mlc-classic-visual-preview.has-image {
    border: none;
}

.mlc-classic-visual-preview__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}

.mlc-classic-visual-preview__placeholder p {
    font-size: 13px;
    color: #c4b080;
    margin: 0;
    line-height: 1.5;
}

.mlc-classic-visual-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mlc-btn-choose-visual {
    width: 100%;
    padding: 14px 20px;
    background: #b79d68;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    letter-spacing: 0.2px;
}

.mlc-btn-choose-visual:hover {
    background: #474262;
}

.mlc-no-visuals {
    font-size: 12px;
    color: #c4b080;
    text-align: center;
    line-height: 1.6;
}

.mlc-no-visuals code {
    font-size: 11px;
    background: #f0f0f2;
    padding: 2px 5px;
    border-radius: 4px;
    word-break: break-all;
}

/* RIGHT — form */
/* .mlc-classic-layout__right {
    margin-bottom: 32px;
} */

.mlc-form-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #ebebee;
}

.mlc-form-section:last-of-type {
    border-bottom: none;
}

.mlc-form-section__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c4b080;
    margin: 0 0 14px 0;
}

/* Amount selector tiles */

.mlc-amount-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mlc-amount-tile {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border: 1.5px solid #e2e1e6;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 68px;
    text-align: center;
    user-select: none;
}

.mlc-amount-tile:hover {
    border-color: #a29fb0;
}

.mlc-amount-tile--selected {
    border-color: #c1482a;
    border-width: 2px;
    box-shadow: 0 0 0 1px #c1482a;
}

.mlc-amount-tile__value {
    font-size: 17px;
    font-weight: 700;
    color: #b79d68;
    line-height: 1;
    display: block;
}

.mlc-amount-tile__currency {
    font-size: 11px;
    font-weight: 500;
    color: #c4b080;
    margin-top: 4px;
    display: block;
}

.mlc-amount-tile--custom {
    border-style: dashed;
}

.mlc-amount-tile--custom .mlc-amount-tile__value {
    font-size: 14px;
    font-weight: 600;
    color: #9a8050;
}

.mlc-amount-custom-row {
    margin-top: 14px;
}

.mlc-amount-custom-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.mlc-amount-custom-unit {
    font-weight: 600;
    color: #9a8050;
    font-size: 14px;
    white-space: nowrap;
}

/* Form fields */

.mlc-field {
    width: 100%;
}

.mlc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mlc-field--half {
    max-width: 240px;
}

.mlc-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #9a8050;
    margin-bottom: 6px;
}

.mlc-field__input,
.mlc-field__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1.5px solid #e2e1e6;
    border-radius: 10px;
    font-size: 15px;
    color: #b79d68;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
}

.mlc-field__input:focus,
.mlc-field__textarea:focus {
    border-color: #b79d68;
}

.mlc-field__input::placeholder,
.mlc-field__textarea::placeholder {
    color: #c4b080;
}

.mlc-field__textarea {
    resize: vertical;
    min-height: 100px;
}

/* Loader overlay */

.mlc-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.mlc-loader-overlay--active {
    display: flex;
}

.mlc-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e2e1e6;
    border-top-color: #c1482a;
    border-radius: 50%;
    animation: mlc-spin 0.8s linear infinite;
}

.mlc-loader-text {
    font-size: 16px;
    font-weight: 600;
    color: #b79d68;
}

@keyframes mlc-spin {
    to { transform: rotate(360deg); }
}

/* Date picker */

.mlc-datepicker-wrap {
    position: relative;
}

.mlc-datepicker-wrap .mlc-field__input,
.mlc-datepicker-wrap .mlc-datepicker-alt {
    cursor: pointer;
    padding-right: 44px;
    width: 100%;
    box-sizing: border-box;
}

.mlc-datepicker-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c4b080;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Flatpickr theme override */

.flatpickr-calendar {
    border-radius: 14px !important;
    box-shadow: 0 8px 40px rgba(33, 27, 66, 0.14) !important;
    border: 1px solid #e2e1e6 !important;
    font-family: inherit !important;
    padding: 8px !important;
}

.flatpickr-months {
    padding: 4px 0 8px !important;
}

.flatpickr-months .flatpickr-month {
    color: #b79d68 !important;
    fill: #b79d68 !important;
}

.flatpickr-current-month {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #b79d68 !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #c4b080 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #b79d68 !important;
}

.flatpickr-weekday {
    font-weight: 700 !important;
    color: #c4b080 !important;
    font-size: 11px !important;
}

.flatpickr-day {
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #b79d68 !important;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #f0eefa !important;
    border-color: transparent !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #c1482a !important;
    border-color: #c1482a !important;
    color: #fff !important;
}

.flatpickr-day.today {
    border-color: #b79d68 !important;
}

.flatpickr-day.today:hover {
    background: #b79d68 !important;
    color: #fff !important;
    border-color: #b79d68 !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #c9c7d4 !important;
}

/* Toggle field (visibility) */

.mlc-toggle-field {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 16px 18px;
    border: 1px solid #ebebee;
    border-radius: 12px;
    background: #faf8f3;
}

.mlc-toggle-field input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mlc-toggle-field__switch {
    flex: 0 0 auto;
    position: relative;
    width: 46px;
    height: 26px;
    background: #d3cbbd;
    border-radius: 26px;
    transition: background 0.2s;
    margin-top: 2px;
}

.mlc-toggle-field__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.mlc-toggle-field input:checked + .mlc-toggle-field__switch {
    background: #c1482a;
}

.mlc-toggle-field input:checked + .mlc-toggle-field__switch::after {
    transform: translateX(20px);
}

.mlc-toggle-field__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mlc-toggle-field__text strong {
    font-size: 15px;
    color: #2b2b2b;
}

.mlc-toggle-field__text small {
    font-size: 13px;
    color: #7a746a;
    line-height: 1.45;
}

/* CTA */

.mlc-form-cta {
    margin-top: 8px;
}

.mlc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #b79d68;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.2px;
    font-family: inherit;
}

.mlc-btn-primary:hover {
    background: #9f3b23;
}

.mlc-btn-primary--full {
    width: 100%;
}

.mlc-form-reassurance {
    list-style: none;
    margin: 14px 0 0 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mlc-form-reassurance li {
    font-size: 12px;
    color: #c4b080;
}

/* Responsive */

@media (max-width: 960px) {
    .mlc-classic-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mlc-classic-layout__left {
        position: static;
        transform: none !important;
    }

    .mlc-classic-visual-preview {
        max-width: 420px;
        margin: 0 auto;
    }

    .mlc-btn-choose-visual {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .mlc-amount-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .mlc-field-row {
        grid-template-columns: 1fr;
    }

    .mlc-field--half {
        max-width: 100%;
    }

    .mlc-form-reassurance {
        gap: 12px;
    }
}

/* ============================================================
   CAGNOTTE LIST PAGE — [mlc_liste_cagnottes]
   ============================================================ */

.mlc-cagnottes-liste {
    max-width: 1200px;
    margin: 0 auto;
}

.mlc-cagnottes-liste__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.mlc-cagnottes-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 15px;
}

.mlc-cagnottes-empty {
    text-align: center;
    padding: 64px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #9a8050;
}

.mlc-cagnottes-empty p {
    margin: 0;
    font-size: 16px;
    color: #9a8050;
}

.mlc-cagnottes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ---- Cagnotte card ---- */

.mlc-cagnotte-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e2e1e6;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.mlc-cagnotte-card:hover {
    box-shadow: 0 6px 28px rgba(33, 27, 66, 0.1);
    border-color: #b79d68;
}

.mlc-cagnotte-card__visual {
    width: 100%;
    aspect-ratio: 1.586 / 1;
    background: #f4f4f6;
    overflow: hidden;
    position: relative;
}

.mlc-cagnotte-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mlc-cagnotte-card__visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f6;
}

.mlc-cagnotte-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mlc-cagnotte-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #474262;
    margin: 0;
    line-height: 1.3;
}

.mlc-cagnotte-card__title span {
    color: #b79d68;
}

.mlc-cagnotte-card__message {
    font-size: 14px;
    color: #9a8050;
    margin: 0;
    line-height: 1.5;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.mlc-cagnotte-card__stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.mlc-cagnotte-card__total {
    font-size: 14px;
    color: #474262;
}

.mlc-cagnotte-card__total strong {
    color: #c1482a;
    font-size: 16px;
}

.mlc-cagnotte-card__participants {
    font-size: 12px;
    color: #c4b080;
    padding: 3px 10px;
    background: #f9f6ee;
    border-radius: 20px;
}

.mlc-cagnotte-card__cta {
    padding: 0 20px 20px;
}

.mlc-cagnotte-card__cta .mlc-btn-primary {
    text-decoration: none;
    font-size: 15px;
}

.mlc-cagnotte-card--closed {
    opacity: 0.75;
}

.mlc-cagnotte-card--closed .mlc-cagnotte-card__visual {
    position: relative;
}

.mlc-cagnotte-card__status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(33, 27, 66, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.mlc-cagnotte-card__cta-closed {
    display: block;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #c4b080;
    font-style: italic;
}

/* ============================================================
   PARTICIPATION PAGE — [mlc_participer_cagnotte]
   ============================================================ */

.mlc-participation-wrapper {
    width: 100%;
}

.mlc-participation-owner-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    background: #faf8f3;
    border: 1px solid #e7e0d2;
    border-radius: 12px;
}

.mlc-participation-owner-bar__text {
    font-size: 14px;
    color: #7a746a;
    font-weight: 600;
}

.mlc-participation-owner-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #c1482a;
    color: #fff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.mlc-participation-owner-bar__btn:hover {
    background: #9f3b23;
}

/* Photo gauche */

.mlc-participation-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f4f6;
    margin-bottom: 24px;
}

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

.mlc-participation-photo__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf8ee;
}

/* Info gauche */

.mlc-participation-left-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.mlc-participation-left-info__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c4b080;
    margin: 0;
}

.mlc-participation-left-info__name {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #b79d68;
    margin: 0;
    line-height: 1.2;
}

.mlc-participation-left-info__beneficiary {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    color: #2c2c2c;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.mlc-participation-left-info__event {
    font-size: 15px;
    color: #7a746a;
    margin: 0;
    line-height: 1.4;
}

/* Select dropdown */
.mlc-field__select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e4dc;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #2c2c2c;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.mlc-field__select:focus {
    outline: none;
    border-color: #b79d68;
    box-shadow: 0 0 0 3px rgba(183, 157, 104, 0.15);
}

/* Formulaire de recherche cagnottes */
.mlc-cagnottes-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}

/* Input de recherche */
.mlc-cagnottes-search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e8e4dc;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #2c2c2c;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mlc-cagnottes-search-input:focus {
    outline: none;
    border-color: #b79d68;
    box-shadow: 0 0 0 3px rgba(183, 157, 104, 0.15);
}

.mlc-cagnottes-search-input::placeholder {
    color: #9a9a9a;
}

/* Bouton de recherche */
.mlc-cagnottes-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #b79d68;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.mlc-cagnottes-search-btn:hover {
    background: #a38a5a;
}

/* Lien effacer recherche */
.mlc-cagnottes-search-clear {
    font-size: 14px;
    color: #7a746a;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.mlc-cagnottes-search-clear:hover {
    background: #f4f4f6;
    color: #b79d68;
}

.mlc-participation-left-info__message {
    font-size: 14px;
    color: #9a8050;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Stats droite */

.mlc-participation-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.mlc-participation-stat {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    background: #fdf8ee;
    border: 1.5px solid #e2c97e;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mlc-participation-stat__value {
    font-size: 22px;
    font-weight: 800;
    color: #c1482a;
    line-height: 1;
}

.mlc-participation-stat__label {
    font-size: 12px;
    color: #9a8050;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mlc-participation-error {
    padding: 32px;
    background: #fff5f8;
    border: 1.5px solid #f5c0cc;
    border-radius: 12px;
    text-align: center;
    color: #9a1c3a;
}

/* ============================================================
   CAGNOTTE CREATE — login gate
   ============================================================ */

.mlc-cagnotte-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mlc-cagnotte-photo-label {
    display: block;
    width: 100%;
    cursor: pointer;
}

.mlc-cagnotte-photo-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px dashed #c4b080;
    border-radius: 14px;
    background: #fdf8ee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.mlc-cagnotte-photo-label:hover .mlc-cagnotte-photo-preview {
    border-color: #b79d68;
    background: #fdf3e3;
}

.mlc-cagnotte-photo-preview p {
    font-size: 13px;
    color: #c4b080;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.mlc-cagnotte-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mlc-cagnotte-photo-input {
    display: none;
}

.mlc-cagnotte-photo-hint {
    font-size: 12px;
    color: #c4b080;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.mlc-cagnotte-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 24px;
    text-align: center;
    background: #fdf8ee;
    border: 1.5px dashed #e2c97e;
    border-radius: 16px;
}

.mlc-cagnotte-login-required p {
    font-size: 16px;
    color: #9a8050;
    margin: 0;
}

/* ============================================================
   ACCOUNT — Mes cagnottes
   ============================================================ */

.mlc-account-notice {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    border: 1.5px solid;
}

.mlc-account-notice--success {
    background: #edf7f0;
    border-color: #5cb87a;
    color: #1a5c2e;
}

.mlc-account-cagnotte {
    border: 1.5px solid #e2e1e6;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #fff;
}

.mlc-account-cagnotte__header {
    padding: 20px 24px;
    background: #fdf8ee;
    border-bottom: 1px solid #e2e1e6;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.mlc-account-cagnotte__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mlc-account-cagnotte__beneficiary {
    font-size: 18px;
    color: #b79d68;
    font-weight: 700;
}

.mlc-account-cagnotte__status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e9f7ef;
    color: #1a7a40;
}

.mlc-account-cagnotte__status.mlc-status--cloturee,
.mlc-account-cagnotte__status.mlc-status--a_preparer {
    background: #fff3e0;
    color: #a05000;
}

.mlc-account-cagnotte__status.mlc-status--pret,
.mlc-account-cagnotte__status.mlc-status--retire {
    background: #ede7f6;
    color: #5e35b1;
}

.mlc-account-cagnotte__total {
    font-size: 14px;
    color: #474262;
}

.mlc-account-cagnotte__total strong {
    color: #c1482a;
    font-size: 16px;
}

.mlc-account-cagnotte__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.mlc-account-cagnotte__share label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #9a8050;
    margin-bottom: 6px;
}

.mlc-account-cagnotte__share-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mlc-account-share-input {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 8px 12px;
    border: 1.5px solid #e2e1e6;
    border-radius: 8px;
    font-size: 13px;
    color: #9a8050;
    background: #fafafa;
}

.mlc-account-cagnotte__participants {
    padding: 20px 24px;
}

.mlc-account-cagnotte__participants h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #c4b080;
    margin: 0 0 14px 0;
}

.mlc-participants-table {
    width: 100%;
    font-size: 14px;
}

.mlc-participants-table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c4b080;
}

.mlc-account-cagnotte__no-participants {
    padding: 16px 24px;
    font-size: 14px;
    color: #c4b080;
    font-style: italic;
    margin: 0;
}

.mlc-btn-close-cagnotte {
    font-size: 13px !important;
    color: #9a1c3a !important;
    border-color: #f5c0cc !important;
}

.mlc-btn-close-cagnotte:hover {
    background: #fff5f8 !important;
}

@media (max-width: 600px) {
    .mlc-cagnottes-grid {
        grid-template-columns: 1fr;
    }

    .mlc-account-cagnotte__header {
        flex-direction: column;
    }

    .mlc-account-cagnotte__actions {
        align-items: flex-start;
        width: 100%;
    }

    .mlc-account-share-input {
        min-width: 0;
        max-width: 100%;
    }
}
