/* meilleuriptv.io — Blue+Orange design system
   UNIQUE to this site — NOT shared with iptv-stream.tv */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1E40AF;
  --blue-hover: #1D4ED8;
  --blue-light: #DBEAFE;
  --blue-50: #EFF6FF;
  --orange: #F59E0B;
  --orange-hover: #D97706;
  --white: #FFFFFF;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --space-8: 64px; --space-9: 80px; --space-10: 96px;
  --text-sm: .875rem; --text-base: 1rem;
  /* Aliases for legacy variable names used in inner pages */
  --surface-alt: var(--slate-50);
  --surface: var(--white);
  --ink-muted: var(--slate-500);
  --border: var(--slate-300);
  --radius-md: var(--radius);
  --gray-50: var(--slate-50);
  --gray-500: var(--slate-500);
  --step--1: .85rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --space-2: 8px;
  --space-3: 12px;
  --gray-600: var(--slate-500);
  --navy: var(--slate-900);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--slate-800); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--slate-900); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--slate-700); }

.skip-link { position: absolute; top: -100px; left: 16px; background: var(--blue); color: #fff; padding: 12px 16px; border-radius: var(--radius); z-index: 100; font-weight: 600; min-height: 44px; box-sizing: border-box; }
.skip-link:focus { top: 16px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--slate-200); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.brand__name { font-size: 1.35rem; font-weight: 700; color: var(--blue); letter-spacing: -.01em; }
.brand__name b { color: var(--slate-900); }
.brand__name span { color: var(--orange); font-weight: 600; }
.nav__links { display: flex; gap: 28px; }
.brand img { height: 36px; width: auto; display: block; }
.nav__links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-size: .95rem; font-weight: 500; color: var(--slate-700); padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; padding: 8px; }
.nav__burger svg { width: 28px; height: 28px; }

.mobile-drawer { position: fixed; inset: 0; z-index: 99; background: var(--white); transform: translateX(100%); transition: transform .3s ease; padding: 80px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.mobile-drawer[data-open="true"] { transform: translateX(0); }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a { display: block; padding: 14px 16px; font-size: 1.1rem; font-weight: 500; color: var(--slate-800); border-radius: var(--radius); }
.mobile-drawer a:hover { background: var(--slate-50); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; padding: 12px 28px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: all .2s; text-decoration: none; white-space: nowrap; }
.btn--primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue); color: #fff; }
.btn--sm { padding: 8px 20px; font-size: .9rem; }
.btn--lg { padding: 16px 36px; font-size: 1.1rem; }

/* HERO — split layout */
.hero { padding: var(--space-10) 0 var(--space-9); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__content { max-width: 560px; }
.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: 1.15rem; color: var(--slate-500); margin-bottom: 32px; line-height: 1.7; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__frame { position: relative; width: 100%; max-width: 480px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__frame img { width: 100%; height: auto; }
.hero__live { position: absolute; top: 16px; left: 16px; background: #EF4444; color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; display: flex; align-items: center; gap: 6px; }
.hero__live .dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* STATS BAR */
.stats-bar { background: var(--blue-50); border-top: 1px solid var(--blue-light); border-bottom: 1px solid var(--blue-light); padding: var(--space-6) 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__number { font-size: 2rem; font-weight: 800; color: var(--blue); }
.stat__label { font-size: var(--text-sm); color: var(--slate-500); margin-top: 4px; }

/* SECTIONS */
.section { padding: var(--space-9) 0; }
.section--alt { background: var(--slate-50); }
.section__header { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.section__header p { margin-top: 12px; font-size: 1.05rem; color: var(--slate-500); }

/* FEATURE CARDS */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card__icon { width: 52px; height: 52px; background: var(--blue-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.5rem; color: var(--blue); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: .95rem; color: var(--slate-500); }

/* PRICING — styled to match pricing.js output */
#pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pricing-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.conn-tab { padding: 10px 20px; border: 2px solid var(--slate-200); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 600; font-size: .9rem; font-family: var(--font); color: var(--slate-700); transition: all .2s; min-height: 44px; }
.conn-tab:hover { border-color: var(--blue); color: var(--blue); }
.conn-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.plan { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; text-align: center; transition: box-shadow .2s, transform .2s; }
.plan:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.plan.popular { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); position: relative; }
.plan.popular::before { content: "Populaire"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; text-transform: uppercase; }
.plan__duration { font-size: .9rem; color: var(--slate-500); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.plan__price { font-size: 2.5rem; font-weight: 800; color: var(--slate-900); margin-bottom: 4px; }
.plan__per { font-size: .85rem; color: var(--slate-400); margin-bottom: 20px; }
.plan__features { text-align: left; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.plan__features li { font-size: .9rem; color: var(--slate-600); padding-left: 24px; position: relative; }
.plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan__cta { margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; background: var(--orange); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .2s; border: none; cursor: pointer; }
.plan__cta:hover { background: var(--orange-hover); color: #fff; }
.btn-primary { background: var(--orange); color: #fff; border-radius: var(--radius); font-weight: 600; text-decoration: none; padding: 12px 24px; transition: background .2s; }
.btn-primary:hover { background: var(--orange-hover); color: #fff; }

/* TESTIMONIALS */
.testimonials-scroll { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }
.testimonial-card { min-width: 300px; max-width: 340px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 24px; scroll-snap-align: start; flex-shrink: 0; }
.testimonial-card__stars { color: var(--orange); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card p { font-size: .95rem; color: var(--slate-700); margin-bottom: 16px; font-style: italic; }
.testimonial-card__author { font-size: .85rem; color: var(--slate-500); font-weight: 600; }

/* FAQ ACCORDION */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--slate-200); }
.faq__question { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 20px 0; font-size: 1.05rem; font-weight: 600; color: var(--slate-900); cursor: pointer; text-align: left; font-family: var(--font); }
.faq__question:hover { color: var(--blue); }
.faq__question .icon { font-size: 1.5rem; color: var(--slate-400); transition: transform .3s; flex-shrink: 0; margin-left: 16px; }
.faq__item[open] .faq__question .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 0 20px; font-size: .95rem; color: var(--slate-600); line-height: 1.7; }

/* CTA BANNER */
.cta-banner { background: var(--blue); padding: var(--space-8) 0; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: var(--blue-light); font-size: 1.1rem; margin-bottom: 28px; }

/* FOOTER */
.site-footer { background: var(--slate-900); color: var(--slate-400); padding: var(--space-9) 0 var(--space-7); }
.footer__inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: var(--space-7); }
.footer__brand { max-width: 320px; }
.footer__brand .brand__name, .site-footer .brand__name, .site-footer .brand__name *, .site-footer a[href="/"] { color: #fff !important; }
.footer__brand .brand, .site-footer .brand { color: #fff; margin-bottom: var(--space-4); }
.footer__brand p { font-size: var(--text-sm); color: var(--slate-400); line-height: 1.6; margin-top: 12px; }
.footer__col h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .04em; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--slate-400); font-size: .9rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--slate-700); padding-top: 24px; text-align: center; }
.footer__bottom p { font-size: .85rem; color: var(--slate-500); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; display: block; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.blog-card h2, .blog-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--slate-900); }
.blog-card p { font-size: .95rem; color: var(--slate-500); }

/* FORMS */
.form { max-width: 560px; }
.form__group { margin-bottom: 20px; }
.form__group label { display: block; font-size: .9rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.form__group input, .form__group select, .form__group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--slate-300); border-radius: var(--radius); font-size: 1rem; font-family: var(--font); color: var(--slate-800); transition: border-color .2s, box-shadow .2s; background: var(--white); }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,64,175,.1); }
.form__group textarea { min-height: 120px; resize: vertical; }

/* LEGAL */
.legal { padding: var(--space-9) 0; }
.legal .container { max-width: 720px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 12px; }
.legal p, .legal li { font-size: .95rem; color: var(--slate-600); margin-bottom: 12px; }
.legal ul { padding-left: 24px; list-style: disc; }


/* EYEBROW LABEL */
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

/* FAQ (details/summary variant) */
details.faq__item { border-bottom: 1px solid var(--slate-200); }
details.faq__item summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 1.05rem; font-weight: 600; color: var(--slate-900); cursor: pointer; list-style: none; }
details.faq__item summary::-webkit-details-marker { display: none; }
details.faq__item summary:hover { color: var(--blue); }
details.faq__item .faq__body { padding: 0 0 20px; font-size: .95rem; color: var(--slate-600); line-height: 1.7; }
details.faq__item .faq__body p { margin-bottom: 8px; }

/* PAGE HERO (inner pages) */
.page-hero { background: var(--blue-50); border-bottom: 1px solid var(--blue-light); padding: var(--space-8) 0; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: var(--slate-500); max-width: 640px; }

/* Inner-page content areas — ensure list items display correctly */
.feature-card ol, .feature-card ul { padding-left: 24px; margin-top: 12px; }
.feature-card ol { list-style: decimal; }
.feature-card li { margin-bottom: 6px; color: var(--slate-600); font-size: .95rem; }

/* PRICING PAGE */
.pricing { background: var(--white); }
.pricing__inner { max-width: 1000px; margin: 0 auto; }
.pricing__head { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.pricing__head h1 { margin-bottom: 16px; }
.pricing__lede { font-size: 1.05rem; color: var(--slate-500); line-height: 1.7; }
.pricing__fine { text-align: center; font-size: .85rem; color: var(--slate-500); margin-top: var(--space-5); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact-info { padding: 28px; background: var(--blue-50); border-radius: var(--radius-lg); border: 1px solid var(--blue-light); }
.contact-info h2 { font-size: 1.25rem; margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; font-size: .95rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ESSAI GRATUIT specific */
.trial-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: var(--space-5); }
.trial-feature { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.trial-feature h3 { margin-bottom: 8px; }
.trial-feature p { font-size: .95rem; color: var(--slate-500); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 100%; margin: 0 auto; }
  .hero__buttons { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__frame { max-width: 360px; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__burger { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 768px) {
  .brand img { height: 28px; }
}
@media (max-width: 480px) {
  .brand img { height: 24px; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--space-7) 0; }
  .section { padding: var(--space-7) 0; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* Steps grid */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); margin-top: var(--space-5); }
.step-card { background: var(--surface); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--border); position: relative; }
.step-card__number { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--blue); color: #fff; font-weight: 700; border-radius: 50%; margin-bottom: var(--space-3); font-size: var(--step-0); }
.step-card h3 { margin-bottom: var(--space-2); }

/* Comparison block */
.comparison-block { max-width: 700px; margin: var(--space-5) auto 0; }
.comparison-list { margin: var(--space-3) 0; padding-left: var(--space-5); }
.comparison-list li { margin-bottom: var(--space-2); }

/* Devices grid */
.devices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.device-card { background: var(--surface); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.device-card h3 { margin-bottom: var(--space-2); font-size: var(--step-0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .mobile-drawer, .nav__burger, .cta-banner { display: none; } body { font-size: 12pt; color: #000; } }
