/* ==========================================================================
   Yoxam — site vitrine (refonte 2026)
   Tous les composants sont préfixés « yx- » et vivent sous .yx pour cohabiter
   avec l'ancien thème (style.css, bootstrap) encore utilisé par les pages
   intérieures.
   ========================================================================== */

:root {
    --yx-navy: #0E1B2B;
    --yx-navy-2: #16283D;
    --yx-navy-3: #1D3550;
    --yx-navy-line: #24384F;
    --yx-yellow: #FDC92B;
    --yx-yellow-hover: #F2BB12;
    --yx-blue: #1D6FB0;
    --yx-blue-hover: #175C93;
    --yx-blue-soft: #EAF2FA;
    --yx-ink: #0F1A2A;
    --yx-ink-2: #3B4757;
    --yx-muted: #5B6779;
    --yx-line: #E3E8EF;
    --yx-line-soft: #EEF1F5;
    --yx-ground: #F4F6F9;
    --yx-on-navy: #C5D0DD;
    --yx-on-navy-2: #B4C1D0;
    --yx-on-navy-3: #8C9AAD;
    --yx-green: #146C43;
    --yx-green-soft: #E6F4EC;
    --yx-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Document ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--yx-ink); font-family: var(--yx-font); }
main { display: block; }

/* ---------- Base ---------- */
.yx, .yx *, .yx *::before, .yx *::after { box-sizing: border-box; }
.yx {
    font-family: var(--yx-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--yx-ink);
    -webkit-font-smoothing: antialiased;
}
.yx h1, .yx h2, .yx h3, .yx h4 {
    margin: 0;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: inherit;
}
.yx p, .yx ul, .yx ol, .yx figure, .yx blockquote { margin: 0; }
.yx ul, .yx ol { padding: 0; list-style: none; }
.yx img { max-width: 100%; display: block; }
.yx :focus-visible { outline: 3px solid var(--yx-yellow); outline-offset: 2px; }
.yx-num { font-variant-numeric: tabular-nums; }
.yx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Les colonnes flexibles doivent pouvoir passer sous la largeur de leur contenu sur mobile */
.yx-hero__text, .yx-hero__visual, .yx-split__text, .yx-fleet, .yx-teaser__text, .yx-teaser__plans,
.yx-cta__text, .yx-band__text, .yx-plan, .yx-faq, .yx-head--split > div, .yx-head--split > p { min-width: 0; }

.yx-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.yx .yx-skip, .yx .yx-skip:hover {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--yx-yellow);
    color: var(--yx-navy);
    font-weight: 700;
    text-decoration: none;
}
.yx .yx-skip:focus { top: 12px; }

/* ---------- Liens texte ---------- */
.yx .yx-link, .yx .yx-link:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 700;
    color: var(--yx-blue);
    text-decoration: none;
}
.yx .yx-link:hover { color: var(--yx-blue-hover); text-decoration: underline; }
.yx .yx-link--inline { display: inline; min-height: 0; }

/* ---------- Boutons ---------- */
.yx .yx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: 700 16px/1 var(--yx-font);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.yx .yx-btn:hover { text-decoration: none; }
.yx .yx-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.yx .yx-btn--block { width: 100%; }

.yx .yx-btn--yellow, .yx .yx-btn--yellow:hover { color: var(--yx-navy); }
.yx .yx-btn--yellow { background: var(--yx-yellow); }
.yx .yx-btn--yellow:hover { background: var(--yx-yellow-hover); }

.yx .yx-btn--primary, .yx .yx-btn--primary:hover { color: #FFFFFF; }
.yx .yx-btn--primary { background: var(--yx-blue); }
.yx .yx-btn--primary:hover { background: var(--yx-blue-hover); }

.yx .yx-btn--navy, .yx .yx-btn--navy:hover { color: #FFFFFF; }
.yx .yx-btn--navy { background: var(--yx-navy); }
.yx .yx-btn--navy:hover { background: var(--yx-navy-3); }

.yx .yx-btn--ghost, .yx .yx-btn--ghost:hover { color: var(--yx-ink); border-color: #D5DCE5; }
.yx .yx-btn--ghost { background: #FFFFFF; }
.yx .yx-btn--ghost:hover { background: var(--yx-ground); }

.yx .yx-btn--outline-light, .yx .yx-btn--outline-light:hover { color: #FFFFFF; border-color: #3A4F68; }
.yx .yx-btn--outline-light { background: transparent; }
.yx .yx-btn--outline-light:hover { background: var(--yx-navy-2); }

.yx .yx-btn--outline-navy, .yx .yx-btn--outline-navy:hover { color: var(--yx-navy); border-color: var(--yx-navy); }
.yx .yx-btn--outline-navy { background: transparent; }
.yx .yx-btn--outline-navy:hover { background: rgba(14, 27, 43, 0.08); }

.yx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.yx-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--yx-navy);
    color: #FFFFFF;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.yx-header.is-scrolled {
    border-bottom-color: var(--yx-navy-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.yx-header__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 76px;
}
.yx .yx-brand, .yx .yx-brand:hover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.yx-nav { display: flex; align-items: center; gap: 32px; flex: 1; }
.yx-menu { display: flex; gap: 28px; }
.yx .yx-menu__link, .yx .yx-menu__link:hover {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.yx .yx-menu__link { color: var(--yx-on-navy); }
.yx .yx-menu__link:hover, .yx .yx-menu__link[aria-current="page"] { color: #FFFFFF; }
.yx .yx-menu__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yx-yellow); }
.yx-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.yx-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--yx-navy-line);
    border-radius: 10px;
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
}
.yx-burger__close { display: none; }
.yx-burger[aria-expanded="true"] .yx-burger__open { display: none; }
.yx-burger[aria-expanded="true"] .yx-burger__close { display: block; }

@media (max-width: 991px) {
    .yx-header__inner { flex-wrap: wrap; gap: 0 16px; }
    .yx-burger { display: inline-flex; }
    .yx-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 4px 0 20px;
    }
    .yx-nav.is-open, .no-js .yx-nav { display: flex; }
    .yx-menu { flex-direction: column; gap: 0; }
    .yx .yx-menu__link { width: 100%; border-bottom: 1px solid var(--yx-navy-line); }
    .yx .yx-menu__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--yx-yellow); padding-left: 12px; }
    .yx-nav__actions { margin-left: 0; justify-content: space-between; padding-top: 12px; }
}

/* ---------- Hero ---------- */
.yx-hero { background: var(--yx-navy); color: #FFFFFF; overflow: hidden; }
.yx-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 96px;
}
.yx-hero__text {
    flex: 1 1 440px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}
.yx-pill-dark {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--yx-navy-line);
    border-radius: 999px;
    background: var(--yx-navy-2);
    color: var(--yx-on-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.yx-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; flex: none; }
.yx .yx-hero__title {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #FFFFFF;
}
.yx-hero__title em { font-style: normal; color: var(--yx-yellow); }
.yx-hero__lead { max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--yx-on-navy-2); }
.yx-hero__note { font-size: 14px; color: var(--yx-on-navy-3); }

.yx-hero__visual {
    flex: 1 1 460px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yx-hero__logo { position: absolute; width: 560px; max-width: 120%; right: -60px; top: -40px; opacity: .16; }

.yx-tablet {
    position: relative;
    width: 420px;
    max-width: 100%;
    padding: 16px;
    border: 1px solid #2B3A4E;
    border-radius: 30px;
    background: #1A2433;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.yx-tablet__screen {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 16px;
    background: #FFFFFF;
    color: var(--yx-ink);
}
.yx-tablet__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; color: var(--yx-muted); }
.yx-progress { height: 6px; border-radius: 999px; background: var(--yx-line-soft); overflow: hidden; }
.yx-progress span { display: block; width: 33%; height: 100%; background: var(--yx-yellow); }
.yx-tablet__question { font-size: 17px; font-weight: 700; line-height: 1.4; }
.yx-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--yx-line);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.3;
}
.yx-choice::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid #A7B1BE;
    border-radius: 50%;
}
.yx-choice.is-selected { border: 2px solid var(--yx-blue); background: var(--yx-blue-soft); font-weight: 600; }
.yx-choice.is-selected::before { border: 5px solid var(--yx-blue); background: #FFFFFF; }
.yx-tablet__next {
    align-self: flex-end;
    padding: 11px 20px;
    border-radius: 10px;
    background: var(--yx-blue);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.yx-float { position: absolute; background: #FFFFFF; color: var(--yx-ink); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); }
.yx-float--result {
    left: -8px;
    bottom: 28px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
}
.yx-float--offline {
    right: -4px;
    top: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
}
.yx-float__ok { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--yx-green); }
.yx-float__row { display: flex; align-items: center; gap: 10px; }
.yx-float__who { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.yx-float__who strong { font-size: 14px; }
.yx-float__who span, .yx-float__sub { font-size: 12px; color: var(--yx-muted); }
.yx-float__score { font-size: 22px; font-weight: 800; }
.yx-float__title { font-size: 13px; font-weight: 700; display: block; line-height: 1.35; }

@media (max-width: 560px) {
    .yx-float { display: none; }
    .yx-hero__visual { min-height: 0; }
    .yx-hero__inner { padding-bottom: 64px; }
}

/* ---------- Avatars et pastilles d'icône ---------- */
.yx-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #DCEBF7;
    color: var(--yx-ink);
    font-size: 15px;
    font-weight: 800;
}
.yx-avatar--sm { width: 36px; height: 36px; font-size: 12px; }
.yx-avatar--yellow { background: #FFF1C2; }
.yx-avatar--green { background: #E3F3EA; }

.yx-ico {
    flex: none;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}
.yx-ico--sm { width: 36px; height: 36px; border-radius: 10px; }
.yx-ico--blue { background: var(--yx-blue-soft); color: var(--yx-blue); }
.yx-ico--yellow { background: #FFF4D1; color: #8A5A00; }
.yx-ico--amber { background: #FFF1D6; color: #7A4E00; }
.yx-ico--green { background: var(--yx-green-soft); color: var(--yx-green); }
.yx-ico--purple { background: #EFEAFB; color: #5B3FB0; }

/* ---------- Chiffres ---------- */
.yx-stats { border-bottom: 1px solid var(--yx-line); }
.yx-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.yx-stat { display: flex; flex-direction: column; gap: 4px; }
.yx-stat strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.yx-stat span { font-size: 15px; color: var(--yx-muted); }

/* ---------- Sections ---------- */
.yx-section { padding: 112px 0; }
.yx-section--ground { background: var(--yx-ground); }
.yx-section--navy { background: var(--yx-navy); color: #FFFFFF; }
.yx-section.yx-section--flush-top { padding-top: 0; }
.yx-section.yx-section--flush-bottom { padding-bottom: 0; }
@media (max-width: 767px) { .yx-section { padding: 72px 0; } }

.yx-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.yx-head--center { align-items: center; margin-left: auto; margin-right: auto; text-align: center; }
.yx-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.yx-head--split > div { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.yx-head--split > p { flex: 1 1 320px; }
.yx-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; color: var(--yx-blue); }
.yx-section--navy .yx-eyebrow { color: var(--yx-yellow); }
.yx .yx-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.yx-lead { font-size: 18px; line-height: 1.6; color: var(--yx-ink-2); }
.yx-section--navy .yx-lead { font-size: 17px; color: var(--yx-on-navy-2); }

/* ---------- Cartes ---------- */
.yx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.yx-grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.yx-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--yx-line);
    border-radius: 20px;
    background: #FFFFFF;
}
.yx .yx-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.yx-card p { font-size: 15px; line-height: 1.6; color: var(--yx-muted); }
.yx-step-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--yx-yellow);
    color: var(--yx-navy);
    font-size: 18px;
    font-weight: 800;
}

/* ---------- Bloc deux colonnes (mode hors ligne) ---------- */
.yx-split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.yx-split__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.yx-split__cards { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.yx-checks { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.yx-checks li { display: flex; align-items: flex-start; gap: 12px; }
.yx-checks--sm li { font-size: 15px; line-height: 1.45; }
.yx-check {
    flex: none;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yx-green-soft);
    color: var(--yx-green);
}
.yx-checks--sm .yx-check { width: 22px; height: 22px; margin-top: 1px; }

.yx-fleet {
    flex: 1 1 440px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    border-radius: 28px;
    background: var(--yx-navy);
}
.yx-fleet__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yx-on-navy-3); }
.yx-fleet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.yx-device {
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid #2E6B4F;
    border-radius: 12px;
    background: var(--yx-navy-2);
    color: var(--yx-on-navy);
    font-size: 12px;
    font-weight: 700;
}
.yx-device::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3DD68C; }
.yx-device--offline { border-color: #7A6420; }
.yx-device--offline::before { background: var(--yx-yellow); }
.yx-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--yx-on-navy); }
.yx-legend span { display: inline-flex; align-items: center; gap: 8px; }
.yx-legend i { width: 10px; height: 10px; border-radius: 50%; background: #3DD68C; }
.yx-legend i.is-offline { background: var(--yx-yellow); }
@media (max-width: 560px) { .yx-fleet { padding: 24px; } }

/* ---------- Fonctionnalités ---------- */
.yx-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--yx-navy-line);
    border-radius: 20px;
    background: var(--yx-navy-line);
}
.yx-feature { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--yx-navy); }
.yx .yx-feature h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #FFFFFF; }
.yx-feature p { font-size: 15px; line-height: 1.6; color: var(--yx-on-navy-2); }
.yx-feature .yx-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--yx-navy-2); color: var(--yx-yellow); }

/* ---------- Témoignages ---------- */
.yx-quote { gap: 24px; padding: 32px; }
.yx-quote blockquote { flex: 1; font-size: 17px; line-height: 1.6; color: var(--yx-ink); }
.yx-quote figcaption { display: flex; align-items: center; gap: 12px; }
.yx-quote__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; }
.yx-quote__role { display: block; font-size: 14px; color: var(--yx-muted); }

/* ---------- Tarifs : aperçu ---------- */
.yx-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.yx-teaser__text { flex: 1 1 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.yx-teaser__plans { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.yx-card--plan { position: relative; padding: 32px; }
.yx-card--featured { border: 2px solid var(--yx-blue); }
.yx-plan-name { font-size: 18px; font-weight: 700; }
.yx-tag {
    position: absolute;
    top: -14px;
    left: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--yx-yellow);
    color: var(--yx-navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}
.yx-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.yx-price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--yx-ink); }
.yx-price > span { font-size: 15px; color: var(--yx-muted); }
.yx-card--plan .yx-plan-detail { color: var(--yx-ink-2); }

/* ---------- Blog ---------- */
.yx .yx-post, .yx .yx-post:hover { display: flex; flex-direction: column; gap: 12px; color: var(--yx-ink); text-decoration: none; }
.yx-post__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: var(--yx-blue-soft); }
.yx-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.yx-post:hover .yx-post__img img { transform: scale(1.03); }
.yx-post__cat { font-size: 13px; font-weight: 700; color: var(--yx-blue); }
.yx-post__title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.yx-post:hover .yx-post__title { text-decoration: underline; }
.yx-post__date { font-size: 14px; color: var(--yx-muted); }

/* ---------- Appel à l'action final ---------- */
.yx-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding: 64px 48px;
    border-radius: 28px;
    background: var(--yx-yellow);
}
.yx-cta__logo { position: absolute; width: 380px; right: -60px; bottom: -120px; opacity: .18; }
.yx-cta__text { position: relative; flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.yx .yx-cta h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; color: var(--yx-navy); }
.yx-cta p { font-size: 18px; color: #3D3010; }
.yx-cta .yx-actions { position: relative; }
@media (max-width: 600px) { .yx-cta { padding: 40px 24px; } }

/* ---------- Pied de page ---------- */
.yx-footer { background: var(--yx-navy); color: var(--yx-on-navy); }
.yx-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-top: 72px;
}
.yx-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--yx-on-navy-2); }
.yx-footer__title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #FFFFFF; }
.yx .yx-flink, .yx .yx-flink:hover { text-decoration: none; }
.yx .yx-flink { color: var(--yx-on-navy-2); }
.yx .yx-flink:hover { color: #FFFFFF; text-decoration: underline; }
.yx-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--yx-navy-line);
    font-size: 14px;
    color: var(--yx-on-navy-3);
}
.yx-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Page Tarifs ---------- */
.yx-pricing-hero { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 64px; padding-bottom: 160px; text-align: center; }
.yx .yx-pricing-hero h1 { max-width: 820px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; color: #FFFFFF; }
.yx-pricing-hero p { max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--yx-on-navy-2); }

.yx-toggle {
    display: inline-flex;
    gap: 4px;
    margin-top: 12px;
    padding: 5px;
    border: 1px solid var(--yx-navy-line);
    border-radius: 14px;
    background: var(--yx-navy-2);
}
.yx-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 22px;
    border-radius: 10px;
    color: var(--yx-on-navy);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.yx-toggle__deal { padding: 3px 8px; border-radius: 999px; background: var(--yx-yellow); color: var(--yx-navy); font-size: 12px; font-weight: 800; }
#yx-billing-m:checked ~ .yx-hero label[for="yx-billing-m"],
#yx-billing-y:checked ~ .yx-hero label[for="yx-billing-y"] { background: #FFFFFF; color: var(--yx-navy); }
#yx-billing-m:focus-visible ~ .yx-hero label[for="yx-billing-m"],
#yx-billing-y:focus-visible ~ .yx-hero label[for="yx-billing-y"] { outline: 3px solid var(--yx-yellow); outline-offset: 2px; }
.yx-only-y { display: none; }
#yx-billing-y:checked ~ * .yx-only-m { display: none; }
#yx-billing-y:checked ~ * .yx-only-y { display: inline; }

.yx-plans { position: relative; margin-top: -110px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.yx-plan {
    position: relative;
    flex: 1 1 360px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 40px;
    border: 1px solid var(--yx-line);
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 30px 60px rgba(15, 26, 42, 0.10);
}
.yx-plan--featured { border: 2px solid var(--yx-blue); }
.yx-plan .yx-tag { top: -15px; left: 40px; padding: 6px 14px; font-size: 13px; }
.yx .yx-plan h2 { font-size: 24px; }
.yx-plan__target { margin-top: 6px; font-size: 16px; color: var(--yx-muted); }
.yx-plan .yx-price strong { font-size: 56px; letter-spacing: -0.04em; }
.yx-plan .yx-price > span { font-size: 16px; }
.yx-saving { min-height: 22px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--yx-green); }
.yx-plan__sep { height: 1px; background: var(--yx-line-soft); }
.yx-plan__inc { font-size: 14px; font-weight: 700; color: var(--yx-ink-2); }
@media (max-width: 560px) { .yx-plan { padding: 28px 24px; } .yx-plan .yx-tag { left: 24px; } }

.yx-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    margin-top: 48px;
    padding: 28px 32px;
    border-radius: 20px;
    background: var(--yx-ground);
}
.yx-band__text { flex: 1 1 360px; }
.yx-band__title { display: block; font-size: 18px; font-weight: 700; }
.yx-band__sub { display: block; font-size: 15px; color: var(--yx-muted); }

.yx-table-wrap { overflow-x: auto; border: 1px solid var(--yx-line); border-radius: 20px; }
.yx-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.yx-table th, .yx-table td { padding: 16px 20px; border-bottom: 1px solid var(--yx-line-soft); text-align: left; vertical-align: middle; }
.yx-table tbody tr:last-child th, .yx-table tbody tr:last-child td { border-bottom: 0; }
.yx-table thead th { background: #F7F9FB; font-size: 14px; font-weight: 700; color: var(--yx-ink); }
.yx-table tbody th { font-weight: 500; color: var(--yx-ink-2); }
.yx-table .yx-c { width: 180px; text-align: center; font-weight: 600; }
.yx-dash { display: inline-block; width: 14px; height: 2px; background: #A7B1BE; vertical-align: middle; }

.yx-faq-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.yx-faq-layout > .yx-head { flex: 1 1 300px; margin-bottom: 0; }
.yx-faq { flex: 2 1 520px; border-top: 1px solid var(--yx-line); }
.yx-faq details { border-bottom: 1px solid var(--yx-line); }
.yx-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 0;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.yx-faq summary::-webkit-details-marker { display: none; }
.yx-chev {
    flex: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yx-ground);
    transition: transform .2s ease;
}
.yx-faq details[open] .yx-chev { transform: rotate(180deg); }
.yx-faq details p { padding: 0 48px 22px 0; font-size: 16px; line-height: 1.65; color: var(--yx-ink-2); }

/* ---------- En-tête des pages intérieures ---------- */
.yx-page-head { background: var(--yx-navy); color: #FFFFFF; }
.yx-page-head__inner { display: flex; flex-direction: column; gap: 16px; padding-top: 48px; padding-bottom: 72px; max-width: 880px; }
.yx-page-head--center .yx-page-head__inner { align-items: center; margin: 0 auto; text-align: center; }
.yx .yx-page-head h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; color: #FFFFFF; }
.yx-page-head .yx-eyebrow { color: var(--yx-yellow); }
.yx-page-head__lead { max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--yx-on-navy-2); }
.yx-page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--yx-on-navy-3); }
.yx .yx-back, .yx .yx-back:hover { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.yx .yx-back { color: var(--yx-on-navy); }
.yx .yx-back:hover { color: #FFFFFF; }
.yx-section--tight { padding: 72px 0; }

/* ---------- Texte long (CGU, mentions, articles) ---------- */
.yx-prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--yx-ink-2); overflow-wrap: break-word; }
.yx .yx-prose > * + * { margin-top: 18px; }
.yx .yx-prose h2 { margin-top: 48px; font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; color: var(--yx-ink); }
.yx .yx-prose h3 { margin-top: 32px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; color: var(--yx-ink); }
.yx .yx-prose h4 { margin-top: 24px; font-size: 17px; color: var(--yx-ink); }
.yx .yx-prose > h2:first-child, .yx .yx-prose > h3:first-child { margin-top: 0; }
.yx .yx-prose ul { list-style: disc; padding-left: 1.4em; }
.yx .yx-prose ol { list-style: decimal; padding-left: 1.4em; }
.yx .yx-prose li + li { margin-top: 6px; }
.yx .yx-prose strong, .yx .yx-prose b { color: var(--yx-ink); }
.yx .yx-prose a, .yx .yx-prose a:hover { color: var(--yx-blue); text-decoration: underline; text-underline-offset: 3px; }
.yx .yx-prose a:hover { color: var(--yx-blue-hover); }
.yx .yx-prose img { height: auto; border-radius: 16px; }
.yx .yx-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.yx .yx-prose th, .yx .yx-prose td { padding: 10px 14px; border: 1px solid var(--yx-line); text-align: left; }
.yx .yx-prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--yx-yellow); color: var(--yx-ink); }

/* ---------- Formulaires ---------- */
.yx-form-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.yx-form-card { flex: 2 1 480px; min-width: 0; padding: 40px; border: 1px solid var(--yx-line); border-radius: 24px; background: #FFFFFF; box-shadow: 0 30px 60px rgba(15, 26, 42, 0.08); }
.yx-form-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.yx-form { display: flex; flex-direction: column; gap: 20px; }
.yx-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.yx-field { display: flex; flex-direction: column; gap: 8px; }
.yx .yx-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--yx-ink); }
.yx-optional { font-weight: 500; color: var(--yx-muted); }
.yx .yx-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid #C9D2DD;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--yx-ink);
    font: 400 16px/1.5 var(--yx-font);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.yx .yx-input::placeholder { color: #7A8597; }
.yx .yx-input:focus { outline: none; border-color: var(--yx-blue); box-shadow: 0 0 0 4px rgba(29, 111, 176, 0.18); }
.yx textarea.yx-input { min-height: 180px; resize: vertical; }
.yx-field__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.yx .yx-field__aside { font-size: 14px; }

/* Mot de passe avec bouton « Afficher / masquer » */
.yx-password { position: relative; }
.yx .yx-password .yx-input { padding-right: 56px; }
.yx-password .yx-input::-ms-reveal { display: none; }
.yx-password__toggle {
    position: absolute;
    top: 50%;
    right: 3px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--yx-muted);
    cursor: pointer;
    transform: translateY(-50%);
}
.yx-password__toggle:hover { background: var(--yx-ground); color: var(--yx-ink); }
.yx-password__hide, .yx-password__toggle[aria-pressed="true"] .yx-password__show { display: none; }
.yx-password__toggle[aria-pressed="true"] .yx-password__hide { display: block; }
.yx-field ul { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: #A8261C; }
.yx-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.yx-form__note { font-size: 13px; color: var(--yx-muted); }
@media (max-width: 560px) { .yx-form-card { padding: 28px 20px; } }

.yx-alert { display: flex; gap: 14px; padding: 18px 20px; margin-bottom: 28px; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.yx-alert--success { background: var(--yx-green-soft); color: #0F4D30; }
.yx-alert--danger { background: #FDECEA; color: #7A1D15; }
.yx-alert--warning { background: #FFF1D6; color: #5E3C00; }
.yx-alert__title { display: block; font-weight: 800; }
.yx-alert .yx-link { min-height: 0; margin-top: 6px; color: inherit; text-decoration: underline; }

.yx-info-card { padding: 28px; border-radius: 20px; background: var(--yx-ground); display: flex; flex-direction: column; gap: 16px; }
.yx-info-card--navy { background: var(--yx-navy); color: #FFFFFF; }
.yx .yx-info-card h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.yx-info-card p { font-size: 15px; color: var(--yx-ink-2); }
.yx-info-card--navy p { color: var(--yx-on-navy-2); }
.yx-info-list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.yx-info-list li { display: flex; align-items: flex-start; gap: 12px; }
.yx-info-list .yx-ico { width: 36px; height: 36px; border-radius: 10px; }

/* ---------- Frise chronologique ---------- */
.yx-timeline { position: relative; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.yx-timeline::before { content: ""; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px; background: var(--yx-line); }
.yx-timeline li { position: relative; display: flex; gap: 24px; align-items: flex-start; }
.yx-timeline__year {
    position: relative;
    flex: none;
    width: 64px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--yx-yellow);
    color: var(--yx-navy);
    font-size: 14px;
    font-weight: 800;
}
.yx-timeline__year--next { background: #FFFFFF; border: 2px dashed #A7B1BE; color: var(--yx-ink-2); }
.yx-timeline .yx-card { flex: 1; min-width: 0; padding: 22px 24px; gap: 6px; }
.yx-timeline__date { font-size: 13px; font-weight: 700; color: var(--yx-blue); }
.yx .yx-timeline .yx-card h3 { font-size: 18px; }

/* ---------- État vide ---------- */
.yx-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 24px; border: 1px dashed #C9D2DD; border-radius: 20px; text-align: center; color: var(--yx-muted); }
.yx .yx-empty h2 { font-size: 20px; color: var(--yx-ink); }

/* ---------- Fenêtre vidéo ---------- */
.yx-video-dialog { width: min(960px, 92vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.yx-video-dialog::backdrop { background: rgba(14, 27, 43, 0.86); }
.yx-video-dialog__bar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.yx-video-dialog__close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--yx-navy);
    cursor: pointer;
}
.yx-video-dialog__close:focus-visible { outline: 3px solid var(--yx-yellow); outline-offset: 2px; }
.yx-video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000000; }

@media (prefers-reduced-motion: reduce) {
    .yx *, .yx *::before, .yx *::after { transition: none !important; }
}
