/* ============================================================
   LEXIO — Page « Fonctionnalités et tarifs » (offre_v2)
   À coller à la fin de ta feuille de style lp-*.
   ============================================================ */

/* ---------- Les formules ---------- */

.offre-formules { padding: 72px 0 0; background: #fff; }

/* stretch par défaut : les trois cartes ont la même hauteur
   et leurs boutons s'alignent, quelle que soit la longueur des listes. */
.offre-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.offre-carte {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(14, 42, 78, .14);
    border-radius: 12px;
    padding: 30px 28px 28px;
}

/* La formule mise en avant se distingue par le poids, pas par la couleur. */
.offre-carte.est-phare {
    border-color: var(--or, #C9922F);
    border-width: 2px;
    padding-top: 38px;
    box-shadow: 0 14px 40px rgba(14, 42, 78, .10);
}

.offre-carte__marque {
    position: absolute;
    top: -1px; left: 28px;
    transform: translateY(-50%);
    background: var(--or, #C9922F);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    margin: 0;
}

.offre-carte__nom {
    font-size: 20px;
    font-weight: 700;
    color: var(--nuit, #0E2A4E);
    margin: 0 0 14px;
}

.offre-carte__prix {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--nuit, #0E2A4E);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.offre-carte__devise {
    font-size: 19px;
    font-weight: 600;
    margin-left: 7px;
    letter-spacing: 0;
}

.offre-carte__periode {
    margin: 6px 0 0;
    font-size: 14.5px;
    color: rgba(14, 42, 78, .62);
}

.offre-carte__annuel {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--or, #C9922F);
    font-weight: 500;
}

.offre-carte__liste {
    list-style: none;
    margin: 24px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(14, 42, 78, .10);
    display: grid;
    gap: 11px;
    flex-grow: 1;
}

.offre-carte__liste li {
    position: relative;
    padding-left: 25px;
    font-size: 14.8px;
    line-height: 1.5;
    color: rgba(14, 42, 78, .80);
}

.offre-carte__liste li::before {
    content: "";
    position: absolute;
    left: 2px; top: 7px;
    width: 11px; height: 6px;
    border-left: 2px solid var(--or, #C9922F);
    border-bottom: 2px solid var(--or, #C9922F);
    transform: rotate(-45deg);
}

.offre-carte__btn { margin-top: 26px; width: 100%; text-align: center; }

.offre-reglement {
    max-width: 680px;
    margin: 34px auto 0;
    text-align: center;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(14, 42, 78, .60);
}

/* ---------- Titres de section ---------- */

.offre-titre {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.22;
    color: var(--nuit, #0E2A4E);
    margin: 0;
}

.offre-chapo {
    max-width: 620px;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(14, 42, 78, .66);
}

/* ---------- Tableau comparatif ---------- */

.offre-comparatif { padding: 86px 0 0; background: #fff; }

.offre-tableau-cadre { margin-top: 38px; overflow-x: auto; }

.offre-tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 640px;
}

.offre-tableau__legende {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.offre-tableau thead th {
    text-align: center;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--nuit, #0E2A4E);
    padding: 0 14px 15px;
    border-bottom: 2px solid var(--nuit, #0E2A4E);
    white-space: nowrap;
}

.offre-tableau thead th.offre-tableau__vide {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(14, 42, 78, .50);
    padding-left: 0;
    width: 36%;
}

.offre-tableau tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--nuit, #0E2A4E);
    padding: 16px 20px 16px 0;
    border-bottom: 1px solid rgba(14, 42, 78, .09);
    line-height: 1.45;
}

.offre-tableau__aide {
    display: block;
    margin-top: 3px;
    font-size: 12.8px;
    font-weight: 400;
    color: rgba(14, 42, 78, .55);
    line-height: 1.5;
}

.offre-tableau tbody td {
    text-align: center;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(14, 42, 78, .09);
    color: var(--nuit, #0E2A4E);
    font-variant-numeric: tabular-nums;
}

.offre-tableau tbody tr:nth-child(odd) td,
.offre-tableau tbody tr:nth-child(odd) th { background: rgba(14, 42, 78, .022); }

.offre-tableau td.est-absente { color: rgba(14, 42, 78, .30); }

.offre-note {
    margin: 26px 0 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(14, 42, 78, .60);
    max-width: 680px;
}

/* ---------- Ce que contient le logiciel ---------- */

.offre-contenu { padding: 86px 0 0; background: #fff; }

.offre-fonctions {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px 34px;
}

.offre-fonction h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--nuit, #0E2A4E);
    margin: 0 0 7px;
    padding-top: 14px;
    border-top: 2px solid var(--or, #C9922F);
}

.offre-fonction p {
    margin: 0;
    font-size: 14.8px;
    line-height: 1.6;
    color: rgba(14, 42, 78, .68);
}

/* ---------- Questions ---------- */

.offre-questions { padding: 86px 0 0; background: #fff; }

.offre-qr {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px 44px;
}

.offre-qr h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--nuit, #0E2A4E);
    margin: 0 0 9px;
    line-height: 1.4;
}

.offre-qr p {
    margin: 0;
    font-size: 15px;
    line-height: 1.68;
    color: rgba(14, 42, 78, .72);
}

.offre-qr strong { color: var(--nuit, #0E2A4E); font-weight: 600; }

/* ---------- Appel final ---------- */

.offre-appel { padding: 86px 0 96px; background: #fff; }

.offre-appel__in {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    background: var(--nuit, #0E2A4E);
    border-radius: 16px;
    padding: 44px 48px;
}

.offre-appel h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 12px;
}

.offre-appel p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .74);
}

.offre-appel__contacts {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.offre-appel__contacts a:not(.btn) {
    color: #E2B964;
    text-decoration: none;
    font-size: 16.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.offre-appel__contacts a:not(.btn):hover { text-decoration: underline; }
.offre-appel__contacts .btn { margin-top: 8px; }

/* ---------- Tablette ---------- */

@media (max-width: 980px) {
    .offre-grille { grid-template-columns: 1fr; gap: 20px; max-width: 520px; margin-inline: auto; }
    .offre-carte.est-phare { order: -1; }
    .offre-appel__in { grid-template-columns: 1fr; padding: 36px 32px; }
}

/* ---------- Mobile : le tableau devient une liste ---------- */

@media (max-width: 700px) {
    .offre-formules { padding-top: 48px; }
    .offre-comparatif,
    .offre-contenu,
    .offre-questions { padding-top: 60px; }
    .offre-appel { padding: 60px 0 72px; }

    .offre-titre { font-size: 24px; }

    .offre-tableau-cadre { overflow-x: visible; }

    .offre-tableau,
    .offre-tableau tbody,
    .offre-tableau tbody tr,
    .offre-tableau tbody th,
    .offre-tableau tbody td { display: block; width: auto; min-width: 0; }

    .offre-tableau thead { display: none; }

    .offre-tableau tbody tr {
        border: 1px solid rgba(14, 42, 78, .14);
        border-radius: 10px;
        padding: 16px 18px;
        margin-bottom: 14px;
    }

    .offre-tableau tbody tr:nth-child(odd) td,
    .offre-tableau tbody tr:nth-child(odd) th { background: none; }

    .offre-tableau tbody th {
        padding: 0 0 12px;
        border-bottom: 1px solid rgba(14, 42, 78, .10);
        font-weight: 700;
        font-size: 15.5px;
    }

    .offre-tableau tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 18px;
        text-align: right;
        padding: 10px 0 0;
        border-bottom: 0;
        font-size: 14.8px;
    }

    .offre-tableau tbody td::before {
        content: attr(data-colonne);
        font-weight: 500;
        color: rgba(14, 42, 78, .60);
        text-align: left;
    }
}
