/*
Theme Name: Trop Vite
Theme URI: https://trop-vite.fr
Author: Sexoblogue
Description: Theme editorial rapide, responsive et sobre pour Trop Vite.
Version: 0.3.1
Text Domain: trop-vite
*/

:root {
    --tv-ink: #152033;
    --tv-ink-soft: #304058;
    --tv-paper: #fbf8f2;
    --tv-surface: #ffffff;
    --tv-line: #e4ddd0;
    --tv-teal: #0c8f8f;
    --tv-teal-dark: #087070;
    --tv-mint: #d9f4e7;
    --tv-coral: #ee6f57;
    --tv-gold: #f2bf4d;
    --tv-blue: #376bff;
    --tv-shadow: 0 22px 60px rgba(21, 32, 51, 0.14);
    --tv-radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tv-paper);
    color: var(--tv-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(21, 32, 51, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(21, 32, 51, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 62%);
    z-index: -1;
}

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

a:hover {
    color: var(--tv-teal-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(100% - 40px, 1160px);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.narrow {
    width: min(100% - 40px, 820px);
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -80px;
    padding: 10px 14px;
    background: var(--tv-ink);
    color: #fff;
    border-radius: var(--tv-radius);
    z-index: 20;
}

.skip-link:focus {
    top: 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 248, 242, 0.88);
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
    backdrop-filter: blur(18px);
}

.site-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 218px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    line-height: 1;
    background:
        linear-gradient(135deg, var(--tv-teal), var(--tv-blue));
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 7px 7px 0 var(--tv-gold);
    transform: rotate(-2deg);
}

.brand-mark span {
    transform: rotate(2deg);
}

.brand-copy {
    display: grid;
    gap: 0;
}

.brand-copy strong {
    font-size: 20px;
    line-height: 1.05;
}

.brand-copy span {
    color: var(--tv-ink-soft);
    font-size: 13px;
    line-height: 1.2;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.primary-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--tv-ink-soft);
    font-weight: 750;
    font-size: 15px;
}

.primary-nav a:hover {
    background: rgba(12, 143, 143, 0.10);
    color: var(--tv-teal-dark);
}

.nav-cta,
.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 850;
    line-height: 1.1;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta,
.button-primary {
    background: var(--tv-ink);
    color: #fff;
    box-shadow: 0 12px 28px rgba(21, 32, 51, 0.18);
}

.button-primary:hover,
.nav-cta:hover {
    transform: translateY(-2px);
    color: #fff;
    background: #0d1728;
    box-shadow: 0 18px 34px rgba(21, 32, 51, 0.22);
}

.button-primary.dark {
    background: #fff;
    color: var(--tv-ink);
    box-shadow: none;
}

.button-primary.dark:hover {
    background: var(--tv-mint);
    color: var(--tv-ink);
}

.button-secondary {
    color: var(--tv-ink);
    border: 1px solid rgba(21, 32, 51, 0.16);
    background: rgba(255, 255, 255, 0.68);
}

.button-secondary:hover {
    transform: translateY(-2px);
    background: #fff;
    color: var(--tv-teal-dark);
}

.hero-section {
    padding: 92px 0 84px;
    overflow: hidden;
}

.hero-copy {
    animation: tv-enter 540ms ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--tv-teal-dark);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--tv-coral);
    border-radius: 2px;
    transform: rotate(45deg);
}

h1,
h2,
h3 {
    color: var(--tv-ink);
    line-height: 1.03;
    letter-spacing: 0;
    margin: 0;
}

h1 {
    max-width: 760px;
    font-size: 64px;
    font-weight: 950;
}

h2 {
    font-size: 42px;
    font-weight: 920;
}

h3 {
    font-size: 22px;
    font-weight: 900;
}

.lead-text {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--tv-ink-soft);
    font-size: 21px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 0;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.trust-row span {
    padding: 8px 10px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--tv-ink-soft);
    font-size: 14px;
    font-weight: 800;
}

.control-panel {
    position: relative;
    padding: 26px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
    box-shadow: var(--tv-shadow);
    animation: tv-panel 650ms 120ms ease both;
}

.control-panel::before {
    content: "";
    display: block;
    height: 8px;
    margin: -26px -26px 24px;
    background: linear-gradient(90deg, var(--tv-coral), var(--tv-gold), var(--tv-teal), var(--tv-blue));
    border-radius: 8px 8px 0 0;
}

.panel-header,
.signal-meter > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.panel-header {
    margin-bottom: 28px;
}

.panel-header span,
.signal-meter span {
    color: var(--tv-ink-soft);
    font-weight: 800;
}

.panel-header strong {
    font-size: 34px;
    line-height: 1;
}

.signal-meter {
    padding: 18px 0;
    border-top: 1px solid rgba(21, 32, 51, 0.10);
}

.signal-meter strong {
    color: var(--tv-ink);
}

.meter-track {
    height: 12px;
    margin-top: 12px;
    overflow: hidden;
    background: #e9edf2;
    border-radius: 8px;
}

.meter-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--tv-coral), var(--tv-gold));
    border-radius: inherit;
}

.meter-track.accent span {
    background: linear-gradient(90deg, var(--tv-teal), var(--tv-blue));
}

.protocol-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.protocol-steps span {
    min-height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--tv-ink);
    background: var(--tv-mint);
    font-weight: 900;
}

.protocol-steps span:nth-child(2) {
    background: #fff0d0;
}

.protocol-steps span:nth-child(3) {
    background: #e8edff;
}

.panel-note {
    padding: 16px;
    color: var(--tv-ink-soft);
    border: 1px solid rgba(12, 143, 143, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    font-weight: 700;
}

.section {
    padding: 86px 0;
}

.section-light {
    background: #fff9ed;
    border-top: 1px solid rgba(21, 32, 51, 0.08);
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
}

.section-white {
    background: var(--tv-surface);
}

.section-ink {
    background: var(--tv-ink);
    color: rgba(255, 255, 255, 0.82);
}

.section-ink h2,
.section-ink h3 {
    color: #fff;
}

.section-ink .eyebrow {
    color: var(--tv-gold);
}

.section-ink p {
    color: rgba(255, 255, 255, 0.75);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-heading p:last-child,
.split-panel p,
.timeline p {
    margin: 16px 0 0;
    color: var(--tv-ink-soft);
}

.feature-card,
.post-card {
    height: 100%;
    padding: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(21, 32, 51, 0.10);
    box-shadow: 0 14px 38px rgba(21, 32, 51, 0.07);
}

.feature-card p,
.post-card p {
    margin: 14px 0 0;
    color: var(--tv-ink-soft);
}

.card-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--tv-ink);
    color: #fff;
    font-weight: 900;
}

.feature-card:nth-child(1) .card-icon {
    background: var(--tv-coral);
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--tv-gold);
    color: var(--tv-ink);
    font-weight: 950;
}

.timeline-item p {
    color: rgba(255, 255, 255, 0.74);
}

.split-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--tv-teal-dark);
    font-weight: 900;
    border-bottom: 2px solid currentColor;
}

.cta-section {
    padding: 58px 0;
    background: linear-gradient(135deg, var(--tv-teal), #0b4964);
    color: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-inner h2,
.cta-inner .eyebrow {
    color: #fff;
}

.cta-inner .eyebrow::before {
    background: var(--tv-gold);
}

.page-main {
    padding: 72px 0 84px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 52px;
}

.page-shell {
    padding: 0;
}

.entry-content {
    color: var(--tv-ink-soft);
    font-size: 19px;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 14px;
    color: var(--tv-ink);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content a {
    color: var(--tv-teal-dark);
    font-weight: 850;
    border-bottom: 1px solid rgba(12, 143, 143, 0.35);
}

.entry-content .wp-block-button__link {
    border: 0;
    border-radius: 8px;
    background: var(--tv-ink);
    color: #fff;
    font-weight: 900;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card h2 {
    font-size: 28px;
}

.site-footer {
    padding: 54px 0 28px;
    background: #10192a;
    color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: inline-flex;
    color: #fff;
    font-size: 26px;
    font-weight: 950;
    margin-bottom: 10px;
}

.footer-grid p {
    max-width: 520px;
    margin: 0;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 750;
}

.footer-links a:hover {
    color: var(--tv-gold);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

@keyframes tv-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tv-panel {
    from {
        opacity: 0;
        transform: translateY(18px) rotate(1deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 991px) {
    .site-nav {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .brand {
        flex: 1;
    }

    .primary-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 36px;
    }

    .hero-section {
        padding-top: 62px;
    }

    .split-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .container,
    .narrow {
        width: min(100% - 28px, 1160px);
    }

    .brand-copy span {
        display: none;
    }

    .nav-cta {
        min-height: 42px;
        padding: 10px 13px;
    }

    .primary-nav a {
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap;
    }

    .hero-section,
    .section,
    .page-main {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    h1,
    .page-header h1 {
        font-size: 39px;
    }

    h2 {
        font-size: 31px;
    }

    .lead-text {
        font-size: 18px;
    }

    .hero-actions,
    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .control-panel {
        padding: 18px;
    }

    .control-panel::before {
        margin: -18px -18px 20px;
    }

    .protocol-steps {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .entry-content {
        font-size: 17px;
    }
}
.archive-intro,
.article-deck {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--tv-ink-soft);
    font-size: 20px;
    line-height: 1.55;
}

.post-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: stretch;
}

.post-card-visual,
.article-visual {
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(238, 111, 87, 0.95), rgba(242, 191, 77, 0.92) 38%, rgba(12, 143, 143, 0.94) 70%, rgba(55, 107, 255, 0.92));
}

.post-card-visual {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.post-card-visual span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    background: rgba(21, 32, 51, 0.18);
    color: #fff;
    font-size: 42px;
    font-weight: 950;
    backdrop-filter: blur(8px);
}

.post-meta {
    margin: 0 0 10px;
    color: var(--tv-teal-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.post-meta a {
    color: inherit;
}

.read-more {
    display: inline-flex;
    margin-top: 14px;
    color: var(--tv-teal-dark);
    font-weight: 900;
    border-bottom: 2px solid currentColor;
}

.article-main {
    background: var(--tv-surface);
}

.article-header h1 {
    font-size: 56px;
}

.article-visual {
    min-height: 250px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: end;
    margin: 0 0 42px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 18px 50px rgba(21, 32, 51, 0.14);
}

.visual-scale {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 170px;
}

.visual-scale span {
    flex: 1;
    min-width: 38px;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(21, 32, 51, 0.12);
}

.visual-scale span:nth-child(1) { height: 34%; }
.visual-scale span:nth-child(2) { height: 58%; }
.visual-scale span:nth-child(3) { height: 78%; }
.visual-scale span:nth-child(4) { height: 46%; }

.visual-copy {
    display: grid;
    gap: 8px;
    align-self: center;
}

.visual-copy strong {
    font-size: 42px;
    line-height: 1;
    font-weight: 950;
}

.visual-copy span {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 760;
}

.entry-content blockquote {
    margin: 34px 0;
    padding: 22px 24px;
    border-left: 6px solid var(--tv-coral);
    border-radius: 8px;
    background: #fff8eb;
    color: var(--tv-ink);
    font-weight: 800;
}

.entry-content .source-box,
.entry-content .warning-box {
    margin: 32px 0;
    padding: 22px 24px;
    border-radius: 8px;
    border: 1px solid rgba(21, 32, 51, 0.12);
    background: #f7faf8;
}

.entry-content .warning-box {
    border-color: rgba(238, 111, 87, 0.30);
    background: #fff2ed;
}

.article-cta {
    margin-top: 54px;
    padding: 28px;
    border-radius: 8px;
    background: var(--tv-ink);
    color: rgba(255, 255, 255, 0.80);
}

.article-cta h2,
.article-cta .eyebrow {
    color: #fff;
}

.article-cta p {
    max-width: 640px;
}

@media (max-width: 760px) {
    .post-card,
    .article-visual {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 39px;
    }

    .post-card-visual {
        min-height: 120px;
    }

    .article-visual {
        min-height: auto;
        padding: 22px;
    }

    .visual-scale {
        height: 110px;
    }
}