/* ==============================================
   PAGES.CSS — Styles spécifiques par page
   ============================================== */


/* ===== PAGE Index ===== */
.steps-asymmetric {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.step-featured {
    border-top: 4px solid var(--alpine-blue);
    padding: 2.5rem;
}

.step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--alpine-blue);
    background: rgba(0, 92, 185, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.step-comment {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-top: 0.8rem;
    border-top: 1px solid var(--card-border);
    padding-top: 0.8rem;
}

@media (max-width: 992px) {
    .steps-asymmetric {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== PAGE Equipe ===== */
.member-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .rencontre-card {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .rencontre-card .image-placeholder {
        aspect-ratio: 4 / 3;
        margin-top: 0;
    }
}


/* ===== PAGE AVANCEMENT — Timeline ===== */
.page-cta {
    margin-bottom: 2.5rem;
}

.story-timeline {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 160px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--card-border);
}

.timeline-node {
    display: flex;
    gap: 4rem;
    margin-bottom: 5rem;
    position: relative;
}

.timeline-date {
    width: 160px;
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--alpine-blue);
    padding-right: 40px;
    position: relative;
}

.timeline-date span {
    font-size: 2.5rem;
    line-height: 1;
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 15px;
    width: 18px;
    height: 18px;
    background: var(--alpine-blue);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    flex: 1;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-body {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .story-timeline::before {
        left: 50px;
    }

    .timeline-node {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .timeline-date {
        width: 50px;
        font-size: 0.8rem;
        padding-right: 15px;
    }

    .timeline-date span {
        font-size: 1.2rem;
    }

    .timeline-date::after {
        right: -6px;
        top: 8px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* ===== PAGE SOUTENIR ===== */
.support-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--alpine-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.three-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.support-detail-card {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.support-detail-card h3 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--alpine-blue);
}

.card-intro {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* ===== Illustration carte soutenir ===== */
.card-illustration {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ← image entière, pas recadrée */
}

/* Supprime la règle is-square si tu l'avais ajoutée avant */
.card-illustration.is-square {
    aspect-ratio: 1 / 1;
}

.card-illustration.is-square img {
    object-fit: contain;
}


.form-rgpd-box {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

body.light-mode .form-rgpd-box {
    background: rgba(0, 0, 0, 0.03);
}

.rgpd-text {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.rgpd-text a,
.consent-check a {
    color: var(--alpine-blue);
    text-decoration: underline;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.consent-check:last-child {
    margin-bottom: 0;
}

.consent-check input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--alpine-blue);
}

.consent-check label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}


.sub-list-box {
    font-size: 0.85rem;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.group-accept {
    background: rgba(46, 160, 67, 0.08);
    border-left: 3px solid #2ea043;
}

.group-accept h4 {
    color: #2ea043;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.group-refuse {
    background: rgba(248, 81, 73, 0.08);
    border-left: 3px solid #f85149;
}

.group-refuse h4 {
    color: #f85149;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.donation-list-dynamic {
    list-style: none;
    font-size: 0.9rem;
}

.box-info {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--alpine-blue);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

body.light-mode .box-info {
    background: rgba(0, 0, 0, 0.03);
}

.text-danger {
    color: #ff4d4d;
}

.enterprise-sponsor-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.checkbox-list {
    list-style: none;
    font-size: 0.9rem;
}

.checkbox-list li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 25px;
}

.checkbox-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--alpine-blue);
    font-weight: bold;
}

.enterprise-form-wrapper {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.financial-progress {
    margin: 1.5rem 0 0.5rem 0;
    text-align: center;
}

.amount-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.amount-text span {
    color: var(--alpine-blue);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

body.light-mode .progress-bar-container {
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--alpine-blue);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}


.sponsor-space-img {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 1.2rem auto 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 12, 18, 0.92);
    z-index: 2000;
}

.image-modal.open {
    display: flex;
}

.image-modal-panel {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: min(100%, 980px);
    padding: 0.5rem;
}

.image-modal-panel img {
    display: block;
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.image-modal-caption {
    margin: 0.85rem 0 0;
    color: #f7f7f7;
    text-align: center;
    font-size: 0.95rem;
}

.image-modal-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.image-modal-trigger img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .image-modal-panel {
        max-height: 92vh;
    }

    .image-modal-close {
        top: -0.65rem;
        right: -0.65rem;
        width: 2.2rem;
        height: 2.2rem;
    }
}

@media (max-width: 1024px) {

    .three-columns-grid,
    .enterprise-sponsor-box {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE AVENTURE — Coming Soon ===== */
.coming-soon-wrapper {
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-pulse {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.badge-alpine {
    display: inline-block;
    background: var(--alpine-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ===== PAGE HUB — QR code landing ===== */

#hub-page {
    /* On redéfinit la grille pour cette page précise : 
     le contenu prend l'espace (1fr), le footer s'adapte (auto) */
    grid-template-rows: 1fr auto;
}

#hub-page .hub-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background-color: #050a12;
}

#hub-page footer {
    margin: 0;
    /* On réduit le padding gigantesque de 10rem à une valeur standard */
    padding: 2rem 0;
}



.hub-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.hub-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.2rem;
}

.hub-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hub-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: .4rem;
}

.hub-subtitle {
    font-size: .95rem;
    opacity: .85;
    margin-bottom: 2rem;
}

.hub-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-btn {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.3rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hub-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .16);
}

.hub-btn .hub-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hub-btn.hub-btn-cta {
    background: linear-gradient(135deg, #ff7a45, #e8452b);
    border: none;
    box-shadow: 0 6px 20px rgba(232, 69, 43, .4);
}

.hub-btn.hub-btn-cta:hover {
    box-shadow: 0 8px 26px rgba(232, 69, 43, .55);
}

.hub-btn.hub-btn-sponsor {
    background: linear-gradient(135deg, #4580ff, #382be8);
    border: none;
    box-shadow: 0 6px 20px rgba(43, 78, 232, 0.55);
}

.hub-btn.hub-btn-sponsor:hover {
    box-shadow: 0 8px 26px rgba(43, 78, 232, 0.55);
}

.hub-footer {
    margin-top: 2.2rem;
    font-size: .78rem;
    opacity: .7;
}

.hub-footer a {
    color: #cfe4ff;
    text-decoration: underline;
}






/* ===== PAGE SPONSOR ===== */
.concept-banner {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow);
}

.concept-banner h2 {
    color: var(--alpine-blue);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.concept-subtitle {
    text-align: center;
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.concept-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

body.light-mode .step-box {
    background: rgba(0, 0, 0, 0.02);
}

.step-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: var(--alpine-blue);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-box p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.concept-example {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--alpine-blue);
    background: rgba(0, 92, 185, 0.08);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .concept-steps {
        grid-template-columns: 1fr;
    }
}

/* Conteneur de l'image interactive (Voiture) */
.interactive-4l-container {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    overflow: hidden;
}

.interactive-4l-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    opacity: 0.85;
}

/* Grandes Zones cliquables sur la 4L */
.sponsor-zone {
    position: absolute;
    background: rgba(0, 92, 185, 0.15);
    border: 2px dashed rgba(0, 92, 185, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sponsor-zone:hover {
    background: rgba(0, 92, 185, 0.4);
    border-color: var(--alpine-blue);
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

.sponsor-zone.selected {
    background: rgba(90, 90, 90, 0.6) !important;
    border: 2px solid #fff;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

/* Checklist dynamique et éléments de configuration */
.checklist-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

body.light-mode .checklist-box {
    background: rgba(0, 0, 0, 0.03);
}

.checklist-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    border-bottom: 2px solid var(--alpine-blue);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.empty-msg {
    font-size: 0.9rem;
    opacity: 0.6;
    font-style: italic;
}

.selected-zone-card {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.zone-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

.zone-total-val {
    font-size: 0.75rem;
    opacity: 0.6;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.remove-btn:hover {
    opacity: 1;
}

.budget-config {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.budget-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.budget-input-wrapper span {
    position: absolute;
    right: 10px;
    font-weight: bold;
    opacity: 0.5;
    font-size: 0.9rem;
}

.budget-input {
    width: 100px;
    padding: 6px 25px 6px 10px;
    background: var(--card-bg);
    border: 1px solid var(--alpine-blue);
    color: var(--text-color);
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    font-family: inherit;
}

.budget-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 92, 185, 0.3);
}

.percent-badge {
    background: rgba(0, 92, 185, 0.1);
    color: var(--alpine-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 900;
}

/* Custom Slider */
.budget-slider {
    width: 100%;
    height: 6px;
    background: var(--card-border);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 0.5rem;
}

.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--alpine-blue);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Boutons de raccourcis packs */
.pack-shortcuts {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.pack-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

body.light-mode .pack-btn {
    background: rgba(0, 0, 0, 0.03);
}

.pack-btn:hover {
    background: var(--alpine-blue);
    color: white;
    border-color: var(--alpine-blue);
}

/* Total Price Box */
.total-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--card-border);
}

.total-label {
    font-size: 1.1rem;
    font-weight: 700;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--alpine-blue);
}


/* ===== PAGE  Budget ===== */
.budget-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chart-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.table-wrapper {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.helloasso-widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.helloasso-widget h2 {
    margin-bottom: 0.5rem;
}

.helloasso-widget p {
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.helloasso-widget iframe {
    display: block;
    width: min(100%, 350px);
    min-height: 260px;
    margin: 0 auto;
    border: 0;
}

@media (max-width: 768px) {
    .budget-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .chart-wrapper {
        min-width: 0;
        padding: 1rem;
    }

    .table-wrapper {
        min-width: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .modern-table {
        table-layout: fixed;
        font-size: 0.8rem;
    }

    .modern-table th,
    .modern-table td {
        overflow-wrap: anywhere;
        padding: 10px 8px;
    }

    .modern-table th:first-child,
    .modern-table td:first-child {
        width: 58%;
    }

    .modern-table th:last-child,
    .modern-table td:last-child {
        width: 42%;
    }

    .helloasso-widget {
        padding: 1.25rem;
    }
}