:root{
  --bg:#0a0a0a;--bg-2:#100c0d;--surface:#161113;--surface-2:#1f1619;
  --red:#8b0000;--red-2:#b01020;--red-3:#d83a45;
  --text:#ece8e8;--muted:#a69b9e;--line:#2c1b20;
  --radius:14px;--wrap:1120px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:dark;scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;display:flex;flex-direction:column;
  background:
    radial-gradient(900px 500px at 85% -10%,rgba(139,0,0,.28),transparent 65%),
    radial-gradient(700px 400px at -10% 30%,rgba(139,0,0,.12),transparent 60%),
    var(--bg);
  color:var(--text);font:400 1rem/1.65 var(--font);-webkit-font-smoothing:antialiased;
}
main{flex:1}
img,iframe{max-width:100%;display:block}
a{color:var(--red-3);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:#ff6b75}
:focus-visible{outline:2px solid var(--red-3);outline-offset:3px;border-radius:4px}
.wrap{width:min(100% - 2rem,var(--wrap));margin-inline:auto}
.narrow{width:min(100% - 2rem,760px)}
.muted{color:var(--muted)}
.skip-link{position:absolute;left:-999px;top:0;background:var(--red);color:#fff;padding:.6rem 1rem;z-index:100}
.skip-link:focus{left:0}

/* En-tête */
.site-header{position:sticky;top:0;z-index:50;background:rgba(10,10,10,.82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0;position:relative}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--text);text-decoration:none;font-weight:800;letter-spacing:.14em;font-size:1.15rem}
.brand:hover{color:#fff}
.brand img{height:34px;width:auto}
.nav ul{display:flex;gap:.25rem;list-style:none;margin:0;padding:0}
.nav a{display:block;padding:.45rem .85rem;border-radius:999px;color:var(--muted);text-decoration:none;font-weight:600;font-size:.95rem}
.nav a:hover{color:var(--text);background:var(--surface-2)}
.nav a[aria-current="page"]{color:#fff;background:var(--red)}
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--text);font-size:1.3rem;cursor:pointer}
@media (max-width:820px){
  .nav-toggle{display:inline-flex}
  .nav{display:none;position:absolute;left:-1rem;right:-1rem;top:100%;background:var(--bg);border-bottom:1px solid var(--line);padding:.5rem 1rem 1rem}
  .nav.open{display:block}
  .nav ul{flex-direction:column}
}

/* Hero */
.hero{padding:clamp(3rem,10vw,7rem) 0 clamp(2rem,6vw,4rem)}
.eyebrow{margin:0 0 .5rem;text-transform:uppercase;letter-spacing:.3em;font-size:.8rem;color:var(--red-3);font-weight:700}
.hero h1{
  margin:0;font-size:clamp(4rem,16vw,9rem);line-height:.95;font-weight:900;letter-spacing:.06em;
  color:#fff;background:linear-gradient(180deg,#fff 15%,var(--red-3) 110%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.hero-bar{width:96px;height:5px;background:var(--red-2);border-radius:3px;margin:1.2rem 0}
.hero p.lead{max-width:56ch;color:var(--muted);font-size:1.15rem;margin:0 0 1.8rem}
.btn-row{display:flex;flex-wrap:wrap;gap:.8rem}
.btn{display:inline-block;padding:.7rem 1.3rem;border-radius:999px;font-weight:700;text-decoration:none;border:1px solid var(--red);transition:background .2s,transform .2s}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-2);color:#fff;transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--text)}
.btn-ghost:hover{background:rgba(139,0,0,.25);color:#fff}

/* Sections */
.section{padding:2.2rem 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.2rem;border-bottom:1px solid var(--line);padding-bottom:.7rem}
.section-head h2{margin:0;font-size:1.5rem}
.section-head h2::before{content:"";display:inline-block;width:.55rem;height:1.1rem;background:var(--red-2);margin-right:.6rem;border-radius:2px;vertical-align:-.1rem}
.page-head{padding:3rem 0 1.2rem}
.page-head h1{margin:0 0 .4rem;font-size:clamp(2rem,6vw,3.2rem);line-height:1.1}
.page-head p{margin:0;color:var(--muted);max-width:60ch}

/* Cartes */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.25rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:border-color .2s,transform .2s}
.card:hover{border-color:var(--red-2);transform:translateY(-2px)}
.card-body{padding:1rem 1.1rem 1.2rem}
.card-body h3{margin:.1rem 0 .4rem;font-size:1.1rem;line-height:1.3}
.card-body h3 a{color:var(--text);text-decoration:none}
.card-body h3 a:hover{color:var(--red-3)}
.card-body p{margin:.3rem 0}
.meta{font-size:.8rem;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.media{position:relative;display:block;width:100%;aspect-ratio:16/9;background:#000;border:0;padding:0;overflow:hidden}
.media img{width:100%;height:100%;object-fit:cover}
button.media{cursor:zoom-in}
.media iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.media.placeholder{display:grid;place-items:center;color:var(--muted);background:repeating-linear-gradient(45deg,#120d0f,#120d0f 12px,#171012 12px,#171012 24px)}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:.7rem 0 0}
.chips li,.chip{font-size:.75rem;padding:.15rem .6rem;border-radius:999px;border:1px solid var(--red);color:#e8b4b8;background:rgba(139,0,0,.18)}

/* Filtres */
.toolbar{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;justify-content:space-between;margin:1rem 0 1.5rem}
.filters{display:flex;flex-wrap:wrap;gap:.5rem}
.filter{padding:.45rem 1rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer}
.filter:hover{border-color:var(--red-2)}
.filter[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:#fff}
.search{min-width:220px;padding:.55rem 1rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit}
.search::placeholder{color:var(--muted)}
.empty,.notice{padding:1.2rem 1.4rem;border:1px dashed var(--red);border-radius:var(--radius);color:var(--muted);background:rgba(139,0,0,.08)}

/* Texte riche (articles, astuces) */
.prose{font-size:1.05rem}
.prose h2,.prose h3,.prose h4,.prose h5{line-height:1.25;margin:2rem 0 .6rem}
.prose h2{font-size:1.6rem;border-left:4px solid var(--red-2);padding-left:.7rem}
.prose p,.prose ul,.prose ol{margin:.8rem 0}
.prose img{border-radius:var(--radius);margin:1.2rem auto;border:1px solid var(--line)}
.prose code{font-family:var(--mono);font-size:.9em;background:var(--surface-2);padding:.1rem .4rem;border-radius:6px}
.prose pre{background:#0f0b0c;border:1px solid var(--line);border-radius:var(--radius);padding:1rem;overflow:auto}
.prose pre code{background:none;padding:0}
.prose blockquote{margin:1.2rem 0;padding:.4rem 1.1rem;border-left:4px solid var(--red-2);background:rgba(139,0,0,.1);border-radius:0 var(--radius) var(--radius) 0;color:#d9cfd1}
.prose hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
.article-head{padding:3rem 0 1rem}
.article-head h1{margin:.3rem 0 .6rem;font-size:clamp(2rem,6vw,3rem);line-height:1.12}
.back{display:inline-block;margin:1rem 0 3rem}

/* Astuces */
details.tip summary{display:flex;gap:.8rem;align-items:center;justify-content:space-between;padding:1rem 1.2rem;cursor:pointer;list-style:none;font-weight:700}
details.tip summary::-webkit-details-marker{display:none}
details.tip summary::after{content:"+";color:var(--red-3);font-size:1.4rem;line-height:1}
details.tip[open] summary::after{content:"−"}
details.tip[open]{border-color:var(--red-2)}
.tip-title{flex:1}
.tip-body{padding:0 1.2rem 1.2rem;font-size:1rem}
.tip-body h2{font-size:1.2rem;border:0;padding:0}

/* Live */
.live-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,1fr);gap:1rem}
.live-grid .media{border-radius:var(--radius);border:1px solid var(--line)}
.chat{min-height:420px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.chat iframe{width:100%;height:100%;min-height:420px;border:0}
@media (max-width:900px){.live-grid{grid-template-columns:1fr}}

/* Comptes officiels */
.accounts{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.7rem}
.accounts li{display:flex;flex-wrap:wrap;gap:.4rem 1rem;justify-content:space-between;padding:.9rem 1.1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.acc-name{font-weight:800;letter-spacing:.04em}
.warn{border-left:4px solid var(--red-2);background:rgba(139,0,0,.12);padding:.9rem 1.2rem;border-radius:0 var(--radius) var(--radius) 0;margin:1.2rem 0}

/* Visionneuse d'image */
dialog.lightbox{background:#000;color:var(--text);border:1px solid var(--red);border-radius:var(--radius);max-width:min(96vw,1200px);padding:0;overflow:hidden}
dialog.lightbox::backdrop{background:rgba(0,0,0,.88)}
.lightbox img{max-width:100%;max-height:78vh;margin:0 auto;object-fit:contain}
.lb-cap{margin:0;padding:.8rem 1.1rem;color:var(--muted)}
.lb-close{position:absolute;top:.5rem;right:.6rem;width:40px;height:40px;border-radius:50%;border:1px solid var(--red);background:rgba(10,10,10,.8);color:#fff;font-size:1.4rem;cursor:pointer}

[hidden]{display:none!important}

/* Pied de page */
.site-footer{margin-top:3rem;border-top:1px solid var(--line);padding:1.6rem 0;color:var(--muted);font-size:.9rem}
.footer-inner{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;justify-content:space-between}
.footer-inner a{color:var(--muted)}
.footer-inner a:hover{color:var(--red-3)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
