.member-page {
    width: min(1120px, calc(100% - 32px));
    margin: 112px auto 72px;
    color: #182a3a;
}

.member-kicker {
    display: block;
    margin-bottom: 10px;
    color: #16706f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.member-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 280px;
    padding: clamp(38px, 6vw, 68px) clamp(25px, 7vw, 82px);
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(125deg, #102f48 0%, #165a73 54%, #2b8a83 100%);
    box-shadow: 0 20px 50px rgba(16, 47, 72, 0.2);
    color: #fff;
}

.member-hero h1 {
    margin: 0;
    font-family: Anton, sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 400;
    line-height: 1.03;
}

.member-hero h1 strong {
    color: #f6c86f;
    font-weight: 400;
}

.member-hero p {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-family: Poppins, sans-serif;
    line-height: 1.75;
    text-align: left;
}

.member-hero .member-kicker {
    color: #f6c86f;
}

.member-hero-mark {
    display: grid;
    flex: 0 0 138px;
    width: 138px;
    height: 138px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: #f6c86f;
    font-size: 4.3rem;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.06), 0 0 0 36px rgba(255, 255, 255, 0.04);
}

.member-page .registration-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: stretch;
    gap: 22px;
    width: 100%;
    max-width: none;
    margin: 42px auto 0;
    padding: 0;
}

.member-page .registration-form,
.member-page .registration-info {
    max-width: none;
    width: auto;
    margin: 0;
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid rgba(24, 42, 58, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(16, 47, 72, 0.09);
}

.member-page .registration-info {
    align-self: stretch;
    background: #fff1df;
}

.member-page .registration-form h2,
.member-page .registration-info h3 {
    margin: 0 0 22px;
    color: #182a3a;
    font-family: Anton, sans-serif !important;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 400;
    line-height: 1.15;
    text-align: left;
}

.member-page .registration-info h3 {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.member-page .registration-info p {
    margin: 0;
    color: #405364;
    font-family: Poppins, sans-serif !important;
    font-size: 0.96rem;
    line-height: 1.8;
    text-align: left;
}

.member-page .registration-info p p {
    display: inline;
    color: #155b6c !important;
    font-weight: 700;
}

.member-page .registration-form form {
    display: flex;
    flex-direction: column;
}

.member-page .registration-form label {
    margin-top: 16px;
    color: #182a3a;
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.member-page .registration-form input,
.member-page .registration-form textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 7px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(24, 42, 58, 0.18);
    border-radius: 6px;
    background: #fff;
    color: #182a3a;
    font-family: Poppins, sans-serif !important;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.member-page .registration-form textarea {
    min-height: 125px;
    height: auto !important;
    resize: vertical !important;
}

.member-page .registration-form input:focus,
.member-page .registration-form textarea:focus {
    border-color: #2b8a83;
    box-shadow: 0 0 0 3px rgba(43, 138, 131, 0.14);
}

.member-page .registration-form {
    margin: 7px 0 0;
}

.member-page .registration-form {
    margin: 0;
}

/* ── DATE PICKER KIVA ─────────────────────────────────────── */

.registration-form .kiva-date-picker { margin: 10px 0; }
.registration-form .kiva-date-picker-input { margin: 0; }

.kiva-date-picker {
    position: relative;
}

.kiva-date-picker-input {
    width: 100%;
    min-height: 46px;
    padding: .65rem 3rem .65rem 1rem !important;
    border: 2px solid #d8e5dc !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbf5 100%) !important;
    color: #26352a;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    color-scheme: light;
}

.kiva-date-picker-input:hover {
    border-color: #8bd19b !important;
}

.kiva-date-picker-input:focus {
    outline: none;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, .14), 0 5px 14px rgba(40, 167, 69, .12);
    transform: translateY(-1px);
}

.kiva-date-picker-input::-webkit-calendar-picker-indicator {
    width: 1.35rem;
    height: 1.35rem;
    margin-right: .35rem;
    padding: .25rem;
    border-radius: 6px;
    background-color: #e3f5e7;
    cursor: pointer;
    opacity: 1;
    filter: invert(42%) sepia(49%) saturate(780%) hue-rotate(86deg) brightness(88%);
}

.kiva-date-picker-input::-webkit-datetime-edit {
    color: #26352a;
}

.kiva-date-picker-input::-webkit-datetime-edit-text,
.kiva-date-picker-input::-webkit-datetime-edit-month-field,
.kiva-date-picker-input::-webkit-datetime-edit-day-field,
.kiva-date-picker-input::-webkit-datetime-edit-year-field {
    color: #26352a;
}

.kiva-date-picker-input::-webkit-datetime-edit-month-field:focus,
.kiva-date-picker-input::-webkit-datetime-edit-day-field:focus,
.kiva-date-picker-input::-webkit-datetime-edit-year-field:focus {
    color: #fff;
    background: #28a745;
    border-radius: 4px;
}

.kiva-calendar {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1300;
    width: min(310px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid #d8e5dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(25, 75, 42, .2);
    font-family: Anton, sans-serif;
}

.kiva-calendar[hidden] { display: none; }

.kiva-calendar-header,
.kiva-calendar-weekdays,
.kiva-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.kiva-calendar-header {
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-bottom: 14px;
}

.kiva-calendar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #02ca0973;
    font-size: 1.05rem;
    text-align: center;
    text-transform: capitalize;
}

.kiva-calendar-month { white-space: nowrap; }

.kiva-calendar-year {
    width: 72px;
    padding: 4px 3px;
    border: 1px solid #b9d9c0;
    border-radius: 6px;
    background: #f3fbf5;
    color: #205b2e;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
}

.kiva-calendar-year:focus {
    outline: 2px solid rgba(40, 167, 69, .25);
    border-color: #02ca0973;
}

.kiva-calendar-nav,
.kiva-calendar-day {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.kiva-calendar-nav {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e3f5e7;
    color: #02ca0973;
    font-size: 1.3rem;
    line-height: 1;
}

.kiva-calendar-nav:hover { background: #c9ebd0; }

.kiva-calendar-weekdays {
    margin-bottom: 6px;
    color: #6c8b74;
    font-family: sans-serif;
    font-size: .7rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.kiva-calendar-day {
    aspect-ratio: 1;
    border-radius: 8px;
    background: transparent;
    color: #26352a;
    font-family: sans-serif;
    font-size: .85rem;
}

.kiva-calendar-day:hover,
.kiva-calendar-day:focus-visible { background: #e3f5e7; outline: none; }

.kiva-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px #8bd19b;
    color: #02ca0973;
    font-weight: 700;
}

.kiva-calendar-day.is-selected {
    background: #02ca0973;
    color: #1b50f0a4;
    font-weight: 700;
}

.kiva-calendar-day.is-disabled {
    color: #b8c5bb;
    cursor: not-allowed;
}

/* Le formulaire d'inscription applique ses styles de bouton au calendrier. */
.registration-form .kiva-calendar button {
    width: auto;
    min-width: 0;
    margin: 0;
    border: 0;
    font-size: inherit;
}

.registration-form .kiva-calendar-nav {
    width: 34px;
    height: 34px;
    padding: 0;
    background: #e3f5e7;
    color: #02ca0973;
    font-size: 1.3rem;
}

.registration-form .kiva-calendar-day {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: 1;
    background: transparent;
    color: #26352a;
    font-family: sans-serif;
    font-size: .85rem;
}

.registration-form .kiva-calendar-day:hover,
.registration-form .kiva-calendar-day:focus-visible {
    background: #1b50f0a4;
    color: #26352a;
}

.registration-form .kiva-calendar-day.is-today {
    color: #02ca0973;
}

.registration-form .kiva-calendar-day.is-selected {
    background: #02ca0973;
    color: #1b50f0a4;
}

.member-page .registration-form button {
    width: 100%;
    margin-top: 25px;
    padding: 13px 18px;
    border: 0;
    border-radius: 6px;
    background: #02ca0973;
    color: #fff;
    cursor: pointer;
    font-family: Poppins, sans-serif !important;
    font-size: 0.96rem;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease;
}

.member-page .registration-form button:hover {
    background: #1b50f0a4;
    transform: translateY(-2px);
}

.member-page .message {
    margin-bottom: 18px;
    font-family: Poppins, sans-serif;
    line-height: 1.5;
}

.member-page .login-link {
    margin-top: 20px !important;
    color: #405364;
    font-family: Poppins, sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.8;
}

.member-page .login-link a {
    color: #155b6c !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.registration-form .kiva-calendar { left: 50%; transform: translateX(-50%); }

@media (max-width: 760px) {
    .member-page {
        width: min(100% - 22px, 560px);
        margin-top: 92px;
    }

    .member-hero {
        min-height: 0;
        padding: 38px 24px;
        border-radius: 12px;
    }

    .member-hero-mark {
        display: none;
    }

    .member-page .registration-container {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .member-page .registration-form,
    .member-page .registration-info {
        padding: 27px 22px;
    }
}
