/**
 * Tarifs conseiller : sélecteur de volume + deux formules (composant
 * ConseillerPricing).
 *
 * Feuille autonome : le composant est rendu sur /tarifs et sur /conseillers,
 * qui ont chacune leur propre feuille. Tout est préfixé .ysee-vol- pour ne
 * jamais entrer en collision avec les cartes tarifaires B2C existantes.
 *
 * Direction artistique aquarelle : corail encre (#FF6B6B) pour l'action,
 * indigo (#3E4387) pour la formule qui doit se détacher, papier chaud en fond.
 */

.ysee-vol {
    max-width: 940px;
    margin: 0 auto;
    text-align: left;
}

/* ── En-tête ───────────────────────────────────────────────────────────── */

.ysee-vol-head {
    text-align: center;
    margin-bottom: 30px;
}

.ysee-vol-title {
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    color: #2C2C2C;
    line-height: 1.2;
    margin: 0 0 12px;
}

.ysee-vol-title em {
    font-style: normal;
    color: #FF6B6B;
    /* Trait aquarelle sous les deux mots, plutot qu'un surlignage plein.
       nowrap : sans lui, le titre coupe entre "en" et "moyenne" et le trait
       se retrouve scinde en deux morceaux sur deux lignes. */
    white-space: nowrap;
    box-shadow: inset 0 -.2em 0 rgba(255, 107, 107, .14);
}

.ysee-vol-sub {
    max-width: 620px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.65;
    color: #6B6B6B;
}

/* ── Sélecteur de volume ───────────────────────────────────────────────── */

.ysee-vol-picker {
    padding: 26px 30px 22px;
    border: 1px solid #F3EFE7;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 10px 30px -24px rgba(44, 44, 44, .5);
    margin-bottom: 22px;
}

.ysee-vol-picker-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ysee-vol-picker-value strong {
    font-size: 44px;
    font-weight: 900;
    color: #FF6B6B;
    line-height: 1;
    /* Le chiffre change à chaque cran : une largeur fixe évite que le libellé
       qui le suit ne se décale d'un pixel à chaque mouvement du curseur. */
    min-width: 46px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ysee-vol-picker-value span {
    font-size: 15px;
    font-weight: 700;
    color: #4A4A4A;
}

.ysee-vol-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFD9CE 0%, #FF6B6B 100%);
    outline: none;
    cursor: pointer;
}

.ysee-vol-range:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, .35);
}

.ysee-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #FF6B6B;
    box-shadow: 0 3px 10px rgba(255, 107, 107, .4);
    cursor: grab;
}

.ysee-vol-range::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.ysee-vol-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #FF6B6B;
    box-shadow: 0 3px 10px rgba(255, 107, 107, .4);
    cursor: grab;
}

/* Crans cliquables sous le curseur : le glissement n'est pas toujours commode,
   et ils servent de graduation lisible. */
.ysee-vol-steps {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 14px;
}

.ysee-vol-step {
    flex: 1;
    padding: 7px 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: #A5A5A5;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.ysee-vol-step:hover {
    color: #2C2C2C;
    background: #FDFCF9;
}

.ysee-vol-step.is-active {
    color: #FF6B6B;
    border-color: rgba(255, 107, 107, .35);
    background: #FFF3EE;
}

/* ── Les deux formules ─────────────────────────────────────────────────── */

.ysee-vol-more {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #F3EFE7;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #6B6B6B;
}

.ysee-vol-more a {
    color: #FF6B6B;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 107, .35);
}

.ysee-vol-more a:hover {
    border-bottom-color: #FF6B6B;
}

.ysee-vol-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Les deux cartes sont traitées, pas seulement celle mise en avant : la
   mensuelle porte le même grain de papier, en clair, pour ne pas ressembler à
   une boîte vide posée à côté de l'annuelle. */
.ysee-vol-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 30px 30px;
    border: 1px solid #F0EAE0;
    border-radius: 26px;
    background-color: #FFFFFF;
    background-image:
        url('/assets/watercolor/paper-grain.svg'),
        radial-gradient(120% 80% at 8% 0%, #FFF6F2 0%, rgba(255, 246, 242, 0) 62%);
    background-size: 240px 240px, auto;
    background-blend-mode: soft-light, normal;
    box-shadow: 0 18px 44px -30px rgba(44, 44, 44, .45);
}

.ysee-vol-plan-featured {
    border: none;
    color: #FFFFFF;
    background-color: #3E4387;
    background-image:
        url('/assets/watercolor/paper-grain.svg'),
        radial-gradient(95% 70% at 14% 0%, #575DB4 0%, rgba(87, 93, 180, 0) 72%);
    background-size: 240px 240px, auto;
    background-blend-mode: soft-light, normal;
    box-shadow: 0 22px 60px -20px rgba(62, 67, 135, .48);
}

.ysee-vol-plan-badge {
    position: absolute;
    top: -13px;
    left: 30px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #FF6B6B;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ysee-vol-plan-head {
    margin-bottom: 18px;
}

.ysee-vol-plan-name {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #2C2C2C;
}

.ysee-vol-plan-tag {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #767676;
}

.ysee-vol-plan-featured .ysee-vol-plan-name {
    color: #FFFFFF;
}

.ysee-vol-plan-featured .ysee-vol-plan-tag {
    color: rgba(255, 255, 255, .68);
}

.ysee-vol-plan-price {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    color: #FF6B6B;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.ysee-vol-plan-price small {
    font-size: 14px;
    font-weight: 700;
    color: #767676;
}

.ysee-vol-plan-featured .ysee-vol-plan-price {
    color: #FFFFFF;
}

.ysee-vol-plan-featured .ysee-vol-plan-price small {
    color: rgba(255, 255, 255, .7);
}

.ysee-vol-plan-unit {
    margin: 6px 0 0;
    font-size: 13px;
    color: #767676;
}

.ysee-vol-plan-featured .ysee-vol-plan-unit {
    color: rgba(255, 255, 255, .72);
}

.ysee-vol-plan-compare {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
}

.ysee-vol-plan-strike {
    margin-right: 8px;
    color: rgba(255, 255, 255, .5);
    text-decoration: line-through;
    font-weight: 600;
}

.ysee-vol-plan-list {
    flex: 1;
    list-style: none;
    margin: 22px 0 26px;
    padding: 0;
}

.ysee-vol-plan-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #4A4A4A;
}

.ysee-vol-plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 8px;
    border-left: 2px solid #FF6B6B;
    border-bottom: 2px solid #FF6B6B;
    transform: rotate(-45deg);
}

.ysee-vol-plan-featured .ysee-vol-plan-list li {
    color: rgba(255, 255, 255, .88);
}

.ysee-vol-plan-featured .ysee-vol-plan-list li::before {
    border-color: #FFFFFF;
}

.ysee-vol-plan-cta {
    padding: 15px 20px;
    border: none;
    border-radius: 16px;
    background: #FFFFFF;
    color: #3E4387;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.ysee-vol-plan-cta:hover:not(:disabled) {
    background: #F3EFE7;
}

.ysee-vol-plan-cta-ghost {
    background: #FDFCF9;
    border: 1px solid #E3DED4;
    color: #2C2C2C;
}

.ysee-vol-plan-cta-ghost:hover:not(:disabled) {
    border-color: rgba(255, 107, 107, .5);
    background: #FFF8F6;
    color: #C44536;
}

.ysee-vol-plan-cta:disabled {
    opacity: .6;
    cursor: default;
}

/* ── Pied de bloc ──────────────────────────────────────────────────────── */

.ysee-vol-error {
    margin: 20px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.ysee-vol-footnote {
    margin: 28px auto 0;
    max-width: 720px;
    font-size: 13px;
    line-height: 1.65;
    color: #767676;
    text-align: center;
}

/* Achat ponctuel : volontairement discret, il ne doit pas concurrencer
   visuellement l'abonnement. Pas de corail plein, pas d'ombre portée. */
.ysee-vol-oneshot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
    padding: 20px 24px;
    border: 1px dashed #E3DED4;
    border-radius: 18px;
    background: #FDFCF9;
}

.ysee-vol-oneshot-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #4A4A4A;
}

.ysee-vol-oneshot-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: #767676;
}

.ysee-vol-oneshot-cta {
    padding: 11px 20px;
    border: 1px solid #E3DED4;
    border-radius: 13px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: #4A4A4A;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}

.ysee-vol-oneshot-cta:hover:not(:disabled) {
    border-color: rgba(255, 107, 107, .5);
    color: #C44536;
}

.ysee-vol-oneshot-cta:disabled {
    opacity: .6;
    cursor: default;
}

/* ── Adaptatif ─────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .ysee-vol-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    /* L'annuel passe en premier sur mobile : c'est l'offre mise en avant, et
       elle ne doit pas se retrouver sous la ligne de flottaison. */
    .ysee-vol-plan-featured {
        order: -1;
    }

    .ysee-vol-picker {
        padding: 22px 20px 18px;
    }

    .ysee-vol-plan {
        padding: 28px 22px 24px;
    }

    .ysee-vol-oneshot {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .ysee-vol-step {
        font-size: 12px;
        padding: 6px 0;
    }
}

/* Les transitions de survol n'apportent rien à qui demande moins d'animation. */
@media (prefers-reduced-motion: reduce) {
    .ysee-vol-step,
    .ysee-vol-plan-cta,
    .ysee-vol-oneshot-cta {
        transition: none;
    }
}
