/* ============================================================
   Canal4K - Système de design Lamborghini
   Abyss noir absolu, or Lamborghini #FFC000, typographie
   UPPERCASE, angles vifs à rayon zéro, boutons fantômes
   ============================================================ */

/* ---------- Reset & Variables ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Or Lamborghini */
    --gold: #FFC000;
    --gold-dark: #917300;
    --gold-text: #FFCE3E;
    /* Blancs & neutres */
    --white: #FFFFFF;
    --smoke: #F5F5F5;
    --body: #969696;
    --body-strong: #e6e6e6;
    --muted: #7D7D7D;
    --steel: #969696;
    /* Surfaces sombres */
    --canvas: #000000;
    --surface-card: #202020;
    --surface-elevated: #181818;
    --surface-soft: #0d0d0d;
    /* Sémantique */
    --cyan: #29ABE2;
    --teal: #1EAEDB;
    --link-blue: #3860BE;
    --success: #0fa336;
    --warning: #f4b400;
    /* Typographie */
    --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --radius: 0px;
    --gutter: 20px;
    --maxw: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--body);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--white); text-decoration: none; transition: color .15s, opacity .15s; }
a:hover { color: var(--link-blue); opacity: 1; }
:focus-visible { outline: 2px solid var(--gold); }

/* ---------- Container ---------- */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Typographie (voix UPPERCASE) ---------- */
.display-xl { font-size: 52px; line-height: 0.98; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.display-lg { font-size: 36px; line-height: 1.1; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.display-md { font-size: 26px; line-height: 1.2; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.title-lg   { font-size: 22px; line-height: 1.3; font-weight: 400; text-transform: uppercase; }
.title-md   { font-size: 18px; line-height: 1.4; font-weight: 400; }
.eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold-text);
}
.body-lead { font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--body-strong); }
.caption   { font-size: 12px; font-weight: 400; letter-spacing: .5px; color: var(--muted); }

h1, h2, h3 { color: var(--white); font-family: var(--font); font-weight: 400; }

/* ---------- Liseré or Lamborghini ---------- */
.m-stripe {
    height: 3px;
    background: var(--gold);
    border: 0;
}

/* ---------- Boutons (rectangulaires, uppercase, rayon zéro) ---------- */
.btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 14px; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 16px 32px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    min-height: 48px; line-height: 1;
    cursor: pointer; text-align: center;
    transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
/* CTA principal : or Lamborghini, texte noir */
.btn-primary { background: var(--gold); color: #000000; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); color: #000000; border-color: var(--gold-dark); }
/* CTA secondaire : fantôme blanc translucide */
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-lg { padding: 18px 40px; font-size: 15px; min-height: 54px; }
.btn-block { display: block; width: 100%; }

/* ---------- Navigation (flottante dans les ténèbres) ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--surface-elevated);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links li { margin: 0; }
.nav-links a {
    color: var(--body); font-size: 13px; font-weight: 400;
    letter-spacing: 1.2px; padding: 8px 12px; text-transform: uppercase;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-bottom: 2px solid var(--gold); }
.mobile-menu-btn {
    display: none; background: transparent; border: 1px solid var(--white);
    color: var(--white); font-size: 20px; width: 44px; height: 44px; cursor: pointer;
}

/* Menu mobile plein écran */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: var(--canvas); overflow-y: auto; display: none;
}
.mobile-overlay .overlay-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; border-bottom: 1px solid var(--surface-elevated);
}
.mobile-overlay .m-stripe { position: absolute; top: 0; left: 0; right: 0; }
.mobile-overlay ul { list-style: none; padding: 48px 24px; }
.mobile-overlay ul li a {
    display: block; font-size: 20px; font-weight: 400; color: var(--white);
    letter-spacing: .5px; padding: 16px 0; border-bottom: 1px solid var(--surface-elevated);
    text-transform: uppercase;
}
.mobile-overlay .overlay-cta { margin: 32px 24px; }
.overlay-close {
    background: transparent; border: 1px solid var(--white); color: var(--white);
    font-size: 24px; width: 44px; height: 44px; cursor: pointer;
}
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; overflow: hidden; position: relative; }
.hero::before { display: none; }
.hero .m-stripe { margin-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badge {
    display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--smoke);
    border: 1px solid var(--surface-elevated); padding: 6px 14px; border-radius: var(--radius);
}
.hero-badge.offre { border-color: var(--gold); color: var(--gold-text); }
.hero h1 { font-size: 52px; line-height: 0.98; font-weight: 400; text-transform: uppercase; margin-top: 24px; }
.hero .body-lead { margin-top: 20px; font-size: 19px; }
.hero-features { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-features .hf {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--body-strong); font-size: 13px; font-weight: 400;
    letter-spacing: .5px; text-transform: uppercase;
    padding: 10px 16px; border: 1px solid var(--surface-elevated); border-radius: var(--radius);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.trust-badges { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin-top: 48px; }
.trust-item .trust-number { display: block; font-size: 30px; font-weight: 400; color: var(--white); }
.trust-item .trust-label { font-size: 12px; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section + .section { margin-top: -1px; }
.section-head { margin-bottom: 24px; }
.section-title { font-size: 36px; line-height: 1.1; font-weight: 400; text-transform: uppercase; }
.section-subtitle { margin-top: 12px; font-size: 17px; font-weight: 300; color: var(--body-strong); }

/* ---------- Grille de fonctionnalités ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature-card {
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    padding: 24px; border-radius: var(--radius);
}
.feature-card .feature-icon { font-size: 28px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 20px; font-weight: 400; margin-bottom: 10px; text-transform: uppercase; }
.feature-card p { font-size: 15px; font-weight: 300; color: var(--body); line-height: 1.5; }
.feature-tag {
    display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 1px;
    text-transform: uppercase; color: var(--gold-text); border: 1px solid var(--gold);
    padding: 2px 8px; margin-left: 8px;
}

/* ---------- Tarifs ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pricing-card {
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    display: flex; flex-direction: column; border-radius: var(--radius);
}
.pricing-card.popular { border: 2px solid var(--gold); position: relative; }
.pricing-card.popular .pricing-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #000; font-size: 11px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px;
    border-radius: var(--radius);
}
.pricing-header { padding: 24px 24px 8px; }
.pricing-header h3 { font-size: 20px; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; }
.price { margin-top: 12px; }
.price .currency { font-size: 24px; color: var(--white); }
.price .amount { font-size: 52px; font-weight: 400; color: var(--white); line-height: 1; }
.price .period { font-size: 15px; color: var(--muted); }
.billing { margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--success); }
.pricing-body { padding: 12px 24px 24px; }
.pricing-features { list-style: none; padding: 0; }
.pricing-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 15px; font-weight: 300; color: var(--body);
    padding: 7px 0;
}
.pricing-features li .check { color: var(--gold-text); font-weight: 700; }
.addon-note {
    margin-top: 12px; font-size: 13px; font-weight: 400;
    color: var(--muted); border-left: 2px solid var(--gold); padding-left: 10px;
}
.pricing-footer { padding: 16px 24px; margin-top: auto; border-top: 1px solid var(--surface-elevated); }

/* ----------------- Add-on & paiement ----------------- */
.addon-card {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
.addon-item {
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    padding: 24px; border-radius: var(--radius);
}
.addon-item h4 { font-size: 18px; font-weight: 400; margin-bottom: 8px; text-transform: uppercase; }
.addon-item .addon-price { font-size: 22px; font-weight: 500; color: var(--gold-text); margin-top: 4px; }
.addon-item p { font-size: 14px; font-weight: 300; color: var(--body); }

.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; }
.payment-methods .pm {
    font-size: 13px; font-weight: 400; color: var(--body-strong);
    letter-spacing: .5px; text-transform: uppercase;
    border: 1px solid var(--surface-elevated); padding: 10px 18px; border-radius: var(--radius);
}

.guarantee-box {
    display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    padding: 32px; border-radius: var(--radius);
}
.guarantee-box .g-icon { font-size: 44px; }
.guarantee-box h3 { font-size: 22px; font-weight: 400; margin-bottom: 6px; text-transform: uppercase; }
.guarantee-box p { font-size: 15px; font-weight: 300; color: var(--body); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step { position: relative; padding-top: 0; }
.step .step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; font-size: 22px; font-weight: 400; color: var(--white);
    border: 1px solid var(--white); border-radius: var(--radius);
}
.step h3 { margin-top: 16px; font-size: 19px; font-weight: 400; text-transform: uppercase; }
.step p { margin-top: 8px; font-size: 15px; font-weight: 300; color: var(--body); }

/* ---------- Avis clients ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.review-card {
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    padding: 24px; border-radius: var(--radius);
}
.review-card .stars { color: var(--gold); letter-spacing: 2px; }
.review-card blockquote { font-size: 15px; font-weight: 300; color: var(--body-strong); line-height: 1.55; font-style: normal; margin-top: 12px; }
.review-card .review-author { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--surface-elevated); }
.faq-item + .faq-item { border-top: none; }
.faq-question {
    width: 100%; text-align: left; background: transparent;
    border: 0; padding: 20px 16px; cursor: pointer;
    color: var(--white); font-size: 17px; font-weight: 400; line-height: 1.4;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question .faq-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 1px solid var(--white);
    color: var(--white); font-size: 18px; font-weight: 400; flex: 0 0 auto;
    transition: transform .15s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    overflow: hidden; max-height: 0; padding: 0;
    transition: max-height .25s ease;
}
.faq-answer p { padding: 0 16px 20px; font-size: 15px; font-weight: 300; color: var(--body); line-height: 1.6; }

/* ---------- Blog ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.article-card {
    display: flex; flex-direction: column;
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    padding: 24px; border-radius: var(--radius);
}
.article-card .article-cat {
    font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold-text);
}
.article-card h3 { font-size: 20px; font-weight: 400; margin-top: 14px; line-height: 1.35; text-transform: uppercase; }
.article-card p { font-size: 15px; font-weight: 300; color: var(--body); margin-top: 12px; line-height: 1.55; }
.article-card .article-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Article ---------- */
.article { padding: 48px 0 96px; }
.article .article-cat { font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-text); }
.article h1 { font-size: 40px; line-height: 1.1; font-weight: 400; margin-top: 20px; text-transform: uppercase; }
.article .article-meta { margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.article .m-stripe { margin-top: 24px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article-body h2 { font-size: 26px; font-weight: 400; margin: 40px 0 12px; text-transform: uppercase; }
.article-body h3 { font-size: 20px; font-weight: 400; margin: 28px 0 10px; text-transform: uppercase; }
.article-body p { margin-bottom: 18px; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--body); }
.article-body ul, .article-body ol { margin: 16px 0 20px; padding-left: 24px; color: var(--body); }
.article-body li { margin-bottom: 8px; font-size: 15px; font-weight: 300; line-height: 1.6; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th { color: var(--white); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; text-align: left; padding: 12px; border-bottom: 2px solid var(--gold); }
.article-body td { padding: 12px; border-bottom: 1px solid var(--surface-elevated); color: var(--body); font-weight: 300; }
.article-body .note-box {
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    border-left: 3px solid var(--gold); padding: 16px 20px;
    font-size: 14px; font-weight: 300; color: var(--body); margin: 24px 0;
}
.article-cta {
    background: var(--surface-card); border: 1px solid var(--gold);
    padding: 28px; margin: 40px 0; border-radius: var(--radius);
}
.article-cta h2 { font-size: 22px; font-weight: 400; color: var(--white); margin-bottom: 8px; text-transform: uppercase; }
.article-cta p { font-size: 15px; font-weight: 300; color: var(--body); margin-bottom: 16px; }
.article-cta .btn { width: 100%; display: block; }

/* ---------- CTA band ---------- */
.cta-section { padding: 80px 0; border-top: 1px solid var(--surface-elevated); }
.cta-section .display-md { text-transform: uppercase; }
.cta-section .cta-sub { margin: 16px 0 28px; font-size: 17px; font-weight: 300; color: var(--body-strong); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; background: var(--canvas); border-top: 1px solid var(--surface-elevated); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-brand p { font-size: 14px; font-weight: 300; color: var(--muted); margin: 12px 0; }
.footer .m-stripe { margin: 16px 0; }
.footer-title { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--body-strong); margin-bottom: 14px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 400; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer-contact a { color: var(--body-strong); }
.footer-bottom { border-top: 1px solid var(--surface-elevated); padding: 24px 0; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-note { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 400; letter-spacing: .5px; margin-bottom: 8px; color: var(--body-strong); }
.text-input {
    width: 100%; background: var(--surface-card); color: var(--white);
    font-size: 16px; font-family: var(--font); font-weight: 300;
    border: 1px solid var(--surface-elevated); border-radius: var(--radius);
    padding: 12px 16px; height: 48px;
}
textarea.text-input { min-height: 140px; resize: vertical; }
.text-input:focus { outline: none; border-color: var(--gold); }

/* ---------- Page contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.contact-card {
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    padding: 24px; border-radius: var(--radius);
}
.contact-card h3 { font-size: 18px; font-weight: 400; margin-bottom: 10px; text-transform: uppercase; }
.contact-card p { font-size: 14px; font-weight: 300; color: var(--body); }
.contact-card .contact-link { display: block; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--white); }
.contact-card .contact-link:hover { color: var(--gold-text); }

/* ---------- Chaînes ---------- */
.channels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.channel-item {
    background: var(--surface-card); border: 1px solid var(--surface-elevated);
    padding: 18px; text-align: center; border-radius: var(--radius);
    font-size: 13px; font-weight: 400; color: var(--body-strong);
    letter-spacing: .5px; text-transform: uppercase;
}
.channel-item .ch-icon { display: block; font-size: 24px; margin-bottom: 8px; }

/* ---------- Tableau comparatif ---------- */
.compare-table { width: 100%; border-collapse: collapse; margin: 32px 0; }
.compare-table th { color: var(--white); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; text-align: left; padding: 14px; border-bottom: 2px solid var(--gold); }
.compare-table td { padding: 14px; border-bottom: 1px solid var(--surface-elevated); color: var(--body); font-weight: 300; font-size: 15px; }
.compare-table .yes { color: var(--success); font-weight: 700; }
.compare-table .no { color: var(--muted); }

/* ---------- 404 ---------- */
.error-404 { padding: 120px 0; text-align: center; }
.error-404 h1 { font-size: 120px; font-weight: 400; }
.error-404 p { margin: 20px 0 32px; font-size: 18px; font-weight: 300; color: var(--body-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .hero { padding: 64px 0 48px; }
    .section { padding: 64px 0; }
    .features-grid, .pricing-grid, .steps, .reviews-grid,
    .addon-card, .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .channels-grid { grid-template-columns: repeat(3, 1fr); }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .display-xl { font-size: 40px; }
    .display-lg, .section-title { font-size: 30px; }
    .hero h1 { font-size: 40px; }
    .article h1 { font-size: 32px; }
}

@media (max-width: 767px) {
    .nav-links { display: none; }
    .navbar .btn { display: none; }
    .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .hero { padding: 48px 0 40px; }
    .hero-grid { gap: 24px; }
    .hero h1 { font-size: 30px; }
    .trust-badges { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .trust-item .trust-number { font-size: 22px; }
    .features-grid, .pricing-grid, .steps, .reviews-grid,
    .addon-card, .contact-cards, .channels-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .guarantee-box { grid-template-columns: 1fr; gap: 8px; }
    .section { padding: 48px 0; }
    .cta-section { padding: 56px 0; }
    .display-xl { font-size: 30px; }
    .display-lg, .section-title { font-size: 24px; }
    .article h1 { font-size: 26px; }
    .article-body { font-size: 16px; }
}

/* ---------- Accessibilité : réduire le mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .faq-answer { transition: none; }
}