/* Tunnel d’adhésion — ifa-2026 (aligné maquette V5) */

.tunnel-adhesion-page {
    --ta-navy: #0e3751;
    --ta-green: #1d9e75;
    --ta-muted: #666666;
    --ta-bg: #f7f8fa;
    --ta-gold: #d19720;
    --ta-selected: #f7efe3;
    --ta-border: #bfbfbf;
    --ta-sticky-top: 3rem;
    background: var(--ta-bg);
}

.tunnel-adhesion-page h1,
.tunnel-adhesion__titre {
    font-family: "Playfair Display", "Century Gothic", sans-serif;
    font-weight: 500;
    color: var(--ta-navy);
    opacity: 1;
    transform: none;
}

.tunnel-adhesion__titre {
    margin: 0 0 1.25rem;
    font-size: 2.813rem;
    line-height: 1.15;
    max-width: 34rem;
}

.tunnel-adhesion-page h2,
.tunnel-adhesion__block-title {
    font-family: "Playfair Display", "Century Gothic", sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.65rem;
    color: var(--ta-navy);
    opacity: 1;
    transform: none;
}

.tunnel-adhesion__block-intro {
    margin: 0 0 1.35rem;
    color: var(--ta-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.tunnel-adhesion__badge-wrap {
    margin-bottom: 0.85rem;
}

.tunnel-adhesion-page .tunnel-adhesion__header .titre-btn {
    text-align: left;
}

/* Même rendu que l’accueil (Adhérez !) — bordure forcée vs Bootstrap */
.tunnel-adhesion-page .tunnel-adhesion__badge.btn-jaune-creuse {
    display: inline-block;
    border: 1px solid var(--ta-gold) !important;
    background: transparent !important;
    color: var(--ta-gold) !important;
    font-family: "Playfair Display", "Century Gothic", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 3px 25px 4px;
    border-radius: 25px;
    line-height: 1.4;
    text-decoration: none !important;
    cursor: default;
}

.tunnel-adhesion__badge {
    pointer-events: none;
}

.tunnel-adhesion__intro {
    margin: 0 0 1.5rem;
    color: var(--ta-navy);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 36rem;
}

.tunnel-adhesion__banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 25px;
    background: linear-gradient(90deg, #0e3751 0%, #1d9e75 100%);
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}

.tunnel-adhesion__banner-logo {
    flex: 0 0 auto;
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
}

.tunnel-adhesion__banner-text {
    flex: 1 1 auto;
}

.tunnel-adhesion__block {
    margin-bottom: 1.25rem;
}

.tunnel-adhesion__card {
    background: #fff;
    border: 1px solid var(--ta-navy);
    border-radius: 25px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: none;
}

.tunnel-adhesion__empty,
.tunnel-field__hint {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--ta-muted);
}

.tunnel-adhesion__alert {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 25px;
    background: #fff4d6;
    color: #5c4a2e;
    font-size: 1rem;
}

.tunnel-adhesion__back {
    margin-top: 1rem;
    text-align: center;
}

.tunnel-adhesion__back a {
    color: var(--ta-green);
    text-decoration: none;
    text-underline-offset: 3px;
    font-size: 1rem;
}

.tunnel-adhesion__back a:hover {
    text-decoration: underline;
    color: var(--ta-green) !important;
}

.tunnel-durees {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .tunnel-durees {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tunnel-duree {
    position: relative;
    display: block;
    margin: 0;
    padding: 1.1rem 3.25rem 1.1rem 1.15rem;
    border-radius: 25px;
    border: 1px solid var(--ta-border);
    background: #fff;
    cursor: pointer;
    min-height: 5rem;
}

.tunnel-duree input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tunnel-duree.is-selected,
.tunnel-duree:has(input:checked) {
    background: var(--ta-selected);
    border-color: var(--ta-gold);
}

.tunnel-duree__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
}

.tunnel-duree__label {
    font-weight: 600;
    color: var(--ta-navy);
    line-height: 1.3;
}

.tunnel-duree__price {
    font-weight: 700;
    color: var(--ta-navy);
    white-space: nowrap;
}

.tunnel-duree__check {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 2px solid #bfbfbf;
    background: #fff;
}

.tunnel-duree.is-selected .tunnel-duree__check,
.tunnel-duree:has(input:checked) .tunnel-duree__check {
    border-color: var(--ta-gold);
    background: var(--ta-gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.3 11.5L2.8 8l1.1-1.1 2.4 2.4 5-5L12.4 5.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.8rem;
}

.tunnel-options {
    margin: 0;
    padding: 0;
    border: 1px solid var(--ta-border);
    border-radius: 25px;
    overflow: hidden;
}

.tunnel-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--ta-border);
    cursor: pointer;
    background: #fff;
}

.tunnel-option:last-child {
    border-bottom: 0;
}

.tunnel-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tunnel-option__box {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    border-radius: 3px;
    border: 2px solid #8f8f8f;
    background: #fff;
    position: relative;
}

.tunnel-option.is-checked .tunnel-option__box,
.tunnel-option:has(input:checked) .tunnel-option__box {
    border-color: var(--ta-navy);
    background: var(--ta-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.3 11.5L2.8 8l1.1-1.1 2.4 2.4 5-5L12.4 5.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}

.tunnel-option__content {
    flex: 1 1 auto;
    min-width: 0;
}

.tunnel-option__label {
    display: block;
    color: var(--ta-navy);
    font-weight: 600;
    line-height: 1.35;
}

.tunnel-option__desc {
    display: block;
    margin-top: 0.2rem;
    color: var(--ta-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.tunnel-option__price {
    flex: 0 0 auto;
    color: var(--ta-muted);
    font-weight: 600;
    white-space: nowrap;
    padding-top: 0.1rem;
}

.tunnel-recap {
    position: sticky;
    top: var(--ta-sticky-top);
    z-index: 2;
    background: #fff;
    border-radius: 25px;
    border: 1px solid var(--ta-navy);
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: none;
}

.tunnel-recap__title {
    margin: 0 0 1rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ta-navy);
    opacity: 1;
    transform: none;
}

.tunnel-adhesion-page h2.tunnel-recap__title {
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.tunnel-recap__lines {
    margin: 0 0 0.75rem;
    padding: 0;
}

.tunnel-recap__line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    color: var(--ta-muted);
    font-size: 0.9375rem;
}

.tunnel-recap__line-price {
    color: var(--ta-navy);
    font-weight: 600;
    white-space: nowrap;
}

.tunnel-recap__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e3e8eb;
    color: var(--ta-navy);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.tunnel-recap__total strong {
    font-family: "Playfair Display", "Century Gothic", sans-serif;
    font-size: 1.875rem;
    font-weight: 500;
    text-transform: none;
    line-height: 1;
}

.tunnel-recap__cta.btn {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.tunnel-adhesion-page .tunnel-recap__cta.btn-vert-pleine {
    background-color: var(--ta-green) !important;
    border: 1px solid var(--ta-green) !important;
    color: #fff !important;
    padding: 9px 25px 7px !important;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.tunnel-adhesion-page .tunnel-recap__cta.btn-vert-pleine:hover,
.tunnel-adhesion-page .tunnel-recap__cta.btn-vert-pleine:focus {
    color: #fff !important;
    border-color: var(--ta-green) !important;
}

.tunnel-recap__cta.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.tunnel-recap__hint {
    margin: 0.75rem 0 0;
    text-align: center;
    color: var(--ta-muted);
    font-size: 0.875rem;
}

.tunnel-field__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ta-navy);
}

.tunnel-field__input {
    border-radius: 0;
    border-color: #bfbfbf;
    min-height: 2.65rem;
}

.tunnel-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.25rem 0 0;
    color: var(--ta-navy);
    font-size: 1rem;
    cursor: pointer;
}

.tunnel-check input {
    margin-top: 0.2rem;
}

@media (max-width: 991.98px) {
    .tunnel-adhesion__titre,
    .tunnel-adhesion-page h2,
    .tunnel-adhesion__block-title {
        font-size: 2rem;
    }

    .tunnel-recap {
        position: static;
    }
}

/* ——— Étape 3 : paiement + ticket récap ——— */

.tunnel-adhesion__step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tunnel-adhesion__step-nav--inline {
    margin-bottom: 1.25rem;
}

.tunnel-adhesion__step-back {
    color: var(--ta-green);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}

.tunnel-adhesion__step-back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--ta-green) !important;
}

.tunnel-adhesion__step-trail {
    margin: 0;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ta-muted);
    font-weight: 600;
}

.tunnel-adhesion__step-trail .is-current {
    color: var(--ta-navy);
}

.tunnel-adhesion__step-sep {
    margin: 0 0.35rem;
    opacity: 0.55;
}

.tunnel-adhesion__header--step3 {
    margin-bottom: 1.75rem;
}

.tunnel-adhesion__header--step3 .tunnel-adhesion__titre {
    max-width: none;
}

.tunnel-adhesion__layout--step3 {
    align-items: flex-start;
}

.tunnel-adhesion__back--left {
    text-align: left;
    margin-top: 1.25rem;
}

.tunnel-pay.tunnel-adhesion__card {
    margin-bottom: 0;
}

.tunnel-pay__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tunnel-pay__head {
    margin-bottom: 1.25rem;
}

.tunnel-pay__head .tunnel-adhesion__block-intro {
    margin-bottom: 0;
}

.tunnel-pay__cards {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tunnel-pay__card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    height: 2.125rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--ta-border);
    background: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ta-navy);
    line-height: 1;
}

.tunnel-pay__card--visa {
    color: #1a1f71;
}

.tunnel-pay__card--mc {
    color: #eb001b;
}

.tunnel-pay__info {
    margin: 0 0 1rem;
    color: var(--ta-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.tunnel-pay__secure {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    color: var(--ta-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.tunnel-pay__lock {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1a3 3 0 0 0-3 3v2H4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-3-3zm2 5H6V4a2 2 0 1 1 4 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1a3 3 0 0 0-3 3v2H4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-3-3zm2 5H6V4a2 2 0 1 1 4 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.7;
}

.tunnel-pay__cta.btn {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.tunnel-adhesion-page .tunnel-pay__cta.btn-jaune-pleine {
    background-color: var(--ta-gold) !important;
    border: 1px solid var(--ta-gold) !important;
    color: #fff !important;
    padding: 9px 25px 7px !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
    min-width: 0;
}

.tunnel-adhesion-page .tunnel-pay__cta.btn-jaune-pleine:hover,
.tunnel-adhesion-page .tunnel-pay__cta.btn-jaune-pleine:focus {
    color: #fff !important;
    border-color: var(--ta-gold) !important;
}

.tunnel-pay__cta.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.tunnel-pay__success {
    padding: 1rem 1.15rem;
    border-radius: 25px;
    background: #e8f7f1;
    color: var(--ta-navy);
}

.tunnel-pay__success p {
    margin: 0.35rem 0 0;
    color: var(--ta-muted);
    font-size: 0.9375rem;
}

.tunnel-ticket {
    position: sticky;
    top: var(--ta-sticky-top);
    z-index: 2;
    background: var(--ta-navy);
    color: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0px 9px 38px 0px rgba(0, 0, 0, 0.22);
}

.tunnel-ticket__top {
    padding: 1.75rem 1.5rem 1.25rem;
}

.tunnel-ticket__eyebrow {
    margin: 0 0 0.65rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.75;
}

.tunnel-ticket__title {
    margin: 0 0 1rem;
    font-family: "Playfair Display", "Century Gothic", sans-serif;
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    opacity: 1;
    transform: none;
}

.tunnel-ticket__lines {
    margin: 0;
    padding: 0;
}

.tunnel-ticket__line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.tunnel-ticket__line-label {
    opacity: 0.92;
    font-weight: 500;
}

.tunnel-ticket__line-price {
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tunnel-ticket__divider {
    position: relative;
    height: 1.35rem;
    background:
        radial-gradient(circle at 0 50%, var(--ta-bg) 0.55rem, transparent 0.56rem) left center / 1.1rem 100% no-repeat,
        radial-gradient(circle at 100% 50%, var(--ta-bg) 0.55rem, transparent 0.56rem) right center / 1.1rem 100% no-repeat,
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 0.35rem, transparent 0.35rem 0.7rem) center / calc(100% - 2.2rem) 1px no-repeat;
}

.tunnel-ticket__bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
}

.tunnel-ticket__total-label {
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.85;
}

.tunnel-ticket__total-value {
    font-family: "Playfair Display", "Century Gothic", sans-serif;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 991.98px) {
    .tunnel-ticket {
        position: static;
    }

    .tunnel-adhesion__step-trail {
        width: 100%;
        text-align: right;
    }
}
