/* ==========================================================
   CONGO STREAM — Design system (style.css)
   Thème sombre premium · mobile-first · sans dépendance
   ========================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --black: #0A0A0A;
  --black-2: #121212;
  --black-3: #1a1a1f;
  /* Palette : 3 couleurs unies (drapeau du Congo), jamais mélangées, aucun dégradé */
  --green: #1FA64A;
  --yellow: #F4C542;
  --red: #D62828;
  --red-text: #FF3B35; /* même rouge, éclairci pour rester lisible sur fond noir */
  --white: #FFFFFF;
  --gray: #B0B0B0;
  --line: rgba(255, 255, 255, .08);


  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --glow: 0 0 28px rgba(244, 197, 66, .28);
  --container: 1160px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Si votre logo contient déjà le nom « CONGO STREAM », passez à none pour masquer le texte à côté : */
  --brand-text-display: inline;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); line-height: 1.65; color: var(--white);
  background: var(--black); overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--gray); }
ul { padding-left: 1.2em; color: var(--gray); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: #0A0A0A; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--yellow); color: #000;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Mise en page ---------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--alt { background: var(--black-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: .8rem;
}
.text-grad { color: var(--yellow); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: #0A0A0A; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 0 40px rgba(244, 197, 66, .5); }
.btn-whatsapp { background: var(--green); color: #0A0A0A; box-shadow: 0 0 28px rgba(31, 166, 74, .35); }
.btn-whatsapp:hover { filter: brightness(1.12); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-block { width: 100%; }
.btn .icon { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- 5. En-tête & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 10, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 800; letter-spacing: .08em; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; max-width: 190px; object-fit: contain; border-radius: 10px; }
.brand span { display: var(--brand-text-display, inline); }
.brand span b { color: var(--yellow); font-weight: 800; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px;
  padding: 11px; background: var(--black-3); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--black-2);
  border-bottom: 1px solid var(--line); padding: 1rem; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav.is-open { display: block; animation: fadeDown .25s var(--ease); }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.nav a { display: block; padding: .85rem 1rem; border-radius: var(--radius-sm); color: #fff; font-weight: 600; }
.nav a:hover { background: var(--black-3); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--yellow); background: rgba(244, 197, 66, .08); }
.nav .btn { margin-top: .6rem; width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; align-items: center; gap: 1rem; background: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .nav ul { display: flex; gap: .1rem; }
  .nav a { padding: .55rem .8rem; font-size: .95rem; }
  .nav .btn { margin: 0; width: auto; padding: .6rem 1.2rem; min-height: 42px; }
}

/* ---------- 6. Héros ---------- */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0; position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero p.lead { font-size: 1.15rem; max-width: 560px; }
.hero .btn-row { margin-top: 1.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(244, 197, 66, .1); border: 1px solid rgba(244, 197, 66, .3); color: var(--yellow);
  font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.page-hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 1rem; text-align: center; }
.page-hero p { max-width: 640px; margin-inline: auto; font-size: 1.1rem; }

/* ---------- 7. Cartes ---------- */
.card {
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(244, 197, 66, .35); box-shadow: var(--shadow); }
.card .icon-box {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(244, 197, 66, .14); color: var(--yellow); font-size: 1.5rem;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

/* Formules / prix */
.price-card { position: relative; display: flex; flex-direction: column; text-align: center; }
.price-card .duration { font-weight: 700; color: var(--yellow); letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.price-card .price { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin: .6rem 0 .2rem; }
.price-card .price small { font-size: 1rem; color: var(--gray); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; text-align: left; }
.price-card li { padding: .4rem 0 .4rem 1.7rem; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 1.05rem; height: 1.05rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA64A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.price-card .btn { margin-top: auto; }
.price-card.is-featured { border-color: var(--yellow); box-shadow: var(--glow); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 800; padding: .3rem .9rem; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}

/* ---------- 8. Étapes (guides d'installation) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.2rem 1.2rem 1.2rem 4rem; background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: #0A0A0A; font-weight: 800;
}
.steps li strong { color: #fff; }

/* Onglets */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; justify-content: center; }
.tab-btn { background: var(--black-3); color: var(--gray); border: 1px solid var(--line); padding: .6rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: .2s; }
.tab-btn:hover { color: #fff; }
.tab-btn[aria-selected="true"] { background: var(--yellow); color: #0A0A0A; border-color: transparent; }
.tab-panel[hidden] { display: none; }

/* ---------- 9. FAQ (accordéon) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
  background: none; border: 0; color: #fff; font: inherit; font-weight: 700; padding: 1.1rem 1.3rem; cursor: pointer; min-height: 56px;
}
.faq-q::after { content: "+"; font-size: 1.6rem; color: var(--yellow); transition: transform .25s; flex-shrink: 0; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a > div { padding: 0 1.3rem 1.2rem; }

/* ---------- 10. Formulaires ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .opt { color: var(--gray); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; background: var(--black); color: #fff; border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm); padding: .85rem 1rem; font: inherit; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(244, 197, 66, .2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-text); }
.error-msg { color: var(--red-text); font-size: .85rem; min-height: 1.1em; }
.form-note { font-size: .85rem; color: var(--gray); }
.form-card { max-width: 640px; margin-inline: auto; }

/* ---------- 11. Contenu légal ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- 12. Pied de page ---------- */
.site-footer { background: var(--black-2); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h4 { font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .88rem; color: var(--gray); }

/* ---------- 13. WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center; box-shadow: 0 8px 28px rgba(31, 166, 74, .45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float img { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: pulse 2.4s infinite; }

/* ---------- 14. Animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
/* Sans JavaScript : contenu toujours visible */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .faq-a { max-height: none; }
.no-js .nav { display: block; position: static; }
.no-js .nav-toggle { display: none; }

/* ---------- 15. Tableau comparatif ---------- */
.compare { width: 100%; max-width: 820px; margin: 0 auto; border-collapse: collapse; background: var(--black-3); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th { background: var(--black-2); color: var(--yellow); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.compare tbody th { color: #fff; }
.compare td { color: var(--gray); }
.compare tr:last-child > * { border-bottom: 0; }

/* ---------- 16. Encadré d'information ---------- */
.notice { background: rgba(244, 197, 66, .08); border: 1px solid rgba(244, 197, 66, .3); border-left: 4px solid var(--yellow); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.notice strong { color: #fff; }
.notice p, .notice ul { color: var(--gray); }
a.tab-btn { text-decoration: none; }
a.tab-btn:hover { text-decoration: none; }

/* ---------- 17. Messages de formulaire ---------- */
[hidden] { display: none !important; }
.success { background: rgba(31, 166, 74, .1); border: 1px solid rgba(31, 166, 74, .45); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.success strong { color: #fff; }
.success p { margin: .4rem 0 .9rem; }
.field.has-error .error-msg:empty { display: none; }

/* ---------- 18. Repère visuel des champs à compléter (pages légales) ---------- */
mark.todo { background: var(--yellow); color: #000; padding: 0 .35em; border-radius: 4px; font-weight: 700; }


/* ---------- Parcours de commande (type > durée > paiement) ---------- */
.order-flow { display: grid; gap: 1.6rem; }
.flow-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .9rem; }
.flow-step[hidden] { display: none; }
.flow-step legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: .2rem; display: flex; align-items: center; gap: .6rem; }
.step-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--yellow); color: #0A0A0A; font-size: .9rem; font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: grid; gap: .15rem; text-align: center; padding: .9rem .7rem; min-height: 64px; align-content: center;
  background: var(--black-3); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.choice-body small { color: var(--gray); }
.choice:hover .choice-body { border-color: rgba(244, 197, 66, .45); }
.choice input:checked + .choice-body { border-color: var(--yellow); background: rgba(244, 197, 66, .14); box-shadow: var(--glow); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--yellow); outline-offset: 2px; }
.total-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: rgba(31, 166, 74, .1); border: 1px solid rgba(31, 166, 74, .4); }
.total-box[hidden], .pay-box[hidden] { display: none; }
.total-box strong { font-size: 1.5rem; color: #fff; }
.pay-box { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: rgba(244, 197, 66, .08); border: 1px solid rgba(244, 197, 66, .3); border-left: 4px solid var(--yellow); }
.pay-box p { margin: 0; }
.pay-number-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .5rem 0; }
.pay-number { font-size: 1.35rem; letter-spacing: .03em; word-break: break-word; }
.pay-number.is-pending { font-size: 1rem; letter-spacing: 0; font-weight: 600; color: var(--gray); }
.btn-copy { min-height: 38px; padding: .35rem .9rem; }
.pay-hint { color: var(--gray); font-size: .92rem; }

/* ---------- Icônes SVG & logos d'applications ---------- */
.icon-box .ico { width: 26px; height: 26px; stroke: var(--yellow); }
.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.app-head .eyebrow { margin: 0; }
.app-head h2 { margin: 0 0 .2rem; }
.app-logo { width: 64px; height: 64px; flex: none; border-radius: 16px; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.tab-btn { display: inline-flex; align-items: center; gap: .5rem; }
.tab-logo { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.choice-logo { width: 40px; height: 40px; border-radius: 10px; margin: 0 auto .3rem; }
.btn svg.icon { width: 20px; height: 20px; stroke: currentColor; }
.btn[hidden] { display: none; }

/* ---------- Code promo ---------- */
.promo-box { display: grid; gap: .5rem; }
.promo-box[hidden] { display: none; }
.promo-box label { font-weight: 600; font-size: .95rem; }
.promo-box label .opt { color: var(--gray); font-weight: 400; }
.promo-row { display: flex; gap: .6rem; }
.promo-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-row .btn { min-height: 48px; padding-inline: 1.1rem; }
.promo-status { color: var(--green); font-weight: 600; font-size: .92rem; }
.promo-status[hidden] { display: none; }
.total-prices { display: inline-flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.total-old { color: var(--gray); font-size: 1rem; }
.total-old[hidden] { display: none; }
