/*
Theme Name: Abonnement IPTV Smarters
Description: Site français d’abonnements et de guides IPTV, éditable avec l’éditeur de site WordPress.
Version: 1.3.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: abonnement-iptv-smarters
License: GNU General Public License v2 or later
*/

:root {
    --sm-shell: 1240px;
    --sm-gutter: clamp(1.1rem, 4vw, 3.25rem);
    --sm-line: color-mix(in srgb, var(--wp--preset--color--muted) 20%, transparent);
    --sm-radius: 1.15rem;
}

body {
    margin: 0;
}

.wp-site-blocks > * + *,
.sm-main > * + * {
    margin-block-start: 0;
}

.sm-shell {
    width: min(var(--sm-shell), calc(100% - 2 * var(--sm-gutter)));
    margin-inline: auto;
}

.sm-main {
    min-height: 50vh;
}

.sm-main h1,
.sm-main h2,
.sm-main h3 {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.sm-main h1 {
    font-size: clamp(2.5rem, 5.65vw, 5.05rem);
}

.sm-main h2 {
    font-size: clamp(1.7rem, 3.1vw, 2.8rem);
}

.sm-main h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

.sm-main p,
.sm-main li {
    overflow-wrap: anywhere;
}

.sm-main a:focus-visible,
.sm-header a:focus-visible,
.sm-footer a:focus-visible,
.sm-main summary:focus-visible,
.sm-header button:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 4px;
}

.sm-header {
    border-bottom: 1px solid var(--sm-line);
    background: var(--wp--preset--color--base);
}

.sm-header-row {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sm-header-row > *,
.sm-footer-grid > * {
    margin-block: 0;
}

.sm-brand {
    color: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.sm-brand a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.sm-brand a::before {
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    border-radius: 0.43rem;
    background: var(--wp--preset--color--accent);
    content: "";
}

.sm-brand a::after {
    position: absolute;
    top: 50%;
    left: 0.63rem;
    width: 0.48rem;
    height: 0.67rem;
    transform: translateY(-50%);
    background: var(--wp--preset--color--accent-dark);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    content: "";
}

.sm-nav {
    color: var(--wp--preset--color--muted);
    font-size: 0.938rem;
    font-weight: 650;
}

.sm-nav a:hover,
.sm-nav .current-menu-item > a,
.sm-footer a:hover {
    color: var(--wp--preset--color--accent);
}

.sm-header-cta {
    flex: 0 0 auto;
}

.sm-nav button {
    min-width: 44px;
    min-height: 44px;
    padding: 0.45rem;
}

.sm-hero {
    padding-block: clamp(2.6rem, 6vw, 5.25rem) clamp(1.8rem, 4vw, 3.6rem);
}

.sm-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: center;
}

.sm-split > * {
    min-width: 0;
    margin-block: 0;
}

.sm-hero-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: clamp(1.8rem, 5vw, 4.25rem);
}

.sm-hero-copy h1 {
    margin-block: 0 1.2rem;
    letter-spacing: -0.065em;
    line-height: 0.99;
}

.sm-lede {
    max-width: 58ch;
    color: var(--wp--preset--color--muted);
    font-size: clamp(1.0625rem, 1.65vw, 1.25rem);
    line-height: 1.62;
}

.sm-hero-note {
    color: var(--wp--preset--color--muted);
    font-size: 0.9rem;
    margin-top: 1.15rem;
}

.sm-hero-media {
    overflow: hidden;
    border: 1px solid var(--sm-line);
    border-radius: 1.35rem;
    background: var(--wp--preset--color--panel);
}

.sm-hero-image,
.sm-panel-image {
    display: block;
    overflow: hidden;
    margin: 0;
}

.sm-hero-image img,
.sm-panel-image img {
    display: block;
    width: 100%;
    height: auto;
}

.sm-hero-caption {
    margin: 0;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--sm-line);
    color: var(--wp--preset--color--muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.sm-panel-image {
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
}

.sm-split-copy p,
.sm-card p,
.sm-article-copy p {
    color: var(--wp--preset--color--muted);
}

.sm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.15rem);
}

.sm-grid > * {
    min-width: 0;
    margin-block: 0;
}

.sm-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.65rem;
    padding: clamp(1rem, 2.25vw, 1.6rem);
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: var(--wp--preset--color--panel);
}

.sm-card > * {
    margin: 0;
}

.sm-paths {
    padding-bottom: clamp(0.6rem, 2vw, 1.35rem);
}

.sm-path-grid .sm-card {
    background: transparent;
}

.sm-card-link a,
.sm-text-button a {
    font-weight: 800;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.sm-card .sm-card-link {
    margin-top: auto;
    padding-top: 0.25rem;
}

.sm-section {
    padding-block: clamp(1.85rem, 4vw, 3.4rem);
}

.sm-page-intro {
    padding-block: clamp(2.75rem, 6vw, 5rem) clamp(1.1rem, 3vw, 2.3rem);
}

.sm-page-intro h1 {
    max-width: 22ch;
    margin-block: 0;
}

.sm-page-intro + .sm-section {
    padding-top: clamp(1rem, 2.75vw, 2.15rem);
}

.sm-section-intro {
    max-width: 67ch;
    color: var(--wp--preset--color--muted);
}

.sm-price-card .sm-price {
    color: var(--wp--preset--color--ink);
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1.08;
}

.sm-price-card .sm-price-context {
    color: var(--wp--preset--color--accent);
    font-size: 0.94rem;
    font-weight: 750;
}

.sm-price-highlight {
    border-color: color-mix(in srgb, var(--wp--preset--color--accent) 48%, var(--sm-line));
    background: color-mix(in srgb, var(--wp--preset--color--accent) 7%, var(--wp--preset--color--panel));
}

.sm-price-highlight .sm-price {
    color: var(--wp--preset--color--accent);
}

.sm-note {
    max-width: 76ch;
    color: var(--wp--preset--color--muted);
    font-size: 0.94rem;
}

.sm-main .wp-block-table {
    overflow-x: auto;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: var(--wp--preset--color--panel);
}

.sm-main .wp-block-table table {
    min-width: 34rem;
}

.sm-main .wp-block-table th,
.sm-main .wp-block-table td {
    padding: 0.8rem 0.85rem;
    border-color: var(--sm-line);
    text-align: left;
    white-space: nowrap;
}

.sm-main .wp-block-table thead {
    border-bottom: 1px solid var(--sm-line);
}

.sm-main .wp-block-table th {
    color: var(--wp--preset--color--accent);
}

.sm-main .wp-block-table figcaption {
    padding: 0 0.85rem;
    color: var(--wp--preset--color--muted);
    text-align: left;
}

.sm-articles .wp-block-post-template {
    gap: clamp(0.8rem, 2vw, 1.25rem);
}

.sm-article-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: var(--wp--preset--color--panel);
}

.sm-article-card .wp-block-post-featured-image {
    margin: 0;
}

.sm-article-card .wp-block-post-featured-image img {
    display: block;
    object-fit: cover;
}

.sm-article-copy {
    margin: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.sm-article-copy a {
    color: var(--wp--preset--color--ink);
    text-decoration: none;
}

.sm-article-copy a:hover {
    color: var(--wp--preset--color--accent);
    text-decoration: underline;
}

.sm-article-copy .wp-block-post-excerpt {
    margin-top: 0.65rem;
}

.sm-main .sm-article-cover {
    display: block;
    width: min(900px, calc(100% - 2 * var(--sm-gutter)));
    overflow: hidden;
    margin-inline: auto;
    border-radius: var(--sm-radius);
}

.sm-article-cover img {
    display: block;
}

.sm-prose {
    padding: clamp(1.7rem, 4vw, 3.2rem) var(--sm-gutter) clamp(2.5rem, 5vw, 4.5rem);
}

.sm-article-intro {
    width: min(900px, calc(100% - 2 * var(--sm-gutter)));
}

.sm-article-intro h1 {
    font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.sm-faq-section {
    max-width: 850px;
}

.sm-main .wp-block-details {
    padding: 1rem 1.2rem;
    border: 1px solid var(--sm-line);
    border-radius: 0.8rem;
    background: var(--wp--preset--color--panel);
}

.sm-main .wp-block-details summary {
    color: var(--wp--preset--color--ink);
    cursor: pointer;
    font-weight: 800;
}

.sm-main .wp-block-details p {
    color: var(--wp--preset--color--muted);
}

.sm-cta {
    margin-block: 1.3rem 2.5rem;
    padding: clamp(1.35rem, 3.3vw, 2.85rem);
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: var(--wp--preset--color--panel);
    box-sizing: border-box;
}

.sm-footer {
    margin-top: clamp(1rem, 3vw, 2.5rem);
    padding-block: clamp(1.9rem, 5vw, 3.3rem);
    border-top: 1px solid var(--sm-line);
    background: var(--wp--preset--color--panel);
}

.sm-footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
}

.sm-footer p,
.sm-footer a {
    color: var(--wp--preset--color--muted);
}

.sm-footer h2 {
    font-size: 1.1rem;
}

.sm-footer .sm-brand a {
    color: var(--wp--preset--color--ink);
}

.sm-footer .sm-footer-nav {
    align-items: flex-start;
    font-size: 0.94rem;
}

@media (max-width: 930px) {
    .sm-header-cta {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .sm-hero-grid,
    .sm-story {
        grid-template-columns: 1fr;
    }

    .sm-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }

    .sm-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none;
    }

    .sm-hero-copy h1 {
        font-size: clamp(2.65rem, 9vw, 4.15rem);
    }

    .sm-header-row {
        min-height: 64px;
    }
}

@media (max-width: 620px) {
    .sm-grid,
    .sm-footer-grid,
    .sm-articles .wp-block-post-template.is-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sm-main .wp-block-buttons {
        gap: 0.6rem;
    }

    .sm-footer-grid {
        gap: 1.6rem;
    }
}

.sm-feature-grid {
    margin-top: 1.25rem;
}

.sm-feature-grid .sm-card {
    border-top-color: color-mix(in srgb, var(--wp--preset--color--accent) 48%, var(--sm-line));
}

.sm-main .wp-block-table.sm-duration-prices table {
    min-width: 0;
}

.sm-main .wp-block-table.sm-duration-prices th,
.sm-main .wp-block-table.sm-duration-prices td {
    white-space: normal;
}

.sm-brand-stack {
    min-width: 0;
}

.sm-brand-stack .sm-brand {
    margin: 0;
}

.sm-brand-slogan {
    max-width: 35ch;
    margin: .15rem 0 0;
    color: var(--wp--preset--color--muted);
    font-size: .75rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sm-builder-section .sm-section-intro {
    margin-block-end: 1.35rem;
}

.sm-centered-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: .9rem;
}

.sm-centered-cards > .sm-card {
    box-sizing: border-box;
    flex: 0 1 calc((100% - 2.7rem) / 4);
    min-width: 0;
    overflow-wrap: anywhere;
}

.sm-centered-cards > .sm-card:only-child {
    flex-basis: 100%;
    margin: 0;
    padding: clamp(1.4rem, 4vw, 2.65rem);
}

.sm-centered-cards > .sm-card:only-child h3 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.sm-pricing-card {
    display: flex;
    flex-direction: column;
}

.sm-pricing-card.sm-pricing-featured {
    background: color-mix(in srgb, var(--wp--preset--color--accent) 9%, var(--wp--preset--color--panel));
    border-color: color-mix(in srgb, var(--wp--preset--color--accent) 65%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--accent) 24%, transparent);
}

.sm-pricing-badge {
    color: var(--wp--preset--color--accent);
    font-size: .75rem;
    font-weight: 800;
}

.sm-pricing-card h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.sm-pricing-card .sm-pricing-total {
    color: var(--wp--preset--color--ink);
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
}

.sm-pricing-card .sm-pricing-monthly,
.sm-pricing-card .sm-pricing-note {
    font-size: .8rem;
}

.sm-pricing-features {
    display: grid;
    gap: .44rem;
    padding: .9rem 0 0;
    list-style: none;
    border-top: 1px solid var(--sm-line);
    font-size: .86rem;
    line-height: 1.4;
}

.sm-pricing-features li {
    position: relative;
    padding-inline-start: 1.15rem;
}

.sm-pricing-features li::before {
    position: absolute;
    inset-inline-start: 0;
    color: var(--wp--preset--color--accent);
    content: "✓";
}

.sm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-block-start: 1rem;
}

.sm-pricing-card > .sm-actions {
    margin-block-start: auto;
    padding-block-start: .85rem;
}

.sm-pricing-card .sm-action {
    width: 100%;
    text-align: center;
}

.sm-pricing-card .sm-action-link {
    text-align: start;
}

.sm-action,
.sm-main .wp-block-button .sm-action {
    display: inline-block;
    max-width: 100%;
    padding: .65rem .9rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sm-action-primary,
.sm-main .wp-block-button .sm-action-primary {
    color: var(--wp--preset--color--base);
    background: var(--wp--preset--color--accent);
}

.sm-action-outline,
.sm-main .wp-block-button .sm-action-outline {
    color: var(--wp--preset--color--ink);
    background: transparent;
    border-color: var(--sm-line);
}

.sm-action-link,
.sm-main .wp-block-button .sm-action-link {
    padding: 0;
    color: var(--wp--preset--color--accent);
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.sm-action-custom,
.sm-main .wp-block-button .sm-action-custom {
    color: var(--sm-action-ink);
    background: var(--sm-action-bg);
}

.sm-action:hover {
    filter: brightness(1.12);
}

.sm-builder-section figure {
    margin-inline: 0;
}

.sm-builder-section .sm-split img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--sm-radius);
}

.sm-hero-grid:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.sm-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    align-items: start;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding-block-end: 3rem;
}

.sm-article-layout > .sm-prose {
    width: 100%;
    max-width: none;
    margin: 0;
}

.sm-article-aside {
    align-self: stretch;
    min-width: 0;
}

.sm-article-sticky {
    position: sticky;
    top: 1.25rem;
    display: grid;
    align-content: start;
    gap: 1rem;
    max-height: calc(100dvh - 2.5rem);
    padding: 2px;
    overflow: auto;
}

.admin-bar .sm-article-sticky {
    top: calc(1.25rem + var(--wp-admin--admin-bar--height, 32px));
    max-height: calc(100dvh - 2.5rem - var(--wp-admin--admin-bar--height, 32px));
}

.sm-article-toc {
    padding: 1rem 1.2rem;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: var(--wp--preset--color--panel);
}

.sm-article-toc h2 {
    margin: 0 0 .6rem;
    font-size: 1.1rem;
}

.sm-article-toc ol {
    margin: 0;
    padding-inline-start: 1.15rem;
    font-size: .9rem;
}

.sm-article-toc li + li {
    margin-block-start: .35rem;
}

.sm-toc-level-3 {
    margin-inline-start: .5rem;
}

.sm-toc-level-4 {
    margin-inline-start: 1rem;
}

.sm-article-layout .sm-prose [id] {
    scroll-margin-top: 1.5rem;
}

@media (max-width: 1000px) {
    .sm-centered-cards > .sm-card {
        flex-basis: calc((100% - .9rem) / 2);
    }
}

@media (max-width: 780px) {
    .sm-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sm-article-sticky,
    .admin-bar .sm-article-sticky {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 530px) {
    .sm-centered-cards > .sm-card {
        flex-basis: 100%;
    }
}

.sm-pricing-featured .sm-action-outline {
    color: var(--wp--preset--color--base);
    background: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
}

.sm-footer .sm-footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

@media (max-width: 930px) {
    .sm-header-row {
        flex-wrap: wrap;
        padding-block: .75rem;
    }

    .sm-header-row .sm-header-cta {
        display: flex;
        margin: 0;
    }
}

a.sm-whatsapp {
    position: fixed;
    z-index: 20;
    inset-inline-end: max(1rem, env(safe-area-inset-right));
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    box-sizing: border-box;
    min-width: 3.25rem;
    min-height: 3.25rem;
    max-width: min(70vw, 21rem);
    padding: .68rem .95rem;
    border: 1px solid #7ad9b7;
    border-radius: 999px;
    color: #fff;
    background: #087b53;
    box-shadow: 0 4px 16px rgb(0 0 0 / .28);
    font-size: .875rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
}

a.sm-whatsapp:hover {
    color: #fff;
    background: #096645;
}

a.sm-whatsapp:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.sm-whatsapp img {
    flex: none;
}

.sm-whatsapp-label {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    a.sm-whatsapp {
        padding: .75rem;
    }

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