/* Fichier : benevoles/style.css */
/* Style 100% harmonisé avec la page Accès & Plan (grille sidebar + panneau interactif) */

#main-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--light);
}

/* ==========================================================================
   PAGE HERO BANNER (IDENTIQUE À ACCÈS ET PLAN)
   ========================================================================== */
.page-hero {
    position: relative;
    width: 100%;
    height: 500px;
    padding: 80px 6vw 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, .12), transparent 28%),
        radial-gradient(circle at 85% 75%, rgba(250, 176, 5, .13), transparent 30%),
        linear-gradient(135deg, #0056b3 0%, #007bff 55%, #2389ff 100%);
    overflow: hidden;
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::before {
    width: 460px;
    height: 460px;
    top: -270px;
    left: -130px;
    background: rgba(255, 255, 255, .06);
}

.page-hero::after {
    width: 600px;
    height: 600px;
    right: -300px;
    bottom: -420px;
    background: rgba(250, 176, 5, .08);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
}

.page-hero-badge i {
    color: var(--accent);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.page-hero p {
    width: min(720px, 100%);
    margin: 22px auto 0;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    line-height: 1.7;
}

/* ==========================================================================
   GRILLE ET MISE EN PAGE ACCÈS & PLAN
   ========================================================================== */
.access-section {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: -90px;
    padding: 0 45px 110px;
}

.access-container {
    width: 100%;
    margin: 0 auto;
}

.access-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 25px;
    align-items: stretch;
}

/* ==========================================================================
   SIDEBAR GAUCHE (STYLE IDENTIQUE ACCÈS ET PLAN)
   ========================================================================== */
.access-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.access-card {
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(44, 62, 80, .08);
}

.access-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 23px;
}

.access-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 19px;
}

.access-card-label {
    display: block;
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.access-card h2 {
    margin: 0;
    color: var(--dark);
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
}

.access-description {
    margin: 0 0 18px;
    color: #536273;
    font-size: 13.5px;
    line-height: 1.65;
}

.entry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.entry-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 123, 255, .25);
    box-shadow: 0 7px 18px rgba(44, 62, 80, .08);
}

.entry-badge {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    background: var(--primary);
    font-size: 15px;
    font-weight: 800;
}

.entry-badge-c {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    background: var(--accent-dark);
    font-size: 15px;
    font-weight: 800;
}

.entry-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.entry-content strong {
    color: var(--dark);
    font-size: 14px;
}

.entry-content span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.parking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parking-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border-radius: 10px;
    background: #f7f9fb;
    color: var(--dark);
    font-size: 13px;
    transition: transform .2s ease, background .2s ease;
}

.parking-item:hover {
    transform: translateX(3px);
    background: var(--primary-light);
}

.parking-item i {
    width: 20px;
    flex: 0 0 auto;
    color: var(--primary);
    text-align: center;
}

.access-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid #f1df9b;
    border-radius: 14px;
    background: #fffaf0;
}

.access-notice > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--accent-dark);
    font-size: 17px;
}

.access-notice strong {
    display: block;
    margin-bottom: 3px;
    color: var(--dark);
    font-size: 13px;
}

.access-notice p {
    margin: 0;
    color: #6c6250;
    font-size: 12px;
    line-height: 1.55;
}

/* ==========================================================================
   PANNEAU DROIT : QUESTIONNAIRE ÉTAPE PAR ÉTAPE (STYLE MAP-CONTAINER)
   ========================================================================== */
.wizard-container {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(44, 62, 80, .08);
}

.wizard-header {
    min-height: 82px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    background: #fbfcfe;
}

.wizard-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wizard-label {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.wizard-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: 21px;
    font-weight: 800;
}

.wizard-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Stepper bar visual */
.wizard-stepper-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.stepper-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all .2s ease;
    cursor: default;
}

.stepper-tab.active {
    color: var(--primary);
    background: var(--white);
    border-bottom-color: var(--primary);
}

.stepper-tab.completed {
    color: #059669;
    cursor: pointer;
}

.stepper-tab.completed:hover {
    background: #f0fdf4;
}

.stepper-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #e2e8f0;
    color: #475569;
}

.stepper-tab.active .stepper-num {
    background: var(--primary);
    color: var(--white);
}

.stepper-tab.completed .stepper-num {
    background: #059669;
    color: var(--white);
}

/* Wizard Body */
.wizard-body {
    padding: 34px 38px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wizard-step-content {
    display: none;
    animation: fadeInStep .3s ease forwards;
}

.wizard-step-content.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Question box */
.question-title-box {
    margin-bottom: 26px;
}

.question-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.question-title-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
}

.question-title-box p {
    margin: 0;
    font-size: 14.5px;
    color: #536273;
    line-height: 1.6;
}

/* ==========================================================================
   JAUGE HORAIRE INTERACTIVE (START & END TIME)
   ========================================================================== */
.gauge-card-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.gauge-clocks-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.clock-card {
    flex: 1;
    background: var(--white);
    border: 2px solid rgba(0, 123, 255, 0.25);
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.06);
    transition: border-color .2s;
}

.clock-card:hover {
    border-color: var(--primary);
}

.clock-badge-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #64748b;
    margin-bottom: 2px;
}

.clock-digital-time {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: -1px;
}

.duration-pill-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eaf4ff;
    color: var(--primary-dark);
    border: 1px solid rgba(0, 123, 255, 0.25);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 750;
    white-space: nowrap;
}

/* Dual Range Track */
.gauge-track-wrap {
    position: relative;
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 30px 6px 14px;
}

.gauge-fill-range {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #007bff, #2389ff);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.45);
}

.gauge-slider-input {
    position: absolute;
    top: -7px;
    left: 0;
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
    z-index: 10;
}

.gauge-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #007bff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.gauge-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #f0f7ff;
}

.gauge-slider-input::-moz-range-thumb {
    pointer-events: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #007bff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.gauge-graduation-ticks {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 4px 0;
    user-select: none;
}

/* Presets */
.gauge-presets-box {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed #cbd5e1;
}

.gauge-presets-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
}

.gauge-presets-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gauge-chip-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all .2s ease;
}

.gauge-chip-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.gauge-chip-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ==========================================================================
   FORM CONTROLS & CARTES MISSIONS
   ========================================================================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.form-group label .req {
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, .12);
}

textarea.form-control {
    min-height: 95px;
    resize: vertical;
}

/* Mission interactive cards */
.interactive-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.mission-selectable-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}

.mission-selectable-card:hover {
    border-color: rgba(0, 123, 255, .4);
    background: #f8fafc;
    transform: translateY(-2px);
}

.mission-selectable-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.12);
}

.mission-selectable-card input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.mission-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mission-card-texts strong {
    display: block;
    font-size: 14px;
    font-weight: 750;
    color: var(--dark);
    margin-bottom: 3px;
}

.mission-card-texts p {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

/* Récapitulatif live */
.recap-preview-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 20px;
}

.recap-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}

.recap-item-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: var(--dark);
}

.recap-item-row:last-child {
    margin-bottom: 0;
}

.recap-label {
    color: #64748b;
    font-weight: 600;
    min-width: 105px;
}

/* Navigation buttons between steps */
.wizard-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-wizard-next,
.btn-submit-benevole {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 123, 255, .24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none;
}

.btn-wizard-next:hover,
.btn-submit-benevole:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 123, 255, .32);
}

.btn-wizard-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: var(--white);
    color: #475569;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-wizard-prev:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: var(--dark);
}

/* Feedback messages */
.alert-feedback {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-size: 14.5px;
    line-height: 1.6;
}

.alert-feedback.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-feedback.danger {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.provisional-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

/* ==========================================================================
   RESPONSIVE IDENTIQUE À ACCÈS ET PLAN
   ========================================================================== */
@media (max-width: 1100px) {
    .access-grid {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@media (max-width: 992px) {
    .page-hero {
        min-height: 390px;
        padding: 75px 30px 130px;
    }

    .access-section {
        padding: 0 30px 80px;
    }

    .access-grid {
        grid-template-columns: 1fr;
    }

    .wizard-body {
        padding: 24px 20px;
    }
}

@media (max-width: 700px) {
    .page-hero {
        min-height: 360px;
        padding: 65px 20px 115px;
    }

    .page-hero h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .access-section {
        padding: 0 16px 60px;
        margin-top: -70px;
    }

    .access-card {
        padding: 20px;
    }

    .wizard-body {
        padding: 20px 16px;
    }

    .gauge-clocks-row {
        flex-direction: column;
        gap: 10px;
    }

    .clock-card {
        width: 100%;
    }

    .stepper-tab span.tab-title {
        display: none;
    }
}
