/* ==================================================
   LAYOUT GLOBAL
================================================== */

.onsa-wizard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 80px auto;
}


.onsa-wizard__themes h3 {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 25px;
}
/* ==================================================
   BOUTON : RETOUR
================================================== */


.onsa-back-button{
    background:#0b8ea2;
    color:#fff;
    border:none;
    border-radius:10px;

    min-height:58px;
    padding:18px 28px;

    font-weight:700;
    font-size:16px;

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

    width:100%;

    cursor:pointer;
    transition:.2s;
}


.onsa-back-button:hover {
    background: #087785;
    border-color: #087785;
}


/* ==================================================
   SOMMAIRE TYPE ARIANNE EN HAUT - SUMMARY
================================================== */

.onsa-wizard-summary {
    width: 100%;
    margin-bottom: 0px;
}

.onsa-wizard-topbar {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

.onsa-step {
    font-size: 20px;
    font-weight: 600;
    color: #2f3747;
    margin: 0;
}

.onsa-breadcrumb-track {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: nowrap;
}

.onsa-breadcrumb-step {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: .45;
    transition: all .25s ease;
}

.onsa-breadcrumb-step.is-current {
    opacity: 1;
}

.onsa-breadcrumb-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #d8dde5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #008b95;
    flex-shrink: 0;
}

.onsa-breadcrumb-step.is-current .onsa-breadcrumb-number {
    background: #008b95;
    color: white;
    border-color: #008b95;
}

.onsa-breadcrumb-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.onsa-breadcrumb-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8d8d8d;
}

.onsa-breadcrumb-step strong {
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
}

.onsa-breadcrumb-step.is-current strong {
    color: #008b95;
}

.onsa-breadcrumb-sep {
    font-size: 34px;
    color: #d0d4db;
}


.onsa-wizard-summary-inner {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.onsa-summary-block {
    flex: 1;
    min-width: 220px;
}

.onsa-wizard-summary h3 {
    margin-bottom: 25px;
    font-size: 24px;
}



.onsa-wizard-summary-inner {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.onsa-mobile-request-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 8px;
}

.onsa-mobile-request-title,
.onsa-mobile-request-value {
    margin: 0;
    min-height: 0;
}

/* ==================================================
   SEARCH
================================================== */


.onsa-wizard-search-global {
    margin: 30px 0 40px;
}

.onsa-wizard-search-global input {
    width: 100%;
    max-width: 480px;
    padding: 16px 18px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    font-size: 15px;
}



/* ==================================================
   ETAPES
================================================== */

.onsa-summary-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.onsa-summary-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #6d7682;
}

.onsa-summary-steps li span {
    width: 28px;
    height: 28px;
    border: 1px solid #dbe2ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onsa-summary-steps li.is-current {
    font-weight: 600;
    color: #111827;
}

.onsa-summary-steps li.is-current span {
    border-color: #008b95;
}

/* ==================================================
   RECAP
================================================== */

.onsa-summary-steps li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.onsa-step-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.onsa-summary-steps small {
    margin-left: 42px;
    color: #6d7682;
    font-size: 13px;
    line-height: 1.4;
}


.onsa-next-button[disabled] {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================================================
   WIZARD DROITE
================================================== */

.onsa-wizard {
    width: 100%;
}

.onsa-wizard__header {
    margin-bottom: 30px;
}

.onsa-wizard__header h2 {
    margin-bottom: 12px;
}

/* ==================================================
   GRILLES
================================================== */

.onsa-wizard__themes,
.onsa-subtheme-grid,
.onsa-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 220px);
    gap: 24px;
    justify-content: start;
}

/* ==================================================
   CARDS
================================================== */

.onsa-theme-card,
.onsa-subtheme-card,
.onsa-detail-card {
    width: 100%;
    min-height: 170px;
    border: 1px solid #dbe2ea;
    border-radius: 18px;
    background: #fff;
    padding: 24px 18px;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.onsa-theme-card:hover,
.onsa-subtheme-card:hover,
.onsa-detail-card:hover {
    transform: translateY(-2px);
}


.onsa-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onsa-card-icon img,
.onsa-card-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==================================================
   FORM
================================================== */

.onsa-wizard__form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.onsa-wizard__form input,
.onsa-wizard__form textarea,
.onsa-wizard__form select {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    padding: 14px;
}


.onsa-theme-card.is-selected,
.onsa-subtheme-card.is-selected,
.onsa-detail-card.is-selected {
    background: #fff7f1;
    border-color: #ef7d57;
    color: #ef7d57;
    font-weight: 600;
}


/* ==================================================
   TYPOGRAPHIE
================================================== */
.onsa-wizard-stage h3 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.onsa-wizard-stage p {
    font-size: 17px;
    line-height: 1.6;
    color: #5f6368;
}

.onsa-theme-title,
.onsa-subtheme-card span,
.onsa-detail-card span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    max-width: 180px;
}



/* ==================================================
   ANIMATION SLIDE
================================================== */

.onsa-wizard-stage {
    position: relative;
    overflow: hidden;
    transition: height .25s ease;
}


.onsa-step-panel,
.onsa-wizard__themes {
    width: 100%;
    display: none;
    animation-duration: .35s;
    animation-fill-mode: both;
}

.onsa-wizard__themes {
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    gap: 28px;
}

.onsa-step-panel.is-active,
.onsa-wizard__themes.is-active {
    display: block;
}

.onsa-wizard__themes.is-active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.slide-in-right {
    animation-name: slideInRight;
}

.slide-in-left {
    animation-name: slideInLeft;
}


.onsa-step-actions{
    margin-top:32px;
    display:flex;
    gap:12px;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===============================
   STEP 4 MODERN FORM
================================ */

.onsa-modern-form {
    width: 100%;
    max-width: 1200px;
}

.onsa-modern-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.1;
}

.onsa-form-selection {
    font-size: 20px;
    color: #707070;
    margin-bottom: 40px;
}

.onsa-form-selection strong {
    color: #0b8ea2;
}

.onsa-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 30px;
}

.onsa-form-group {
    display: flex;
    flex-direction: column;
}

.onsa-form-full {
    width: 100%;
    margin-bottom: 30px;
}

.onsa-modern-form label {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #02797e;
    letter-spacing: 0;
    font-variant: normal;
    text-transform: none;
    line-height: 1.4;
}

.onsa-modern-form input,
.onsa-modern-form select,
.onsa-modern-form textarea {
    width: 100%;
    min-height: 58px;
    border: 1px solid #d8dde3;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 1.15em;
    transition: all .2s ease;
    background: #fff;
}

.onsa-modern-form textarea {
    min-height: 140px;
    resize: vertical;
}

.onsa-modern-form input:focus,
.onsa-modern-form select:focus,
.onsa-modern-form textarea:focus {
    outline: none;
    border-color: #0b8ea2;
    box-shadow: 0 0 0 4px rgba(11,142,162,.12);
}

.onsa-modern-form small {
    margin-top: 8px;
    font-size: 14px;
    color: #8f8f8f;
}

.onsa-form-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 40px 0;
}

.onsa-form-actions {
    display: flex;
    gap: 18px;
    margin-top: 45px;
    align-items: stretch;
}

.onsa-form-actions > * {
    flex: 1 1 0;
    min-height: 58px;

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

    box-sizing: border-box;
}

.onsa-submit-button,
.onsa-submit-button {
    background: #0b8ea2;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 18px 28px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all .2s ease;
}

.onsa-submit-button:hover {
    background: #087785;
}

/* Responsive */

@media (max-width: 900px) {

    .onsa-modern-form h3 {
        font-size: 34px;
    }

    .onsa-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .onsa-form-actions {
        flex-direction: column;
    }

    .onsa-submit-button,
    .onsa-back-button {
        width: 100%;
    }
}


/* ==========================
   SEARCH RESULTS
========================== */

.onsa-search-results {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.onsa-search-result {
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid #dfe5ea;
    padding: 16px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 15px;
    font-weight: 600;
}

.onsa-search-result:hover {
    border-color: #0b8ea2;
    background: #f4fbfc;
}

.onsa-search-empty {
    padding: 14px 16px;
    color: #7a7a7a;
    font-size: 14px;
}

/* ==========================
   BLOCKS
========================== */

.onsa-search-block,
.onsa-deposit-block {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 22px;
    padding: 34px;
    margin-bottom: 30px;
}

.onsa-block-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
    margin-top: 20px;
}

.onsa-block-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.onsa-block-text h2 {
    text-transform: uppercase;
    margin: 0 0 6px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
}

.onsa-block-text p {
    margin: 0;
    font-size: 17px;
    color: #6b7280;
    line-height: 1.5;
}

.onsa-search-helper {
    margin-top: 16px;
    background: #f7fafb;
    border-radius: 12px;
    font-size: 15px;
    color: #555;
}

.onsa-wizard-shell {
    display: flex;
    align-items: flex-start;
    gap: 24px; /* réduit l’espace */
}

.onsa-deposit-block {
    flex: 1.65;
    min-width: 0;
}

.onsa-search-block {
    flex: 1;
    min-width: 340px;
    position: sticky;
    top: 30px;
}


.onsa-quartier-help {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
}

.onsa-quartier-help a {
    font-weight: 600;
    text-decoration: underline;
}

.onsa-map-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    padding: 40px;
}

.onsa-map-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.onsa-map-modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 14px;
    max-width: 1000px;
    width: 100%;
}

.onsa-map-modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.onsa-map-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

/* tablette + mobile */
@media (max-width: 1200px) {
    .onsa-wizard-shell {
        flex-direction: column;
        gap: 28px;
    }

    .onsa-deposit-block,
    .onsa-search-block {
        width: 100%;
        min-width: 100%;
    }

    .onsa-search-block {
        position: static;
    }
}

.onsa-card-text{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.onsa-theme-subtitle{
    margin-top:6px;
    font-size:.82rem;
    line-height:1.3;
    color:#6b7280 !important;
    text-align:center;
}


/* ======================================================================================================================================
   RESPONSIVE MOBILE
====================================================================================================================================== */

.onsa-breadcrumb-mobile{
    display:none;
}

@media (max-width:768px){

    /* ---------- Layout ---------- */

    .onsa-breadcrumb-track{
        display:none;
    }

    .onsa-breadcrumb-mobile{
        display:block;
    }

    .onsa-deposit-block,
    .onsa-search-block{
        padding:48px 24px 24px;
    }

    /* ---------- Header ---------- */

    .onsa-block-head{
        gap:14px;
        margin-bottom:22px;
    }

    .onsa-block-icon{
        width:42px;
        height:42px;
        font-size:20px;
    }

    .onsa-block-text h2{
        font-size:1.2rem;
        line-height:1.15;
        margin:0 0 8px;

    }

    .onsa-block-text p{
        font-size:1rem;
        line-height:1.45;
    }

    /* ---------- Breadcrumb ---------- */

    .onsa-mobile-progress{
        display:flex;
        align-items:center;
        gap:12px;
        margin:20px 0;
    }

    .onsa-mobile-progress span{
        flex:1;
        height:8px;
        border-radius:20px;
        background:#dfe5ea;
    }

    .onsa-mobile-progress span.is-current{
        background:#008b95;
    }

    .onsa-mobile-label{
        font-size:13px;
        text-transform:uppercase;
        color:#888;
        margin-bottom:6px;
    }

    .onsa-mobile-value{
        font-size:22px;
        font-weight:700;
        color:#008b95;
    }


    /* Cartes mobile */

    .onsa-wizard__themes,
    .onsa-subtheme-grid,
    .onsa-detail-grid{

        display:grid;
        grid-template-columns:1fr;
        justify-items:center;
        gap:18px;
    }



    .onsa-theme-card,
    .onsa-subtheme-card,
    .onsa-detail-card{

        width:100%;
        max-width:240px;
        min-height:150px;
    }



        .onsa-theme-title,
        .onsa-subtheme-card span,
        .onsa-detail-card span{
            max-width:160px;
        }

    /* ---------- Titres ---------- */

    .onsa-step{
        font-size:1.2rem;
        margin-bottom:0;
    }

    .onsa-step-panel h3{
        font-size:1.25rem;
        line-height:1.2;
        margin-bottom:16px;
    }


    .onsa-step-actions{

        flex-direction:column;
    }

    .onsa-step-actions .onsa-back-button,
    .onsa-step-actions .onsa-submit-button{

        width:100%;
        min-height:58px;
    }

    /* ===== Bloc Search mobile ===== */

    .onsa-search-input{
        width:100%;
        box-sizing:border-box;
    }

    .onsa-search-results{

        width:100%;
        box-sizing:border-box;
    }

    .onsa-search-result{

        white-space:normal;
        word-break:break-word;
        overflow-wrap:anywhere;
        line-height:1.4;
        padding:12px 14px;
    }


    .onsa-mobile-request-summary{
        margin-top:6px;
        margin-bottom:6px;
    }

    .onsa-mobile-request-title{
        margin-bottom:2px;
        font-size:.9rem;
    }

    .onsa-mobile-request-value{
        font-size:.95rem;
        line-height:1.35;
        min-height:20px;
    }

    .onsa-wizard-stage{
        margin-top:4px;
        transition:height .25s ease;
    }


    .onsa-wizard-summary{
        margin-bottom:5px;
    }

    .onsa-wizard-topbar{
        gap:12px;
        padding-bottom:18px;
    }




    /* ======================================================================================================================================
       Ajustemeent page Mes NOTIFICATIONS - Ultimate Members
    ====================================================================================================================================== */

    div.uimob500 .um-profile-body{
          padding-left:16px !important;
          padding-right:16px !important;
      }

}

/* =========================================
   INFORMATION — ACTION BÉNÉVOLE ET GRATUITE
   ========================================= */

.onsa-free-info {
      width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    box-sizing: border-box;

    background: #f0fafb;
    border: 1px solid #1197a8;
    border-radius: 12px;

    color: #29343a;
}


/* Petit pictogramme */

.onsa-free-info-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

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

    border-radius: 50%;
    background: #e2f5f7;
    border: 1px solid #c7e9ec;

    color: #078c9d;
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
}


/* Texte */

.onsa-free-info-content {
    display: flex;
    align-items: baseline;
    gap: 8px;

    font-size: 16px;
    line-height: 1.5;
}

.onsa-free-info-content strong {
    color: #078c9d;
    font-weight: 700;
}

.onsa-free-info-content span {
    color: #29343a;
    font-weight: 400;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .onsa-free-info {
          width: 100%;
          max-width: none;
          margin: 30px 0 32px;
        gap: 12px;

        text-align: left;
    }

    .onsa-free-info-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;

        font-size: 24px;
    }

    .onsa-free-info-content {
        display: block;
        font-size: 14px;
    }

    .onsa-free-info-content strong {
        display: block;
        margin-bottom: 2px;
    }

}


/* =========================================
   CONDITIONS D'ACCÈS — BANDEAU SUPÉRIEUR
   ========================================= */

   .onsa-eligibility-info {
       width: 100%;
       max-width: none;

       margin: 30px 0 38px;
       padding: 20px 26px;

       display: flex;
       align-items: center;
       gap: 18px;

       box-sizing: border-box;

       /* Important : le bandeau doit occuper toute la largeur de la grille */
       grid-column: 1 / -1;

       background: #fff9ed;
       border: 1px solid #f1dfb8;
       border-radius: 12px;

       box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);

       color: #29343a;
   }

/* Pictogramme information */

.onsa-eligibility-info-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

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

    border-radius: 50%;
    background: #fff0c9;
    border: 1px solid #f1dfb8;

    color: #c58b22;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}


/* Contenu */

.onsa-eligibility-info-content {
    flex: 1;
    min-width: 0;

    color: #344047;
}


/* Phrase introductive */

.onsa-eligibility-title {
    margin: 0 0 12px;

    color: #29343a;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}


/* Conditions */

.onsa-eligibility-conditions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 36px;
}


.onsa-eligibility-conditions span {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #344047;

    font-size: 15px;
    line-height: 1.4;
}


.onsa-eligibility-conditions strong {
    color: #078c9d;
    font-size: 17px;
}


/* =========================================
   MOBILE
   ========================================= */

   @media (max-width: 600px) {

       .onsa-eligibility-info {
           width: 100%;
           margin: 24px 0 30px;
           padding: 16px 18px;
           gap: 12px;
       }

    .onsa-eligibility-info-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;

        font-size: 20px;
    }

    .onsa-eligibility-info-content {
        flex: 1;
        min-width: 0;
    }

    .onsa-eligibility-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .onsa-eligibility-conditions {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .onsa-eligibility-conditions span {
        font-size: 14px;
    }

}
