/* ── PAGE ── */
.ins-page {
    padding-top: 68px;
    background: var(--paper);
    min-height: 100vh;
}

/* ── Bandeau top avec courbe ── */
.ins-topbar {
    background: linear-gradient(135deg, var(--ocean) 0%, var(--water) 100%);
    padding: 48px 6% 64px;
    position: relative;
    overflow: hidden;
}

.ins-topbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 36px;
    background: var(--paper);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.ins-topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ins-topbar h1 {
    font-family: var(--f-ar);
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: white;
    margin-bottom: 8px;
}

.ins-topbar h1 .hl {
    color: var(--sky);
}

.ins-topbar p {
    color: rgba(255, 255, 255, 0.7);
    font-size: .92rem;
}

/* ── Layout 2 colonnes ── */
.ins-layout {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px 6% 80px;
    align-items: start;
}



.pack-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pack-tab {
    display: block;
    cursor: pointer;
}

.pack-tab input {
    display: none;
}

.pack-tab-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 12px 18px;
    background: var(--paper);
    transition: all .2s;
    white-space: nowrap;
}

.pack-tab:hover .pack-tab-inner {
    border-color: var(--mist);
}

.pack-tab input:checked~.pack-tab-inner {
    border-color: var(--ocean);
    background: var(--blue-bg);
}

.pack-tab-icon {
    font-size: 1.1rem;
}

.pack-tab-name {
    font-family: var(--f-ar);
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
}

.pack-tab-price {
    font-family: var(--f-ar);
    font-weight: 700;
    font-size: .92rem;
    color: var(--ocean);
    margin-left: .2rem;
}

.pack-tab-price small {
    font-size: .7rem;
    font-weight: 400;
    color: var(--ink-soft);
}

.ins-period {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.ins-period-label {
    font-size: .85rem;
    color: var(--ink-mid);
    font-weight: 500;
}

.period-opt {
    display: block;
    cursor: pointer;
}

.period-opt input {
    display: none;
}

.period-opt-inner {
    padding: 8px 18px;
    border-radius: 9px;
    border: 1.5px solid var(--line);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-mid);
    transition: all .2s;
}

.period-opt:hover .period-opt-inner {
    border-color: var(--mist);
    color: var(--ink);
}

.period-opt input:checked~.period-opt-inner {
    border-color: var(--pop);
    background: var(--pop);
    color: white;
}

.period-eco {
    background: #16A34A;
    color: white;
    font-size: .65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.reg-section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ocean);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 16px;
}

.reg-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.reg-section-label:first-of-type {
    margin-top: 0;
}

.fg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.fg.full {
    grid-template-columns: 1fr;
}

.ff {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fl {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
}

.fl .req {
    color: var(--pop);
}

.fi {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .87rem;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.fi:focus {
    border-color: var(--pop);
    box-shadow: 0 0 0 3px rgba(255, 35, 115, 0.08);
}

select.fi {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A93AA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.pw-wrap {
    position: relative;
}

.pw-wrap .fi {
    width: 100%;
    padding-right: 42px;
}

.pw-eye {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: .9rem;
    padding: 4px;
}

.pw-eye:hover {
    color: var(--ocean);
}

.pwd-strength {
    display: flex;
    gap: 4px;
    margin-top: 7px;
}

.pwd-bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: var(--line);
    transition: background .25s;
}

.pwd-hint {
    font-size: .72rem;
    color: var(--ink-soft);
    margin-top: 5px;
}

.sd-wrap {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.sd-wrap:focus-within {
    border-color: var(--pop);
    box-shadow: 0 0 0 3px rgba(255, 35, 115, 0.08);
}

.sd-input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: none;
    outline: none;
    font-size: .87rem;
    color: var(--ink);
    background: transparent;
}

.sd-suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--paper-2);
    border-left: 1px solid var(--line);
    color: var(--ink-mid);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.reg-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: .85rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.reg-alert.success {
    background: #DCFCE7;
    color: #15803D;
}

.reg-alert.danger {
    background: #FFE0EC;
    color: #BE123C;
}

.cgu-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 24px 0;
    font-size: .82rem;
    color: var(--ink-mid);
}

.cgu-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--pop);
    flex-shrink: 0;
    margin-top: 2px;
}

.cgu-row a {
    color: var(--ocean);
    font-weight: 600;
    text-decoration: none;
}

.cgu-row a:hover {
    text-decoration: underline;
}

.btn-reg {
    width: 100%;
    padding: 15px;
    background: var(--pop);
    color: white;
    font-family: var(--f-ar);
    font-weight: 700;
    font-size: .96rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .2s;
    box-shadow: 0 8px 22px rgba(255, 35, 115, 0.28);
}

.btn-reg:hover {
    background: #E01D63;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(255, 35, 115, 0.35);
}

.ins-login {
    text-align: center;
    margin-top: 18px;
    font-size: .85rem;
    color: var(--ink-soft);
}

.ins-login a {
    color: var(--ocean);
    font-weight: 600;
    text-decoration: none;
}

.ins-login a:hover {
    text-decoration: underline;
}

/* ── Colonne droite : récap sticky ── */
.ins-recap-col {
    position: sticky;
    top: 90px;
}

.ins-recap-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ins-recap-head {
    background: linear-gradient(135deg, var(--ocean), var(--water));
    padding: 22px;
}

.ins-recap-head-title {
    font-size: .76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.ins-recap-pack-name {
    font-family: var(--f-ar);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.ins-recap-price {
    font-family: var(--f-ar);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--sky);
    line-height: 1;
    margin-top: 8px;
}

.ins-recap-price small {
    font-size: .8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.ins-recap-period {
    font-size: .76rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.ins-recap-body {
    background: var(--paper);
    padding: 20px;
}

.ins-recap-feats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.ins-recap-feat {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    color: var(--ink-mid);
}

.rf-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--blue-bg);
    border: 1px solid var(--mist);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: var(--ocean);
}

.ins-recap-divider {
    height: 1px;
    background: var(--line);
    margin-bottom: 16px;
}

.ins-recap-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.ins-recap-total-lbl {
    font-size: .82rem;
    color: var(--ink-soft);
}

.ins-recap-total-ht {
    font-family: var(--f-ar);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.ins-recap-perks {
    background: var(--blue-bg);
    padding: 18px 20px;
}

.ins-recap-perk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--ink-mid);
    margin-bottom: 8px;
}

.ins-recap-perk:last-child {
    margin-bottom: 0;
}

.ins-recap-perk-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFE0EC;
    border: 1px solid #FFB3D1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: var(--pop);
    flex-shrink: 0;
}

@media(max-width:900px) {
    .ins-layout {
        grid-template-columns: 1fr;
    }

    .ins-recap-col {
        position: static;
    }

    .ins-recap-card {
        margin-bottom: 24px;
    }
}

@media(max-width:600px) {
    .fg {
        grid-template-columns: 1fr;
    }

    .pack-tabs {
        flex-direction: column;
    }

    .pack-tab-inner {
        justify-content: space-between;
    }
}