:root {
  color-scheme: dark;
  --bg: #050b12;
  --surface: #0b1420;
  --surface-2: #101c2a;
  --line: rgba(145, 184, 219, .18);
  --text: #f4f8fc;
  --muted: #9eb0c2;
  --cyan: #27d7ff;
  --blue: #4285ff;
  --violet: #9a5cff;
  --green: #35e69a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 215, 255, .08), transparent 24rem),
    radial-gradient(circle at 80% 14%, rgba(154, 92, 255, .08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 99; padding: 10px 14px; background: var(--cyan); color: #00141b; border-radius: 9px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 11, 18, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.02rem; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 33px; height: 27px; display: grid; place-items: center; border: 2px solid var(--cyan); border-radius: 5px; box-shadow: 0 0 20px rgba(39, 215, 255, .22); color: var(--cyan); }
.brand em { color: var(--cyan); font-style: normal; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: #b7c4d1; font-size: .92rem; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); }
.header-action { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: #dce8f4; font-size: .88rem; background: rgba(255,255,255,.025); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); color: white; border-radius: 10px; }

.hero { position: relative; overflow: hidden; padding: 80px 0 70px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(5,11,18,.25), rgba(5,11,18,.76)), repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.018) 80px); }
.hero::after { content: ""; position: absolute; width: 620px; height: 340px; right: -80px; top: 30px; border: 1px solid rgba(39,215,255,.22); border-radius: 34px; transform: perspective(900px) rotateY(-18deg) rotateX(3deg); background: linear-gradient(135deg, rgba(34, 68, 96, .36), rgba(12, 19, 31, .25)); box-shadow: inset 0 0 0 16px rgba(255,255,255,.018), 0 0 90px rgba(39,215,255,.07); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 12px currentColor; }
h1 { margin: 18px 0 14px; max-width: 780px; font-size: clamp(2.35rem, 5vw, 4.45rem); line-height: 1.02; letter-spacing: -.055em; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #bccad7; font-size: 1.12rem; max-width: 620px; margin: 0 0 28px; }
.search { position: relative; max-width: 670px; }
.search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: #8195aa; }
.search input { width: 100%; height: 58px; padding: 0 18px 0 54px; color: white; background: rgba(14, 27, 41, .88); border: 1px solid rgba(173, 201, 227, .38); border-radius: 16px; outline: none; box-shadow: var(--shadow); }
.search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(39,215,255,.1); }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-tags button { color: #aabaca; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.quick-tags button:hover { color: white; border-color: rgba(39,215,255,.5); }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.section-head p { margin: 7px 0 0; color: var(--muted); }
.link-arrow { color: var(--cyan); font-weight: 700; font-size: .93rem; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { position: relative; min-height: 250px; padding: 24px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(19,35,50,.96), rgba(8,16,25,.97)); box-shadow: 0 12px 35px rgba(0,0,0,.15); transition: transform .25s ease, border-color .25s ease; }
.category-card::before { content: ""; position: absolute; width: 190px; height: 190px; right: -65px; top: -65px; background: radial-gradient(circle, var(--accent, rgba(39,215,255,.2)), transparent 68%); opacity: .8; }
.category-card:hover { transform: translateY(-5px); border-color: rgba(39,215,255,.42); }
.icon-box { width: 54px; height: 54px; display: grid; place-items: center; color: var(--card-color, var(--cyan)); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 15px; }
.category-card h3 { margin: 42px 0 5px; font-size: 1.25rem; letter-spacing: -.02em; }
.category-card p { color: var(--muted); margin: 0 0 20px; font-size: .93rem; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: #8295a8; }
.card-bottom strong { color: var(--cyan); font-size: .88rem; }
.empty-state { display: none; padding: 28px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 16px; }

.featured { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.featured-grid { display: grid; grid-template-columns: 1.55fr .8fr; gap: 18px; }
.featured-main, .popular { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.featured-main { padding: 30px; min-height: 330px; display: flex; flex-direction: column; background: radial-gradient(circle at 85% 15%, rgba(154,92,255,.13), transparent 240px), var(--surface); }
.featured-main.has-cover { position: relative; overflow: hidden; isolation: isolate; }
.featured-main.has-cover::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(7,15,24,.99) 0%,rgba(7,15,24,.91) 52%,rgba(7,15,24,.18) 100%); }
.featured-cover { position:absolute; z-index:-2; inset:0 0 0 auto; width:68%; height:100%; object-fit:cover; }
.tag { width: fit-content; padding: 6px 10px; color: #d6c1ff; background: rgba(154,92,255,.13); border: 1px solid rgba(154,92,255,.38); border-radius: 7px; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.featured-main h3 { max-width: 720px; margin: 34px 0 12px; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.04em; }
.featured-main p { color: var(--muted); max-width: 680px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #8ca0b4; font-size: .82rem; margin-top: auto; padding-top: 22px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.popular { padding: 22px; }
.popular h3 { margin: 0 0 14px; font-size: 1.05rem; }
.popular-item { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.popular-num { color: var(--cyan); font-size: 1.35rem; font-weight: 900; }
.popular-item strong { display: block; line-height: 1.25; font-size: .9rem; }
.popular-item small { color: #7f92a4; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 34px 0 54px; }
.trust-item { display: flex; align-items: center; gap: 13px; color: #dbe7f2; }
.trust-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--green); background: rgba(53,230,154,.08); border: 1px solid rgba(53,230,154,.25); border-radius: 50%; }
.trust-item strong { display: block; font-size: .9rem; }
.trust-item small { color: #7f92a4; }

.site-footer { border-top: 1px solid var(--line); padding: 38px 0 24px; color: #8193a5; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .86rem; }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }
.footer-links a:hover { color: var(--cyan); }

/* Répertoire des articles */
.guide-page { padding:56px 0 82px; }
.guide-page h1 { margin-bottom:18px; }
.guide-page .section-head { margin-top:42px; }
.guide-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.guide-card { overflow:hidden; padding:0 22px 22px; border:1px solid var(--line); border-radius:19px; background:linear-gradient(145deg,rgba(19,35,50,.96),rgba(8,16,25,.97)); box-shadow:0 12px 35px rgba(0,0,0,.16); transition:transform .25s ease,border-color .25s ease; }
.guide-card:hover { transform:translateY(-4px); border-color:rgba(39,215,255,.46); }
.guide-card img { display:block; width:calc(100% + 44px); height:230px; margin:0 -22px 20px; object-fit:cover; border-bottom:1px solid var(--line); }
.guide-card h2 { margin:14px 0 8px; font-size:1.32rem; line-height:1.25; }
.guide-card p { margin:0 0 18px; color:var(--muted); }
.guide-card small { color:#8295a8; }

/* Pages éditoriales et légales */
.info-page { padding: 56px 0 80px; }
.info-page-inner { max-width: 820px; }
.info-page h1 { margin-bottom: 18px; }
.info-lead { color: #becbd7; font-size: 1.08rem; margin: 0 0 32px; }
.info-section { padding: 28px 0; border-top: 1px solid var(--line); }
.info-section h2 { margin: 0 0 10px; font-size: 1.35rem; }
.info-section p, .info-section li { color: #b7c5d1; }
.info-section a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact-card p { margin-top: 0; }
.contact-button { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1px solid rgba(39,215,255,.48); border-radius: 11px; color: #03151d !important; background: linear-gradient(90deg, var(--cyan), #78e8ff); font-weight: 850; text-decoration: none !important; overflow-wrap: anywhere; }
.contact-button:hover { filter: brightness(1.08); }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 42px 0 70px; align-items: start; }
.breadcrumbs { color: #8498ab; font-size: .82rem; margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--cyan); }
.article-main h1 { font-size: clamp(2.15rem, 4.5vw, 3.8rem); margin-top: 12px; }
.article-intro { color: #b9c8d5; font-size: 1.08rem; max-width: 780px; }
.article-visual { min-height: 340px; margin: 28px 0 18px; padding: 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 19px; background: radial-gradient(circle at 18% 30%, rgba(39,215,255,.12), transparent 210px), linear-gradient(145deg,#0e1a27,#07111a); overflow: hidden; }
.controller-shape { width: min(260px,100%); aspect-ratio: 1.5; margin: auto; border: 3px solid var(--cyan); border-radius: 42% 42% 48% 48% / 38% 38% 58% 58%; position: relative; box-shadow: inset 0 0 35px rgba(39,215,255,.09), 0 0 35px rgba(39,215,255,.08); }
.controller-shape::before, .controller-shape::after { content:""; position:absolute; top:42%; width:32px; height:32px; border:2px solid #a9bad0; border-radius:50%; }
.controller-shape::before { left:24%; } .controller-shape::after { right:24%; }
.mock-window { border: 1px solid #33485c; background:#081019; border-radius: 12px; overflow:hidden; box-shadow: var(--shadow); }
.mock-bar { height:28px; background:#152331; border-bottom:1px solid #33485c; }
.mock-screen { padding:20px; min-height:210px; display:grid; place-items:center; position:relative; background:linear-gradient(135deg,#111d2a,#081019); }
.mock-screen .controller-shape { width:160px; }
.warning { position:absolute; right:12px; top:12px; color:#ff7184; border:1px solid rgba(255,113,132,.55); padding:6px 8px; border-radius:7px; font-size:.75rem; }
.caption { color:#7890a5; text-align:right; font-size:.78rem; margin-top:7px; }
.quick-answer { display:flex; gap:15px; padding:20px; margin:20px 0 34px; background:linear-gradient(90deg,rgba(53,230,154,.14),rgba(53,230,154,.045)); border:1px solid rgba(53,230,154,.48); border-radius:14px; }
.quick-answer strong { color:var(--green); display:block; margin-bottom:3px; }
.step { padding: 28px 0; border-top: 1px solid var(--line); }
.step-title { display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.step-title span { width:34px; height:34px; display:grid; place-items:center; background:var(--blue); border-radius:50%; font-weight:900; box-shadow:0 0 20px rgba(66,133,255,.22); }
.step h2 { margin:0; font-size:1.35rem; }
.step p, .step li { color:#b2c0cd; }
.result-box { margin-top:24px; padding:22px; border:1px solid rgba(53,230,154,.48); border-radius:14px; background:rgba(53,230,154,.07); }
.result-box h2 { color:var(--green); margin:0 0 5px; }
.sidebar { position:sticky; top:94px; display:grid; gap:15px; }
.side-card { padding:19px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.side-card h2 { margin:0 0 13px; font-size:1rem; }
.toc { display:grid; gap:10px; font-size:.86rem; color:#b8c6d4; }
.toc a:hover { color:var(--cyan); }
.ad-slot { min-height:250px; display:grid; place-items:center; color:#607487; text-align:center; border:1px dashed rgba(145,184,219,.23); border-radius:15px; background:rgba(255,255,255,.014); font-size:.75rem; letter-spacing:.08em; }

/* Test matériel */
.review-hero { margin:28px 0 22px; }
.review-photo-frame { padding: 14px; border-radius: 22px; background: radial-gradient(circle at 18% 15%, rgba(39,215,255,.24), transparent 30%), radial-gradient(circle at 84% 90%, rgba(154,92,255,.26), transparent 34%), linear-gradient(145deg,#0b1724,#050b12 58%,#121329); border:1px solid rgba(39,215,255,.24); box-shadow:0 18px 55px rgba(0,0,0,.32), 0 0 32px rgba(39,215,255,.08); }
.review-hero img, .review-figure img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.review-hero img { aspect-ratio:16 / 10; object-fit:cover; }
.review-figure { margin:30px 0; }
.review-figure img { aspect-ratio:16 / 10; object-fit:cover; }
.review-figure figcaption, .review-hero figcaption { padding-top:9px; color:#7890a5; font-size:.78rem; }
.review-summary { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:24px 0 36px; }
.review-panel { padding:19px; border-radius:14px; border:1px solid var(--line); background:var(--surface); }
.review-panel.positive { border-color:rgba(53,230,154,.32); }
.review-panel.negative { border-color:rgba(255,113,132,.3); }
.review-panel h2 { margin:0 0 10px; font-size:1rem; }
.review-panel.positive h2 { color:var(--green); }
.review-panel.negative h2 { color:#ff8b9a; }
.review-panel ul { margin:0; padding-left:20px; color:#b7c5d1; }
.review-section { padding:31px 0; border-top:1px solid var(--line); }
.review-section h2 { margin:0 0 12px; font-size:clamp(1.45rem,2.5vw,2rem); letter-spacing:-.025em; }
.review-section p { color:#b8c6d3; font-size:1.02rem; }
.personal-note { padding:20px 22px; margin:20px 0; border-left:3px solid var(--cyan); background:linear-gradient(90deg,rgba(39,215,255,.09),transparent); color:#dce7f1; border-radius:0 12px 12px 0; }
.humor-note { padding:20px 22px; margin:20px 0; border:1px solid rgba(154,92,255,.3); background:linear-gradient(110deg,rgba(154,92,255,.12),rgba(39,215,255,.035)); color:#dce7f1; border-radius:14px; }
.humor-note strong { color:#c9a8ff; }
.verdict { padding:26px; margin-top:28px; border:1px solid rgba(53,230,154,.45); background:radial-gradient(circle at 90% 10%,rgba(53,230,154,.11),transparent 230px),var(--surface); border-radius:18px; }
.verdict h2 { margin:0 0 8px; color:var(--green); }
.verdict p { color:#c1cfda; margin-bottom:0; }
.author-card { display:flex; gap:12px; align-items:center; }
.author-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:#041116; background:linear-gradient(135deg,var(--cyan),var(--violet)); font-weight:900; }
.author-card strong { display:block; }
.author-card small { color:#7f92a4; }

/* Navigation aléatoire entre les articles */
.random-article-nav { margin: 22px 0 30px; }
.random-article-nav--bottom { margin: 34px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.random-article-button {
  min-height: 54px;
  width: 100%;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f4f8fc;
  border: 1px solid rgba(39, 215, 255, .46);
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(39, 215, 255, .13), rgba(154, 92, 255, .13));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2), inset 0 0 24px rgba(39, 215, 255, .025);
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.random-article-button > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: var(--cyan); border: 1px solid rgba(39, 215, 255, .35); border-radius: 50%; }
.random-article-button > span:nth-child(2) { flex: 1; }
.random-article-button strong { color: var(--cyan); font-size: 1.2rem; }
.random-article-button:hover, .random-article-button:focus-visible { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 15px 36px rgba(0, 0, 0, .28), 0 0 24px rgba(39, 215, 255, .1); outline: none; }
.random-article-button:active { transform: translateY(0); }

@media (max-width: 900px) {
  .nav { display:none; position:absolute; top:72px; left:0; right:0; padding:18px 20px; flex-direction:column; align-items:flex-start; background:#07111a; border-bottom:1px solid var(--line); }
  .nav.open { display:flex; }
  .menu-toggle { display:block; }
  .header-action { display:none; }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .featured-grid, .article-wrap { grid-template-columns:1fr; }
  .review-summary { grid-template-columns:1fr; }
  .sidebar { position:static; grid-template-columns:1fr 1fr; }
  .hero::after { opacity:.35; right:-340px; }
}
@media (max-width: 620px) {
  .container { width:min(100% - 26px,1180px); }
  .header-inner { height:64px; }
  .brand { font-size:.88rem; }
  .brand-mark { width:30px; height:25px; }
  .nav { top:64px; }
  .hero { padding:55px 0 50px; }
  h1 { font-size:2.5rem; }
  .category-grid, .trust-row, .sidebar, .guide-card-grid { grid-template-columns:1fr; }
  .section { padding:48px 0; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .category-card { min-height:225px; }
  .featured-main { padding:23px; min-height:340px; }
  .featured-cover { width:100%; opacity:.46; }
  .footer-top { align-items:flex-start; flex-direction:column; }
  .article-wrap { padding-top:28px; }
  .article-visual { grid-template-columns:1fr; min-height:0; padding:18px; }
}
