:root {
    --ink: #102033;
    --muted: #5d6b7a;
    --paper: #fbf8f3;
    --line: #e7dfd2;
    --brand: #d81818;
    --brand-dark: #1b1b1f;
    --accent: #ff8a00;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(16, 32, 51, .1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 248, 243, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.navbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1160px;
    padding: 14px 22px;
}

.brand {
    align-items: center;
    display: flex;
    font-weight: 800;
    gap: 12px;
    letter-spacing: .2px;
}

.brand img {
    border-radius: 0;
    height: 56px;
    object-fit: contain;
    width: 128px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    border-radius: 8px;
    color: var(--muted);
    display: block;
    font-weight: 700;
    padding: 10px 13px;
}

.nav-links a:hover,
.nav-links .nav-cta {
    background: var(--brand);
    color: var(--white);
}

.menu-toggle {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: none;
    font-size: 22px;
    padding: 8px 12px;
}

.hero {
    align-items: center;
    background-position: center;
    background-size: cover;
    color: var(--white);
    display: flex;
    min-height: 560px;
    padding: 80px 22px;
}

.hero-content,
.page-hero,
.section,
.contact-layout,
.article-page {
    margin: 0 auto;
    max-width: 1160px;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-logo {
    background: rgba(255, 255, 255, .9);
    border-radius: 8px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .22);
    margin-bottom: 22px;
    max-width: 220px;
    padding: 8px 14px;
}

.eyebrow {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.03;
    margin-bottom: 18px;
}

.hero p,
.page-hero p {
    font-size: 1.15rem;
    max-width: 690px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 13px 18px;
}

.button.primary {
    background: var(--accent);
    color: #2a210c;
}

.button.secondary {
    background: rgba(255, 255, 255, .16);
    color: var(--white);
    outline: 1px solid rgba(255, 255, 255, .48);
}

.button.secondary.dark {
    background: var(--brand-dark);
    color: var(--white);
}

.page-hero {
    padding: 72px 22px 30px;
}

.page-hero.compact {
    min-height: 260px;
}

.page-hero .eyebrow {
    color: var(--brand);
}

.promo-hero {
    background: linear-gradient(135deg, rgba(216, 24, 24, .12), rgba(255, 138, 0, .12));
    border-bottom: 1px solid var(--line);
    max-width: none;
    padding-left: max(22px, calc((100vw - 1160px) / 2));
    padding-right: max(22px, calc((100vw - 1160px) / 2));
}

.section {
    padding: 64px 22px;
}

.messages {
    margin: 24px auto 0;
    max-width: 1160px;
    padding: 0 22px;
}

.message {
    background: #eef9f0;
    border: 1px solid #bfe6c5;
    border-radius: 8px;
    color: #20572a;
    font-weight: 800;
    padding: 14px 16px;
}

.section.muted {
    background: #f3eee6;
    max-width: none;
    padding-left: max(22px, calc((100vw - 1160px) / 2));
    padding-right: max(22px, calc((100vw - 1160px) / 2));
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.home-dashboard {
    padding-bottom: 38px;
}

.home-feature-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 245px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.home-feature-card::before {
    content: "";
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
}

.home-feature-card span {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.home-feature-card h3 {
    font-size: 1.38rem;
    line-height: 1.18;
    margin-bottom: 12px;
}

.home-feature-card p {
    color: var(--muted);
    margin-bottom: 24px;
}

.home-feature-card strong {
    color: var(--brand-dark);
    margin-top: auto;
}

.feature-articles,
.feature-coupons,
.feature-publicite {
    grid-column: span 2;
}

.feature-ecran,
.feature-abonnement {
    grid-column: span 3;
}

.feature-articles::before {
    background: var(--brand);
}

.feature-coupons::before {
    background: #1f7a49;
}

.feature-publicite::before {
    background: var(--accent);
}

.feature-ecran::before {
    background: #1f6f8b;
}

.feature-abonnement::before {
    background: var(--brand-dark);
}

.article-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.category-card,
.empty-state,
.contact-form,
.contact-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    overflow: hidden;
    padding: 24px;
}

.article-card-image {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin: -8px -8px 18px;
    object-fit: cover;
    width: calc(100% + 16px);
}

.card-topline,
.article-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-topline a,
.category-pill {
    color: var(--brand);
    font-weight: 800;
}

.article-card h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.article-card p {
    color: var(--muted);
}

.read-more {
    color: var(--brand-dark);
    font-weight: 800;
    margin-top: auto;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill {
    background: rgba(31, 111, 139, .1);
    border-radius: 999px;
    display: inline-flex;
    padding: 8px 13px;
}

.category-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card {
    display: block;
    padding: 26px;
}

.category-card span {
    color: var(--brand);
    font-size: .9rem;
    font-weight: 800;
}

.article-page {
    padding: 70px 22px;
}

.article-header {
    max-width: 820px;
}

.article-header h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin: 18px 0;
}

.article-header > p {
    color: var(--muted);
    font-size: 1.22rem;
}

.admin-edit-link {
    background: var(--brand-dark);
    border-radius: 8px;
    color: var(--white);
    display: inline-flex;
    font-weight: 800;
    margin-top: 4px;
    padding: 10px 14px;
}

.admin-edit-link:hover {
    background: var(--brand);
    color: var(--white);
}

.article-main-image {
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 26px;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.article-body,
.prose {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 1.08rem;
    margin-top: 34px;
    max-width: 820px;
    padding: 34px;
}

.article-body > p {
    margin: 0 0 1.35em;
}

.article-body > p:last-child {
    margin-bottom: 0;
}

.article-inline-photo {
    margin: 28px 0;
}

.article-inline-photo img {
    border-radius: 8px;
    display: block;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.article-inline-photo figcaption {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 8px;
}

.article-ad {
    align-items: center;
    background: #f8fbf6;
    border: 1px solid #cfdcc4;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 22px;
    grid-template-columns: 220px minmax(0, 1fr);
    margin-top: 24px;
    max-width: 820px;
    padding: 22px;
}

.article-body .article-ad {
    box-shadow: none;
    margin: 30px 0;
    max-width: none;
}

.article-ad img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.article-ad h2 {
    color: var(--brand-dark);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.article-ad p {
    color: var(--muted);
    margin-bottom: 14px;
}

.share-panel {
    background: var(--brand-dark);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--white);
    margin-top: 24px;
    max-width: 820px;
    padding: 26px;
}

.article-gallery {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 24px;
    max-width: 820px;
    padding: 26px;
}

.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid figure {
    margin: 0;
}

.gallery-grid img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.gallery-grid figcaption {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 8px;
}

.share-panel h2 {
    margin-bottom: 16px;
}

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

.share-button {
    border: 0;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    padding: 11px 14px;
}

.share-button.x {
    background: #111;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.substack {
    background: #ff6719;
}

.share-button.copy-link {
    background: var(--brand);
}

.share-note {
    color: rgba(255, 255, 255, .76);
    margin: 16px 0 0;
}

.contact-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.3fr .7fr;
    padding: 24px 22px 70px;
}

.ad-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: .8fr 1.2fr;
}

.ad-preview,
.price-card,
.info-card,
.coupon-card,
.social-card,
.copy-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.ad-preview {
    align-content: start;
    display: grid;
    gap: 16px;
    padding: 28px;
}

.ad-preview img {
    max-width: 260px;
}

.pricing-grid,
.info-grid,
.coupon-grid,
.social-grid {
    display: grid;
    gap: 18px;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid,
.coupon-grid,
.social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card,
.info-card,
.social-card {
    padding: 24px;
}

.price-card span,
.coupon-card span,
.social-card span {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.price-card.featured {
    border-color: var(--brand);
    outline: 3px solid rgba(216, 24, 24, .12);
}

.coupon-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    overflow: hidden;
    padding: 26px;
    position: relative;
}

.coupon-card::after {
    border: 2px dashed rgba(16, 32, 51, .24);
    border-radius: 8px;
    content: "";
    inset: 12px;
    pointer-events: none;
    position: absolute;
}

.coupon-card h2 {
    color: var(--brand);
    font-size: 2rem;
    line-height: 1.05;
}

.coupon-card strong {
    background: var(--accent);
    border-radius: 8px;
    color: #2a210c;
    display: inline-flex;
    justify-content: center;
    margin-top: 18px;
    padding: 10px;
}

.coupon-card.dark {
    background: var(--brand-dark);
    color: var(--white);
}

.coupon-card.dark p {
    color: rgba(255, 255, 255, .78);
}

.wide-copy {
    max-width: 760px;
}

.social-card {
    min-height: 270px;
}

.social-card.tiktok {
    border-top: 5px solid #111;
}

.social-card.youtube {
    border-top: 5px solid #d81818;
}

.social-card.facebook {
    border-top: 5px solid #1877f2;
}

.social-card.substack {
    border-top: 5px solid #ff6719;
}

.color-control-intro {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-sample-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-sample-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 22px;
}

.color-swatch {
    background: linear-gradient(135deg, #f2f2f2, #d9d9d9);
    border: 1px solid rgba(16, 32, 51, .18);
    border-radius: 8px;
    min-height: 86px;
}

.color-sample-card span {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.color-sample-card h3 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 10px;
}

.color-sample-card p {
    color: var(--muted);
    margin-bottom: 4px;
}

.lab-table,
.color-result,
.reading-list {
    grid-column: 1 / -1;
}

.lab-table {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-table div {
    background: #f8f5ef;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 12px;
}

.lab-table span {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.color-result {
    align-items: center;
    background: #eef1f4;
    border-radius: 8px;
    color: #425163;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
}

.color-result strong {
    color: var(--ink);
}

.color-result span {
    color: inherit;
    font-size: .88rem;
    letter-spacing: 0;
    text-transform: none;
}

.color-result.accepted {
    background: #e8f6ec;
    color: #20572a;
}

.color-result.rejected {
    background: #fdecec;
    color: #9b1c1c;
}

.reading-list {
    background: #fbf8f3;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
}

.reading-list strong {
    display: block;
    margin-bottom: 8px;
}

.reading-list p {
    margin-bottom: 4px;
}

.color-control-cta {
    margin: 0 auto;
    max-width: 1160px;
}

.color-studio {
    padding-top: 42px;
}

.studio-toolbar {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.studio-toolbar h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0;
}

.studio-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 34px;
}

.studio-panel,
.reading-row {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.studio-panel {
    padding: 24px;
}

.studio-panel h3 {
    font-size: 1.45rem;
    line-height: 1.15;
    margin-bottom: 8px;
}

.studio-panel p {
    color: var(--muted);
}

.studio-swatch {
    background: #d9d9d9;
    border: 1px solid rgba(16, 32, 51, .18);
    border-radius: 8px;
    height: 118px;
    margin: 18px 0;
}

.studio-swatch.small {
    height: 54px;
    margin: 0;
    width: 72px;
}

.studio-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.studio-fields label,
.reading-row label {
    color: var(--muted);
    display: grid;
    font-size: .9rem;
    font-weight: 800;
    gap: 5px;
}

.studio-fields input,
.reading-row input {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    padding: 10px 11px;
    width: 100%;
}

.studio-result-panel {
    background: var(--brand-dark);
    color: var(--white);
}

.studio-result-panel p {
    color: rgba(255, 255, 255, .72);
}

.studio-status {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: flex;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    justify-content: center;
    min-height: 140px;
    text-transform: uppercase;
}

.studio-status.pass,
.reading-status.pass {
    background: #e8f6ec;
    color: #20572a;
}

.studio-status.fail,
.reading-status.fail {
    background: #fdecec;
    color: #9b1c1c;
}

.studio-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0;
}

.studio-metrics div {
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 12px;
}

.studio-metrics dt {
    color: rgba(255, 255, 255, .68);
    font-size: .82rem;
    font-weight: 800;
}

.studio-metrics dd {
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0;
}

.reading-studio {
    display: grid;
    gap: 12px;
}

.reading-row {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 100px 72px repeat(3, minmax(78px, 1fr)) 130px 96px;
    padding: 14px;
}

.reading-id,
.reading-delta {
    font-weight: 900;
}

.reading-delta {
    color: var(--muted);
}

.reading-status {
    align-items: center;
    background: #eef1f4;
    border-radius: 8px;
    color: #425163;
    display: flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
}

.formula-correction {
    margin-top: 38px;
}

.formula-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.formula-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.correction-panel {
    border-top: 5px solid #1f6f8b;
}

.correction-summary {
    background: #eef7fb;
    border: 1px solid #cbe1ec;
    border-radius: 8px;
    color: #214c5f;
    font-weight: 800;
    margin: 14px 0;
    padding: 14px;
}

.correction-table {
    display: grid;
    gap: 10px;
}

.correction-table div {
    align-items: center;
    background: #f8f5ef;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 13px 14px;
}

.correction-table span {
    color: var(--brand);
    font-weight: 900;
}

.phone-scan-grid,
.phone-context-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.phone-file-input {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    margin: 16px 0;
    padding: 12px;
    width: 100%;
}

.phone-canvas {
    background: #f3eee6;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    max-width: 100%;
    width: 100%;
}

.phone-scan-actions {
    margin-top: 14px;
}

.phone-result-panel {
    border-top: 5px solid #1f7a49;
}

.phone-swatch {
    background: #d9d9d9;
    border: 1px solid rgba(16, 32, 51, .18);
    border-radius: 8px;
    height: 180px;
    margin: 16px 0;
}

.phone-values {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-values div {
    background: #f8f5ef;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.phone-values dt {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
}

.phone-values dd {
    font-weight: 900;
    margin: 0;
    overflow-wrap: anywhere;
}

.phone-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-form-grid label {
    color: var(--muted);
    display: grid;
    font-size: .9rem;
    font-weight: 800;
    gap: 5px;
}

.phone-form-grid input,
.phone-form-grid select {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    padding: 10px 11px;
    width: 100%;
}

.phone-advice {
    margin: 12px 0 0;
    padding-left: 20px;
}

.phone-advice li {
    margin-bottom: 8px;
}

.timer-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.1fr .9fr;
}

.timer-main {
    background: var(--brand-dark);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--white);
    padding: 30px;
}

.timer-label {
    color: #ffb347;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.timer-display {
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: .95;
    margin: 24px 0 18px;
}

.timer-status {
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 24px;
    padding: 10px 14px;
}

.timer-status.running {
    background: #fff8e8;
    color: #6c4700;
}

.timer-status.ready {
    background: #e8f6ec;
    color: #20572a;
}

.timer-actions,
.sample-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.timer-settings {
    display: grid;
    gap: 14px;
}

.timer-settings label {
    color: var(--muted);
    display: grid;
    font-size: .9rem;
    font-weight: 800;
    gap: 6px;
}

.timer-settings input,
.timer-settings select {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    padding: 11px 12px;
}

.sample-actions {
    margin: 20px 0;
}

.timer-history-heading {
    margin-top: 36px;
}

.timer-history {
    display: grid;
    gap: 10px;
}

.timer-history-item {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr auto;
    padding: 14px 16px;
}

.timer-history-item span,
.timer-history-item time {
    color: var(--muted);
    font-weight: 800;
}

.video-studio-section {
    padding-top: 32px;
}

.video-studio-grid {
    display: grid;
    gap: 20px;
}

.video-studio-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
    overflow: hidden;
    padding: 18px;
}

.video-studio-preview {
    align-items: center;
    background: #f3eee6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 250px;
    overflow: hidden;
}

.video-studio-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.video-studio-preview img[src*="logo"] {
    height: auto;
    max-width: 220px;
    object-fit: contain;
    padding: 24px;
}

.video-studio-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.video-studio-content span {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.video-studio-content h3 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.1;
    margin-bottom: 0;
}

.video-studio-content > p {
    color: var(--muted);
    margin-bottom: 2px;
}

.script-box {
    background: #f8f5ef;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.script-box h4 {
    margin: 0 0 6px;
}

.script-box p {
    color: var(--muted);
    margin-bottom: 0;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.publishing-plan {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr .8fr;
    margin: 0 auto;
    max-width: 1160px;
}

.publishing-plan ol {
    padding-left: 22px;
}

.publishing-plan li {
    margin-bottom: 10px;
}

.copy-box {
    padding: 24px;
}

.cta-band {
    align-items: center;
    background: var(--brand-dark);
    border-radius: 8px;
    color: var(--white);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 30px;
}

.cta-band p {
    color: rgba(255, 255, 255, .78);
    margin-bottom: 0;
}

.purchase-form select {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    padding: 12px 13px;
    width: 100%;
}

.field-error {
    color: var(--brand);
    font-size: .9rem;
}

.check-list {
    padding-left: 20px;
}

.check-list li {
    margin-bottom: 10px;
}

.comments-section {
    padding-top: 0;
}

.comments-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr .8fr;
}

.comment-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    padding: 22px;
}

.comment-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.comment-meta strong {
    color: var(--ink);
}

.comment-answer {
    background: #fff8ef;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    margin-top: 16px;
    padding: 16px;
}

.comment-answer p {
    margin-bottom: 0;
}

.comment-form {
    align-self: start;
}

.contact-form,
.contact-panel {
    padding: 26px;
}

.contact-form label {
    display: grid;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 16px;
}

input,
textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    padding: 12px 13px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
}

.print-toolbar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin: 0 auto;
    max-width: 920px;
    padding: 30px 22px 0;
}

.flyer-page {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 28px auto 70px;
    max-width: 920px;
    min-height: 1180px;
    padding: 44px;
}

.flyer-header {
    align-items: center;
    border-bottom: 4px solid var(--brand);
    display: flex;
    gap: 22px;
    justify-content: space-between;
    padding-bottom: 22px;
}

.flyer-header img {
    max-width: 310px;
}

.flyer-header p {
    color: var(--muted);
    font-weight: 800;
    margin: 0;
    text-align: right;
}

.flyer-main {
    background: linear-gradient(135deg, rgba(16, 32, 51, .96), rgba(216, 24, 24, .88));
    color: var(--white);
    margin: 34px 0;
    padding: 42px;
}

.flyer-main h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.flyer-main p {
    font-size: 1.2rem;
    max-width: 680px;
}

.flyer-columns {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.1fr .9fr;
}

.flyer-columns h2,
.flyer-articles h2 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.flyer-columns li {
    margin-bottom: 10px;
}

.flyer-contact {
    background: #fff8ef;
    border: 1px solid #ffd39a;
    border-radius: 8px;
    padding: 24px;
}

.qr-placeholder {
    align-items: center;
    background:
        linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 22px 22px,
        linear-gradient(#111 10px, transparent 10px) 0 0 / 22px 22px,
        #fff;
    border: 8px solid #111;
    color: var(--brand);
    display: flex;
    font-size: 2rem;
    font-weight: 900;
    height: 150px;
    justify-content: center;
    margin-top: 20px;
    width: 150px;
}

.flyer-articles {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 24px;
}

.flyer-footer {
    align-items: center;
    border-top: 4px solid var(--brand-dark);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 18px;
}

.site-footer {
    align-items: center;
    background: var(--ink);
    color: rgba(255, 255, 255, .76);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 34px max(22px, calc((100vw - 1160px) / 2));
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: var(--white);
}

.screen-news-page {
    background: #07111f;
    color: #f7fbff;
    height: 100vh;
    overflow: hidden;
}

.screen-news {
    display: grid;
    gap: 18px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    padding: 22px;
}

.screen-news-header {
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, .18);
    display: grid;
    gap: 20px;
    grid-template-columns: auto 1fr auto;
    padding-bottom: 16px;
}

.screen-news-header img {
    background: #fff;
    border-radius: 6px;
    height: 74px;
    object-fit: contain;
    padding: 6px 10px;
    width: 150px;
}

.screen-news-header p {
    color: #fff;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.screen-news-header span,
.screen-news-header time {
    color: #a9b9cc;
    font-size: 1.05rem;
    font-weight: 700;
}

.screen-header-actions {
    align-items: flex-end;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.screen-header-actions button {
    background: #ffb347;
    border: 0;
    border-radius: 8px;
    color: #07111f;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    padding: 10px 14px;
}

.screen-header-actions button.is-active {
    background: #d81818;
    color: #fff;
}

.screen-ticker {
    background: #d81818;
    border-radius: 8px;
    box-shadow: 0 -14px 36px rgba(0, 0, 0, .22);
    overflow: hidden;
    padding: 14px 0;
}

.screen-ticker-track {
    animation: screenTicker 42s linear infinite;
    display: flex;
    gap: 48px;
    white-space: nowrap;
    width: max-content;
}

.screen-ticker-track span {
    color: #fff;
    font-size: 1.38rem;
    font-weight: 900;
    padding-left: 48px;
}

@keyframes screenTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.screen-feed {
    display: block;
    overflow: hidden;
    padding-right: 4px;
    position: relative;
    scroll-behavior: smooth;
}

.screen-card {
    background: #101d2f;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
    display: none;
    height: 100%;
    min-height: 300px;
    padding: 22px;
}

.screen-card.is-active {
    animation: screenCardFade .55s ease both;
    display: block;
}

@keyframes screenCardFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-card-layout {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(360px, 46%) minmax(0, 1fr);
    min-height: calc(100vh - 260px);
}

.screen-card-layout.without-image {
    grid-template-columns: 1fr;
}

.screen-card img {
    border-radius: 8px;
    height: 100%;
    min-height: calc(100vh - 260px);
    object-fit: cover;
    width: 100%;
}

.screen-label {
    color: #ffb347;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .14em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.screen-card h1,
.screen-card h2 {
    color: #fff;
    font-size: 2.25rem;
    line-height: 1.08;
    margin: 0 0 14px;
}

.screen-card p {
    color: #d7e2ef;
    font-size: 1.2rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.screen-card-layout p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.screen-card span {
    color: #9fb1c7;
    font-size: 1rem;
    font-weight: 800;
}

.screen-card.headline {
    background: #132948;
    border-color: rgba(255, 179, 71, .5);
}

.screen-ad {
    background: #fff8e8;
    color: #102033;
    min-height: 180px;
}

.screen-ad.secondary {
    background: #eef7f2;
}

.screen-ad .screen-label {
    color: #d81818;
}

.screen-ad h2 {
    color: #102033;
}

.screen-ad p {
    color: #425163;
}

.screen-ad span {
    color: #d81818;
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        display: none;
        left: 0;
        padding: 12px 22px 20px;
        position: absolute;
        right: 0;
        top: 77px;
    }

    .nav-links.is-open {
        display: grid;
    }

    .hero {
        min-height: 500px;
    }

    .article-grid,
    .category-grid,
    .home-feature-grid,
    .color-control-intro,
    .color-sample-grid,
    .studio-grid,
    .studio-fields,
    .studio-metrics,
    .formula-grid,
    .formula-fields,
    .phone-scan-grid,
    .phone-context-grid,
    .phone-values,
    .phone-form-grid,
    .timer-grid,
    .timer-history-item,
    .video-studio-card,
    .contact-layout,
    .comments-layout,
    .gallery-grid,
    .ad-layout,
    .pricing-grid,
    .info-grid,
    .coupon-grid,
    .social-grid,
    .publishing-plan,
    .article-ad,
    .flyer-columns {
        grid-template-columns: 1fr;
    }

    .brand span {
        display: none;
    }

    .flyer-header,
    .flyer-footer,
    .print-toolbar,
    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .flyer-page {
        padding: 24px;
    }

    .nav-links {
        max-height: calc(100vh - 77px);
        overflow-y: auto;
    }

    .feature-articles,
    .feature-coupons,
    .feature-publicite,
    .feature-ecran,
    .feature-abonnement {
        grid-column: auto;
    }

    .video-studio-card {
        padding: 14px;
    }

    .color-sample-card,
    .lab-table,
    .reading-row {
        grid-template-columns: 1fr;
    }

    .studio-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .reading-row {
        align-items: stretch;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .screen-news-header,
    .screen-card-layout {
        grid-template-columns: 1fr;
    }

    .screen-news-header p,
    .screen-card h1,
    .screen-card h2 {
        font-size: 1.8rem;
    }

    .screen-card p {
        font-size: 1.1rem;
    }
}

@media print {
    @page {
        margin: 12mm;
        size: letter;
    }

    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .site-footer,
    .print-toolbar {
        display: none;
    }

    .page-hero,
    .section {
        padding: 18px 0;
    }

    .coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flyer-page {
        border: 0;
        box-shadow: none;
        margin: 0;
        max-width: none;
        min-height: auto;
        padding: 0;
    }

    .flyer-main {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
