/*
Theme Name: Klonosphere
Theme URI: https://www.klonosphere.com/
Author: Klonosphere
Description: Thème sur mesure du collectif Klonosphere. Aucun plugin requis.
Version: 1.8.6
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: klonosphere
*/

/* ==========================================================
   KLONOSPHERE — CSS mobile first
   Base : téléphone, une colonne, largeur fluide.
   Les colonnes et la navigation horizontale arrivent ensuite
   avec des media queries min-width uniquement.
   ========================================================== */

:root {
  --bg: #f8f7f4;
  --surface: #f0efec;
  --text: #16171a;
  --muted: #65666a;
  --rule: #d8d8d4;
  --accent: #987542;
  --accent-text: #72552f;
  --inverse: #fff;
  --shadow: rgba(19,20,22,.08);
  --gutter: 16px;
  --space-section: 40px;
  --space-grid: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, "Segoe UI", Arial, sans-serif;
}
img, video, iframe, embed, object { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { max-width: 100%; font: inherit; }
button { cursor: pointer; }
::selection { background: #27292c; color: #fff; }
:where(h1,h2,h3,p,li,a,span) { overflow-wrap: break-word; }

.container {
  width: 100%;
  max-width: 1470px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container > *, .grid > *, .contact-grid > *, .stripe .container > * { min-width: 0; }
.kicker { color: var(--accent-text); font: 700 12px/1.5 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.headline { font-family: "Barlow Condensed", "Arial Narrow", "Arial Black", Impact, sans-serif; font-weight: 800; letter-spacing: -.015em; line-height: .98; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.btn {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--inverse);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}
.btn.alt { background: transparent; color: var(--text); border-color: var(--rule); }
.btn:hover { filter: brightness(1.12); }
.linkline { display: inline-block; padding-bottom: 7px; border-bottom: 1px solid var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.visually-hidden, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* En-tête et navigation mobile */
.nav { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--rule); backdrop-filter: blur(10px); }
.navinner { display: flex; min-height: 62px; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 8px; }
.social-links { display: flex; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 7px; }
.social-links a { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid var(--rule); border-radius: 50%; }
.social-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.social-links .social-fill { fill: currentColor; stroke: none; }
.social-links .spotify-link svg { fill: currentColor; stroke: none; }
.mobile-toggle { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; margin-left: auto; padding: 7px 10px; border: 1px solid var(--rule); background: transparent; color: var(--text); font-size: 13px; font-weight: 700; }
.navlinks { display: none; width: 100%; flex-direction: column; gap: 0; order: 3; padding: 4px 0 8px; }
.navlinks.open { display: flex; }
.navlinks a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.navlinks a:last-child { border-bottom: 0; }

/* Logo de tête */
.masthead-logo { background: #fff; }
.masthead-logo-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 14px 12px; }
.masthead-logo-link { display: block; width: 100%; }
.masthead-logo-link img { width: 100%; height: auto; }
.masthead-caption { max-width: 100%; color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: .06em; text-align: center; }

/* Hero mobile */
.hero { position: relative; isolation: isolate; min-height: 0; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 85% 55%, rgba(74,77,82,.10), transparent 42%); content: ""; }
.hero-inner { position: relative; padding-block: 42px 34px; }
.h1 { max-width: 100%; margin: 16px 0 20px; font-size: clamp(38px, 11vw, 58px); line-height: .98; }
.h1 span { color: var(--accent); }
.hero-desc { max-width: 100%; margin-bottom: 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-inner > div[style] { display: flex; flex-wrap: wrap; gap: 10px !important; }
.hero-bottom { margin-top: 28px; }
.genre-line { display: block; }
.genre-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.genre-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.genre-list li { font-size: 14px; }
.hero-proof, .ghost { display: none; }
.orbital-hero { display: none; }
.statline { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.stat strong { display: block; font: 800 28px/1 "Barlow Condensed", Impact, sans-serif; }
.stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* Sections : une colonne sur téléphone */
.section { padding-block: var(--space-section); border-bottom: 1px solid var(--rule); }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(36px, 10vw, 50px); }
.section-heading p { max-width: 100%; margin: 0; color: var(--muted); }
.grid, .services, .news, .news-featured, .release-grid, .network-grid, .press-grid, .input-grid,
.contact-grid, .stripe .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-grid); }
.service { display: flex; min-height: 0; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--rule); background: var(--surface); }
.service-num { color: var(--accent-text); font-size: 12px; letter-spacing: .08em; }
.service h3 { max-width: 100%; margin: 22px 0 10px; font: 700 29px/.98 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.service p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.stripe { padding-block: 42px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.stripe .container { align-items: start; }
.stripe h2 { margin: 0; font-size: clamp(38px, 10vw, 54px); }
.stripe p { color: var(--muted); }

/* Sorties / médias */
.release { min-width: 0; }
.cover { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid #ffffff24; background: #262626; box-shadow: 0 12px 30px var(--shadow); }
.cover::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #000b); content: ""; }
.cover span { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; color: #fff; font: 700 28px/.95 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.cover i { position: absolute; z-index: 2; top: 12px; right: 12px; color: #fff; font-size: 12px; font-style: normal; }
.cover.c1 { background: radial-gradient(circle at 49% 41%,#b4ad9a 0 2%,transparent 4% 14%,#71878a 19%,transparent 33%),radial-gradient(ellipse at 50% 30%,#485b6a 0%,transparent 55%),linear-gradient(135deg,#1d343a,#050b12 65%); }
.cover.c2 { background: radial-gradient(ellipse at 32% 58%,#b7644f 0%,transparent 52%),repeating-linear-gradient(110deg,#2c1418 0 12px,#271519 13px 14px,#4a1815 16px 17px); }
.cover.c3 { background: radial-gradient(circle at 53% 34%,#d6d4c4 0 8%,#8c8968 10%,transparent 35%),linear-gradient(140deg,#34372c,#0d1011 70%); }
.cover.c4 { background: radial-gradient(ellipse at 60% 48%,#6e9b91 0%,transparent 41%),linear-gradient(140deg,#14232a,#050b0d 80%); }
.release h3 { margin: 12px 0 0; font: 700 22px "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.release p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.release i { color: var(--accent-text); font-style: normal; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; }
.tag { padding: 7px 10px; border: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.network-card { min-width: 0; padding: 16px; border: 1px solid var(--rule); background: var(--surface); }
.network-card-link { display: block; }
.network-card-logo { display: grid; height: 76px; place-items: center; }
.network-logo { max-width: 100%; max-height: 62px; width: auto; object-fit: contain; }
.network-card-main { display: block; font-weight: 700; }
.network-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Actualités */
.news article, .news-card { min-width: 0; border-top: 2px solid var(--accent); padding: 16px 0; }
.news time, .post-list time { color: var(--accent-text); font-size: 12px; letter-spacing: .06em; }
.news h3, .news-card h3 { margin: 12px 0; font: 700 26px/1.08 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.news p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.news-top { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.news-art { position: relative; width: 100%; min-height: 0; aspect-ratio: 16/9; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.news-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-art span, .news-art small { position: relative; z-index: 1; }
.news-featured .news-card { width: 100%; padding: 0; }
.news-featured time { display: block; margin-inline: 12px; }
.news-featured h3 { margin: 8px 12px; font-size: 27px; }
.news-featured p { margin: 0 12px 14px; }
.news-details summary { padding: 12px; cursor: pointer; }
.news-more { display: inline-block; margin: 0 12px 14px; }
.news-status { font-size: 12px; }

/* Texte, pages et articles */
.about-copy { max-width: 100%; }
.about-copy h2 { font-size: clamp(36px, 10vw, 54px); }
.about-copy h3 { margin: 28px 0 12px; font: 700 27px "Barlow Condensed", Impact, sans-serif; }
.about-copy p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.about-copy img, .entry img, .article-content img { width: auto; max-width: 100%; height: auto; }
.article-content { min-width: 0; padding-block: 12px; overflow-wrap: anywhere; }
.page-wrap { min-height: 50vh; padding-block: 38px 56px; }
.page-wrap h1 { font-size: clamp(34px, 10vw, 50px); }
.page-wrap .entry > * { max-width: 780px; }
.page-wrap .entry ul, .page-wrap .entry ol { padding-left: 1.4em; }
.entry table { display: block; max-width: 100%; overflow-x: auto; }
.single-featured-image { width: 100%; max-width: 900px; margin-bottom: 20px; }
.post-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.post-list article { min-width: 0; }
.post-list-thumbnail { display: block; width: 100%; margin-block: 12px; }
.post-list-thumbnail img { width: 100%; max-height: 420px; object-fit: cover; }
.post-list h2 { font: 700 28px/1.05 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.post-list p { color: var(--muted); }
.genre-line { color: var(--muted); }
.genre-list { color: var(--text); }

/* Contact et formulaires */
.contact-grid { gap: 28px; }
.contact-grid h2 { margin: 8px 0 20px; font-size: clamp(40px, 11vw, 58px); }
.contact-grid p { color: var(--muted); }
.check { padding-left: 20px; color: var(--muted); line-height: 2; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--rule); border-radius: 0; outline: none; background: var(--surface); color: var(--text); font-size: 16px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.note, .form-legal { color: var(--muted); font-size: 12px; line-height: 1.6; }
.klo-hp { position: absolute; left: -9999px; }
.quote { padding: 22px; border-left: 3px solid var(--accent); background: var(--surface); }
.quote p { font-size: 18px; line-height: 1.5; }
.quote small { color: var(--muted); font-size: 13px; }

/* Pied de page */
.footer { padding-block: 32px; background: #fff; border-top: 1px solid var(--rule); }
.footer-row { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer .logo-img { width: min(100%, 240px); height: auto; }
.footer small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.toast { position: fixed; z-index: 50; right: 12px; bottom: 12px; left: 12px; max-width: 420px; margin-inline: auto; padding: 14px 16px; background: var(--accent); color: var(--inverse); box-shadow: 0 12px 30px #0003; font-size: 14px; overflow-wrap: anywhere; }
.toast:not(.open) { display: none; }

/* Tablette / petit laptop : deux colonnes */
@media (min-width: 760px) {
  :root { --gutter: 24px; --space-section: 52px; --space-grid: 20px; }
  .section { padding-block: var(--space-section); }
  .services, .news, .news-featured, .release-grid, .network-grid, .press-grid, .input-grid, .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .stripe .container { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 28px; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .section-heading p { max-width: 420px; }
  .section-heading h2 { font-size: clamp(42px, 5.5vw, 68px); }
  .about-copy { max-width: 900px; }
  .footer-row { flex-direction: row; justify-content: space-between; }
}

/* Desktop : navigation horizontale et davantage de colonnes */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .navinner { min-height: 78px; flex-wrap: nowrap; gap: 18px; }
  .mobile-toggle { display: none; }
  .navlinks, .navlinks.open { display: flex; width: auto; flex-direction: row; align-items: center; gap: 20px; order: initial; margin-left: auto; padding: 0; }
  .navlinks a { padding: 8px 0; border: 0; font-size: 12px; white-space: nowrap; }
  .social-links { flex-wrap: nowrap; }
  .masthead-logo-inner { padding-block: 0 16px; }
  .masthead-logo-link { width: min(100%, 1050px); }
  .masthead-caption { font-size: 11px; letter-spacing: .1em; }
  .hero { min-height: 480px; }
  .hero-inner { padding-block: 64px 52px; }
  .h1 { max-width: 760px; font-size: clamp(58px, 6.5vw, 94px); }
  .hero-desc { max-width: 540px; }
  .hero-proof { display: block; margin-top: 34px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
  .orbital-hero { position: absolute; top: 50px; right: 8%; display: block; width: min(34vw, 420px); aspect-ratio: 1; opacity: .5; pointer-events: none; }
  .orbit-ring { position: absolute; inset: 12%; border: 1px solid var(--rule); border-radius: 50%; }
  .orbit-ring.tilt { transform: rotate(55deg) scaleY(.55); }
  .orbit-ring.opposite { transform: rotate(-55deg) scaleY(.55); }
  .orbit-crosshair { position: absolute; inset: 0; border: 1px dashed var(--rule); border-radius: 50%; }
  .orbit-core { position: absolute; inset: 43%; border-radius: 50%; background: var(--accent); }
  .orbit-point { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .orbit-point.p1 { top: 15%; left: 48%; }
  .orbit-point.p2 { right: 13%; bottom: 32%; }
  .orbit-point.p3 { bottom: 17%; left: 23%; }
  .orbit-label { position: absolute; right: 0; bottom: 2%; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
  .section { padding-block: 68px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news, .news-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .network-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .press-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { gap: 48px; }
  .service { min-height: 240px; padding: 28px; }
  .service h3 { margin-top: 38px; font-size: 32px; }
  .about-copy p { font-size: 15px; }
}

@media (min-width: 1280px) {
  .press-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section { padding-block: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Ajustements de finition v1.8.6 */
.nav, .masthead-logo, .footer { background-color: #fff; }
.kicker, .service-num, .news time, .post-list time { color: var(--accent-text); }
.news-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.news-follow p { margin: 0; color: var(--muted); font-size: 15px; }
.news-social-links { display: flex; flex-wrap: wrap; gap: 16px; }
.news-social-links a { color: var(--accent-text); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.news-social-links a:focus-visible, .footer a:focus-visible, .nav a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
