/* Cul.Ture — feuille de style du site public. Mobile d'abord, clair/sombre. */

:root {
  --bg: #121316; --panel: #1E2024; --line: #33353B; --ink: #F3F1EC; --muted: #A6A5AD;
  --accent: #FF6B4F; --dot: #FF6B4F; --badge: #FF6B4F; --on-badge: #17181B;
  --f: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --w: 720px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F4EF; --panel: #FFFFFF; --line: #DDDAD2; --ink: #17181B; --muted: #5F5E66;
  --accent: #B8391C;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f); padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--badge); color: var(--on-badge); padding: 10px 14px; z-index: 50; font-weight: 800; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 18px; }
.lab { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.sm { font-size: 13px; color: var(--muted); }
.dot { color: var(--dot); }

/* En-tête */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); max-width: var(--w); margin: 0 auto; }
.topbar-line { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.theme-btn { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
:root[data-theme="light"] .ico-sun, :root:not([data-theme="light"]) .ico-moon { display: none; }
.logo { display: block; font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.logo-big { font-size: clamp(72px, 22vw, 140px); padding: 26px 18px 4px; max-width: var(--w); margin: 0 auto; }
.logo-small { font-size: 30px; }
.tagline { display: block; padding: 6px 18px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: var(--w); margin: 0 auto; }
.minibar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.minibar-in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 60px; padding: 0 12px; max-width: var(--w); margin: 0 auto; }
.minibar .logo { justify-self: center; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.icon-btn.bordered { border-color: var(--line); }
.progress { height: 3px; background: transparent; }
.progress span { display: block; height: 3px; width: 0; background: var(--badge); }

.tabs { position: sticky; top: 0; z-index: 20; background: var(--bg); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.tabs-in { display: flex; gap: 4px; overflow-x: auto; padding: 0 10px; scrollbar-width: none; max-width: var(--w); margin: 0 auto; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs-under { top: 60px; border-top-width: 1px; }
.tabs a { flex: none; min-height: 48px; display: flex; align-items: center; padding: 0 12px; font-weight: 800; font-size: 15px; }
.tabs a[aria-current] { color: var(--accent); }
.breaking { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; max-width: var(--w); margin: 0 auto; }
.breaking b { flex: none; background: var(--badge); color: var(--on-badge); padding: 4px 8px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

/* Une */
.hero { position: relative; display: block; height: min(150vw, 640px); overflow: hidden; max-width: var(--w); margin: 0 auto; background: var(--panel); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.94) 0%, rgba(8,8,12,.55) 40%, rgba(8,8,12,0) 66%); }
.hero-tx { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 18px 26px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.chip { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #FF6B4F; color: #17181B; padding: 5px 9px; }
.hero h1 { font-size: clamp(40px, 12.5vw, 64px); line-height: 1; }
.hero p { margin: 0; color: rgba(255,255,255,.88); }
.hero-meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.8); }

/* Sections */
.sec { padding: 40px 0 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec-h h2 { font-size: 30px; }
.sec-h a, .more { white-space: nowrap; flex: none; font-size: 14px; font-weight: 800; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.new-count { font-size: 12px; font-weight: 800; color: var(--accent); white-space: nowrap; }

.cafe { background: var(--panel); border-bottom: 1px solid var(--line); padding: 32px 0; }
.cafe h2 { font-size: 36px; line-height: 1.02; white-space: pre-line; margin: 12px 0; }
.cafe p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.form-nl { display: flex; flex-direction: column; gap: 10px; }
.form-nl label { font-size: 13px; font-weight: 600; }
.input { height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 16px; font-size: 16px; width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 18px; border-radius: 12px; font-weight: 800; font-size: 16px; cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.btn-primary { border: 0; background: var(--badge); color: var(--on-badge); }
.btn-block { width: 100%; }
.hp { position: absolute; left: -9999px; }

.list-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.list-item:last-child { border-bottom: 1px solid var(--line); }
.list-item .thumb { flex: none; width: 104px; height: 104px; border-radius: 10px; object-fit: cover; background: var(--panel); }
.list-item .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.list-item h3 { font-size: 18px; line-height: 1.2; letter-spacing: -0.02em; }
.kick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-new { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--badge); color: var(--on-badge); }
.badge-new[hidden] { display: none; }
.badge-spons { font-size: 11px; font-weight: 600; padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); }

.portrait-card { position: relative; display: block; height: 480px; overflow: hidden; border-radius: 4px; background: var(--panel); }
.portrait-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.9) 0%, rgba(8,8,12,0) 50%); }
.portrait-card .tx { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; color: #fff; }
.portrait-card h3 { font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.quote { margin: 16px 0; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px; margin: 0 -18px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.guide-card { flex: none; width: 236px; padding: 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.guide-card .num { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.guide-card h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; }
.guide-card p { margin: 0; font-size: 14px; color: var(--muted); }
.partner { margin-top: 40px; padding: 22px 20px; border-radius: 14px; border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.partner h2 { font-size: 22px; letter-spacing: -0.02em; }
.partner p { margin: 0; color: var(--muted); font-size: 15px; }
.merch { flex: none; width: 168px; display: flex; flex-direction: column; gap: 6px; }
.merch img { width: 168px; height: 168px; object-fit: cover; border-radius: 10px; }
.merch b { font-size: 15px; }
.commit img { width: 100%; height: 210px; object-fit: cover; border-radius: 4px; margin: 14px 0; }
.commit p { color: var(--muted); font-size: 15px; }

/* Article */
.crumbs { padding: 14px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a:last-child { color: var(--accent); font-weight: 600; }
.art-h { padding: 14px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.art-h h1 { font-size: clamp(32px, 9.4vw, 52px); }
.chapo { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.byline b { font-size: 14px; display: block; }
.figure { margin: 0 auto; max-width: var(--w); }
.figure img { width: 100%; max-height: 520px; object-fit: cover; }
.figure figcaption { padding: 8px 18px 0; font-size: 12px; color: var(--muted); }
.toc { margin: 24px 0 0; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.toc h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.prose { font-size: 17px; line-height: 1.7; padding-top: 8px; overflow-wrap: break-word; }
.prose > * { margin: 16px 0 0; }
.prose h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; margin-top: 32px; }
.prose h3 { font-size: 21px; margin-top: 26px; letter-spacing: -0.02em; }
.prose h4 { font-size: 18px; margin-top: 22px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--badge); font-weight: 600; font-size: 19px; }
.prose blockquote p { margin: 0; }
.prose code { background: var(--panel); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { border-radius: 4px; }
.prose figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; }
.retenir { padding: 18px; border-radius: 14px; border: 2px solid var(--badge); }
.retenir-lab { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.retenir p { margin: 6px 0 0; font-size: 16px; font-weight: 600; }
.faq { margin-top: 32px; }
.faq h2 { font-size: 26px; margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.share { margin-top: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; }
.box { margin-top: 36px; padding: 22px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; }
.disclaimer { margin-top: 20px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Portrait */
.p-hero { position: relative; height: min(145vw, 620px); overflow: hidden; max-width: var(--w); margin: 0 auto; background: var(--panel); }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.94) 0%, rgba(8,8,12,.4) 38%, rgba(8,8,12,0) 60%); }
.p-hero .tx { position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 1; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.p-hero h1 { font-size: clamp(40px, 13vw, 64px); line-height: .98; letter-spacing: -0.045em; }
.p-intro { margin: 20px 0 0; font-size: 20px; line-height: 1.5; font-weight: 600; }
.pull { margin: 36px 0 0; padding: 24px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -0.035em; }

/* Grilles et pages */
.page-h { padding: 26px 0 8px; }
.page-h h1 { font-size: clamp(34px, 10vw, 54px); }
.page-h p { color: var(--muted); }
.pager { display: flex; justify-content: space-between; padding: 24px 0; }
.search-form { display: flex; gap: 8px; margin: 18px 0; }
.search-form .btn { flex: none; }
.empty { padding: 30px 0; color: var(--muted); }

/* Pied de page */
.footer { margin-top: 52px; border-top: 2px solid var(--ink); }
.footer .wrap { padding-top: 30px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.footer .logo { font-size: 48px; }
.footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; font-size: 14px; }
.footer nav a { min-height: 40px; display: flex; align-items: center; }
.social { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }

/* Barre du bas (pouce) */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); }
.bottomnav-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: var(--w); margin: 0 auto; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 11px; font-weight: 600; }
.bottomnav a[aria-current] { color: var(--accent); font-weight: 800; }
.bottomnav svg { width: 22px; height: 22px; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .hero, .p-hero { border-radius: 4px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ===== Écrans larges (ordinateur) : pleine largeur ===== */
.tab-search { display: none !important; }
@media (max-width: 1023px) { .tabs-desk { display: none; } }
@media (min-width: 1024px) {
  :root { --w: 1280px; }
  .wrap { padding: 0 32px; }
  .topbar, .breaking, .tagline, .logo-big { padding-left: 32px; padding-right: 32px; }
  .logo-big { font-size: 150px; }
  .tabs-in { padding: 0 22px; }
  .tab-search { display: flex !important; margin-left: auto; }
  .minibar-in { grid-template-columns: 44px 1fr 44px; max-width: var(--w); padding: 0 24px; }
  .tabs-under { top: 60px; }

  /* Une : grande image panoramique, texte à gauche */
  .hero { height: 600px; margin-top: 0; border-radius: 0; max-width: none; }
  .hero::after { background: linear-gradient(to right, rgba(8,8,12,.92) 0%, rgba(8,8,12,.6) 38%, rgba(8,8,12,0) 65%); }
  .hero img { object-position: 70% 30%; }
  .hero-tx { max-width: var(--w); margin: 0 auto; padding: 0 32px 56px; right: 0; }
  .hero-tx > * { max-width: 620px; }
  .hero-tx h2 { font-size: 76px !important; }
  .hero-meta { max-width: 620px; }

  /* Lettre du café : 2 colonnes */
  .cafe { padding: 56px 0; }
  .cafe-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .cafe h2 { font-size: 52px; }

  /* Dans le radar : cartes en grille */
  .sec { padding-top: 64px; }
  .sec-h h2 { font-size: 40px; }
  .radar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 8px; }
  .radar-grid .list-item { flex-direction: column; border: 0; padding: 0; gap: 14px; }
  .radar-grid .list-item:last-child { border: 0; }
  .radar-grid .list-item .thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 6px; }
  .radar-grid .list-item h3 { font-size: 22px; }

  /* Portrait : photo + citation côte à côte */
  .portrait-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
  .portrait-card { height: 640px; }
  .quote-mob { display: none; }
  .quote-desk { font-size: 40px; }
  .portrait-side { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
  .portrait-side .btn { width: auto; align-self: flex-start; padding: 0 28px; }

  /* Guides, boutique : grilles au lieu du défilement */
  .hscroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 20px; }
  .guide-card, .merch { width: auto; }
  .merch img { width: 100%; height: auto; aspect-ratio: 1; }
  .sec .hscroll:has(.merch) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .partner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 28px 32px; }
  .partner > .kick { flex-basis: 100%; }
  .partner p { flex: 1; min-width: 300px; }
  .commit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 48px; align-items: center; }
  .commit .lab { grid-column: 1 / -1; }
  .commit img { grid-row: span 2; height: 380px; margin: 14px 0 0; }
  .commit h2 { font-size: 44px !important; align-self: end; }

  /* Rubriques, recherche, 404 : liste en grille */
  .page-h { padding-top: 48px; }
  .page-h h1 { font-size: 64px; }
  .page-h p { max-width: 720px; font-size: 18px; }
  main > .wrap > .list-item, .cat-grid .list-item { }

  /* Article : lecture confortable (colonne de texte), image large */
  .figure { max-width: 1100px; }
  .figure img { max-height: 620px; border-radius: 4px; }
  article .wrap, .wrap:has(> article), .wrap:has(> .prose) { max-width: 784px; }
  .art-h h1 { font-size: 56px; }
  .p-hero { max-width: 1100px; height: 680px; margin-top: 24px; border-radius: 4px; }

  /* Pied de page */
  .footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: start; padding-top: 48px; padding-bottom: 40px; }
  .footer .logo { font-size: 72px; }
  .footer nav { grid-row: span 3; grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1199px) { .sec .hscroll:has(.merch) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
