/* Musifans Mag : magazine en ligne. Papier clair par défaut, version nuit avec la bascule du site.
   Titres en Fraunces, lecture en Newsreader, interface en DM Sans (polices hébergées, licence OFL). */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/fraunces-latin.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('../fonts/fraunces-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/newsreader-latin.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/newsreader-latin-italic.woff2') format('woff2'); }

.mag-body {
  --mg-paper: #FBF8F3;
  --mg-paper-2: #F3EEE6;
  --mg-ink: #16121A;
  --mg-ink-2: #463F4B;
  --mg-muted: #7D7480;
  --mg-line: rgba(22, 18, 26, .13);
  --mg-line-2: rgba(22, 18, 26, .24);
  --mg-accent: #C93D24;
  --mg-accent-2: #E25B3F;
  --mg-band: #16121A;
  --mg-band-ink: #F7F1E8;
  --mg-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mg-text: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mg-ui: var(--font);
  --mg-w: 1240px;
  background: var(--mg-paper);
  color: var(--mg-ink);
  font-family: var(--mg-ui);
}
[data-theme="dark"] .mag-body {
  --mg-paper: #100D12;
  --mg-paper-2: #19151C;
  --mg-ink: #F3EDE4;
  --mg-ink-2: #C9C0B6;
  --mg-muted: #918780;
  --mg-line: rgba(255, 255, 255, .11);
  --mg-line-2: rgba(255, 255, 255, .22);
  --mg-accent: #FF7A5C;
  --mg-accent-2: #FF977E;
  --mg-band: #1F1A22;
  --mg-band-ink: #F3EDE4;
}
[data-theme] body.mag-body { background: var(--mg-paper); background-image: none; }
html:has(> body.mag-body) { background: #FBF8F3; }
html[data-theme="dark"]:has(> body.mag-body) { background: #100D12; }
.mag-body h1, .mag-body h2, .mag-body h3, .mag-body h4 { color: inherit; }
.mag-body a { color: inherit; }
.mag-body .skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 99px; background: var(--mg-ink); color: var(--mg-paper); font-weight: 700; text-decoration: none; }
.mag-body .skip-link:focus { top: 12px; }
.mg-wrap { width: 100%; max-width: var(--mg-w); margin: 0 auto; padding: 0 24px; }
.mg-main { min-height: 50vh; }
.mg-muted { color: var(--mg-muted); }

/* ---------- Bandeau du titre ---------- */
.mg-preview-bar { background: #2B1D0A; color: #FFD98C; text-align: center; font-size: .85rem; padding: 8px 16px; }
.mg-preview-bar a { color: #fff; font-weight: 700; margin-left: 6px; }
.mg-topbar { border-bottom: 1px solid var(--mg-line); font-size: .8rem; color: var(--mg-muted); }
.mg-topbar .mg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.mg-today { text-transform: capitalize; }
.mg-top-links { display: flex; align-items: center; gap: 16px; }
.mg-top-links > a { text-decoration: none; font-weight: 600; color: var(--mg-ink-2); }
.mg-top-links > a:hover { color: var(--mg-accent); }
.mg-mast { text-align: center; padding-top: 26px; padding-bottom: 18px; }
.mg-logo { display: inline-flex; align-items: baseline; gap: .18em; text-decoration: none; font-family: var(--mg-display); line-height: .9; letter-spacing: -.035em; }
.mg-logo-a { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; font-variation-settings: 'opsz' 144, 'SOFT' 30; }
.mg-logo-b { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 400; font-style: italic; color: var(--mg-accent); }
.mg-logo-sm .mg-logo-a, .mg-logo-sm .mg-logo-b { font-size: 2rem; }
.mg-tagline { margin: 12px 0 0; font-family: var(--mg-text); font-style: italic; font-size: 1.05rem; color: var(--mg-ink-2); }
.mg-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--mg-paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 3px double var(--mg-line-2); border-bottom: 1px solid var(--mg-line); }
.mg-nav-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; min-height: 50px; }
.mg-nav-in::-webkit-scrollbar { display: none; }
.mg-nav-in > a { flex: none; padding: 8px 12px; text-decoration: none; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-ink-2); border-bottom: 2px solid transparent; }
.mg-nav-in > a:hover { color: var(--mg-ink); }
.mg-nav-in > a.is-on { color: var(--mg-ink); border-bottom-color: var(--mg-accent); }
.mg-search { margin-left: auto; flex: none; display: flex; align-items: center; border: 1px solid var(--mg-line); border-radius: 99px; padding: 2px 4px 2px 12px; background: var(--mg-paper); }
.mg-search input { border: 0; background: none; color: var(--mg-ink); font: inherit; font-size: .85rem; width: 140px; padding: 6px 0; outline: none; box-shadow: none; min-height: 0; }
.mg-search button { border: 0; background: none; color: var(--mg-ink-2); padding: 6px 8px; cursor: pointer; display: grid; place-items: center; }

/* ---------- Éléments communs ---------- */
.mg-kicker { display: inline-block; font-family: var(--mg-ui); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-accent); text-decoration: none; margin: 0 0 8px; }
a.mg-kicker:hover { text-decoration: underline; }
.mg-meta { font-family: var(--mg-ui); font-size: .8rem; color: var(--mg-muted); margin: 8px 0 0; }
.mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 99px; background: var(--mg-ink); color: var(--mg-paper) !important; font-family: var(--mg-ui); font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid var(--mg-ink); cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.mg-btn:hover { background: var(--mg-accent); border-color: var(--mg-accent); transform: translateY(-1px); }
.mg-btn-line { background: transparent; color: var(--mg-ink) !important; border-color: var(--mg-line-2); }
.mg-btn-line:hover { background: var(--mg-ink); color: var(--mg-paper) !important; border-color: var(--mg-ink); }
.mg-btn-block { width: 100%; }
.mg-sec { padding-top: 48px; padding-bottom: 8px; }
.mg-sec-t { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-family: var(--mg-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em; margin: 0 0 22px; padding-top: 12px; border-top: 2px solid var(--mg-ink); }
.mg-sec-t a { text-decoration: none; }
.mg-sec-more { font-family: var(--mg-ui); font-size: .82rem; font-weight: 700; color: var(--mg-accent); }
.mg-grid { display: grid; gap: 32px 28px; }
.mg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cartes d'article ---------- */
.mg-card { min-width: 0; }
.mg-card-img { display: block; overflow: hidden; background: var(--mg-paper-2); aspect-ratio: 3 / 2; margin-bottom: 14px; }
.mg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mg-card:hover .mg-card-img img { transform: scale(1.04); }
.mg-card-img.is-empty { display: grid; place-items: center; font-family: var(--mg-display); font-size: 3.4rem; font-style: italic; color: var(--mg-accent); background: linear-gradient(135deg, var(--mg-paper-2), color-mix(in srgb, var(--mg-accent) 14%, var(--mg-paper-2))); }
.mg-card-t { font-family: var(--mg-display); font-weight: 650; font-size: 1.28rem; line-height: 1.18; letter-spacing: -.012em; margin: 0; }
.mg-card-t a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.mg-card-t a:hover { background-size: 100% 1px; }
.mg-card-dek { font-family: var(--mg-text); font-size: 1.02rem; line-height: 1.45; color: var(--mg-ink-2); margin: 8px 0 0; }
.mg-card-lg .mg-card-t { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.mg-card-lg .mg-card-dek { font-size: 1.18rem; }
.mg-card-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; }
.mg-card-row .mg-card-img { margin: 0; aspect-ratio: 1; }
.mg-card-row .mg-card-t { font-size: 1.08rem; }
.mg-card-row .mg-card-dek { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-card-text { position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--mg-line); }
.mg-card-text .mg-card-t { font-size: 1.04rem; }
.mg-num { position: absolute; left: 0; top: 10px; font-family: var(--mg-display); font-size: 2rem; font-weight: 300; font-style: italic; color: var(--mg-accent); line-height: 1; }

/* ---------- Une ---------- */
.mg-une { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 40px; padding-top: 34px; }
.mg-une-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mg-paper-2); }
.mg-une-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.mg-une-main:hover .mg-une-img img { transform: scale(1.03); }
.mg-une-txt { padding-top: 20px; }
.mg-une-t { font-family: var(--mg-display); font-weight: 750; font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 1.04; letter-spacing: -.028em; margin: 0; font-variation-settings: 'opsz' 144; }
.mg-une-t a { text-decoration: none; }
.mg-une-dek { font-family: var(--mg-text); font-size: 1.32rem; line-height: 1.42; color: var(--mg-ink-2); margin: 14px 0 0; max-width: 46em; }
.mg-une-side { display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--mg-line); padding-left: 32px; }
.mg-une-side .mg-card + .mg-card { padding-top: 22px; border-top: 1px solid var(--mg-line); }
.mg-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
.mg-split .mg-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mg-popular .mg-sec-t { font-size: 1.25rem; }

/* ---------- Bandeau « Artistes » ---------- */
.mg-band { background: var(--mg-band); color: var(--mg-band-ink); margin-top: 64px; padding: 56px 0; position: relative; overflow: hidden; }
.mg-band::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 137, 138, .28), transparent 65%); pointer-events: none; }
.mg-band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; }
.mg-band h2 { font-family: var(--mg-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.08; }
.mg-band p { font-family: var(--mg-text); font-size: 1.12rem; line-height: 1.5; margin: 0; max-width: 40em; opacity: .86; }
.mg-band .mg-kicker { color: #FFB59E; }
.mg-band .mg-btn { background: #F8BD55; border-color: #F8BD55; color: #1B1206 !important; flex: none; }
.mg-band .mg-btn:hover { background: #fff; border-color: #fff; }
.mg-band-sm { padding: 40px 0; }

/* ---------- Rubriques, auteurs, recherche ---------- */
.mg-rub-head { text-align: center; padding-top: 44px; padding-bottom: 6px; }
.mg-rub-head h1 { font-family: var(--mg-display); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 750; letter-spacing: -.03em; margin: 0; line-height: 1; }
.mg-rub-head p { font-family: var(--mg-text); font-style: italic; font-size: 1.2rem; color: var(--mg-ink-2); margin: 12px 0 0; }
.mg-rub-first { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--mg-line); }
.mg-rub-first .mg-card-lg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.mg-rub-first .mg-card-img { margin: 0; aspect-ratio: 16 / 10; }
.mg-pager { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 40px 0 10px; font-weight: 700; }
.mg-pager a { text-decoration: none; color: var(--mg-accent); }
.mg-author-head { display: flex; gap: 28px; align-items: center; padding-top: 44px; max-width: 900px; }
.mg-author-head h1 { font-family: var(--mg-display); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 8px; letter-spacing: -.02em; }
.mg-author-head p { font-family: var(--mg-text); font-size: 1.12rem; line-height: 1.5; color: var(--mg-ink-2); margin: 0 0 12px; }
.mg-av { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--mg-paper-2); font-family: var(--mg-display); font-weight: 700; color: var(--mg-accent); text-decoration: none; }
.mg-av img { width: 100%; height: 100%; object-fit: cover; }
.mg-av-lg { width: 84px; height: 84px; font-size: 1.8rem; }
.mg-av-xl { width: 132px; height: 132px; font-size: 3rem; }
.mg-search-big { display: flex; gap: 10px; max-width: 640px; margin: 10px auto 0; }
.mg-search-big input { flex: 1; font-family: var(--mg-text); font-size: 1.2rem; padding: 14px 18px; border-radius: 99px; border: 1px solid var(--mg-line-2); background: var(--mg-paper); color: var(--mg-ink); }
.mg-list { display: flex; flex-direction: column; gap: 26px; max-width: 860px; }
.mg-list .mg-card-row { grid-template-columns: 200px minmax(0, 1fr); }
.mg-list .mg-card-row .mg-card-img { aspect-ratio: 3 / 2; }
.mg-empty { text-align: center; padding: 90px 24px 40px; max-width: 760px; }
.mg-empty h1 { font-family: var(--mg-display); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.025em; margin: 0; line-height: 1.05; }
.mg-empty-dek { font-family: var(--mg-text); font-size: 1.25rem; color: var(--mg-ink-2); line-height: 1.5; margin: 18px 0 26px; }
.mg-empty-act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mg-empty-sm { padding-top: 40px; font-family: var(--mg-text); font-size: 1.1rem; color: var(--mg-ink-2); }

/* ---------- Article ---------- */
.mg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.mg-progress span { display: block; height: 100%; width: 0; background: var(--mg-accent); transition: width .1s linear; }
.mg-preview-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; border: 1px dashed var(--mg-line-2); border-radius: 12px; font-size: .9rem; max-width: 900px; }
.mg-art-head { max-width: 900px; text-align: center; padding-top: 48px; }
.mg-art-t { font-family: var(--mg-display); font-weight: 750; font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.03em; margin: 4px 0 0; font-variation-settings: 'opsz' 144; text-wrap: balance; }
.mg-art-dek { font-family: var(--mg-text); font-size: clamp(1.18rem, 2vw, 1.42rem); line-height: 1.45; color: var(--mg-ink-2); margin: 20px auto 0; max-width: 38em; text-wrap: pretty; }
.mg-byline { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto 0; flex-wrap: wrap; text-align: left; }
.mg-by-name { margin: 0; font-weight: 700; font-size: .92rem; }
.mg-by-name a { text-decoration: none; }
.mg-by-name a:hover { color: var(--mg-accent); }
.mg-byline .mg-meta { margin: 2px 0 0; }
.mg-byline .mg-share { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--mg-line); }
.mg-share { display: flex; gap: 6px; }
.mg-share-b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--mg-line); background: none; color: var(--mg-ink-2); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.mg-share-b:hover { background: var(--mg-ink); color: var(--mg-paper); border-color: var(--mg-ink); }
.mg-cover { max-width: 1240px; margin: 36px auto 0; padding: 0 24px; }
.mg-cover img { width: 100%; max-height: 78vh; object-fit: cover; display: block; }
.mg-cover figcaption, .mg-fig figcaption, .mg-video figcaption { font-family: var(--mg-ui); font-size: .8rem; color: var(--mg-muted); margin-top: 8px; line-height: 1.45; }
.mg-credit { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; opacity: .85; }
.mg-prose { max-width: 700px; margin: 0 auto; padding: 40px 24px 0; font-family: var(--mg-text); font-size: 1.24rem; line-height: 1.68; color: var(--mg-ink); font-optical-sizing: auto; }
.mg-prose p { margin: 0 0 1.15em; text-wrap: pretty; hyphens: auto; }
.mg-prose a { color: var(--mg-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mg-prose strong { font-weight: 700; }
.mg-prose .mg-lead::first-letter { float: left; font-family: var(--mg-display); font-weight: 750; font-size: 4.6em; line-height: .82; margin: .06em .1em 0 0; color: var(--mg-accent); }
.mg-prose h2 { font-family: var(--mg-display); font-weight: 700; font-size: 1.7rem; line-height: 1.18; letter-spacing: -.015em; margin: 1.9em 0 .7em; }
.mg-pull { margin: 1.6em -40px; padding: 26px 0; border-top: 2px solid var(--mg-ink); border-bottom: 1px solid var(--mg-line); text-align: center; }
.mg-pull p { font-family: var(--mg-display); font-style: italic; font-weight: 450; font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.mg-pull p::before { content: '«\202F'; color: var(--mg-accent); }
.mg-pull p::after { content: '\202F»'; color: var(--mg-accent); }
.mg-pull cite { display: block; margin-top: 12px; font-family: var(--mg-ui); font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mg-muted); }
.mg-box { margin: 1.6em 0; padding: 22px 26px; background: var(--mg-paper-2); border-left: 4px solid var(--mg-accent); font-size: 1.06rem; }
.mg-box h3 { font-family: var(--mg-ui); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; color: var(--mg-accent); }
.mg-box p { margin: 0; }
.mg-list-ul, .mg-prose .mg-list { margin: 0 0 1.2em; padding-left: 1.2em; }
.mg-prose .mg-list li { margin: 0 0 .4em; }
.mg-prose .mg-list li::marker { color: var(--mg-accent); }
.mg-fig { margin: 1.8em 0; }
.mg-fig img { width: 100%; display: block; }
.mg-fig.is-wide { margin-left: calc(50% - min(48vw, 560px)); margin-right: calc(50% - min(48vw, 560px)); }
.mg-video { margin: 1.8em 0; }
.mg-video-play, .mg-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.mg-video-play { position: relative; background: #111 center / cover no-repeat; cursor: pointer; padding: 0; }
.mg-video-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.mg-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.mg-play::before { content: ''; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #16121A; }
.mg-video-play:hover .mg-play { transform: scale(1.08); }

/* Encart « Artiste Musifans » */
.mg-artist { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; margin: 2em 0; padding: 22px; border: 1px solid var(--mg-line-2); border-radius: 18px; background: linear-gradient(135deg, var(--mg-paper-2), color-mix(in srgb, #F8BD55 10%, var(--mg-paper-2))); font-family: var(--mg-ui); }
.mg-artist-ph { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--mg-paper); font-family: var(--mg-display); font-size: 2.6rem; color: var(--mg-accent); text-decoration: none; box-shadow: 0 8px 26px rgba(0, 0, 0, .14); }
.mg-artist-ph img { width: 100%; height: 100%; object-fit: cover; }
.mg-artist-k { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-accent); }
.mg-artist h3 { font-family: var(--mg-display); font-size: 1.6rem; margin: 2px 0 2px; letter-spacing: -.01em; }
.mg-artist h3 a { text-decoration: none; }
.mg-artist-sub { margin: 0; font-size: .86rem; color: var(--mg-muted); font-weight: 600; }
.mg-artist-bio { margin: 8px 0 0; font-size: .95rem; line-height: 1.5; color: var(--mg-ink-2); }
.mg-artist-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.mg-artist .mg-btn { padding: 9px 18px; font-size: .86rem; }
.mg-artist-track { font-size: .85rem; color: var(--mg-ink-2); font-style: italic; }
.mg-ico-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.mg-btn-play.is-playing .mg-ico-play { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }

/* Fin d'article */
.mg-art-foot { max-width: 700px; padding-top: 18px; }
.mg-art-share { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-top: 1px solid var(--mg-line); border-bottom: 1px solid var(--mg-line); font-weight: 700; font-size: .9rem; }
.mg-author-box { display: flex; gap: 20px; align-items: flex-start; padding: 28px 0 0; }
.mg-author-box h2 { font-family: var(--mg-display); font-size: 1.45rem; margin: 0 0 6px; }
.mg-author-box h2 a { text-decoration: none; }
.mg-author-box p { margin: 0; font-family: var(--mg-text); font-size: 1.04rem; line-height: 1.5; color: var(--mg-ink-2); }
.mg-author-box .mg-kicker { margin-bottom: 2px; }
.mg-related { padding-top: 56px; }

/* ---------- Candidature ---------- */
.mg-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 20px; }
.mg-apply h1 { font-family: var(--mg-display); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.025em; line-height: 1.04; margin: 0; }
.mg-apply .mg-art-dek { margin-left: 0; }
.mg-checks { list-style: none; padding: 0; margin: 26px 0; font-family: var(--mg-text); font-size: 1.1rem; line-height: 1.5; }
.mg-checks li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--mg-line); position: relative; }
.mg-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--mg-accent); font-weight: 800; font-family: var(--mg-ui); }
.mg-apply-artist { padding: 22px; border-radius: 16px; background: var(--mg-paper-2); }
.mg-apply-artist h2 { font-family: var(--mg-display); font-size: 1.35rem; margin: 0 0 6px; }
.mg-apply-artist p { margin: 0 0 14px; color: var(--mg-ink-2); }
.mg-apply-form form, .mg-sent { padding: 30px; border: 1px solid var(--mg-line-2); border-radius: 20px; background: var(--mg-paper); box-shadow: 0 20px 50px rgba(22, 18, 26, .08); }
.mag-body .field label, .mag-body .field legend { color: var(--mg-ink); }
.mag-body .field input, .mag-body .field textarea { background: var(--mg-paper); color: var(--mg-ink); border-color: var(--mg-line-2); }
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chips label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--mg-line-2); border-radius: 99px; cursor: pointer; font-size: .9rem; }
.mg-chips label:has(input:checked) { background: var(--mg-ink); color: var(--mg-paper); border-color: var(--mg-ink); }
.mg-chips input { accent-color: var(--mg-accent); }
.mg-sent { text-align: center; }
.mg-sent > span { font-size: 2.6rem; }
.mg-sent h2 { font-family: var(--mg-display); }

/* ---------- Pied de page ---------- */
.mg-foot { margin-top: 72px; border-top: 3px double var(--mg-line-2); padding: 46px 0 30px; font-size: .9rem; color: var(--mg-ink-2); }
.mg-band + .mg-foot, .mg-band-sm + .mg-foot { margin-top: 0; }
.mg-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.mg-foot h2 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--mg-ink); }
.mg-foot ul { list-style: none; padding: 0; margin: 0; }
.mg-foot li { margin: 0 0 8px; }
.mg-foot li a { text-decoration: none; }
.mg-foot li a:hover { color: var(--mg-accent); }
.mg-foot p { margin: 12px 0 0; max-width: 28em; line-height: 1.5; }
.mg-copy { border-top: 1px solid var(--mg-line); margin-top: 30px !important; padding-top: 18px; font-size: .8rem; color: var(--mg-muted); max-width: none !important; }

/* ---------- Pages qui tournent : chaque passage d'une page du magazine à l'autre tourne comme une page de papier ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { z-index: 2; transform-origin: 0 50%; animation: mg-page-out .62s cubic-bezier(.55, .05, .35, 1) both; }
::view-transition-new(root) { z-index: 1; animation: mg-page-in .62s ease-out both; }
@keyframes mg-page-out {
  0% { transform: perspective(2400px) rotateY(0); filter: brightness(1); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  100% { transform: perspective(2400px) rotateY(-96deg); filter: brightness(.55); box-shadow: 40px 0 80px rgba(0, 0, 0, .35); }
}
@keyframes mg-page-in {
  0% { filter: brightness(.72); }
  100% { filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .mg-card-img img, .mg-une-img img { transition: none; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 1080px) {
  .mg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-split { grid-template-columns: 1fr; }
  .mg-une { grid-template-columns: 1fr; gap: 30px; }
  .mg-une-side { border-left: 0; padding-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .mg-une-side .mg-card + .mg-card { padding-top: 0; border-top: 0; }
  .mg-une-side .mg-card-row { grid-template-columns: 1fr; }
  .mg-une-side .mg-card-row .mg-card-img { aspect-ratio: 3 / 2; }
  .mg-foot-grid { grid-template-columns: 1fr 1fr; }
  .mg-pull { margin-left: 0; margin-right: 0; }
}
@media (max-width: 760px) {
  .mg-wrap { padding: 0 16px; }
  .mg-topbar .mg-today { display: none; }
  .mg-topbar .mg-wrap { justify-content: flex-end; }
  .mg-top-links { gap: 12px; font-size: .78rem; }
  .mg-mast { padding-top: 18px; padding-bottom: 12px; }
  .mg-tagline { font-size: .95rem; }
  .mg-search input { width: 90px; }
  .mg-grid-3, .mg-grid-4, .mg-split .mg-grid-3 { grid-template-columns: 1fr; }
  .mg-une-side { grid-template-columns: 1fr; }
  .mg-une-side .mg-card-row { grid-template-columns: 110px minmax(0, 1fr); }
  .mg-une-side .mg-card-row .mg-card-img { aspect-ratio: 1; }
  .mg-une-dek { font-size: 1.14rem; }
  .mg-band-in { flex-direction: column; align-items: flex-start; }
  .mg-rub-first .mg-card-lg { grid-template-columns: 1fr; gap: 14px; }
  .mg-list .mg-card-row { grid-template-columns: 110px minmax(0, 1fr); }
  .mg-author-head { flex-direction: column; text-align: center; }
  .mg-av-xl { width: 104px; height: 104px; }
  .mg-art-head { padding-top: 30px; }
  .mg-byline .mg-share { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; justify-content: center; }
  .mg-cover { padding: 0; margin-top: 26px; }
  .mg-cover figcaption { padding: 0 16px; }
  .mg-prose { font-size: 1.14rem; padding: 30px 16px 0; }
  .mg-fig.is-wide { margin-left: -16px; margin-right: -16px; }
  .mg-artist { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .mg-artist-act { justify-content: center; }
  .mg-apply { grid-template-columns: 1fr; gap: 30px; }
  .mg-apply-form form { padding: 20px; }
  .mg-foot-grid { grid-template-columns: 1fr; }
  .mg-search-big { flex-direction: column; }
}

/* ---------- Abonnement des lecteurs (partials/mag_subscribe.php) ---------- */
.mg-subs { margin: 56px 0 0; padding: 46px 0; background: var(--mg-paper-2); border-top: 1px solid var(--mg-line); border-bottom: 1px solid var(--mg-line); }
.mg-subs-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mg-subs-txt h2 { font-family: var(--mg-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 10px; color: inherit; }
.mg-subs-txt p:last-child { font-family: var(--mg-text); font-size: 1.12rem; line-height: 1.5; color: var(--mg-ink-2); margin: 0; }
.mg-subs-form { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-subs-form input[type=email] { flex: 1 1 220px; min-width: 0; padding: 13px 18px; border-radius: 99px; border: 1px solid var(--mg-line-2); background: var(--mg-paper); color: var(--mg-ink); font: inherit; font-size: 1rem; }
.mg-subs-form input[type=email]:focus { outline: 2px solid var(--mg-accent); outline-offset: 1px; }
.mg-subs-form .mf-captcha { flex: 1 1 100%; margin: 2px 0 0; padding: 4px 12px; background: transparent; border-color: var(--mg-line); color: var(--mg-muted); font-size: .75rem; }
.mg-subs-note { margin: 10px 0 0; font-size: .82rem; color: var(--mg-muted); }
.mg-subs-on { margin: 0 0 12px; font-family: var(--mg-text); font-size: 1.1rem; }
.mg-subs + .mg-band { margin-top: 0; }
.mg-subs + .mg-related { margin-top: 48px; }
.mg-subs-card { margin: 0; padding: 30px; border: 1px solid var(--mg-line-2); border-radius: 20px; background: var(--mg-paper); box-shadow: 0 20px 50px rgba(22, 18, 26, .08); }
.mg-subs-card .mg-wrap { padding: 0; }
.mg-subs-card .mg-subs-in { grid-template-columns: 1fr; gap: 18px; }
.mg-subs-card .mg-subs-txt h2 { font-size: 1.6rem; }
.mg-subs-card .mg-subs-txt p:last-child { font-size: 1rem; }
.mg-subs-foot { margin-top: 20px; }
.mg-subs-foot h2 { margin-bottom: 8px; }
.mg-subs-foot .mg-subs-form input[type=email] { padding: 10px 14px; font-size: .9rem; flex-basis: 150px; }
.mg-subs-foot .mg-btn { padding: 10px 16px; }
.mg-subs-foot p { margin-top: 8px; }
.mg-top-links > a.mg-top-sub { color: var(--mg-accent); }
.mg-subs-narrow { max-width: 640px; padding-top: 56px; }
.mg-subs-narrow .mg-sent h1 { font-family: var(--mg-display); font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin: 6px 0 10px; }
.mg-subs-narrow .mg-sent form { padding: 0; border: 0; box-shadow: none; background: none; margin: 18px 0 10px; }
.mg-subs-box { padding: 34px; border: 1px solid var(--mg-line-2); border-radius: 20px; background: var(--mg-paper); box-shadow: 0 20px 50px rgba(22, 18, 26, .08); }
.mg-subs-box h1 { font-family: var(--mg-display); font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 10px; }
.mg-subs-box .mg-art-dek { margin: 0 0 24px; font-size: 1.12rem; }
.mg-subs-box fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.mg-subs-box legend { font-weight: 700; margin-bottom: 10px; }
.mg-subs-box .mg-btn + .mg-btn { margin-left: 6px; }
.mg-subs-stop { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--mg-line); }
.mg-subs-stop button { border: 0; background: none; padding: 0; color: var(--mg-muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.mg-subs-stop button:hover { color: var(--mg-accent); }
@media (max-width: 760px) {
  .mg-subs { padding: 34px 0; margin-top: 40px; }
  .mg-subs-in { grid-template-columns: 1fr; gap: 20px; }
  .mg-subs-form .mg-btn { flex: 1 1 100%; }
  .mg-subs-card { padding: 20px; }
  .mg-subs-box { padding: 22px; }
  .mg-subs-box .mg-btn { width: 100%; }
  .mg-subs-box .mg-btn + .mg-btn { margin: 8px 0 0; }
}

/* ---------- Partenaires (partials/mag_sponsor.php, views/mag/partners.php, partner_space.php) ---------- */
.mg-sp { margin-top: 40px; margin-bottom: 8px; }
.mg-sp-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; text-decoration: none; color: inherit; border: 1px solid var(--mg-line-2); border-radius: 14px; overflow: hidden; background: var(--mg-paper); transition: border-color .15s, transform .15s var(--ease); }
a.mg-sp-in:hover { border-color: var(--mg-accent); transform: translateY(-1px); }
.mg-sp-img { display: block; aspect-ratio: 16 / 9; background: var(--mg-paper-2); overflow: hidden; }
.mg-sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-sp-img-demo { display: grid; place-items: center; color: var(--mg-muted); font-family: var(--mg-display); font-style: italic; font-size: 1.3rem; background: repeating-linear-gradient(135deg, var(--mg-paper-2), var(--mg-paper-2) 12px, color-mix(in srgb, var(--mg-paper-2) 70%, var(--mg-line-2)) 12px, color-mix(in srgb, var(--mg-paper-2) 70%, var(--mg-line-2)) 24px); }
.mg-sp-txt { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 26px; }
.mg-sp-label { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-muted); }
.mg-sp-t { font-family: var(--mg-display); font-size: 1.45rem; line-height: 1.15; letter-spacing: -.01em; }
.mg-sp-b { font-family: var(--mg-text); font-size: 1.05rem; line-height: 1.45; color: var(--mg-ink-2); }
.mg-sp-cta { font-weight: 700; font-size: .9rem; color: var(--mg-accent); }
.mg-sp-join, .mag-body a.mg-sp-join { display: inline-block; margin-top: 8px; font-size: .75rem; color: var(--mg-muted); text-decoration: none; }
.mg-sp-join:hover { color: var(--mg-accent); }
.mg-sp-une { margin-top: 30px; }
.mg-sp-demo .mg-sp-in { max-width: 860px; }
.mg-sp-mini .mg-sp-in { grid-template-columns: 1fr; }
.mg-sp-mini .mg-sp-t { font-size: 1.2rem; }
.mg-spp-hero { padding-top: 56px; max-width: 880px; text-align: center; }
.mg-spp-hero h1 { font-family: var(--mg-display); font-size: clamp(2.3rem, 5.6vw, 4.2rem); letter-spacing: -.03em; line-height: 1.02; margin: 0 0 16px; }
.mg-spp-hero .mg-art-dek { margin: 0 auto; }
.mg-spp-hero-act { margin: 26px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mg-spp-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 48px; border-top: 2px solid var(--mg-ink); border-bottom: 1px solid var(--mg-line); }
.mg-spp-aud > div { padding: 22px 20px; border-right: 1px solid var(--mg-line); }
.mg-spp-aud > div:last-child { border-right: 0; }
.mg-spp-aud b { display: block; font-family: var(--mg-display); font-size: 2.4rem; letter-spacing: -.02em; line-height: 1; color: var(--mg-accent); }
.mg-spp-aud span { display: block; margin-top: 8px; font-size: .88rem; color: var(--mg-ink-2); line-height: 1.4; }
.mg-spp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 48px; }
.mg-spp-why > div > span { font-size: 1.7rem; }
.mg-spp-why h2 { font-family: var(--mg-display); font-size: 1.3rem; margin: 8px 0 6px; color: inherit; }
.mg-spp-why p { margin: 0; font-family: var(--mg-text); font-size: 1.05rem; line-height: 1.5; color: var(--mg-ink-2); }
.mg-spp-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.mg-spp-offer { position: relative; display: flex; flex-direction: column; padding: 28px 24px 22px; border: 1px solid var(--mg-line-2); border-radius: 20px; background: var(--mg-paper); }
.mg-spp-offer.is-main { background: var(--mg-band); color: var(--mg-band-ink); border-color: var(--mg-band); }
.mg-spp-offer.is-main .mg-checks li { border-color: rgba(255, 255, 255, .12); }
.mg-spp-offer.is-main .mg-spp-pitch, .mg-spp-offer.is-main .mg-spp-terms, .mg-spp-offer.is-main .mg-spp-price span { color: color-mix(in srgb, var(--mg-band-ink) 72%, transparent); }
.mg-spp-offer.is-main .mg-btn { background: #F8BD55; border-color: #F8BD55; color: #1B1206 !important; }
.mg-spp-flag { position: absolute; top: -12px; left: 24px; margin: 0; padding: 5px 12px; border-radius: 99px; background: var(--mg-accent); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.mg-spp-flag-soft { background: var(--mg-ink); color: var(--mg-paper); }
.mg-spp-offer h3 { font-family: var(--mg-display); font-size: 1.45rem; margin: 6px 0 10px; }
.mg-spp-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.mg-spp-price b { font-family: var(--mg-display); font-size: 2.6rem; letter-spacing: -.02em; }
.mg-spp-price span { color: var(--mg-muted); font-size: .9rem; }
.mg-spp-pitch { margin: 8px 0 0; font-family: var(--mg-text); font-size: 1.05rem; color: var(--mg-ink-2); }
.mg-spp-offer .mg-checks { flex: 1; margin: 16px 0 20px; font-size: 1rem; }
.mg-spp-terms { margin: 10px 0 0; font-size: .78rem; color: var(--mg-muted); text-align: center; }
.mg-spp-note { max-width: 860px; margin: 14px 0 0; font-size: .9rem; line-height: 1.5; }
.mg-spp-logos { display: flex; flex-wrap: wrap; gap: 14px; }
.mg-spp-logos a { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--mg-line-2); border-radius: 99px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.mg-spp-logos a.is-main { border-color: var(--mg-accent); }
.mg-spp-logos img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mg-spp-h2 { font-family: var(--mg-display); font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.025em; line-height: 1.04; margin: 0; color: inherit; }
.mg-spp-form { margin-top: 30px; }
.mg-spp-pick { flex-direction: column; align-items: stretch; }
.mg-spp-form fieldset, .mg-spx-step fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.mg-spp-pick label { border-radius: 12px; }
.mg-spx { max-width: 980px; padding-top: 48px; }
.mg-spx-head h1 { font-family: var(--mg-display); font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.025em; margin: 0 0 8px; }
.mg-spx-head .mg-art-dek { margin: 0; }
.mg-spx-st { color: var(--mg-accent); }
.mg-spx-st-active { color: #1D9A5C; }
.mg-spx-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--mg-paper-2); }
.mg-spx-step { margin-top: 26px; padding: 26px; border: 1px solid var(--mg-line-2); border-radius: 20px; background: var(--mg-paper); }
.mg-spx-step h2 { display: flex; align-items: center; gap: 12px; font-family: var(--mg-display); font-size: 1.45rem; margin: 0 0 16px; color: inherit; }
.mg-spx-step h2 > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mg-ink); color: var(--mg-paper); font-family: var(--mg-ui); font-size: .9rem; }
.mg-spx-step.is-done h2 > span { background: #1D9A5C; color: #fff; }
.mg-spx-step form .mg-spp-pick { margin-bottom: 14px; }
.mg-spx-step .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-spx-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.mg-spx-prev-l { margin: 0 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mg-muted); }
.mg-spx-grid .mg-sp-mini { margin: 0; }
.mg-spx-review { margin: 0 0 18px; padding: 14px 16px; border-left: 3px solid var(--mg-accent); background: var(--mg-paper-2); border-radius: 0 10px 10px 0; }
.mg-spx-review p { margin: 6px 0 0; }
.mg-spx-renew { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--mg-line); }
.mg-spx-renew p { margin: 0 0 10px; }
.mg-subs-stop-btn { border: 0; background: none; padding: 0; color: var(--mg-muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.mg-subs-stop-btn:hover { color: var(--mg-accent); }
.mg-spx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.mg-spx-stats > div { padding: 16px; border-radius: 14px; background: var(--mg-paper-2); }
.mg-spx-stats b { display: block; font-family: var(--mg-display); font-size: 1.8rem; }
.mg-spx-stats > div > span { font-size: .82rem; color: var(--mg-ink-2); }
.mag-body .field select, .mag-body .field input[type=file] { background: var(--mg-paper); color: var(--mg-ink); border-color: var(--mg-line-2); }
@media (max-width: 900px) {
  .mg-spp-offers, .mg-spp-why { grid-template-columns: 1fr; }
  .mg-spp-offers { gap: 26px; }
  .mg-spx-grid { grid-template-columns: 1fr; }
  .mg-spx-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .mg-sp-in { grid-template-columns: 1fr; }
  .mg-sp-txt { padding: 18px; }
  .mg-spp-aud > div { border-right: 0; border-bottom: 1px solid var(--mg-line); }
  .mg-spx-step { padding: 18px; }
  .mg-spx-step .form-row { grid-template-columns: 1fr; }
}
