* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #f0f0f0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.lbja-header {
    background: #fff;
    padding: 16px 32px;
}
.lbja-main {
    padding: 10px 20px;
}
.lbja-page-title {
    text-align: center;
    margin-bottom: 32px;
    color: #1a1a1a;
}
.lbja-page-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.lbja-page-title p {
    font-size: 1rem;
}
.lbja-card {
    width: 100%;
    max-width: 1400px;
    min-height: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.lbja-card-image {
    width: 35%;
    background: url("../../../common/images/visuel/loxam-lbja-left-banner-avril-mai-2026.jpg") center/cover no-repeat;
    min-height: 450px;
}
.lbja-card-form {
    flex: 1;
    padding: 32px 40px 0px 40px;
}
/* ---- Panel form ---- */
.lbja-form-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.lbja-form-subtitle {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.lbja-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 24px;
}
.lbja-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.lbja-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lbja-form-group label {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 6px;
}
.lbja-form-group input[type="text"],
.lbja-form-group input[type="email"],
.lbja-form-group input[type="tel"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}
.lbja-form-group input:focus {
    border-color: #E30613;
}
.lbja-form-group input.is-invalid {
    border-color: #E30613;
}
.lbja-field-error {
    color: #E30613;
    font-size: 0.78rem;
    margin-top: 4px;
}
.lbja-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.first {
    margin-top: 50px;
}
.lbja-checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.lbja-checkbox-group label {
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
}
.lbja-checkbox-group a {
    color: #333;
}
.lbja-checkbox-error {
    color: #E30613;
    font-size: 0.78rem;
    margin-top: -14px;
    margin-bottom: 14px;
}
.lbja-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 70px 0 95px 0;
}
/* Bouton "Vos dotations" outline */
.lbja-btn-dotations {
    background: #fff;
    border: 1.5px solid #222;
    border-radius: 25px;
    padding: 12px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #222;
}
.lbja-btn-dotations:hover {
    background: #f5f5f5;
}
.lbja-btn-submit {
    background: #F62D40;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
}
.lbja-btn-submit:hover {
    background: #c0000f;
}
.lbja-global-error {
    background: #fff0f0;
    border: 1px solid #F62D40;
    border-radius: 6px;
    color: #E30613;
    font-size: 0.875rem;
    padding: 10px 14px;
    margin-bottom: 16px;
}
/* ---- Panel form (hidden by default, shown after dotations step) ---- */
#panel-form {
    display: none;
}
/* ---- Panel dotations ---- */
#panel-dotations {
    display: none;
}
.lbja-link-back {
    color: #F62D40;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}
.lbja-link-back:hover {
    text-decoration: underline;
}
.lbja-dotations-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.4;
}
.lbja-paliers {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
}
.lbja-palier {
    height: 16rem;
    width: 10rem;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 120px;
    background-color: #f4f4f4;
}
.lbja-hexagon {
    width: 120px;
    height: 100px;
    background: #F62D40;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
}
.lbja-palier-equal {
    font-size: 1.4rem;
    color: #F62D40;
    font-weight: 700;
}
.lbja-palier-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.lbja-bon {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.lbja-bon-logo {
    height: 16px;
}
.lbja-bon-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
}
.lbja-bon-label {
    font-weight: bolder;
    font-size: 1rem;
    color: #555;
    text-align: center;
}
.lbja-paliers-note {
    color: #F62D40;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 8px 0 28px;
    line-height: 1.5;
}
.lbja-dotations-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.lbja-dotations-footer {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.5;
}
/* ---- Comment ça marche ---- */
.lbja-comment-marche {
    display: flex;
    gap: 10rem;
}
.lbja-comment-marche-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.lbja-comment-marche-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lbja-comment-marche-steps li {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
}
.lbja-dotations-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}
.lbja-dotations-cadeaux {
    height: 180px;
    object-fit: contain;
}
/* ---- Panel succès ---- */
#panel-success {
    display: none;
}
.lbja-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 10rem 20px;
}
.lbja-success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}
.lbja-success-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.lbja-success-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 12px;
}
/* ---- Footer ---- */
.lbja-footer {
    padding: 24px 20px;
    text-align: center;
}
.lbja-footer-rgpd {
    font-size: 0.75rem;
    color: #888;
    max-width: 800px;
    margin: 25px 0 16px;
    line-height: 1.5;
}
.lbja-footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.lbja-footer-links a {
    font-size: 0.875rem;
    color: #555;
    text-decoration: none;
}
.lbja-footer-links a:hover {
    text-decoration: underline;
}

/* ---- Page mentions legales ---- */
.lbja-terms-main {
    padding-top: 28px;
    padding-bottom: 36px;
}
.lbja-terms-title {
    max-width: 920px;
    margin: 0 auto 26px;
}
.lbja-terms-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(246, 45, 64, 0.08);
    color: #d82335;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lbja-terms-shell {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.lbja-terms-aside {
    position: sticky;
    top: 24px;
    padding: 28px 24px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(246, 45, 64, 0.96) 0%, rgba(198, 0, 15, 0.96) 100%),
        url("../../../common/images/visuel/loxam-lbja-left-banner-avril-mai-2026.jpg") center/cover no-repeat;
    color: #fff;
    box-shadow: 0 18px 40px rgba(163, 12, 26, 0.18);
    overflow: hidden;
}
.lbja-terms-badge {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.lbja-terms-aside p {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}
.lbja-terms-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.lbja-terms-content {
    padding: 38px 42px 26px;
}
.lbja-terms-section + .lbja-terms-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #ececec;
}
.lbja-terms-section h3 {
    margin-bottom: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #171717;
}
.lbja-terms-section p,
.lbja-terms-section li {
    color: #484848;
    font-size: 1rem;
    line-height: 1.8;
}
.lbja-terms-section p + p {
    margin-top: 12px;
}
.lbja-terms-section ul {
    margin: 14px 0 0 22px;
}
.lbja-terms-section li + li {
    margin-top: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 1258px) {
    .lbja-card-image {
        display: none;
    }
}

@media (max-width: 1024px) {
    .lbja-comment-marche {
        gap: 2rem;
    }
    .lbja-form-actions {
        margin: 40px 0 50px 0;
    }
    .lbja-card-form {
        padding: 28px 28px 0 28px;
    }
    .lbja-card-image {
        display: none;
    }
    .lbja-paliers {
        gap: 11px;
    }
    .lbja-terms-shell {
        grid-template-columns: 1fr;
    }
    .lbja-terms-aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .lbja-main {
        padding: 10px 12px;
    }
    .lbja-page-title h1 {
        font-size: 1.6rem;
    }
    .lbja-page-title p {
        font-size: 0.9rem;
    }
    .lbja-card {
        flex-direction: column;
        border-radius: 15px;
        min-height: unset;
    }
    .lbja-card-image {
        display: none;
    }
    .lbja-card-form {
        padding: 20px 16px 0 16px;
    }
    .lbja-form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .lbja-form-group {
        margin-bottom: 16px;
    }
    .first {
        margin-top: 24px;
    }
    .lbja-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
        margin: 24px 0 32px 0;
    }
    .lbja-btn-dotations,
    .lbja-btn-submit {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .lbja-dotations-title {
        font-size: 1.2rem;
    }
    .lbja-paliers {
        gap: 12px;
        margin: 16px 0;
    }
    .lbja-palier {
        width: 8rem;
        height: 14rem;
        padding: 1rem;
    }
    .lbja-hexagon {
        width: 90px;
        height: 75px;
        font-size: 0.9rem;
    }
    .lbja-comment-marche {
        flex-direction: column;
        gap: 1rem;
        align-items: normal;
    }
    .lbja-dotations-cadeaux {
        height: 120px;
    }
    .lbja-success-content {
        padding: 3rem 16px;
        min-height: unset;
    }
    .lbja-footer-links {
        gap: 16px;
        flex-wrap: wrap;
    }
    .lbja-terms-main {
        padding-top: 12px;
        padding-bottom: 24px;
    }
    .lbja-terms-content {
        padding: 24px 18px 18px;
    }
    .lbja-terms-section + .lbja-terms-section {
        margin-top: 22px;
        padding-top: 22px;
    }
    .lbja-terms-section h3 {
        font-size: 1.02rem;
    }
    .lbja-terms-section p,
    .lbja-terms-section li {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .lbja-page-title {
        margin-bottom: 16px;
    }
    .lbja-page-title h1 {
        font-size: 1.3rem;
    }
    .lbja-card-image {
        display: none;            
    }
    .lbja-palier {
        width: 6.5rem;
        height: 13rem;
    }
    .lbja-hexagon {
        width: 75px;
        height: 62px;
        font-size: 0.78rem;
    }
    .lbja-bon-label {
        font-size: 0.85rem;
    }
}
