/* ========================================
   Wizard "Trouver mon restaurant"
   ======================================== */

.wizard-intro {
    margin: 0 0 25px;
}
.wizard-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    max-width: 700px;
    margin: 0;
}

.wizard-intro-centered{
    background: #f9f9f9;
    padding: 40px 20px;
    margin-top:-20px;
    margin-bottom:35px;
}

.wizard-intro-centered h2{
    margin-top:0;
}

.wizard-intro-centered p {
    font-size: 17px;
    line-height: 23px;
    color: #555;
    margin: 0 0 8px;
}

.wizard-intro-centered .inner_wizard-intro-centered{
    background: #fff;
    padding: 20px 30px;
    width: 80%;
    margin:0 auto;
}

/* --- Steps indicator --- */
.wizard-steps {
    display: flex;
    gap: 4px;
    margin: 0 0 30px;
    padding: 0;
}
.wizard-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: default;
    transition: background .2s, box-shadow .2s;
}
.wizard-step.active {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.wizard-step.done {
    background: #f0faf0;
}
.wizard-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.wizard-step.active .wizard-step__num {
    background: #c4302b;
    color: #fff;
}
.wizard-step.done .wizard-step__num {
    background: #4caf50;
    color: #fff;
}
.wizard-step__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #888;
}
.wizard-step.active .wizard-step__label {
    color: #2a292b;
    font-weight: 600;
}
.wizard-step.done .wizard-step__label {
    color: #2e7d32;
}

@media (max-width: 600px) {
    .wizard-step__label { display: none; }
    .wizard-step { justify-content: center; padding: 12px; }
}

/* --- Panels --- */
.wizard-panel {
    display: none;
    animation: wizardFadeIn .25s ease;
}
.wizard-panel.active {
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    padding: 20px 40px;
    margin-bottom: 40px;
}
@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wizard-panel h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #2a292b;
    margin: 0 0 20px;
}

/* --- Fields --- */
.wizard-field {
    margin: 0 0 22px;
}
.wizard-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin: 0 0 8px;
}
.wizard-field label small {
    font-weight: 400;
    color: #999;
}

/* --- Input text --- */
.wizard-input {
    width: 100%;
    max-width: 450px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.wizard-input:focus {
    border-color: #c4302b;
}

/* --- Rayon buttons --- */
.wizard-rayon-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wizard-rayon-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all .15s;
}
.wizard-rayon-btn:hover {
    border-color: #c4302b;
    color: #c4302b;
}
.wizard-rayon-btn.active {
    background: #c4302b;
    border-color: #c4302b;
    color: #fff;
}

/* --- Geoloc button --- */
.wizard-geoloc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin: 10px 0 0;
    transition: all .15s;
}
.wizard-geoloc-btn:hover {
    border-color: #888;
    color: #333;
}

/* --- Chips (checkboxes/radios visuels) --- */
.wizard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wizard-chip {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.wizard-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.wizard-chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    transition: all .15s;
    white-space: nowrap;
}
.wizard-chip:hover span {
    border-color: #c4302b;
    color: #c4302b;
}
.wizard-chip input:checked + span {
    background: #c4302b;
    border-color: #c4302b;
    color: #fff;
}

/* Prix chips larger */
.wizard-chips--prix .wizard-chip span {
    min-width: 60px;
    text-align: center;
    font-size: 15px;
}

/* Notes chips */
.wizard-chips--notes .wizard-chip span {
    min-width: 50px;
    text-align: center;
}

/* Michelin chip */
.wizard-chip--michelin span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wizard-chip--michelin span img {
    vertical-align: middle;
}

/* --- Navigation buttons --- */
.wizard-nav {
    display: flex;
    gap: 12px;
    margin: 30px 0 10px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.wizard-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all .15s;
}
.wizard-btn--prev {
    background: #f5f5f5;
    color: #666;
}
.wizard-btn--prev:hover {
    background: #eee;
}
.wizard-btn--next {
    background: #2a292b;
    color: #fff;
}
.wizard-btn--next:hover {
    background: #444;
}
.wizard-btn--search {
    background: #c4302b;
    color: #fff;
    flex: 1;
}
.wizard-btn--search:hover {
    background: #a82823;
}
.wizard-btn--modify {
    background: #f5f5f5;
    color: #555;
    font-size: 13px;
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.wizard-btn--modify:hover {
    background: #eee;
}

.wizard-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* --- Results --- */
#wizard-results-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}
.wizard-results-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}
.wizard-results-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2a292b;
    margin: 0;
}
#wizard-results-count {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* --- Active labels (criteres en cours) --- */
.wizard-active-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}
.wizard-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
    line-height: 1;
}
.wizard-label__text {
    cursor: pointer;
    white-space: nowrap;
}
.wizard-label__text:hover {
    color: #c4302b;
    text-decoration: underline;
}
.wizard-label__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    margin-left: 2px;
    transition: background .15s, color .15s;
}
.wizard-label__remove:hover {
    background: #c4302b;
    color: #fff;
}

/* --- Recherches sauvegardees --- */
.wizard-saved {
    margin: 0 0 30px;
}
.wizard-saved h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2a292b;
    margin: 0 0 12px;
}
.wizard-saved__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wizard-saved__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}
.wizard-saved__card:hover {
    border-color: #c4302b;
    box-shadow: 0 2px 10px rgba(196, 48, 43, .06);
}
.wizard-saved__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
.wizard-saved__tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 14px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}
.wizard-saved__date {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    flex-shrink: 0;
}
.wizard-saved__delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.wizard-saved__delete:hover {
    background: #c4302b;
    color: #fff;
}
@media (max-width: 600px) {
    .wizard-saved__date { display: none; }
    .wizard-saved__card { padding: 10px 12px; }
}

/* Loading spinner */
.spinloadermobile {
    animation: wizardSpin 1.2s linear infinite;
}
@keyframes wizardSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- Wizard collapsed (after search) --- */
.wizard.is-collapsed .wizard-panel {
    display: none !important;
}
.wizard.is-collapsed .wizard-steps {
    opacity: .6;
    pointer-events: none;
}


/* MOBILE */
@media only screen and (max-width: 767px) {
    body.page-template-template-trouver-mon-restaurant h1.trame {
        padding: 10px 15px;
        margin: 0 -5vw 25px -5vw;
        font-size: 18px;
        line-height: 23px;
    }

    body.page-template-template-trouver-mon-restaurant h1.trame span{
        padding: 7px 10px;
        font-size: 23px;
        line-height: 28px;
        font-weight: 700;
        margin: 10px 0;
    }   

    body.page-template-template-trouver-mon-restaurant .wizard-intro-centered {
        margin: -25px -5vw 0 -5vw;
        padding: 30px 20px;
    }

    body.page-template-template-trouver-mon-restaurant .wizard-intro-centered .inner_wizard-intro-centered {
        width: 100%;
    }

    body.page-template-template-trouver-mon-restaurant .wizard-intro-centered .inner_wizard-intro-centered h2{
        font-size: 20px;
        line-height: 26px;
    }

    body.page-template-template-trouver-mon-restaurant .wizard-intro-centered .inner_wizard-intro-centered p{
        font-size: 15px;
        line-height: 20px;
    }

    #wizard-saved-searches{
        padding-top:15px;
    }

    .wizard-panel.active{
        padding: 20px;
    }
}
