main {
    position: relative;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}

/* ===================================================================================
   0. BACKGROUND LINES
   =================================================================================== */

.bg-lines {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.price-grid-lines {
    position: relative;
    top: 10vh;
    left: 0;
    width: 90vw;
    height: 85vh;
    margin: 0 auto;
}

.price-grid-line {
    position: absolute;
    background-color: rgba(240, 240, 240, 0.35);
}

.price-grid-line-h {
    height: 1px;
    width: 100%;
}

.price-grid-line-v {
    width: 1px;
    height: 100%;
}


.price-tech-decoration {
    position: fixed;
    width: 400px;
    aspect-ratio: 1/1;
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.price-tech-decoration-1 {
    top: -130px;
    right: -130px;
}

.price-tech-decoration-2 {
    bottom: -130px;
    left: -130px;
}

/* ===================================================================================
   1. HERO SECTION
   =================================================================================== */

.hero {
    height: 100vh;
    padding-top: 10vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 6rem);
    text-align: center;
}

.hero-title span {
    color: var(--accent);
}

.hero .section-title {
    color: var(--accent);
}

.hero .section-title::after {
    display: none;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 5rem;
}

@media (min-width: 768px) {
    .hero-bullets {
        flex-direction: row;
        justify-content: center;
    }
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
}

.bullet-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
    }
}

/* Navigation sticky */
.sticky-nav {
    position: sticky;
    top: 60px;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(17, 17, 17, 0.75);
    border-bottom: 1px solid var(--accent);
}

.nav-desktop {
    display: none;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-mobile {
    display: block;
    padding: 16px 0;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none;
    }
}

.nav-select {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    border: 1px solid rgba(240, 240, 240, 0.2);
    border-radius: 0.25rem;
    padding: 8px 16px;
    width: 100%;
}

/* ===================================================================================
   2. FORMULES SECTION
   =================================================================================== */

#tarifs {
    max-width: 100%;
}

#tarifs .section-header,
#tarifs .pricing-notes {
    max-width: 1200px;
    margin: 4rem auto;
    /* padding: 0 24px; */

}

/* Comment choisir */

.choice-guide {
    background: rgba(240, 240, 240, 0.05);
    backdrop-filter: blur(3px);
    max-width: 800px;
    border: 1px solid rgba(240, 240, 240, 0.1);
    border: 1px solid rgba(204, 11, 13, 0.3);
    border-radius: 0.25rem;
    padding: 32px;
    margin: 5rem auto;
    text-align: center;
}

.choice-guide h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--accent);
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin: 4rem auto;
}

.plan-table th,
.plan-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.plan-table tr:last-child th,
.plan-table tr:last-child td {
    border-bottom: none;
}

/* Colonne titre (style H* léger) */
.plan-table th {
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Colonne flèche fine et stable */
.plan-table .arrow {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    font-weight: 700;
    color: var(--accent);
}

/* Colonne description */
.plan-table td:last-child {
    color: var(--text-light);
    font-weight: 500;
}


/* Responsive : on empile proprement sous 560px */
@media (max-width: 560px) {

    .plan-table,
    .plan-table tbody,
    .plan-table tr,
    .plan-table th,
    .plan-table td {
        display: block;
        width: 100%;
    }

    .plan-table .arrow {
        display: inline-block;
        width: auto;
        padding: 0 8px 0 0;
    }

    .plan-table th {
        display: inline-block;
        padding-right: 8px;
    }

    .plan-table td:last-child {
        display: inline;
    }
}


.hesitation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.hesitation .btn {
    margin: 1rem auto;
}




.pricing-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    width: 100%;
    margin: 10rem auto 2rem;
}

@media (min-width: 1200px) {
    .pricing-grid {
        flex-direction: row;
    }
}

.pricing-card {
    background-color: #222222;
    border-radius: 0.25rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border: 1px solid #555555;
    margin: 0;
}

@media (min-width: 1200px) {
    .pricing-card {
        padding: 0 1vw;
    }

    .pricing-card:nth-child(1) {
        margin-left: 1vw;
    }

    .pricing-card:nth-child(3) {
        margin-right: 1vw;
    }
}


/* ——— Structure card content ——— */

.pricing-card-content {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.1rem;
}

/* ——— Titres & prix ——— */
.pricing-card h3 {
    font-family: var(--title-font);
    margin: 0;
    font-weight: 800;
    letter-spacing: .2px;
}

.price-intro {
    margin: 0;
    color: var(--text-light);
    font-size: .9rem;
}

.price-container {
    margin-top: .15rem;
}

.bloc-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.price {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1;
}

.price-period {
    color: var(--text-light);
    font-size: .95rem;
}

/* ——— Liste “Inclus” ——— */
.features-list {
    list-style: none;
    padding: 0;
    margin: .4rem 0 0;
    display: grid;
    gap: .45rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: .6rem;
    align-items: flex-start;
}

.feature-item svg {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    opacity: .9;
}

.price-card-item {
    margin: 0;
    color: var(--text);
    line-height: 1.45;
}

/* ——— Accordéons ——— */
.acc {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    padding: .4rem .6rem;
}

.acc+.acc {
    margin-top: .5rem;
}

/* résume (ligne cliquable) */
.acc>summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-family: var(--title-font);
    color: var(--text);
    padding: .35rem .1rem;
}

.acc>summary::-webkit-details-marker {
    display: none;
}

/* chevron */
.acc>summary::after {
    content: "";
    margin-left: auto;
    width: .7rem;
    height: .7rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s ease;
    opacity: .85;
}

.acc[open]>summary::after {
    transform: rotate(45deg);
}

/* contenu des accordéons */
.features-list.extras,
.options-list {
    margin: .5rem 0 0;
    display: grid;
    gap: .45rem;
    list-style: none;
    padding: 0;
}

/* ——— Sous-titre options (tu l’avais déjà) ——— */
.extension-devis {
    margin: .6rem 0 .2rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-light);
}

/* ——— Densité & lisibilité mobile ——— */
@media (max-width: 640px) {
    .pricing-card-content {
        padding: .95rem;
    }

    .card-footer {
        padding: .95rem;
    }

    .price {
        font-size: clamp(1.45rem, 5vw, 1.8rem);
    }

    .feature-item {
        grid-template-columns: 18px 1fr;
    }
}

/* ——— A11y focus ——— */
.acc>summary:focus-visible,
.pricing-card a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* -------------- */

.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% + 2vw);
    transform: translateX(-1vw);
    padding: 1.1rem;
    background-color: #1a1a1a;
    margin-top: auto;
}

.recommended-card {
    border-color: var(--accent);
    z-index: 10;
}

.recommended-card .pricing-card-content {
    padding-top: 1.8rem;
}

@media (min-width: 1200px) {
    .recommended-card {
        transform: scale(1.05) translateY(-22px);
    }
}

.recommended-badge {
    background-color: var(--accent);
    color: var(--text);
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 500;
    width: calc(100% + 2vw);
    transform: translateX(-1vw);
    margin: 0 auto;
}



/* TVA + accompte*/

.price-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

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



/* Micro-rassurances */
.micro-reassurances {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .micro-reassurances {
        grid-template-columns: repeat(2, 1fr);
    }
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(240, 240, 240, 0.05);
    padding: 16px;
    border-radius: 0.25rem;
}

.reassurance-icon {
    font-size: 1.5rem;
    transform: translateY(3px);
}

/* Bloc abonnement obligatoire */
.subscription-notice {
    background: rgba(204, 11, 13, 0.1);
    border: 1px solid rgba(204, 11, 13, 0.3);
    border-radius: 0.25rem;
    padding: 24px;
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-notice h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--accent);
}

.subscription-notice p {
    font-size: 1.125rem;
}


/* ==========================================================================
   LOCATION 24 MOIS — Tableau comparatif (Option A : switch mobile)
   Dépend de : --bg-color, --text, --text-light, --accent, --title-font, --p-font
   ========================================================================== */

:root {
    --lease-xpad: 1rem;
}

/* padding horizontal commun en mobile */

/* Wrapper & table (base) */
.lease-table-wrapper {
    border-radius: .25rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
    box-shadow: inset 0 0 0 1px rgba(240, 240, 240, .10), 0 10px 40px rgba(0, 0, 0, .25);
}

.lease-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--p-font, Inter, sans-serif);
    color: var(--text);
    backdrop-filter: blur(2px);
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Desktop (>=841px)
   -------------------------------------------------------------------------- */
@media (min-width: 841px) {

    /* trame subtile uniquement desktop */
    .lease-table {
        background:
            linear-gradient(90deg, rgba(240, 240, 240, .08) 1px, transparent 1px) left/ calc(25%) 100% no-repeat,
            linear-gradient(180deg, rgba(240, 240, 240, .06) 1px, transparent 1px) top/ 100% 40px no-repeat;
    }

    .lease-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        text-align: left;
        font-family: var(--title-font);
        font-weight: 800;
        letter-spacing: .2px;
        padding: 1rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
        border-bottom: 1.5px solid rgba(240, 240, 240, .15);
        backdrop-filter: saturate(120%) blur(2px);
    }

    .lease-table thead th:first-child {
        border-top-left-radius: 14px;
    }

    .lease-table thead th:last-child {
        border-top-right-radius: 14px;
    }

    /* Colonnes */
    .lease-table thead .col-feature {
        text-align: left;
        width: 36%;
        min-width: 260px;
    }

    .lease-table thead .col-plan {
        text-align: center;
        width: 21.33%;
        min-width: 160px;
    }

    /* Badge "recommandé" */
    .lease-table thead .is-reco {
        position: relative;
    }

    .lease-table thead .is-reco::after {
        content: "recommandé";
        position: absolute;
        top: 8px;
        right: 10px;
        font-size: .68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .35px;
        color: var(--accent);
        background: rgba(204, 11, 13, .12);
        border: 1px solid rgba(204, 11, 13, .35);
        border-radius: 999px;
        padding: .18rem .45rem;
        transform: rotate(9deg) translateX(10px);
        transform-origin: 50% 0;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    }

    .lease-table thead th,
    .lease-table tbody th,
    .lease-table tbody td {
        vertical-align: middle;
    }

    .lease-table tbody th,
    .lease-table tbody td {
        padding: .9rem 1rem;
        border-bottom: 1px solid rgba(240, 240, 240, .10);
    }

    .lease-table tbody th {
        font-weight: 600;
        text-align: left;
        width: 36%;
        background-image: linear-gradient(90deg, rgba(255, 255, 255, .02), transparent);
    }

    .lease-table tbody td {
        text-align: center;
    }

    /* Séparateurs verticaux */
    .lease-table thead th+th,
    .lease-table tbody td+td {
        border-left: 1px solid rgba(240, 240, 240, .10);
    }

    /* Zebra */
    .lease-table tbody tr:nth-child(odd) th,
    .lease-table tbody tr:nth-child(odd) td {
        background-color: rgba(255, 255, 255, .015);
    }

    /* Hover (desktop + périphériques à pointeur) */
    @media (hover:hover) {

        .lease-table tbody tr:hover th,
        .lease-table tbody tr:hover td {
            background-color: rgba(204, 11, 13, .06);
        }
    }

    /* Mise en avant col 3 (Professionnel) */
    .lease-table thead th:nth-child(3),
    .lease-table tbody td:nth-child(3) {
        box-shadow: inset 2px 0 0 rgba(204, 11, 13, .30);
        background-image: linear-gradient(180deg, rgba(204, 11, 13, .07), transparent);
    }
}

/* --------------------------------------------------------------------------
   Mobile (<=840px) : layout en grille sans scroll latéral
   -------------------------------------------------------------------------- */

/* Switcher (caché en desktop) */
.plan-switcher {
    display: none;
}

@media (max-width: 840px) {
    .plan-switcher {
        display: flex;
        gap: 8px;
        margin: 10px 0 12px;
    }

    .plan-switcher button {
        appearance: none;
        border: 1px solid rgba(255, 255, 255, .18);
        background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
        color: var(--text);
        font-family: var(--title-font);
        font-weight: 700;
        letter-spacing: .2px;
        border-radius: 999px;
        padding: .45rem .8rem;
    }

    .plan-switcher button.is-active {
        border-color: rgba(204, 11, 13, .55);
        box-shadow: inset 0 0 0 1px rgba(204, 11, 13, .35);
    }

    .plan-switcher button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    /* Table -> grille 2 colonnes (libellé | valeur du plan actif) */
    .lease-table-wrapper {
        overflow-x: clip;
    }

    /* pas de scroll horizontal */
    .lease-table {
        min-width: 0;
        width: 100%;
        border-collapse: collapse;
        background: none;
    }

    .lease-table thead {
        display: none;
    }

    .lease-table tbody tr {
        display: grid;
        grid-template-columns: minmax(clamp(9.5rem, 55vw, 14rem), 1.35fr) minmax(7.5rem, 1fr);
        gap: .5rem 1rem;
        align-items: start;
        border-bottom: 1px solid rgba(240, 240, 240, .08);
        padding: .55rem 0;
    }

    .lease-table tbody th,
    .lease-table tbody td {
        display: block;
        padding: .6rem 0;
        border: 0;
        /* background: transparent; */
        word-break: break-word;
        hyphens: auto;
    }

    .lease-table tbody th {
        grid-column: 1 / 2;
        text-align: left;
        padding-left: var(--lease-xpad);
    }

    .lease-table tbody td {
        grid-column: 2 / 3;
        text-align: right;
    }

    /* Cacher toutes les valeurs; n'afficher que la colonne active */
    .lease-table tbody td {
        display: none;
    }

    .lease-table-wrapper.show-col-2 .lease-table tbody td:nth-child(2),
    .lease-table-wrapper.show-col-3 .lease-table tbody td:nth-child(3),
    .lease-table-wrapper.show-col-4 .lease-table tbody td:nth-child(4) {
        display: block;
        padding-right: var(--lease-xpad);
    }

    /* Étiquette du plan actif (optionnelle si data-active-label) */
    .lease-table-wrapper[data-active-label]::before {
        content: attr(data-active-label);
        display: block;
        font-family: var(--title-font);
        font-weight: 800;
        letter-spacing: .3px;
        text-transform: uppercase;
        color: var(--text-light);
        padding: .25rem 0 .5rem;
        padding-left: var(--lease-xpad);
        /* aligné avec la colonne de gauche */
    }

    /* Typo plus compacte en mobile */
    .lease-table {
        font-size: .97rem;
    }

    .price {
        font-size: 1.15rem;
        line-height: 1.1;
    }

    .sub {
        font-size: .9em;
    }
}

/* Points de rupture supplémentaires (resserrage progressif) */
@media (max-width: 760px) {
    :root {
        --lease-xpad: .75rem;
    }

    .lease-table {
        font-size: .95rem;        
    }

    .lease-table tbody tr {
        grid-template-columns: minmax(clamp(8.5rem, 48vw, 12rem), 1.05fr) minmax(7rem, 1.2fr);
        gap: .35rem .75rem;
    }

    .lease-table tbody th,
    .lease-table tbody td {
        padding: .45rem 0.75rem;
    }

    .price {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    :root {
        --lease-xpad: .6rem;
    }

    .lease-table {
        font-size: .92rem;
    }

    .lease-table tbody tr {
        grid-template-columns: minmax(clamp(7.5rem, 52vw, 11rem), 1fr) minmax(6.5rem, 1.2fr);
    }
}

/* --------------------------------------------------------------------------
   Éléments de contenu
   -------------------------------------------------------------------------- */
.price {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.05;
    margin-bottom: .15rem;
}

.sub {
    display: block;
    font-size: .85em;
    color: var(--text-light);
}

.na {
    color: var(--text-light);
    font-style: italic;
}

/* Notes / modalités */
.lease-notes {
    margin-top: 1rem;
}

.price-note {
    margin-top: .25rem;
    font-size: .9rem;
    color: var(--text-light);
}

.lease-terms {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.lease-terms li {
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.5;
    margin: .35rem 0;
    color: var(--text);
    opacity: .9;
}

.lease-terms li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(204, 11, 13, .15);
}

/* CTA group (si utilisé) */
.cta-group {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Accessibilité utilitaire */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ===================================================================================
   4. INCLUS/EXCLUS SECTION
   =================================================================================== */
.inclusion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.inclusion-card {
    border-radius: 0.25rem;
    padding: 32px;
    backdrop-filter: blur(2px);
}

.inclusion-card.included {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.inclusion-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.inclusion-list {
    list-style: none;
    padding: 0;
}

.inclusion-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.inclusion-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.inclusion-dot.included {
    background-color: #22c55e;
}

.inclusion-title.included {
    color: #22c55e;
}

.inclusion-card.excluded {
    background: rgba(204, 11, 13, 0.2);
    border: 1px solid rgba(204, 11, 13, 0.3);
}

.inclusion-title.excluded {
    color: var(--accent);
}

.inclusion-dot.excluded {
    background-color: var(--accent);
}

.p-excluded {
    color: var(--text-light);
    font-style: italic;
    margin-top: 4rem;
    border-left: 4px solid var(--accent);
    padding-left: 12px;

}

/* ==========================================================
   COMPARATIF ACHAT / 24 MOIS — responsive, no horizontal scroll
   Dépend de : var(--text), var(--text-light), var(--title-font), var(--p-font)
   ========================================================== */

:root {
    --comp-xpad: 0.75rem;
}

/* aligne les bords internes en mobile */

.table-container {
    overflow-x: auto;
    /* desktop fallback si colonnes ajoutées */
    -webkit-overflow-scrolling: touch;
    border-radius: .25rem;
    box-shadow: inset 0 0 0 1px rgba(240, 240, 240, .10), 0 10px 40px rgba(0, 0, 0, .25);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--p-font, Inter, sans-serif);
    color: var(--text);
    line-height: 1.45;
    backdrop-filter: blur(2px);
}

/* --- Desktop (>=841px) --- */
@media (min-width: 841px) {
    .comparison-table {
        min-width: 760px;
    }

    /* Colgroup desktop uniquement */
    .comparison-table col.col-feature {
        width: 38%;
    }

    .comparison-table col.col-achat {
        width: 31%;
    }

    .comparison-table col.col-lease {
        width: 31%;
    }

    /* En-tête sticky */
    .comparison-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        text-align: left;
        font-family: var(--title-font);
        font-weight: 800;
        letter-spacing: .2px;
        padding: 1rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
        border-bottom: 1.5px solid rgba(240, 240, 240, .15);
        backdrop-filter: saturate(120%) blur(2px);
    }

    .comparison-table thead th:nth-child(2),
    .comparison-table thead th:nth-child(3) {
        text-align: center;
    }

    .comparison-table thead th,
    .comparison-table tbody th,
    .comparison-table tbody td {
        vertical-align: middle;
    }

    .comparison-table tbody th,
    .comparison-table tbody td {
        padding: .9rem 1rem;
        border-bottom: 1px solid rgba(240, 240, 240, .10);
    }

    .comparison-table tbody th {
        text-align: left;
        font-weight: 600;
        background-image: linear-gradient(90deg, rgba(255, 255, 255, .02), transparent);
    }

    .comparison-table tbody td {
        text-align: center;
    }

    .comparison-table thead th+th,
    .comparison-table tbody td+td {
        border-left: 1px solid rgba(240, 240, 240, .10);
    }

    .comparison-table tbody tr:nth-child(odd) th,
    .comparison-table tbody tr:nth-child(odd) td {
        background-color: rgba(255, 255, 255, .015);
    }

    /* Mise en valeur “24 mois” (col 3) */
    .comparison-table thead th:nth-child(3),
    .comparison-table tbody td:nth-child(3),
    .comparison-table col.is-highlight {
        background-image: linear-gradient(180deg, rgba(204, 11, 13, .065), transparent);
        box-shadow: inset 2px 0 0 rgba(204, 11, 13, .30);
    }
}

/* --- Mobile (<=840px) — stack sans scroll --- */
@media (max-width: 840px) {
    .table-container {
        overflow-x: clip;
    }

    /* on coupe toute dérive */
    .comparison-table {
        min-width: 0;
        width: 100%;
        border-collapse: collapse;
    }

    .comparison-table thead {
        display: none;
    }

    /* plus d’entête en mobile */
    .comparison-table col {
        width: auto !important;
    }

    /* neutralise les widths du colgroup */

    .comparison-table tbody tr {
        display: grid;
        /* Colonne gauche confortable, droite auto */
        grid-template-columns: minmax(clamp(10rem, 55vw, 15rem), 1.3fr) minmax(8rem, 1fr);
        grid-auto-rows: auto;
        gap: .4rem 1rem;
        align-items: start;
        border-bottom: 1px solid rgba(240, 240, 240, .08);
        padding: .6rem 0;
    }

    .comparison-table tbody th,
    .comparison-table tbody td {
        display: block;
        border: 0;
        background: none;
        padding: .45rem 0;
        word-break: break-word;
    }

    /* Label/critère à gauche, sur 2 lignes de valeurs */
    .comparison-table tbody th {
        grid-column: 1 / 2;
        grid-row: 1 / span 2;
        /* occupe la hauteur des deux valeurs */
        text-align: left;
        font-weight: 600;
        padding-left: var(--comp-xpad);
    }

    /* Valeurs à droite, empilées (Achat puis 24 mois) */
    .comparison-table tbody td {
        grid-column: 2 / 3;
        text-align: left;
        padding-right: var(--comp-xpad);
    }

    /* Labels pseudo pour identifier les valeurs (zéro modif HTML) */
    .comparison-table tbody td:nth-child(2)::before,
    .comparison-table tbody td:nth-child(3)::before {
        display: inline-block;
        font-family: var(--title-font);
        font-weight: 700;
        color: var(--text-light);
        text-decoration: underline;
        text-underline-offset: 4px;
        letter-spacing: .2px;
        margin-right: .5rem;
    }

    .comparison-table tbody td:nth-child(2)::before {
        content: "Achat";
    }

    .comparison-table tbody td:nth-child(3)::before {
        content: "24 mois";
    }

    /* Neutralise la mise en valeur de la 3e colonne en mobile */
    .comparison-table tbody td:nth-child(3) {
        box-shadow: none;
        background-image: none;
    }
}

/* Divers */
.table-positive {
    color: #22c55e;
    font-weight: 600;
    position: relative;
    padding-left: 1.25rem;
}

.price-note {
    margin: .6rem 0 0;
    font-size: .9rem;
    color: var(--text-light);
}

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

.muted {
    opacity: .75;
    font-weight: 400;
}

/* === FIX mobile — comparatif achat/location (priorité en fin de fichier) === */
@media (max-width: 840px){
  /* 1) Pistes élastiques : la droite récupère plus d'espace, jamais coupée */
  .comparison-table tbody tr{
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
    gap: .45rem .8rem;
  }

  /* 2) Le contenu peut casser partout si besoin (mots longs, valeurs) */
  .comparison-table tbody th,
  .comparison-table tbody td{
    overflow-wrap: anywhere;
    word-break: normal; /* remplace break-word trop agressif */
  }

  /* 3) Labels "Achat / 24 mois" au-dessus de la valeur pour ne pas compacter la ligne */
  .comparison-table tbody td:nth-child(2)::before,
  .comparison-table tbody td:nth-child(3)::before{
    display: block !important;
    margin: 0 0 .15rem 0;
    text-decoration: none; /* évite le soulignement qui augmente la hauteur visuelle */
  }
}

/* Encore plus serré sur petits smartphones */
@media (max-width: 560px){
  .comparison-table{ font-size: .95rem; }
  .comparison-table tbody tr{
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
    gap: .35rem .6rem;
  }
  .comparison-table tbody th,
  .comparison-table tbody td{ padding: .4rem var(--comp-xpad); }
}


/* Bloc profils */

.profiles {
    margin-top: 48px;
    text-align: center;
    backdrop-filter: blur(2px);
}

.profiles h3 {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    letter-spacing: .2px;
    margin: 4rem 0;
}

/* Grille */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cartes */
.profile-card {
    background: rgba(240, 240, 240, .05);
    border: 1px solid rgba(240, 240, 240, .10);
    border-radius: 0.25rem;
    padding: 24px;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

@media (hover:hover) {
    .profile-card:hover {
        transform: translateY(-2px);
        border-color: rgba(240, 240, 240, .18);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    }
}

/* Titres & textes */
.profile-title {
    font-weight: 800;
    color: var(--accent, var(--accent));
    margin: 0 0 1.5rem 0;
    letter-spacing: .2px;
}

.profile-card p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.profile-recommendation {
    color: #22c55e;
    font-weight: 700;
    margin-top: 8px;
}

/* Liens d’action */
.profile-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid rgba(240, 240, 240, .25);
}

.profile-link:focus,
.profile-link:hover {
    border-bottom-color: var(--accent, var(--accent));
}

/* Double action sur la 3e carte */
.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Ligne d'aide sous les cartes profils */
.profiles-help {
    margin-top: 20px;
    text-align: center;
    color: var(--text);
    font-family: var(--p-font, Inter, sans-serif);
    display: flex;
    gap: .75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.profiles-help {
    margin-top: 4rem;
}

/* ===================================================================================
   6. FAQ SECTION
   =================================================================================== */

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-link {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
    text-decoration-color: var(--text);
}

.faq-item {
    background: linear-gradient(135deg,
            rgba(40, 40, 40, 0.3) 0%,
            rgba(20, 20, 20, 0.5) 100%);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(204, 11, 13, 0.05) 0%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.faq-item:hover {
    border-color: rgba(204, 11, 13, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(204, 11, 13, 0.2);
}

.faq-item.active::before {
    opacity: 1;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--title-font);
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 25px 30px 25px 30px;
}

.faq-answer p {
    margin: 0;
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 1rem;
}

/* ===================================================================================
   7. CTA SECTION
   =================================================================================== */
.cta-section .header,
.cta-section .description {
    text-align: center;
}

.cta-section .header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    margin-bottom: 8rem;
}

.cta-title::after {
    display: none;
}

.cta-section .description {
    margin-top: 5rem;
}


/* Accroche CTA – effet “shimmer” en boucle + hover subtil */
/* Accroche CTA – shimmer en boucle + soulignements haut/bas + hover scale */
/* Angle animable pour le shimmer (prog. enhancement) */
@property --shine-angle {
    syntax: '<angle>';
    initial-value: 110deg;
    inherits: false;
}

.cta-accent {
    margin-top: 10rem;
    font-family: var(--title-font);
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.15;
    text-align: center;
    position: relative;

    /* texte “gris doré” avec reflet en mouvement (moins blanc) */
    background: linear-gradient(var(--shine-angle),
            #797979 0%,
            #484848 20%,
            #F0F0F0 35%,
            var(--accent) 50%,
            #F0F0F0 65%,
            #484848 80%,
            #242424 100%);
    background-size: 500% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

    /* 2 animations simultanées : position (shimmer) + angle (rotation) */
    animation: ctaShine 7s ease-in-out infinite alternate,
        spinAngle 49s linear infinite;
    will-change: background-position, transform;
    transition: transform .35s ease;
}

/* Hover : accélère le shimmer + la rotation et scale progressif */
@media (hover:hover) {
    .cta-accent:hover {
        transform: scale(1.05);
        animation: ctaShine 3.5s ease-in-out infinite alternate,
            spinAngle 12s linear infinite;
    }
}

/* Traits haut/bas (si tu utilises déjà ::before/::after) */
.cta-accent::before,
.cta-accent::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
    transition: width .35s ease;
}

.cta-accent::before {
    top: -.4em;
}

.cta-accent::after {
    bottom: -.4em;
}

@media (hover:hover) {

    .cta-accent:hover::before,
    .cta-accent:hover::after {
        width: 72%;
    }
}

/* Animations */
@keyframes ctaShine {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0% 0;
    }
}

@keyframes spinAngle {
    to {
        --shine-angle: 470deg;
    }

    /* 110deg → 470deg (tour lent et continu) */
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .cta-accent {
        animation: none;
        background-position: 0 0;
        transition: none;
    }

    .cta-accent::before,
    .cta-accent::after {
        transition: none;
    }
}

/* Accessibilité : pas d’anim si l’utilisateur la réduit */
/* @media (prefers-reduced-motion: reduce){
  .cta-accent{ animation: none; background-position: 0 0; }
} */


.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-secondary:hover {
    background-color: var(--accent);
    color: white;
}


/* CTA-FOOTER */

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 2rem;
}

.payment-methods div {
    margin: 0 7px;
}

.payment-methods svg {
    transform: translateY(2px);
}

/* Responsive */
@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
}