/* Cavilam — custom overrides (no build step) */

/* ── Login modal (cart checkout gate) ────────────────────────────── */
.login-modal-overlay {
    position: fixed; inset: 0; z-index: 11000;
    background: rgba(43, 47, 53, 0.6);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.login-modal-overlay.open { opacity: 1; pointer-events: auto; }

.login-modal {
    position: fixed; z-index: 11001;
    top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95);
    width: 570px; max-width: calc(100vw - 32px);
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.login-modal.open {
    opacity: 1; pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.login-modal-inner {
    width: 100%; background: #F6F5EA;
    padding: 48px 44px;
    display: flex; flex-direction: column; gap: 25px;
    box-sizing: border-box;
}
.login-modal-close {
    background: none; border: 1px solid #F6F5EA; cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 5px 15px; color: #F6F5EA;
}
.login-modal-close:hover { opacity: 0.6; }
.login-modal-title {
    font-size: 24px; font-weight: 500; color: #2B2F35;
    margin: 0; line-height: 1.2; letter-spacing: -0.48px;
}
.login-modal-form {
    display: flex; flex-direction: column; gap: 10px;
}
.login-modal-input {
    width: 100%; padding: 15px 20px;
    background: #fff; border: none;
    font-size: 18px; color: #2B2F35;
    box-sizing: border-box; outline: none;
    line-height: 1.2; letter-spacing: -0.36px;
}
.login-modal-input::placeholder { color: #2B2F35; opacity: 0.6; }
.login-modal-input:focus { box-shadow: inset 0 0 0 1px #2B2F35; }
.login-modal-password-wrap {
    position: relative;
}
.login-modal-password-wrap .login-modal-input { padding-right: 52px; }
.login-modal-eye {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
}
.login-modal-forgot {
    display: block; margin-top: 0;
    font-size: 14px; color: #2B2F35; opacity: 0.5;
    text-decoration: underline; line-height: 1.5;
}
.login-modal-forgot:hover { opacity: 0.8; }
.login-modal-error {
    font-size: 14px; color: #E40521;
    min-height: 0; display: none; margin: 0;
}
.login-modal-error.visible { display: block; }
.login-modal-submit {
    width: 100%; padding: 15px;
    background: #2B2F35; color: #F6F5EA;
    border: none; cursor: pointer;
    font-size: 18px; font-weight: 500; line-height: 1.5;
    transition: opacity 0.2s;
}
.login-modal-submit:hover { opacity: 0.85; }
.login-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.login-modal-bottom {
    display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.login-modal-separator-box {
    width: 100%; padding: 20px 0;
    border-top: 1px solid #e6d5b6; border-bottom: 1px solid #e6d5b6;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.login-modal-separator {
    margin: 0; text-align: center; width: 100%;
    font-size: 16px; font-weight: 500; color: #2B2F35;
    line-height: 1.2; letter-spacing: -0.32px;
}
.login-modal-signup-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 15px;
    background: transparent; border: 1px solid rgba(43,47,53,0.3);
    font-size: 18px; font-weight: 400; color: #2B2F35; opacity: 0.8;
    text-decoration: none; transition: border-color 0.2s; line-height: 1.5;
}
.login-modal-signup-btn:hover { border-color: #2B2F35; opacity: 1; }
.login-modal-guest {
    display: block; text-align: center;
    font-size: 16px; color: #2B2F35; text-decoration: underline;
    line-height: 1.2;
}
.login-modal-guest:hover { opacity: 0.7; }

/* ── Cart page (panier) — Figma 2958-5436 ────────────────────────── */
.panier-page { background: #F6F5EA; min-height: 100vh; }
.panier-container { padding: 32px 20px 64px; max-width: 1400px; margin: 0 auto; }

/* Stepper */
.panier-stepper { display: flex; background: #fff; position: relative; padding: 0; margin-bottom: 0; }
.panier-stepper-item { flex: 1; font-size: 14px; font-weight: 400; color: rgba(43,47,53,0.6); letter-spacing: 0.28px; white-space: nowrap; padding: 14px 0; text-align: center; line-height: 1.1; border-bottom: 4px solid rgba(43,47,53,0.15); }
.panier-stepper-item.active { font-weight: 500; color: #2B2F35; border-bottom-color: #2B2F35; }

/* Layout */
.panier-layout { display: flex; gap: 30px; align-items: flex-start; }
.panier-left { flex: 1; min-width: 0; }
.panier-right { width: 512px; flex-shrink: 0; display: flex; flex-direction: column; gap: 30px; }
@media (max-width: 1023px) {
    .panier-layout { flex-direction: column; }
    .panier-right { width: 100%; }
}

/* White card wrapper */
.panier-white-card { background: #fff; padding: 30px 37px; }
.panier-heading { font-size: 20px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; color: #2B2F35; margin: 0 0 28px; line-height: 1.1; }

/* Item wrapper */
.panier-item-wrap { margin-bottom: 20px; }
.panier-item { border: 1px solid rgba(43,47,53,0.2); border-bottom: none; padding: 24px 26px; display: flex; flex-direction: column; gap: 25px; }
.panier-item-header { display: flex; gap: 20px; align-items: flex-start; }
.panier-item-title { flex: 1; font-size: 24px; font-weight: 500; color: #2B2F35; text-decoration: none; line-height: 1.2; }
.panier-item-title:hover { text-decoration: underline; }
.panier-item-price { font-size: 24px; font-weight: 500; color: #2B2F35; white-space: nowrap; text-align: right; }

/* Dates */
.panier-item-dates { display: flex; gap: 10px; align-items: center; }
.panier-item-dates svg { flex-shrink: 0; }
.panier-item-date { font-size: 16px; font-weight: 400; color: #2B2F35; text-decoration: underline; }
.panier-item-date-sep { font-size: 16px; font-weight: 400; color: #2B2F35; }

/* Tags */
.panier-item-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.panier-tag { display: inline-flex; align-items: center; justify-content: center; padding: 14px; background: rgba(33,58,136,0.1); border: 1px solid rgba(33,58,136,0.2); font-size: 16px; font-weight: 500; color: #213A88; line-height: 1.2; white-space: nowrap; }

/* Services */
.panier-item-services { display: flex; flex-direction: column; gap: 10px; }
.panier-services-label { font-size: 16px; font-weight: 500; color: #2B2F35; margin: 0; line-height: 1.2; }
.panier-services-list { font-size: 14px; font-weight: 400; color: #2B2F35; line-height: 1.2; }

/* Hébergement */
.panier-item-hebergement { border-top: 1px solid #E6D5B6; border-bottom: 1px solid #E6D5B6; padding: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.panier-heberg-header { display: flex; gap: 5px; align-items: center; }
.panier-heberg-title { font-size: 16px; font-weight: 600; color: #2B2F35; line-height: 1.2; }
.panier-heberg-type { font-size: 16px; font-weight: 400; color: #2B2F35; margin: 0; line-height: 1.1; letter-spacing: -0.32px; }
.panier-heberg-note { display: flex; gap: 12px; align-items: flex-start; }
.panier-heberg-info { font-size: 12px; font-weight: 400; color: #2B2F35; opacity: 0.6; line-height: 1.2; }

/* Action buttons */
.panier-item-actions { display: flex; gap: 7.5px; }
.panier-action-btn { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid rgba(43,47,53,0.2); background: none; cursor: pointer; text-decoration: none; transition: opacity 0.2s; }
.panier-action-btn:hover { opacity: 0.5; }

/* Apprenant section */
.panier-apprenant { background: #F6F5EA; border: 1px solid rgba(43,47,53,0.2); padding: 26px 32px; display: flex; flex-direction: column; gap: 24px; }
.panier-apprenant-required { font-size: 14px; font-weight: 400; color: #2B2F35; margin: 0; line-height: 1.2; }
.panier-apprenant-section { display: flex; flex-direction: column; gap: 10px; }
.panier-apprenant-label { font-size: 16px; font-weight: 400; color: #2B2F35; margin: 0; line-height: 1.2; letter-spacing: -0.32px; }
.panier-apprenant-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 20px; background: #F6F5EA; border: 1px solid #000; cursor: pointer; font-size: 16px; font-weight: 600; color: #2B2F35; transition: background 0.2s; align-self: flex-start; }
.panier-apprenant-btn:hover { background: #ede9dc; }
.panier-apprenant-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    height: 48px;
    padding: 0 20px;
    background: #f5f1e8;
    border: 1px solid rgba(43, 47, 53, 0.2);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2B2F35;
    transition: border-color 0.15s;
}
.panier-apprenant-select:hover {
    border-color: rgba(43, 47, 53, 0.4);
}
.panier-apprenant-select span {
    color: rgba(43, 47, 53, 0.5);
}
.panier-apprenant-select svg {
    flex-shrink: 0;
    color: rgba(43, 47, 53, 0.5);
    transition: transform 0.2s;
}
.panier-apprenant-select.is-open svg {
    transform: rotate(180deg);
}
.apprenant-select-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}
.apprenant-select-row .panier-apprenant-select {
    flex: 1;
    min-width: 0;
    max-width: none;
}
.apprenant-select-row .panier-apprenant-btn {
    flex-shrink: 0;
    height: 48px;
}
@media (max-width: 639px) {
    .apprenant-select-row {
        flex-direction: column;
    }
}

/* Sidebar */
.panier-sidebar-section { display: flex; flex-direction: column; gap: 20px; }
.panier-sidebar-header { display: flex; gap: 14px; align-items: center; height: 14px; }
.panier-sidebar-title { font-size: 14px; font-weight: 600; text-transform: uppercase; color: #2B2F35; white-space: nowrap; letter-spacing: 0; }
.panier-sidebar-line { flex: 1; height: 1px; background: #2B2F35; }

/* Coupon */
.panier-coupon-desc { font-size: 16px; font-weight: 400; color: #000; opacity: 0.5; margin: 0; line-height: 1.2; }
.panier-coupon-row { display: flex; gap: 10px; }
.panier-coupon-input-wrap { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; padding: 15px 20px; }
.panier-coupon-input-wrap svg { flex-shrink: 0; }
.panier-coupon-input { flex: 1; border: none; outline: none; background: none; font-size: 18px; font-weight: 400; color: #2B2F35; letter-spacing: -0.36px; }
.panier-coupon-input::placeholder { color: #2B2F35; opacity: 0.6; }
.panier-coupon-btn { width: 135px; flex-shrink: 0; background: #E6D5B6; border: none; cursor: pointer; font-size: 16px; font-weight: 600; color: #2B2F35; padding: 15px 20px; transition: opacity 0.2s; }
.panier-coupon-btn:hover { opacity: 0.8; }
.panier-coupon-msg { font-size: 13px; margin: 0; display: flex; align-items: center; justify-content: space-between; }
.panier-coupon-msg.ok { color: #0B543A; }
.panier-coupon-msg.err { color: #E40521; }
.panier-coupon-msg.hidden { display: none; }
.panier-coupon-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #0B543A;
    opacity: 0.6;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
}
.panier-coupon-remove:hover {
    opacity: 1;
}

/* Summary box */
.panier-summary-box { border: 1px solid rgba(43,47,53,0.1); padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.panier-summary-rows { display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid #2B2F35; padding-bottom: 25px; }
.panier-summary-row { display: flex; justify-content: space-between; align-items: center; height: 36px; font-size: 18px; font-weight: 500; color: #2B2F35; line-height: 1.2; }
.panier-summary-total { display: flex; flex-direction: column; gap: 15px; }
.panier-summary-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 28px; font-weight: 500; color: #2B2F35; line-height: 1.2; }
.panier-summary-note { font-size: 16px; font-weight: 400; color: #000; margin: 0; line-height: 1.2; }

/* Suivant button */
.panier-suivant-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 20px; background: #2B2F35; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.panier-suivant-btn:hover { opacity: 0.85; }

/* Empty cart */
.panier-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; }
.panier-empty-icon { color: #ccc; margin-bottom: 24px; }
.panier-empty-title { font-size: 24px; font-weight: 600; color: #2B2F35; margin: 0 0 12px; }
.panier-empty-text { font-size: 16px; color: rgba(43,47,53,0.6); margin: 0 0 32px; }
.panier-empty-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; background: #2B2F35; color: #F6F5EA; font-size: 15px; font-weight: 500; text-decoration: none; transition: opacity 0.2s; }
.panier-empty-cta:hover { opacity: 0.8; }

/* ── Login page ─────────────────────────────────────────────────── */
.login-section {
    min-height: calc(100vh - 132px);
}

.login-card {
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (max-width: 639px) {
    .login-section {
        min-height: auto;
        align-items: flex-start;
        padding-top: 24px;
        padding-bottom: 32px;
    }
    .login-card {
        padding-top: 28px;
        padding-bottom: 28px;
    }
    .login-image-wrap {
        display: none;
    }
}

/* ── Signup page ─────────────────────────────────────────────────── */
@media (max-width: 639px) {
    .signup-section { padding-top: 16px; }
    .signup-inner { padding: 16px; }
    .signup-header-block { margin-bottom: 20px; padding-bottom: 16px; }
    .signup-header-meta { text-align: left; }
    .signup-section-box { padding: 16px; }
}

/* ── Actualités — filter bar ─────────────────────────────────────── */
.media-tab-border { border-bottom-color: #F6F5EA; }

@media (max-width: 1023px) {
    .media-filter-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        min-height: auto;
    }
    .media-filter-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .media-filter-tabs .media-tab-btn {
        padding: 8px 12px;
        border: 1px solid rgba(43, 47, 53, 0.2);
        border-radius: 999px;
        font-size: 14px;
        line-height: 1.4;
        width: 100%;
        justify-content: center;
    }
    .media-filter-tabs .media-tab-btn.is-active {
        background-color: #2B2F35;
        color: #F6F5EA;
        border-color: #2B2F35;
    }
    .media-filter-search {
        order: -1;
        padding-top: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(43, 47, 53, 0.1);
    }
    .media-filter-search input {
        font-size: 14px;
    }
}

/* ── Mobile nav — language switcher ────────────────────────────── */
.mobile-lang-item {
    flex: 1;
    min-width: 0;
}

/* ── Login success state ────────────────────────────────────────── */
#login-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 80px 0;
    opacity: 0;
}

#login-success-check {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 32px;
    transform: scale(0);
}

#login-success-check svg {
    width: 100%;
    height: 100%;
}

#login-success-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

#login-success-text .ls-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: -0.5px;
    color: #2B2F35;
}

#login-success-text .ls-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: rgba(43, 47, 53, 0.35);
}

.ls-bar-track {
    width: 66%;
    height: 2px;
    background: rgba(43, 47, 53, 0.1);
    margin-top: 40px;
    overflow: hidden;
}

#login-success-bar {
    height: 100%;
    width: 0;
    background: #E40521;
}

/* ── Shared form input style (matches signup) ───────────────────── */
.form-input {
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 48px;
    padding: 12px 20px;
    background: #f5f1e8;
    border: 1px solid transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #2b2f35;
    outline: none;
    box-shadow: none;
    transition: border-color 0.15s;
}

.form-input::placeholder {
    color: #9d9d9c;
    font-weight: 500;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    box-shadow: none;
}

.form-input.input-error {
    border-color: #E40521;
}

.form-input-icon-wrap {
    position: relative;
}

.form-input-icon-wrap .form-input {
    padding-right: 56px;
}

.form-input-disabled,
.form-input[disabled],
.form-input[readonly] {
    background: #f0ede4;
    color: rgba(43, 47, 53, 0.5);
    cursor: not-allowed;
}

.form-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #2b2f35;
    margin-bottom: 8px;
}

.form-textarea {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #f5f1e8;
    border: 1px solid transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #2b2f35;
    outline: none;
    box-shadow: none;
    resize: none;
    transition: border-color 0.15s;
}

.form-textarea::placeholder {
    color: #9d9d9c;
    font-weight: 500;
    font-size: 16px;
}

.form-textarea:focus {
    outline: none;
    box-shadow: none;
}

/* ── Copy-address checkbox ──────────────────────────────────────── */
.copy-address-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.copy-address-label input[type="checkbox"] {
    margin-top: 3px;
}

.copy-address-label input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #2b2f35;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    position: relative;
}

.copy-address-label input[type="checkbox"]:checked {
    background: #2b2f35;
}

.copy-address-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #f5f1e8;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.copy-address-label input[type="checkbox"]:not(:checked):hover {
    background: #f5f1e8;
}

.copy-address-label span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: #2b2f35;
}

/* ── Civilité radio group ───────────────────────────────────────── */
.civilite-group {
    display: flex;
    gap: 30px;
}

.civilite-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.civilite-option input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #2b2f35;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
}

.civilite-option input[type="radio"]:checked {
    border-color: #2b2f35;
    background: #2b2f35;
    box-shadow: 0 0 0 0.1em inset #f5f1e8;
}

.civilite-option input[type="radio"]:not(:checked):hover {
    background: #f5f1e8;
}

.civilite-option span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #2b2f35;
    line-height: 1.5;
}

/* ── Form error states ─────────────────────────────────────────── */
.input-error {
    border-color: #E40521 !important;
}

.field-error {
    color: #E40521;
    font-size: 13px;
    margin-top: 4px;
}

.alert-error {
    padding: 12px;
    border: 1px solid rgba(228, 5, 33, 0.3);
    background: rgba(228, 5, 33, 0.05);
}

.alert-error p {
    color: #E40521;
    font-size: 13px;
}


/* ── Exam characteristics ────────────────────────────────────────── */
.exam-characteristics-list {
    column-count: 2;
    column-gap: 24px;
}
.exam-characteristics-list > div {
    break-inside: avoid;
}
@media (max-width: 1023px) {
    .exam-characteristics-list {
        column-count: 1;
    }
}

/* ── Tarif pricing radios ─────────────────────────────────────── */
.tarif-radio-label input:not(:checked) + .tarif-radio-circle .tarif-radio-dot {
    opacity: 0;
}
.tarif-radio-label input:checked + .tarif-radio-circle .tarif-radio-dot {
    opacity: 1;
}

/* ── Inline datepicker (calendar always visible) ──────────────── */
.datepicker-inline .custom-datepicker-trigger {
    display: none;
}
.datepicker-inline .custom-datepicker-dropdown {
    display: flex !important;
    position: static;
    box-shadow: none;
    background: rgba(246, 245, 234, 0.8);
    overflow: visible !important;
}
.datepicker-inline .datepicker-calendar {
    min-width: 0 !important;
    width: 100%;
}
.datepicker-inline .datepicker-calendar {
    min-width: 0 !important;
    width: 100%;
    padding: 30px 20px 20px !important;
    gap: 16px !important;
}
.datepicker-inline .datepicker-header {
    padding: 0 20px;
}

/* ── Datepicker mini selects ──────────────────────────────────── */
.dp-select {
    position: relative;
}
.dp-select-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
}
.dp-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    background: #F6F5EA;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 180px;
    overflow-y: auto;
    min-width: 120px;
    padding: 4px 0;
}
.dp-select-option {
    padding: 6px 12px;
    cursor: pointer;
    color: #2B2F35;
    transition: background 0.15s;
}
.dp-select-option:hover {
    background: rgba(230, 213, 182, 0.5);
}
.dp-select-option.active {
    font-weight: 600;
    background: rgba(228, 5, 33, 0.08);
}
.dp-select-dropdown::-webkit-scrollbar {
    width: 4px;
}
.dp-select-dropdown::-webkit-scrollbar-thumb {
    background: #2b2f351a;
    border-radius: 2px;
}
.datepicker-inline .datepicker-day {
    width: calc(100% / 7);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 15px;
}
.datepicker-inline .datepicker-week {
    width: 100%;
    gap: 0;
    overflow: visible;
}
.datepicker-inline .datepicker-days {
    min-height: 0 !important;
    width: 100%;
    overflow: visible;
}
.datepicker-inline .flex.items-start.justify-between {
    width: 100%;
}
.datepicker-inline .flex.items-start.justify-between > p {
    width: calc(100% / 7) !important;
    text-align: center;
    font-size: 12px;
}

/* ── Day cells — always show as circles ──────────────────────── */
.datepicker-day:not(.empty) {
    background-color: rgba(43, 47, 53, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
}
.datepicker-day:not(.empty):not(.datepicker-unavailable):hover {
    background-color: rgba(43, 47, 53, 0.18);
}
.datepicker-day.selected {
    background-color: #E40521 !important;
    color: #fff !important;
    font-weight: 600;
}

/* ── Available date indicators ────────────────────────────────── */
.datepicker-unavailable {
    opacity: 0.25;
    cursor: not-allowed !important;
}
.datepicker-unavailable:hover {
    background-color: transparent !important;
}
.datepicker-available {
    font-weight: 500;
    cursor: default;
}
.datepicker-available:hover {
    background-color: rgba(230, 213, 182, 0.5) !important;
}
.datepicker-available.datepicker-start {
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(228, 5, 33, 0.08);
}
.datepicker-available.datepicker-start:hover {
    background-color: rgba(228, 5, 33, 0.18) !important;
}
.datepicker-in-range {
    background-color: #E40521 !important;
    color: #fff !important;
    font-weight: 500;
}

/* ── Calendar: holiday dates ── */
.datepicker-holiday {
    background: rgba(228, 5, 33, 0.08) !important;
    color: #E40521 !important;
    font-weight: 500;
    cursor: default !important;
    position: relative !important;
    overflow: visible !important;
}
.datepicker-holiday .datepicker-holiday-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #2B2F35;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.datepicker-holiday .datepicker-holiday-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2B2F35;
}
.datepicker-holiday:hover .datepicker-holiday-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}
/* Small red dot under holiday number */
.datepicker-holiday::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #E40521;
    border-radius: 50%;
}

/* ── Calendar: complete sessions ── */
.datepicker-complete {
    background-color: rgba(43, 47, 53, 0.1) !important;
    color: #1a1a1a !important;
    opacity: 0.5;
    cursor: default !important;
    pointer-events: none;
    position: relative;
}
.datepicker-complete-tooltip {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #2B2F35;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}
.datepicker-complete-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: #2B2F35;
}

/* ── Toast notification ── */
.cav-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    max-width: 400px;
    padding: 14px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: auto;
}
.cav-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}
.cav-toast-success {
    background: #f0fdf4;
    color: #15803d;
    border-left: 3px solid #15803d;
}
.cav-toast-error {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 3px solid #E40521;
}
.cav-toast-icon {
    flex-shrink: 0;
    margin-top: 1px;
}
.cav-toast-text {
    flex: 1;
}
.cav-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.5;
    flex-shrink: 0;
    margin-top: 1px;
    transition: opacity 0.15s;
}
.cav-toast-close:hover {
    opacity: 1;
}
@media (max-width: 639px) {
    .cav-toast {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* ── Calendar: beginner-only indicator (disabled) ── */

/* ── Formation document download bar ── */
.formation-doc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(246, 245, 234, 0.6);
    border: 1px solid rgba(43, 47, 53, 0.06);
    margin-bottom: 16px;
    width: 100%;
}
.formation-doc-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2B2F35;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}
.formation-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #E40521;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.formation-doc-btn:hover {
    background: #c5041c;
    color: #fff;
}
.formation-doc-btn svg {
    stroke: #fff;
}
.formation-doc-btn-disabled {
    background: rgba(43, 47, 53, 0.15);
    color: rgba(43, 47, 53, 0.5);
    cursor: not-allowed;
}
.formation-doc-btn-disabled svg {
    stroke: rgba(43, 47, 53, 0.5);
}
@media (max-width: 639px) {
    .formation-doc-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Cart document upload rows ── */
.panier-docs-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(43, 47, 53, 0.06);
}
.panier-docs-title {
    font-size: 14px;
    font-weight: 500;
    color: #2B2F35;
    margin: 0 0 12px;
}
.panier-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid rgba(43, 47, 53, 0.1);
    margin-bottom: -1px;
}
.panier-doc-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.panier-doc-name {
    font-size: 14px;
    color: #2B2F35;
}
.panier-doc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #E40521;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.panier-doc-upload-btn:hover {
    background: #c5041c;
}
.panier-doc-upload-btn svg {
    stroke: #fff;
}
.panier-doc-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.panier-doc-uploaded {
    background: rgba(246, 245, 234, 0.5);
}
.panier-doc-uploaded .panier-doc-upload-btn {
    display: none;
}
.panier-doc-remove-btn {
    background: none;
    border: 1px solid rgba(43, 47, 53, 0.15);
    cursor: pointer;
    padding: 6px;
    color: rgba(43, 47, 53, 0.4);
    transition: color 0.15s;
    display: flex;
    align-items: center;
}
.panier-doc-remove-btn:hover {
    color: #E40521;
}
.panier-doc-filename {
    font-size: 13px;
    color: rgba(43, 47, 53, 0.6);
    margin-left: 4px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* ── Mobile menu — flush with header ───────────────────────────── */
#mobile-menu {
    top: 80px !important;
}

/* ── Mobile nav items ─────────────────────────────────────────── */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(43, 47, 53, 0.08);
}

.mobile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #2B2F35;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-chevron {
    stroke: #2B2F35;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.mobile-menu-item[aria-expanded="true"] .mobile-menu-chevron {
    transform: rotate(180deg);
}

.mobile-nav-link {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #2B2F35;
    text-decoration: none;
    padding: 16px 0;
}

/* Submenu panel */
.mobile-submenu {
    overflow: hidden;
    height: 0;
}

.mobile-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0 0 12px 0;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #2B2F35;
    text-decoration: none;
    padding: 10px 0 10px 8px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:active {
    background-color: rgba(43, 47, 53, 0.05);
}

.mobile-submenu-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2B2F35;
    flex-shrink: 0;
    opacity: 0.25;
    transition: opacity 0.2s;
}

.mobile-submenu-link:hover .mobile-submenu-dot,
.mobile-submenu-link:active .mobile-submenu-dot {
    opacity: 0.6;
}

/* ── Catalogue mobile tab dropdown ─────────────────────────────── */
@media (max-width: 1023px) {
    #catalogue-mobile-trigger {
        padding: 12px 16px !important;
        font-size: 16px !important;
        text-align: left !important;
    }

    .catalogue-mobile-option,
    #catalogue-mobile-dropdown .catalogue-tab {
        width: 100%;
        display: block;
        text-align: left;
        padding: 14px 16px;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #2B2F35;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(43, 47, 53, 0.08);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .catalogue-mobile-option:last-child,
    #catalogue-mobile-dropdown .catalogue-tab:last-child {
        border-bottom: none;
    }
}

/* ── Catalogue page — mobile fixes ─────────────────────────────── */

@media (max-width: 639px) {
    /* Product cards: reduce content padding */
    .product-card > .grow {
        padding: 16px !important;
        gap: 16px !important;
    }

    /* Product cards: reduce min-height */
    .product-card {
        min-height: 240px;
    }

    /* Card title: smaller on mobile */
    .product-card h3 {
        font-size: 20px;
    }

    /* Card separator: subtler on mobile, enforce 1px */
    .product-card > .h-px {
        width: calc(100% - 32px) !important;
        height: 1px !important;
        min-height: 0 !important;
        max-height: 1px !important;
        opacity: 0.5;
    }

    /* Card "En savoir plus" row: reduce padding */
    .product-card > div:last-child {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 16px !important;
    }

    /* Card "En savoir plus" text + arrow: smaller */
    .product-card > div:last-child > span {
        font-size: 16px;
    }
    .product-card > div:last-child svg {
        width: 28px;
        height: 28px;
    }

    /* Filter groups: constrain to viewport */
    .catalogue-filter-group {
        max-width: calc(100vw - 32px);
        overflow: hidden;
    }

    /* Filter tags: more compact */
    .catalogue-filter-tags {
        gap: 6px !important;
    }
    .catalogue-filter-tag {
        height: 40px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 14px !important;
    }

    /* Filter scrollbar: hide but keep scrollable */
    .catalogue-filter-tags {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .catalogue-filter-tags::-webkit-scrollbar {
        display: none;
    }

    /* CTA "Modules à la carte" section: reduce gap */
    .catalogue-products-panel .bg-cream-100 .flex.flex-col.md\:items-center {
        gap: 24px !important;
    }

    /* Products grid: tighter gap */
    .catalogue-products-grid {
        gap: 12px !important;
    }
}

/* ── Single formation page — mobile fixes ─────────────────────── */
@media (max-width: 639px) {
    /* White card: reduce horizontal + top padding on mobile */
    .formation-content-card {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 20px !important;
    }

    /* H1 title: slightly smaller on mobile */
    .formation-page-title {
        font-size: 26px !important;
    }

    /* Intro paragraph: normalize size on mobile */
    .formation-intro-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Characteristics items: tighter padding + smaller text */
    .formation-char-item {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    .formation-char-item p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    /* Hébergement inner card: padding handled by .formation-accom-left / .formation-accom-right rules above. */
    .formation-accom-card p {
        font-size: 15px !important;
    }

    /* Tarif outer wrapper: tighter gap */
    .formation-tarif-wrap {
        gap: 12px !important;
    }

    /* Inner price/tarif card: reduce padding */
    .formation-price-box {
        padding: 16px !important;
    }

    /* Right column in tarif: reduce top margin */
    .formation-tarif-right {
        margin-top: 8px !important;
    }

    /* Stepper row: ensure price + counter don't overflow */
    .tarif-stepper-total {
        font-size: 22px !important;
    }
    .tarif-stepper-weeks {
        font-size: 32px !important;
    }

    /* Calendar: reduce horizontal padding so cells are larger */
    .datepicker-inline .datepicker-calendar {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 20px !important;
    }
    .datepicker-inline .datepicker-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Day name labels: slightly more readable */
    .datepicker-inline .flex.items-start.justify-between > p {
        font-size: 13px !important;
    }
    /* Day cells: slightly larger font, ensure min tap height */
    .datepicker-inline .datepicker-day {
        font-size: 15px !important;
        min-height: 40px !important;
    }
    /* Month/year labels: smaller on mobile */
    .datepicker-inline .dp-select-label {
        font-size: 15px !important;
    }
}

/* ── Campus page — hero ─────────────────────────────────────────── */
.campus-hero-section {
    min-height: calc(100vh - 128px);
    padding-bottom: 64px;
}

@media (max-width: 639px) {
    .campus-hero-section {
        min-height: 65vh;
        padding-bottom: 80px;
    }

    .campus-hero-title {
        font-size: 36px;
        line-height: 1.1;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ── Campus page — mobile fixes ────────────────────────────────── */
@media (max-width: 639px) {
    /* Section headings: reduce from 32-36px to 26px */
    .campus-h2 {
        font-size: 26px !important;
        line-height: 1.15 !important;
    }

    /* Section descriptions: reduce from 18-20px to 16px */
    .campus-desc {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Cubes/stats grid: reduce cell height for more compact layout */
    .campus-cubes-row > div {
        height: 140px !important;
    }

    /* Map placeholder: taller aspect ratio on mobile */
    .campus-map-box {
        aspect-ratio: 16 / 9 !important;
    }

    /* Section top/bottom padding: tighter on mobile */
    .campus-section-tight {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* ── Add-to-cart button ── */
.atc-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background-color: #2B2F35;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: normal;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.atc-btn:hover {
    background-color: #1a1d22;
}

/* ── Cart badge: ensure hidden overrides inline-flex ── */
.cart-badge.hidden { display: none !important; }

/* ── Header language dropdown ── */
.header-lang-menu {
    position: absolute;
    top: calc(100% + 17px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(43, 47, 53, 0.08);
    box-shadow: 0 8px 24px rgba(43, 47, 53, 0.12), 0 2px 8px rgba(43, 47, 53, 0.06);
    padding: 6px;
    z-index: 200;
}

.header-lang-item {
    display: block;
    padding: 9px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2B2F35;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.12s;
}
.header-lang-item:hover {
    background: rgba(246, 245, 234, 0.6);
}
.header-lang-item.is-active {
    background: rgba(246, 245, 234, 0.8);
}

/* ── Apprenant modal billing section ── */
.apprenant-modal-billing {
    padding: 0;
}
.apprenant-modal-billing-fields.hidden { display: none; }

/* ── Profile Apprenants tab (Figma design) ── */
.pf-tab-content {
    display: flex;
    flex-direction: column;
    gap: 70px;
    width: 100%;
}
.pf-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.pf-section > .pf-section-title {
    margin-bottom: 20px;
}
.pf-section > .pf-apprenant-list:not(:empty) ~ .pf-add-btn,
.pf-section > .pf-apprenant-list:not(:empty) {
    margin-top: 20px;
}
.pf-section > .pf-apprenant-list:not(:empty) {
    margin-bottom: 20px;
}
.pf-section > .pf-add-form {
    margin-bottom: 20px;
}
.pf-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    color: #2B2F35;
    margin: 0;
}
.pf-main-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pf-main-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.48px;
    color: #2B2F35;
    margin: 0;
}
.pf-main-email {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.32px;
    color: #2B2F35;
    margin: 8px 0 0;
}
.pf-separator {
    width: 100%;
    height: 1px;
    background: rgba(43, 47, 53, 0.12);
    margin-top: 17px;
}
.pf-main-block .pf-separator {
    margin-top: 20px;
}

/* Apprenant list */
.pf-apprenant-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.pf-apprenant-item {
    width: 100%;
}
.pf-apprenant-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}
.pf-apprenant-identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pf-apprenant-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.48px;
    color: #2B2F35;
    margin: 0;
}
.pf-apprenant-email {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.32px;
    color: #2B2F35;
    margin: 0;
}
.pf-apprenant-chevron {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-apprenant-chevron svg {
    transition: transform 0.25s ease;
    display: block;
}
.pf-apprenant-chevron[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Detail panel (cream background) */
.pf-detail-panel {
    background: #F6F5EA;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.pf-apprenant-body .pf-detail-panel,
.pf-add-form .pf-detail-panel {
    margin-top: 0;
}
.pf-apprenant-body {
    padding-bottom: 10px;
}
.pf-detail-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pf-detail-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #2B2F35;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6D5B6;
}
.pf-field-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pf-field-grid .pf-field-row,
.pf-field-grid > div:not(.pf-field) {
    display: flex;
    gap: 20px;
}
/* Two-column pairs */
.pf-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pf-field-grid .pf-field:nth-child(5) {
    grid-column: 1;
}
.pf-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pf-field-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.32px;
    color: #2B2F35;
    display: block;
}
.pf-field-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.32px;
    color: #2B2F35;
    opacity: 0.7;
    padding-bottom: 10px;
    display: block;
}

/* Detail action buttons */
.pf-detail-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.pf-btn-filled {
    background: #2B2F35;
    border: 1px solid #2B2F35;
    color: #F6F5EA;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.pf-btn-filled:hover {
    background: #1a1d22;
}
.pf-btn-outline {
    background: transparent;
    border: 1px solid #2B2F35;
    color: #2B2F35;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.pf-btn-outline:hover {
    background: rgba(43, 47, 53, 0.04);
}
.pf-btn-outline-light {
    background: transparent;
    border: 1px solid rgba(43, 47, 53, 0.2);
    color: #2B2F35;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: background 0.15s;
}
.pf-btn-outline-light:hover {
    background: rgba(43, 47, 53, 0.04);
}

/* Delete banner */
.pf-delete-banner {
    background: #2B2F35;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pf-delete-banner p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #F6F5EA;
    margin: 0;
    max-width: 436px;
}
.pf-delete-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pf-btn-delete-confirm {
    background: rgba(246, 245, 234, 0.1);
    border: none;
    color: #F6F5EA;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: background 0.15s;
}
.pf-btn-delete-confirm:hover {
    background: rgba(246, 245, 234, 0.2);
}
.pf-btn-delete-confirm svg {
    stroke: #F6F5EA;
}
.pf-btn-delete-cancel {
    background: transparent;
    border: 1px solid rgba(246, 245, 234, 0.2);
    color: #F6F5EA;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.pf-btn-delete-cancel:hover {
    background: rgba(246, 245, 234, 0.1);
}

/* Success message */
.pf-success-msg {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pf-success-msg span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #2B2F35;
}

/* Add button */
.pf-add-btn {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: #2B2F35;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #F6F5EA;
    align-self: flex-start;
}
.pf-add-btn:hover {
    background: #1a1d22;
}

/* ── Profile avatar ── */
.profile-avatar-wrap {
    width: 81px;
    height: 81px;
    border-radius: 50%;
    background: #d4d4d4;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-avatar-initial {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #fff;
}
@media (max-width: 767px) {
    .profile-avatar-wrap { width: 60px; height: 60px; }
    .profile-avatar-initial { font-size: 20px; }
}

/* ── Crop modal ── */
/* ── Crop modal — overlay ── */
.crop-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.crop-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── Crop modal — dialog ── */
.crop-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 100001;
    width: 520px;
    max-width: 92vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s ease-out, visibility 0.3s;
}
.crop-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.crop-modal-inner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ── */
.crop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
}
.crop-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #2B2F35;
    margin: 0;
}
.crop-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #2B2F35;
    opacity: 0.35;
    transition: opacity 0.15s;
    border-radius: 50%;
}
.crop-modal-close:hover {
    opacity: 1;
    background: rgba(43, 47, 53, 0.06);
}

/* ── Body (crop area) ── */
.crop-modal-body {
    padding: 0;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    max-height: 420px;
    overflow: hidden;
}
.crop-modal-preview-area {
    width: 100%;
    height: 100%;
}
.crop-modal-preview-area img {
    display: block;
    max-width: 100%;
}

/* ── Cropper.js overrides — circular, clean ── */
.crop-modal .cropper-view-box,
.crop-modal .cropper-face {
    border-radius: 50%;
}
.crop-modal .cropper-view-box {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: -2px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}
.crop-modal .cropper-face {
    background: transparent;
}
.crop-modal .cropper-dashed {
    display: none;
}
.crop-modal .cropper-point {
    background: #fff;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
}
.crop-modal .cropper-point.point-se {
    width: 8px;
    height: 8px;
}
.crop-modal .cropper-line {
    background: transparent;
}
.crop-modal .cropper-modal {
    background: rgba(0, 0, 0, 0.55);
}
.crop-modal .cropper-bg {
    background-image: none;
    background: #1a1a1a;
}

/* ── Controls toolbar ── */
.crop-modal-controls {
    padding: 14px 28px;
    display: flex;
    justify-content: center;
    background: #fff;
}
.crop-modal-tools {
    display: flex;
    gap: 2px;
    align-items: center;
    background: rgba(43, 47, 53, 0.04);
    border-radius: 6px;
    padding: 4px;
}
.crop-tool-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    color: rgba(43, 47, 53, 0.6);
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crop-tool-btn:hover {
    background: rgba(43, 47, 53, 0.08);
    color: #2B2F35;
}
.crop-tool-btn:active {
    background: rgba(43, 47, 53, 0.14);
}
.crop-tool-sep {
    width: 1px;
    height: 18px;
    background: rgba(43, 47, 53, 0.1);
    margin: 0 4px;
}

/* ── Footer ── */
.crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 28px;
    border-top: 1px solid rgba(43, 47, 53, 0.06);
}
.crop-modal-cancel {
    background: transparent;
    border: 1px solid rgba(43, 47, 53, 0.2);
    color: #2B2F35;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 15px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.crop-modal-cancel:hover {
    background: rgba(43, 47, 53, 0.04);
    border-color: rgba(43, 47, 53, 0.35);
}
.crop-modal-save {
    background: #2B2F35;
    border: 1px solid #2B2F35;
    color: #F6F5EA;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 15px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.15s;
}
.crop-modal-save:hover {
    background: #1a1d22;
}
.crop-modal-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Override form-input inside cream panels for contrast */
.pf-detail-panel .form-input {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(43, 47, 53, 0.12);
}
.pf-detail-panel .form-input:focus {
    border-color: #2B2F35;
}
.pf-detail-panel .civilite-option input[type="radio"]:not(:checked):hover {
    background: #fff;
}

/* Form fields (reuses .form-input, .form-label, .civilite-group from global) */
.pf-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pf-form-row {
    display: flex;
    gap: 20px;
}
.pf-form-row > .w-full {
    flex: 1;
    min-width: 0;
}
.pf-form-half {
    max-width: calc(50% - 10px);
}

/* Add form wrapper */
.pf-add-form {
    padding-bottom: 10px;
}

/* ── Header profile (logged-in) ── */
.header-profile {
    position: relative;
    z-index: 200;
}

.header-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 3px 12px 3px 3px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: opacity 0.2s;
    outline: none;
}
.header-profile-trigger:hover { opacity: 0.8; }

.header-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2B2F35;
    color: #F6F5EA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    line-height: 1;
}
.header-profile-avatar.is-transparent {
    background: rgba(246, 245, 234, 0.2);
    color: #F6F5EA;
}

.header-profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.header-profile-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.header-profile.is-open .header-profile-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.header-profile-menu {
    position: absolute;
    top: calc(100% + 17px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid rgba(43, 47, 53, 0.08);
    box-shadow: 0 8px 24px rgba(43, 47, 53, 0.12), 0 2px 8px rgba(43, 47, 53, 0.06);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.header-profile.is-open .header-profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-profile-menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 12px;
}
.header-profile-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2B2F35;
    color: #F6F5EA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.header-profile-menu-name {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2B2F35;
    line-height: 1.3;
}
.header-profile-menu-email {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: rgba(43, 47, 53, 0.5);
    line-height: 1.3;
}

.header-profile-menu-sep {
    height: 1px;
    background: rgba(43, 47, 53, 0.08);
    margin: 4px 10px;
}

.header-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2B2F35;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.12s;
}
.header-profile-menu-item:hover {
    background: rgba(246, 245, 234, 0.6);
}
.header-profile-menu-item svg {
    flex-shrink: 0;
    color: rgba(43, 47, 53, 0.45);
}
.header-profile-menu-logout {
    color: #E40521;
}
.header-profile-menu-logout svg {
    color: #E40521;
}

/* ── Apprenant modal overlay ── */
.apprenant-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 11002;
    background: rgba(43, 47, 53, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.apprenant-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Apprenant modal (centered) ── */
.apprenant-modal {
    position: fixed;
    z-index: 11003;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 808px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.apprenant-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.apprenant-modal-close {
    background: none;
    border: 1px solid #F6F5EA;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #F6F5EA;
}
.apprenant-modal-inner {
    width: 100%;
    background: #fff;
    padding: 40px 37px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    box-sizing: border-box;
}
.apprenant-modal-header { margin-bottom: 40px; }
.apprenant-modal-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.48px;
    color: #2B2F35;
    margin: 0 0 30px;
}
.apprenant-modal-separator {
    height: 1px;
    background: #e6d5b6;
}
.apprenant-panel-error {
    font-size: 14px;
    color: #E40521;
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-line;
    display: none;
}
.apprenant-panel-error.visible { display: block; }

/* ── Modal section headers (Monogramme icon pattern) ── */
.apprenant-modal-section { margin-bottom: 40px; }
.apprenant-modal-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}
.apprenant-modal-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #2B2F35;
    white-space: nowrap;
}
.apprenant-modal-section-line {
    flex: 1;
    height: 1px;
    background: #2B2F35;
}

/* ── Bordered form box ── */
.apprenant-modal-box {
    border: 1px solid rgba(43, 47, 53, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.apprenant-modal-row {
    display: flex;
    gap: 20px;
}
.apprenant-modal-row > .apprenant-modal-field { flex: 1; }
.apprenant-modal-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.apprenant-modal-label {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.36px;
    color: #2B2F35;
    margin: 0;
    line-height: 1.2;
}
.apprenant-modal-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(246, 245, 234, 0.7);
    border: none;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.36px;
    color: #2B2F35;
    outline: none;
    box-sizing: border-box;
}
.apprenant-modal-input::placeholder {
    color: #2B2F35;
    opacity: 0.6;
}
.apprenant-civilite-wrap {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 10px 0;
}
.apprenant-civilite-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.apprenant-civilite-radio {
    width: 16px;
    height: 16px;
    accent-color: #2B2F35;
    cursor: pointer;
    flex-shrink: 0;
}
.apprenant-civilite-item label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #2B2F35;
    cursor: pointer;
    line-height: 1.5;
}

/* ── Checkboxes ── */
.apprenant-modal-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}
.apprenant-modal-checkboxes .copy-address-label span {
    font-size: 14px;
    line-height: 1.4;
}
.apprenant-billing-check {
    margin-bottom: 16px;
}
.apprenant-modal-billing-fields:not(.hidden) {
    margin-bottom: 30px;
}

/* ── Submit button ── */
.apprenant-modal-submit {
    display: block;
    width: 100%;
    padding: 20px;
    background: #2B2F35;
    color: #fff;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}
.apprenant-modal-submit:hover { background: #1a1d22; }
.apprenant-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 850px) {
    .apprenant-modal-row { flex-direction: column; gap: 30px; }
    .apprenant-modal-inner { padding: 24px 20px; }
}

/* ── Per-item apprenant selector ── */
.apprenant-selector { position: relative; width: 100%; }
.apprenant-select-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #f5f1e8;
    border: 1px solid rgba(43, 47, 53, 0.15);
    color: #2B2F35;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.15s;
    text-align: left;
}
.apprenant-select-btn:hover { border-color: rgba(43, 47, 53, 0.4); }
.apprenant-dropdown-wrap { position: static; }
.apprenant-select-col {
    position: relative;
    flex: 1;
    min-width: 0;
}
.apprenant-select-col .panier-apprenant-select {
    width: 100%;
    max-width: none;
}
.apprenant-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #F6F5EA;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 200;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.apprenant-dropdown.open { display: block; }
.apprenant-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.apprenant-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #2B2F35;
    transition: background-color 0.1s;
}
.apprenant-dropdown-item:hover { background: rgba(43, 47, 53, 0.06); }
.apprenant-item-initials {
    display: none;
}
.apprenant-assigned-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2B2F35;
    color: #F6F5EA;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.apprenant-dropdown-loading {
    padding: 12px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: rgba(43, 47, 53, 0.5);
}
.apprenant-create-btn {
    display: none;
}
/* Multi-select checkbox in dropdown items */
.apprenant-dropdown-item {
    position: relative;
}
.apprenant-dropdown-check {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #2b2f35;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    position: relative;
}
.apprenant-dropdown-check:checked {
    background: #2b2f35;
}
.apprenant-dropdown-check:checked::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #F6F5EA;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
/* Apprenant selected names */
.apprenant-chips {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2B2F35;
    line-height: 1.4;
}
.apprenant-chips:empty {
    display: none;
}
.apprenant-chips:not(:empty) {
    margin-top: 10px;
}

/* Price × qty */
.panier-price-qty {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.6;
}
/* Selected count on trigger */
.panier-apprenant-select span.has-selection {
    color: #2B2F35;
    opacity: 1;
    font-weight: 500;
}
.apprenant-assigned.hidden { display: none !important; }
.apprenant-assigned {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f5f1e8;
    border: 1px solid rgba(43, 47, 53, 0.15);
}
.apprenant-assigned-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.apprenant-assigned-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2B2F35;
}
.apprenant-change-btn {
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    color: rgba(43, 47, 53, 0.55);
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    transition: color 0.15s;
}
.apprenant-change-btn:hover { color: #2B2F35; }
.apprenant-guest-note {
    font-size: 14px;
    color: rgba(43, 47, 53, 0.65);
    line-height: 1.5;
    padding: 8px 0;
    margin: 0;
}

/* Missing apprenant error highlight */
.apprenant-error .apprenant-select-btn {
    border-color: #E40521;
}
.apprenant-validation-error {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    color: #E40521;
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .apprenant-panel-form-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   INFORMATIONS PAGE (Step 2)  —  Figma 4093-9695
   ══════════════════════════════════════════════════════════════════════ */

/* ── Site-wide toast notifications (success / info / warning) ── */
.cav-toast-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 48px);
}
.cav-toast {
    background: #ffffff;
    border-left: 3px solid #2B2F35;
    box-shadow: 0 4px 16px rgba(43, 47, 53, 0.12);
    padding: 14px 18px 14px 16px;
    color: #2B2F35;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.cav-toast.cav-toast--in {
    opacity: 1;
    transform: translateX(0);
}
.cav-toast.cav-toast--out {
    opacity: 0;
    transform: translateX(20px);
}
.cav-toast--success { border-left-color: #0B543A; }
.cav-toast--info    { border-left-color: #213A88; }
.cav-toast--warning { border-left-color: #F9631E; }
.cav-toast--error   { border-left-color: #E40521; }
.cav-toast strong { font-weight: 600; }

/* ── Pending email badge (shown next to email field while a change is awaiting confirmation) ── */
.email-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 10px 4px 8px;
    background: #fff;
    border: 1px solid rgba(249, 99, 30, 0.4);
    color: #2B2F35;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
/* Inline status tag rendered next to the field label (e.g. "Email • En attente"). */
.email-pending-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid rgba(249, 99, 30, 0.4);
    color: #2B2F35;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    vertical-align: middle;
}
.email-pending-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F9631E;
    flex-shrink: 0;
}
.email-pending-badge-pending-value {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #888;
    margin-left: 4px;
}
.email-pending-cancel {
    background: none;
    border: none;
    color: #E40521;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    padding: 0;
    cursor: pointer;
}
.email-pending-cancel:hover { text-decoration: underline; }
.email-pending-resend {
    background: none;
    border: none;
    color: #213A88;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    padding: 0;
    cursor: pointer;
}
.email-pending-resend:hover { text-decoration: underline; }
.email-pending-resend:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: none; }

/* ── Signup OTP step (6-digit verification grid on /registration/) ── */
.signup-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 460px;
}
.signup-otp-input {
    width: 100%;
    height: 60px;
    text-align: center;
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    color: #2B2F35;
    background: #f5f1e8;
    border: 1px solid transparent;
    outline: none;
    transition: border-color 0.15s ease;
}
.signup-otp-input:focus {
    border-color: #213A88;
}
@media (max-width: 480px) {
    .signup-otp-grid { gap: 8px; }
    .signup-otp-input { height: 52px; font-size: 20px; }
}

/* ── Flash error (e.g. orphan email collision, OTP not verified) ── */
.info-flash-error {
    background: #fff3f3;
    border-left: 3px solid #E40521;
    color: #2B2F35;
    padding: 12px 16px;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Review item cards ── */
.info-items { display: flex; flex-direction: column; gap: 5px; margin-bottom: 40px; }
.info-item-card {
    border: 1px solid #e6d5b6;
    padding: 6px;
}
.info-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 20px;
}
.info-item-meta { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.info-item-title {
    font-size: 22px;
    font-weight: 500;
    color: #2B2F35;
    line-height: 1.2;
    margin: 0;
}
.info-item-price {
    font-size: 20px;
    font-weight: 500;
    color: #2B2F35;
    white-space: nowrap;
    text-align: right;
}
.info-item-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #2B2F35;
}

/* ── Detail rows (cream bg) ── */
.info-item-rows { display: flex; flex-direction: column; gap: 2px; }
.info-item-row {
    background: rgba(230, 213, 182, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-row-label {
    font-size: 16px;
    font-weight: 600;
    color: #2B2F35;
    margin: 0;
    line-height: 1.2;
}
.info-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: 16px;
    color: #2B2F35;
}
.info-tag-sep {
    color: rgba(43, 47, 53, 0.3);
    font-size: 14px;
}
.info-row-services {
    font-size: 16px;
    color: #2B2F35;
    line-height: 1.2;
}
.info-row-apprenant {
    font-size: 16px;
    color: #2B2F35;
    margin: 0;
}
.info-apprenant-email {
    opacity: 0.7;
    letter-spacing: -0.32px;
}

/* ── Hébergement inside review card ── */
.info-heberg-header {
    display: flex;
    align-items: center;
    gap: 5px;
}
.info-heberg-type {
    font-size: 16px;
    color: #2B2F35;
    letter-spacing: -0.32px;
    margin: 0;
    line-height: 1.1;
}
.info-heberg-notes { display: flex; flex-direction: column; gap: 10px; }
.info-heberg-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.info-heberg-note span {
    font-size: 12px;
    color: #2B2F35;
    opacity: 0.6;
    line-height: 1.2;
}
.info-heberg-note svg { flex-shrink: 0; margin-top: 1px; }

/* ── Billing address ── */
.info-billing { margin-top: 28px; }
.info-billing-heading {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #2B2F35;
    margin: 0 0 28px;
    line-height: 1.1;
}
.info-billing-card {
    border: 1px solid #e6d5b6;
    padding: 6px;
}
.info-billing-fields { padding: 20px; display: flex; flex-direction: column; gap: 30px; }
.info-billing-row { display: flex; gap: 20px; }
.info-billing-row > .info-billing-field { flex: 1; }
.info-billing-field { display: flex; flex-direction: column; gap: 15px; }
.info-billing-label {
    font-size: 16px;
    font-weight: 500;
    color: #2B2F35;
    letter-spacing: -0.32px;
    margin: 0;
    line-height: 1.2;
}
.info-billing-value {
    font-size: 16px;
    font-weight: 400;
    color: #2B2F35;
    letter-spacing: -0.32px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(43, 47, 53, 0.1);
    line-height: 1.2;
}
.info-billing-edit-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: none;
    border: 1px solid #2B2F35;
    color: #2B2F35;
    font-size: 16px;
    cursor: pointer;
    margin: 0 20px 20px;
    transition: background-color 0.15s;
}
.info-billing-edit-btn:hover { background: rgba(43, 47, 53, 0.05); }
.info-billing-edit-btn.hidden { display: none !important; }

/* ── Billing edit form ── */
.info-billing-form { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.info-billing-form.hidden { display: none !important; }
.info-billing-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(246, 245, 234, 0.7);
    border: 1px solid rgba(43, 47, 53, 0.15);
    font-size: 16px;
    color: #2B2F35;
    letter-spacing: -0.32px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.info-billing-input:focus { border-color: rgba(43, 47, 53, 0.4); }
.info-billing-actions { display: flex; gap: 12px; }
.info-billing-save-btn {
    padding: 10px 24px;
    background: #2B2F35;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.info-billing-save-btn:hover { background: #1a1d22; }
.info-billing-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.info-billing-cancel-btn {
    padding: 10px 24px;
    background: none;
    border: 1px solid rgba(43, 47, 53, 0.3);
    color: #2B2F35;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.info-billing-cancel-btn:hover { border-color: #2B2F35; }
.info-billing-msg {
    font-size: 14px;
    color: #E40521;
    margin: 0;
}
.info-billing-msg.hidden { display: none !important; }

/* ── Back link ── */
.info-back-link {
    display: block;
    text-align: center;
    font-size: 15px;
    color: rgba(43, 47, 53, 0.6);
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.15s;
}
.info-back-link:hover { color: #2B2F35; }

/* ── Payment page ── */
.payment-desc {
    font-size: 16px;
    color: #2B2F35;
    margin: 0 0 30px;
    line-height: 1.5;
}
.payment-dev-area { margin-bottom: 30px; }
.payment-stripe-area { margin-bottom: 30px; }
.payment-dev-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(249, 99, 30, 0.08);
    border: 1px solid rgba(249, 99, 30, 0.2);
    margin-bottom: 24px;
}
.payment-dev-notice svg { flex-shrink: 0; margin-top: 2px; }
.payment-dev-notice p {
    font-size: 14px;
    color: #2B2F35;
    line-height: 1.5;
    margin: 0;
}

/* ── Orphan email verification step ── */
.apprenant-verify-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 60px 40px 48px;
    text-align: center;
}
.apprenant-verify-step.hidden { display: none !important; }

.apprenant-verify-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(11, 84, 58, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.apprenant-verify-title {
    font-size: 24px;
    font-weight: 600;
    color: #2B2F35;
    margin: 0 0 10px;
    letter-spacing: -0.48px;
}

.apprenant-verify-desc {
    font-size: 15px;
    color: rgba(43, 47, 53, 0.6);
    margin: 0 0 32px;
    line-height: 1.6;
    max-width: 380px;
}

/* OTP digit inputs */
.apprenant-verify-otp {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.apprenant-verify-digit {
    width: 52px;
    height: 60px;
    background: rgba(246, 245, 234, 0.5);
    border: 1.5px solid rgba(43, 47, 53, 0.15);
    border-radius: 8px;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    color: #2B2F35;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    caret-color: #0B543A;
}
.apprenant-verify-digit:focus {
    border-color: #0B543A;
    background: rgba(246, 245, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(11, 84, 58, 0.1);
}
.apprenant-verify-digit.has-value {
    border-color: #0B543A;
    background: rgba(246, 245, 234, 0.8);
}
.apprenant-verify-digit.error {
    border-color: #E40521;
    background: rgba(228, 5, 33, 0.04);
    animation: verifyShake 0.4s ease;
}

.apprenant-verify-dash {
    width: 12px;
    height: 2px;
    background: rgba(43, 47, 53, 0.25);
    border-radius: 1px;
    flex-shrink: 0;
}

/* Verify button */
.apprenant-verify-btn {
    width: 100%;
    max-width: 380px;
    padding: 16px 24px;
    margin-top: 24px;
    background: #2B2F35;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.apprenant-verify-btn:hover { background: #1a1d22; }
.apprenant-verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2B2F35;
}
.apprenant-verify-btn-loading.hidden { display: none; }

.apprenant-verify-spinner {
    animation: verifySpin 1s linear infinite;
}

/* Error message */
.apprenant-verify-error {
    font-size: 14px;
    color: #E40521;
    margin: 0;
    min-height: 20px;
    line-height: 20px;
}
.apprenant-verify-error:not(.visible) { visibility: hidden; }

/* Resend link */
.apprenant-verify-resend {
    font-size: 14px;
    color: rgba(43, 47, 53, 0.5);
    margin: 16px 0 0;
}
.apprenant-verify-resend-btn {
    background: none;
    border: none;
    color: #0B543A;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    transition: color 0.15s;
}
.apprenant-verify-resend-btn:hover { color: #083d2b; }
.apprenant-verify-resend-btn:disabled {
    color: rgba(43, 47, 53, 0.35);
    cursor: default;
    text-decoration: none;
}

@keyframes verifyShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes verifySpin {
    to { transform: rotate(360deg); }
}

/* ── Contact info ── */
.info-contact {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #2B2F35;
    line-height: 1.2;
}
.info-contact a {
    color: #2B2F35;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-billing-row { flex-direction: column; gap: 20px; }
}


/* ══════════════════════════════════════════════════════════════════════
   CONFIRMATION PAGE (Step 4)  —  Figma 4615-51181
   ══════════════════════════════════════════════════════════════════════ */

.confirm-content {
    background: #fff;
    padding: 7px;
}

/* ── Success banner ── */
.confirm-banner {
    background: rgba(11, 84, 58, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 45px;
}
/* Pending variant — blue tint while we wait for the Flywire webhook */
.confirm-banner--pending {
    background: rgba(33, 58, 136, 0.08);
}
/* Failed/cancelled variant — red tint */
.confirm-banner--failed {
    background: rgba(228, 5, 33, 0.08);
}
/* Spinner used inside the pending banner icon */
.confirm-spinner {
    animation: cavilamSpin 1s linear infinite;
    transform-origin: center;
}
@keyframes cavilamSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.confirm-banner-icon { flex-shrink: 0; }
.confirm-banner-title {
    font-size: 28px;
    font-weight: 500;
    color: #2B2F35;
    letter-spacing: 0.56px;
    margin: 0;
    line-height: 1.2;
}
.confirm-banner-desc {
    font-size: 16px;
    font-weight: 400;
    color: #2B2F35;
    letter-spacing: -0.32px;
    margin: 0;
    line-height: 1.2;
}

/* ── Order detail rows ── */
.confirm-details {
    padding: 20px 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6d5b6;
}
.confirm-detail-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.confirm-detail-row svg { flex-shrink: 0; margin-top: 2px; }
.confirm-detail-content { display: flex; flex-direction: column; gap: 10px; }
.confirm-detail-label {
    font-size: 16px;
    font-weight: 600;
    color: #2B2F35;
    margin: 0;
    line-height: 1.2;
}
.confirm-detail-value {
    font-size: 16px;
    font-weight: 400;
    color: #2B2F35;
    margin: 0;
    line-height: 1.2;
}

/* ── Items list ── */
.confirm-items {
    padding: 20px 30px;
    border-bottom: 1px solid #e6d5b6;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.confirm-items-label {
    font-size: 16px;
    font-weight: 500;
    color: #2B2F35;
    letter-spacing: -0.32px;
    margin: 0;
}
.confirm-items-list { display: flex; flex-direction: column; gap: 10px; }
.confirm-items-row {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 16px;
    color: #2B2F35;
}

/* ── Contact ── */
.confirm-contact {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #2B2F35;
    line-height: 1.2;
}
.confirm-contact a {
    color: #2B2F35;
    text-decoration: underline;
}

/* ── Receipt note ── */
.confirm-receipt-note {
    font-size: 16px;
    color: #2B2F35;
    opacity: 0.7;
    letter-spacing: -0.32px;
    line-height: 1.2;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
 *  PROFILE — Mobile responsive overrides
 * ══════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
    /* Apprenants read-only grid → single column */
    .pf-field-grid {
        grid-template-columns: 1fr;
    }

    /* Apprenants form rows → stack vertically */
    .pf-form-row {
        flex-direction: column;
    }
    .pf-form-half {
        max-width: 100%;
    }

    /* Reduce cream panel padding */
    .pf-detail-panel {
        padding: 16px;
    }

    /* Delete banner padding */
    .pf-delete-banner {
        padding: 16px;
    }

    /* Apprenant name size */
    .pf-apprenant-name,
    .pf-main-name {
        font-size: 20px;
    }

    /* Section gap */
    .pf-tab-content {
        gap: 40px;
    }

    /* Detail actions stack if needed */
    .pf-detail-actions {
        flex-wrap: wrap;
    }

    /* Crop modal */
    .crop-modal {
        width: 95vw;
    }
    .crop-modal-header {
        padding: 16px 20px;
    }
    .crop-modal-controls {
        padding: 12px 20px;
    }
    .crop-modal-footer {
        padding: 14px 20px;
    }

    /* Profile avatar */
    .profile-avatar-wrap {
        width: 60px;
        height: 60px;
    }
    .profile-avatar-initial {
        font-size: 20px;
    }
}

/* ── Formation selectors: shared accessibility ─────────────────
 * Native radios are hidden via .sr-only (keeps them focusable).
 * Styled label wrappers use :has(:checked) for selection state.
 */
.accom-toggle-btn input.sr-only:focus-visible ~ span,
.accom-type-card input.sr-only:focus-visible ~ .accom-type-name,
.cp-variant-label input.sr-only:focus-visible ~ span,
.juniors-week-label input.sr-only:focus-visible ~ span {
    outline: 2px solid #213A88;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ── Accommodation Oui/Non segmented toggle ──────────────────── */
.accom-toggle-group {
    display: inline-flex;
    border: 1px solid rgba(43, 47, 53, 0.2);
    background: #fff;
    padding: 4px;
    gap: 4px;
}
.accom-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 22px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.accom-toggle-btn span {
    font-family: 'Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2B2F35;
    transition: color 0.18s ease;
    line-height: 1;
}
.accom-toggle-btn:hover:not(:has(:checked)) {
    background: rgba(43, 47, 53, 0.04);
}
.accom-toggle-btn:has(:checked) {
    background: #2B2F35;
}
.accom-toggle-btn:has(:checked) span {
    color: #fff;
}

/* ── Accommodation type cards (when Oui is selected) ─────────── */
.accom-type-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.accom-type-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 14px 18px;
    background: #fff;
    border: 1px solid rgba(43, 47, 53, 0.18);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.accom-type-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background-color 0.18s ease;
}
.accom-type-card:hover {
    border-color: rgba(43, 47, 53, 0.45);
}
.accom-type-card:has(:checked) {
    background: #F6F5EA;
    border-color: #213A88;
}
.accom-type-card:has(:checked)::before {
    background: #213A88;
}
.accom-type-name {
    font-family: 'Grotesk', sans-serif;
    font-size: 16px;
    color: #2B2F35;
    font-weight: 400;
}
.accom-type-card:has(:checked) .accom-type-name {
    font-weight: 500;
}
.accom-type-price {
    font-family: 'Grotesk', sans-serif;
    font-size: 14px;
    color: #2B2F35;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(43, 47, 53, 0.06);
    white-space: nowrap;
}
.accom-type-card:has(:checked) .accom-type-price {
    background: #213A88;
    color: #fff;
}

/* ── Segmented controls: CP variants & JUNIORS weeks ─────────── */
/* Match the cream stepper below for visual continuity; blue active */
.cv-segmented {
    display: flex;
    flex-wrap: wrap;
    background: #f5f1e8;
    padding: 6px;
    gap: 4px;
    width: 100%;
}
.cv-segmented-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 18px;
    min-height: 56px;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.18s ease, color 0.18s ease;
    user-select: none;
    flex: 1 1 0;
    min-width: 0;
}
.cv-segmented-item span {
    font-family: 'Grotesk', sans-serif;
    font-size: 16px;
    color: #2B2F35;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.18s ease;
}
.cv-segmented-item:hover:not(:has(:checked)) {
    background: rgba(43, 47, 53, 0.06);
}
.cv-segmented-item:has(:checked) {
    background: #e6d5b6;
}
.cv-segmented-item:has(:checked) span {
    color: #2B2F35;
    font-weight: 600;
}
.cv-segmented-item input.sr-only:focus-visible ~ span {
    outline: 2px solid #213A88;
    outline-offset: 4px;
    border-radius: 2px;
}
.cv-segmented-item.is-disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.cv-segmented-item.is-disabled:hover {
    background: transparent;
}
/* Stacked variant — column layout (e.g. JUNIORS Formule) */
.cv-segmented--stack {
    flex-direction: column;
    flex-wrap: nowrap;
}
.cv-segmented--stack .cv-segmented-item {
    justify-content: flex-start;
    padding: 16px 18px;
    min-height: 0;
    flex: 0 0 auto;
    width: 100%;
}

/* Mobile refinements */
@media (max-width: 639px) {
    .accom-toggle-btn {
        min-width: 72px;
        padding: 9px 18px;
    }
    .cv-segmented {
        display: flex;
        width: 100%;
    }
    .cv-segmented-item {
        padding: 10px 12px;
    }
    .cv-segmented-item span {
        font-size: 14px;
    }
    .accom-type-card {
        padding: 12px 14px 12px 16px;
    }
    .cv-segmented--stack .cv-segmented-item {
        padding: 14px 16px;
    }
    .accom-type-price {
        font-size: 13px;
    }
}

/* ── Homepage — Inscription section ───────────────────────────────── */
.inscription-section {
    width: 100%;
    background: #E6D5B6;
    padding: 30px 73px;
}
.inscription-inner {
    max-width: 1294px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.inscription-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #2B2F35;
}
.inscription-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    width: 100%;
}
.inscription-header {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;
    color: #2B2F35;
    max-width: 693px;
    margin: 0;
    min-width: 0;
}
.inscription-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    color: #2B2F35;
    flex-shrink: 0;
}
.inscription-cta svg {
    transition: transform 0.3s ease;
}
.inscription-cta:hover svg {
    transform: translateX(4px);
}
.inscription-divider {
    width: 100%;
    height: 1px;
    background: #2B2F35;
}
@media (max-width: 767px) {
    .inscription-section {
        padding: 24px 20px;
    }
    .inscription-inner {
        gap: 16px;
    }
    .inscription-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .inscription-label {
        font-size: 14px;
    }
    .inscription-header {
        font-size: 20px;
        line-height: 110%;
    }
    .inscription-cta {
        font-size: 18px;
    }
}

/* ──────────────────────────────────────────────────────────
   Formation price card (JUNIORS / fixed-week) — cream block matching stepper
   ────────────────────────────────────────────────────────── */
.formation-price-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    background: #f5f1e8;
}
.formation-price-card-amount {
    font-family: 'HK Grotesk', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1;
    color: #2B2F35;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.formation-price-card-sub {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'HK Grotesk', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #6b7280;
}
.formation-price-card-sub > span:empty {
    display: none;
}
.formation-price-card-sep {
    color: rgba(43, 47, 53, 0.35);
}

/* ──────────────────────────────────────────────────────────
   Formation "Incluant" block — refined content treatment
   ────────────────────────────────────────────────────────── */
.formation-included {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.formation-included-title {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #213A88;
    margin: 0;
    line-height: 1;
}
.formation-included-content {
    font-family: 'HK Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: #2B2F35;
}
.formation-included-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.formation-included-content ul li {
    position: relative;
    padding-left: 22px;
}
.formation-included-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E40521;
}
.formation-included-content ul + p,
.formation-included-content p + ul {
    margin-top: 4px;
}
/* Sub-section headings inside the editor output ("Sans hébergement", "Avec hébergement :") */
.formation-included-content > p {
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(43, 47, 53, 0.08);
    font-family: 'HK Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2B2F35;
    line-height: 1.2;
}
.formation-included-content > p:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 639px) {
    .formation-price-card {
        padding: 16px 18px;
    }
    .formation-price-card-amount {
        font-size: 24px;
    }
    .formation-price-card-sub {
        font-size: 13px;
    }
    .formation-included-content {
        font-size: 15px;
    }
    .formation-included-content > p {
        font-size: 11px;
    }
}

/* ── Newsletter modal ─────────────────────────────────────────────── */
.newsletter-modal-overlay {
    position: fixed; inset: 0; z-index: 12000;
    background: rgba(43, 47, 53, 0.7);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.newsletter-modal-overlay.open { opacity: 1; pointer-events: auto; }

.newsletter-modal {
    position: fixed; z-index: 12001;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 760px; max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #ffffff;
    padding: 40px 48px;
    box-sizing: border-box;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.newsletter-modal.open {
    opacity: 1; pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.newsletter-modal-close {
    position: absolute;
    top: -44px; right: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
}
.newsletter-modal-close:hover { background: rgba(255,255,255,0.1); }
.newsletter-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 120%;
    color: #2B2F35;
    margin: 0 0 24px;
}
.newsletter-modal-form { display: block; }
.newsletter-modal-panel {
    background: #ffffff;
    border: 1px solid #2B2F3533;
    padding: 30px;
    margin-bottom: 20px;
}
.newsletter-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}
.newsletter-modal-field { display: flex; flex-direction: column; }
.newsletter-modal-field-full { grid-column: 1 / -1; }
.newsletter-modal-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2B2F35;
    margin-bottom: 8px;
}
.newsletter-modal-label span[aria-hidden="true"] { margin-left: 2px; }
.newsletter-modal-input {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: #2B2F35;
    background: #F6F5EAB2;
    border: 0;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.newsletter-modal-input::placeholder {
    color: #9a9a9a;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.02em;
}
.newsletter-modal-input:focus-visible { outline: 2px solid #2B2F35; outline-offset: -2px; }
.newsletter-modal-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1l6 6 6-6' stroke='%232B2F35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.newsletter-modal-consent {
    display: flex; align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2B2F35;
    margin: 20px 0 30px;
    cursor: pointer;
}
.newsletter-modal-consent input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #2B2F35;
    cursor: pointer;
    flex-shrink: 0;
}
.newsletter-modal-error,
.newsletter-modal-success {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0 0 12px;
    display: none;
}
.newsletter-modal-error { color: #E40521; }
.newsletter-modal-success { color: #0B543A; }
.newsletter-modal-error.visible,
.newsletter-modal-success.visible { display: block; }
.newsletter-modal-submit {
    width: 100%;
    background: #2B2F35;
    color: #ffffff;
    border: 0;
    padding: 18px 24px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.newsletter-modal-submit:hover { opacity: 0.9; }
.newsletter-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 639px) {
    .newsletter-modal {
        padding: 32px 24px;
    }
    .newsletter-modal-title { font-size: 22px; margin-bottom: 20px; }
    .newsletter-modal-panel { padding: 20px; }
    .newsletter-modal-grid { grid-template-columns: 1fr; gap: 16px; }
    .newsletter-modal-close { top: -40px; }
}

/* ──────────────────────────────────────────────────────────
   Formation — Hébergement section (Figma redesign)
   Palette: cream #f5f1e8 / dark #2B2F35 — matches stepper + segmented tabs
   ────────────────────────────────────────────────────────── */
.formation-accom-card {
    border: 1px solid rgba(43, 47, 53, 0.2);
    background: #fff;
    overflow: hidden;
}
.formation-accom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.formation-accom-left {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.formation-accom-question {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    color: #2B2F35;
    margin: 0;
}
.formation-accom-help {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-style: normal;
    line-height: 140%;
    color: #2B2F35;
    margin: 0;
}
.formation-accom-checks {
    display: flex;
    gap: 36px;
    margin-top: 8px;
    align-items: center;
}
.formation-accom-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.formation-accom-check-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #2B2F35;
    background: transparent;
    transition: background-color 0.18s ease;
    flex-shrink: 0;
}
.formation-accom-check:has(:checked) .formation-accom-check-box {
    background: #2B2F35;
}
.formation-accom-check-label {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 16px;
    color: #2B2F35;
    line-height: 1;
}
.formation-accom-check input.sr-only:focus-visible ~ .formation-accom-check-box {
    outline: 2px solid #2B2F35;
    outline-offset: 3px;
}

.formation-accom-right {
    background: rgba(43, 47, 53, 0.05);
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.formation-accom-right.hidden {
    display: none;
}
.formation-accom-types-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.formation-accom-type {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}
.formation-accom-type-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #2B2F35;
    background: transparent;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s ease;
}
.formation-accom-type:has(:checked) .formation-accom-type-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #2B2F35;
    border-radius: 50%;
}
.formation-accom-type-name {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #2B2F35;
    transition: font-weight 0.18s ease;
}
.formation-accom-type:has(:checked) .formation-accom-type-name {
    font-weight: 700;
}
.formation-accom-type input.sr-only:focus-visible ~ .formation-accom-type-radio {
    outline: 2px solid #2B2F35;
    outline-offset: 3px;
}
.formation-accom-divider {
    border: 0;
    border-top: 1px solid rgba(43, 47, 53, 0.2);
    margin: 4px 0 0;
}
.formation-accom-more {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 16px;
    color: #2B2F35;
    text-decoration: underline;
    text-underline-offset: 3px;
    align-self: flex-start;
}
.formation-accom-more:hover {
    color: #2B2F35;
    opacity: 0.7;
}
.formation-accom-contact {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 15px;
    color: #2B2F35;
    margin: 0;
}

/* Notes / dietary card under Hébergement */
.formation-notes-card {
    border: 1px solid rgba(43, 47, 53, 0.2);
    background: #fff;
    padding: 32px 40px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.formation-notes-label {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: #2B2F35;
}
.formation-notes-textarea {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2B2F35;
    background: #f5f1e8;
    border: 0;
    padding: 18px 20px;
    min-height: 160px;
    resize: vertical;
    width: 100%;
}
.formation-notes-textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}
.formation-notes-textarea:focus {
    outline: 2px solid #2B2F35;
    outline-offset: -2px;
}

@media (max-width: 768px) {
    .formation-accom-grid {
        grid-template-columns: 1fr;
    }
    .formation-accom-left,
    .formation-accom-right {
        padding: 24px;
    }
    .formation-accom-question {
        font-size: 16px;
    }
    .formation-notes-card {
        padding: 22px 20px;
    }
    .formation-notes-label {
        font-size: 16px;
    }
}

/* ──────────────────────────────────────────────────────────
   Questionnaire modal — Figma node 5768:10510
   White card, 734px content area + 60/50 padding, divider under title.
   Radios (single): row layout, round box with center dot when checked.
   Checkboxes (multiple): column, 16px square box, filled when checked.
   Text inputs: underline only (no fill).
   ────────────────────────────────────────────────────────── */
.questionnaire-modal { width: 854px; max-width: calc(100vw - 32px); }
.questionnaire-modal .apprenant-modal-inner { padding: 50px 60px; }
.questionnaire-modal .apprenant-modal-header { margin-bottom: 40px; }
.questionnaire-modal .apprenant-modal-title { margin: 0 0 30px; }
.questionnaire-modal .apprenant-modal-separator { background: rgba(43, 47, 53, 0.15); }

.questionnaire-questions {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.questionnaire-q {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.questionnaire-q-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #2B2F35;
    margin: 0;
}

/* Options wrapper — single (radio) is row, multiple (checkbox) is column */
.questionnaire-q-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.questionnaire-q[data-question-type="single"] .questionnaire-q-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.questionnaire-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.questionnaire-option-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #2B2F35;
}
.questionnaire-option:has(:checked) .questionnaire-option-label { font-weight: 500; }

/* Default (multiple/checkbox) — square box, fills with dark when checked */
.questionnaire-option-box {
    width: 16px;
    height: 16px;
    border: 1px solid #2B2F35;
    background: transparent;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.18s ease;
}
.questionnaire-q[data-question-type="multiple"] .questionnaire-option:has(:checked) .questionnaire-option-box {
    background: #2B2F35;
}
.questionnaire-q[data-question-type="multiple"] .questionnaire-option:has(:checked) .questionnaire-option-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Single (radio) — round box with inner dot when checked */
.questionnaire-q[data-question-type="single"] .questionnaire-option-box {
    border-radius: 50%;
}
.questionnaire-q[data-question-type="single"] .questionnaire-option:has(:checked) .questionnaire-option-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #2B2F35;
}

.questionnaire-option input.sr-only:focus-visible ~ .questionnaire-option-box {
    outline: 2px solid #2B2F35;
    outline-offset: 3px;
}

/* Text inputs — underline-only style */
.questionnaire-text-input {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #2B2F35;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(43, 47, 53, 0.2);
    padding: 0 0 10px 0;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.questionnaire-text-input::placeholder {
    color: #2B2F35;
    opacity: 0.5;
}
.questionnaire-text-input:focus {
    border-bottom-color: #2B2F35;
}

/* Select — keep filled style for clear chevron affordance */
.questionnaire-select {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: #2B2F35;
    background: rgba(43, 47, 53, 0.05);
    border: 0;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232B2F35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}
.questionnaire-select:focus {
    outline: 2px solid #2B2F35;
    outline-offset: -2px;
}

.questionnaire-submit {
    margin-top: 40px;
    width: 100%;
    padding: 20px;
    background: #2B2F35;
    color: #fff;
    border: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.questionnaire-submit:hover { opacity: 0.9; }
.questionnaire-submit:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 850px) {
    .questionnaire-modal .apprenant-modal-inner { padding: 30px 24px; }
    .questionnaire-questions { gap: 36px; }
}
@media (max-width: 639px) {
    .questionnaire-q-label { font-size: 18px; }
    .questionnaire-option-label { font-size: 16px; }
    .questionnaire-text-input,
    .questionnaire-select { font-size: 16px; }
    .questionnaire-submit { padding: 18px; }
}

/* ──────────────────────────────────────────────────────────
   Profile → "Mes formations" tab — Figma nodes 3768:12578 / 4160:12622 / 12146:11848
   Per-formation-item cards with progressive expansion:
     1. Collapsed: title + dates + apprenant + plus toggle
     2. Expanded: order details (services / payment / hébergement / prix / receipt)
     3. Further expanded: apprenant personal info sub-card (cream bg)
   Past formations get opacity-50 on dates + apprenant section.
   ────────────────────────────────────────────────────────── */
.pf-formations-tab { gap: 60px; }
.pf-formations-section { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.pf-formations-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #2B2F35;
    text-transform: uppercase;
    margin: 0;
}
.pf-formations-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.pf-formation-card {
    border: 1px solid #E6D5B6;
    background: #fff;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
}
.pf-formation-card.is-past { border-color: rgba(43, 47, 53, 0.2); }

/* Header: title + dates + plus toggle */
.pf-formation-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}
.pf-formation-head-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}
.pf-formation-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #2B2F35;
    flex-wrap: wrap;
}
.pf-formation-card.is-past .pf-formation-dates { opacity: 0.5; }
.pf-formation-cal { flex-shrink: 0; }
.pf-formation-date-u { text-decoration: underline; white-space: nowrap; }

/* Plus / minus toggle (top-right) — drawn as two crossing lines so we can hide one when expanded */
.pf-formation-toggle {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}
.pf-formation-toggle-h, .pf-formation-toggle-v {
    position: absolute;
    background: #2B2F35;
    transition: opacity 0.15s ease;
}
.pf-formation-toggle-h { left: 1px; right: 1px; top: 50%; height: 1.5px; transform: translateY(-50%); }
.pf-formation-toggle-v { top: 1px; bottom: 1px; left: 50%; width: 1.5px; transform: translateX(-50%); }
.pf-formation-toggle[aria-expanded="true"] .pf-formation-toggle-v { opacity: 0; }

/* Body — hidden until toggled */
.pf-formation-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
    width: 100%;
}
.pf-formation-body[hidden] { display: none; }

/* Apprenant header row inside body */
.pf-formation-apprenant-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6D5B6;
    width: 100%;
}
.pf-formation-card.is-past .pf-formation-apprenant-row { opacity: 0.5; }
.pf-formation-apprenant-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #2B2F35;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.2;
}
.pf-formation-chevron {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
    flex-shrink: 0;
}
.pf-formation-chevron[aria-expanded="true"] { transform: rotate(180deg); }

/* Apprenant personal-info sub-card (cream bg) */
.pf-formation-apprenant-card {
    background: rgba(230, 213, 182, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}
.pf-formation-apprenant-card[hidden] { display: none; }
.pf-formation-sub-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.pf-formation-sub-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #2B2F35;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6D5B6;
    margin: 0;
}
.pf-formation-grid { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.pf-formation-grid-row { display: flex; gap: 20px; align-items: flex-start; width: 100%; }
.pf-formation-grid-cell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pf-formation-grid-cell--full { flex: 1 1 100%; }
.pf-formation-grid-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.32px;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-grid-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.32px;
    color: #2B2F35;
    opacity: 0.7;
    margin: 0 0 10px 0;
}

/* Body sections (Details / Services / Date+Paiement / Hébergement) — all share the underlined separator */
.pf-formation-section {
    padding: 20px 0;
    border-bottom: 1px solid #E6D5B6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.pf-formation-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-detail-row {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #2B2F35;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.pf-formation-pipe { color: #E6D5B6; }
.pf-formation-services {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-dash { color: #2B2F35; padding: 0 4px; }

.pf-formation-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.pf-formation-meta-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hébergement sub-block */
.pf-formation-heberg { gap: 10px; }
.pf-formation-heberg-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-heberg-line {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -0.32px;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-heberg-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    color: #2B2F35;
    opacity: 0.6;
    margin: 0;
}
.pf-formation-heberg-note svg { flex-shrink: 0; margin-top: 2px; }

/* Price bar (cream bg, between sections and contact) */
.pf-formation-price-bar {
    background: #F6F5EA;
    padding: 10px 10px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}
.pf-formation-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: #2B2F35;
    margin: 0;
}
.pf-formation-receipt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(43, 47, 53, 0.2);
    background: #fff;
    color: #2B2F35;
    padding: 8px 14px 8px 10px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
}
.pf-formation-receipt:hover { background: #fafaf3; }

.pf-formation-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    color: #2B2F35;
}
.pf-formation-contact a { color: #2B2F35; text-decoration: underline; }

@media (max-width: 700px) {
    .pf-formation-card { padding: 16px 18px; }
    .pf-formation-grid-row { flex-direction: column; gap: 16px; }
    .pf-formation-meta { flex-direction: column; gap: 16px; }
    .pf-formation-price-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; }
    .pf-formation-receipt { justify-content: center; }
}

/* ──────────────────────────────────────────────────────────
   Profile page — GSAP / IntersectionObserver entrance + scroll reveal
   See initProfileEntrance / initProfileScrollReveal / initProfileSectionReveal
   in navigation.js. Initial states scoped via :not(.pf-anim-revealed) so
   they don't override the existing .pf-formation-card layout rules.
   ────────────────────────────────────────────────────────── */
.pf-formation-card {
    transition: opacity 0.55s cubic-bezier(.2,.7,.2,1), transform 0.55s cubic-bezier(.2,.7,.2,1);
}
.pf-formations-list .pf-formation-card:not(.pf-anim-revealed) {
    opacity: 0;
    transform: translateY(30px);
}
.pf-formation-card.pf-anim-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.pf-formations-section-title:not(.pf-anim-revealed) {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.pf-formations-section-title.pf-anim-revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
/* Utility: hide pre-JS to avoid FOUC (apply via JS at startup if needed). */
.pf-anim-init { opacity: 0; }

/* ── Hover micro-interactions on formation cards (Figma feel: subtle lift + warmer border) ── */
.pf-formation-card {
    transition:
        opacity 0.55s cubic-bezier(.2,.7,.2,1),
        transform 0.55s cubic-bezier(.2,.7,.2,1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    will-change: transform;
}
.pf-formation-card.pf-anim-revealed:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -8px rgba(43, 47, 53, 0.18);
    border-color: #d8c39c;
}
.pf-formation-card.is-past.pf-anim-revealed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -10px rgba(43, 47, 53, 0.12);
}
/* Toggle pop on hover + accessible focus ring */
.pf-formation-toggle { transition: transform 0.18s ease; }
.pf-formation-toggle:hover { transform: scale(1.08); }
.pf-formation-toggle:focus-visible,
.pf-formation-chevron:focus-visible {
    outline: 2px solid #2B2F35;
    outline-offset: 4px;
}
/* Chevron CSS fallback transition (GSAP overrides when present) */
.pf-formation-chevron { transition: transform 0.3s cubic-bezier(.2,.7,.2,1); }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .pf-formations-list .pf-formation-card,
    .pf-formations-section-title {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pf-formation-card:hover { transform: none !important; box-shadow: none !important; }
}

/* ===========================================================
 * Profile Apprenants — animation polish (GSAP-driven panels;
 * these rules cover the CSS fallbacks + hover/focus affordances).
 * =========================================================== */
.pf-apprenant-item {
    transition: border-color 0.25s ease;
}
.pf-apprenant-item:hover {
    border-color: #d8c39c;
}
/* Chevron CSS fallback transition (GSAP overrides when present) */
.pf-apprenant-chevron {
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.pf-apprenant-chevron:focus-visible {
    outline: 2px solid #2B2F35;
    outline-offset: 4px;
}
/* Success/error flash on apprenant cards (delete confirmation, etc.) */
@keyframes pfApprenantFlashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pf-success-msg,
.pf-apprenant-success-banner,
.pf-apprenant-error-banner {
    animation: pfApprenantFlashIn 0.35s cubic-bezier(.2,.7,.2,1) both;
}

/* Respect prefers-reduced-motion for apprenant animations */
@media (prefers-reduced-motion: reduce) {
    .pf-apprenant-item,
    .pf-apprenant-chevron,
    .pf-apprenant-body,
    .pf-view-mode,
    .pf-edit-mode,
    .pf-delete-banner,
    .pf-add-form,
    .pf-success-msg,
    .pf-apprenant-success-banner,
    .pf-apprenant-error-banner {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    .pf-apprenant-item:hover { border-color: inherit; }
}

/* ── Profile form polish (Informations + Confidentialité tabs) ── */
/* Input focus state — smooth border + background on .form-input */
.flex.flex-col input.form-input,
.flex.flex-col input[type="text"]:not(.questionnaire-text-input):not([disabled]),
.flex.flex-col input[type="email"]:not([disabled]),
.flex.flex-col input[type="tel"]:not([disabled]),
.flex.flex-col input[type="password"]:not([disabled]) {
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}
.flex.flex-col input:focus,
.flex.flex-col textarea:focus {
    background-color: rgba(43, 47, 53, 0.02);
}
/* Civilité hover scale */
.civilite-option {
    transition: transform 0.18s ease, background-color 0.18s ease;
}
.civilite-option:hover { transform: scale(1.02); }
/* Submit button hover lift */
form button[type="submit"] {
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.2s ease;
}
form button[type="submit"]:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(43, 47, 53, 0.25);
}
form button[type="submit"]:not(:disabled):active {
    transform: translateY(0);
    box-shadow: none;
}
/* Form flash message slide-in */
@keyframes pfFormFlashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.info-flash-error,
.info-flash-success,
.cavilam-flash,
.cavilam-flash-success,
.cavilam-flash-error,
.profile-flash-success,
.profile-flash-error {
    animation: pfFormFlashIn 0.4s cubic-bezier(.2,.7,.2,1) both;
}
/* Form row scroll-reveal */
.pf-form-row[data-pf-anim-row]:not(.pf-anim-revealed) {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pf-form-row[data-pf-anim-row].pf-anim-revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    form button[type="submit"]:hover,
    .civilite-option:hover { transform: none !important; }
    .info-flash-error, .info-flash-success, .cavilam-flash,
    .cavilam-flash-success, .cavilam-flash-error,
    .profile-flash-success, .profile-flash-error,
    .pf-form-row[data-pf-anim-row]:not(.pf-anim-revealed) {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ──────────────────────────────────────────────────────────────────────
 * Master-formation CTA & calendar modes (introduced in 2.12.0)
 * Triggered by post meta: _no_purchase, _calendar_summer_only,
 * _calendar_two_years on `formation` posts (e.g. Master 1, Master 2).
 * ────────────────────────────────────────────────────────────────────── */

/* Download CTA — visually identical to .atc-btn, navigates instead of
   triggering the JS cart-add handler. Anchor element so default browser
   navigation handles the download/new tab. */
.atc-btn-download {
    text-decoration: none;
    color: #fff;
}
.atc-btn-download:hover {
    background-color: #1a1d22;
    color: #fff;
    text-decoration: none;
}
.atc-btn-download:focus {
    outline: none;
    color: #fff;
}
.atc-btn-download-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* summer-only: dim every day cell rendered in a month outside June..September.
   The block click handler already returns early when `data-calendar-mode` is set
   and the current month is off-season, so this is purely visual. */
.datepicker-off-season {
    opacity: 0.35;
    cursor: default;
}
.datepicker-summer-only .datepicker-off-season:hover {
    background: transparent;
}

/* two-years: highlight the 2x 4-week blocks (sourced from CRM session start
   dates). Soft cream background so users see "this is when you'll be in Vichy". */
.datepicker-two-years-block {
    background-color: #F6F5EA;
}
/* When the same cell is also a selectable start, keep the available-style
   contrast on top of the cream block. */
.datepicker-two-years .datepicker-available.datepicker-two-years-block {
    background-color: #F6F5EA;
}

/* readonly: passive viewer — no hover affordance, no pointer cursor. The
   click handler is already short-circuited in JS. */
.datepicker-readonly .datepicker-day {
    cursor: default;
}
.datepicker-readonly .datepicker-day:hover {
    background: transparent;
}
.datepicker-readonly .datepicker-day.datepicker-available:hover,
.datepicker-readonly .datepicker-day.datepicker-start:hover {
    background-color: inherit;
}

/* ──────────────────────────────────────────────────────────
   Formation extra content (post_content rendered after the section template).
   Used on Master pages for Cours/Crédits + Tarif breakdown the editor enters
   as rich text. Harmonizes with surrounding Space Grotesk + cream borders.
   ────────────────────────────────────────────────────────── */
.formation-extra-content {
    font-family: 'Space Grotesk', sans-serif;
    color: #2B2F35;
    line-height: 1.55;
}
.formation-extra-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #2B2F35;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6D5B6;
}
.formation-extra-content h2:first-child { margin-top: 0; }
.formation-extra-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #2B2F35;
    margin: 24px 0 12px;
}
.formation-extra-content p {
    font-size: 18px;
    line-height: 1.55;
    color: #2B2F35;
    margin: 0 0 12px;
}
.formation-extra-content p strong { font-weight: 500; }
.formation-extra-content ul,
.formation-extra-content ol {
    margin: 0 0 16px 0;
    padding-left: 22px;
    list-style: disc;
}
.formation-extra-content ol { list-style: decimal; }
.formation-extra-content li {
    font-size: 18px;
    line-height: 1.55;
    color: #2B2F35;
    margin: 4px 0;
}
.formation-extra-content a {
    color: #2B2F35;
    text-decoration: underline;
}
.formation-extra-content a:hover { color: #E40521; }
@media (max-width: 700px) {
    .formation-extra-content h2 { font-size: 22px; }
    .formation-extra-content h3 { font-size: 18px; }
    .formation-extra-content p,
    .formation-extra-content li { font-size: 16px; }
}
