/* GO MAG : magazine et articles, dans l’identité Solingua (maquette GO-MAG-Complet/declic.css).
   Adapté au thème : une seule colonne (--edge, voir base.css) et fil d’Ariane commun (.site-breadcrumb) ;
   le « + 28px » des en-têtes reprend l’espace sous le fil d’Ariane de la maquette (.mag-crumb, 26px). */
.mag-page { background: #faf9f6; color: var(--purple); }
.mag-wrap { padding: 0 var(--edge); }
.mag-hero { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: calc(var(--hero-top) + 28px) 0 54px; }
.mag-hero h1 { font-size: clamp(58px, 7vw, 104px); line-height: 1.1; margin: 15px 0; }
.mag-hero h1 span { color: var(--coral); }
.mag-hero p { font-size: 21px; line-height: 1.55; }
.mag-rhythm { display: grid; grid-template-columns: 58px 1fr; gap: 12px 18px; align-items: center; max-width: 355px; }
.mag-rhythm strong { font: 700 20px Quicksand, sans-serif; line-height: 1.4; }
.mag-rhythm span { grid-column: 2; font-size: 13px; color: #776887; }
.mag-feature { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 30px; overflow: hidden; background: #eee6f5; }
.mag-feature > img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }
.mag-feature > div { padding: 48px; align-self: center; }
.mag-meta { font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.mag-feature h2 { font-size: clamp(32px, 3.3vw, 49px); line-height: 1.12; margin: 22px 0; }
.mag-feature p { line-height: 1.65; margin-bottom: 28px; font-size: 18px; }
.mag-library { padding: 70px 0; }
.mag-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.mag-section-head h2, .mag-related > h2 { font-size: 34px; }
.mag-section-head p { color: #776887; }
.mag-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 20px; }
.mag-filters button { border: 1px solid #d5c8e4; border-radius: 30px; padding: 12px 23px; background: transparent; color: var(--purple); cursor: pointer; font-weight: 700; }
.mag-filters button[aria-pressed="true"] { background: var(--purple); color: white; border-color: var(--purple); }
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 22px; }
.mag-card { background: white; border: 1px solid #e9e0ee; border-radius: 22px; overflow: hidden; }
.mag-card[hidden] { display: none; }
.mag-card a { display: block; height: 100%; }
.mag-card img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.mag-card-text { padding: 25px; }
.mag-card h3 { font-size: 26px; line-height: 1.2; margin: 17px 0; }
.mag-card p { color: #776887; line-height: 1.6; }
.mag-read { display: block; margin-top: 24px; font-weight: 800; }
.mag-card:hover { border-color: var(--purple); }
.mag-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--purple); color: white; padding: 48px; border-radius: 28px; margin-bottom: 75px; }
.mag-cta h2 { font-size: 42px; margin: 16px 0; line-height: 1.1; }
.mag-cta p { color: #e0d4ef; line-height: 1.6; }
.mag-cta .eyebrow { color: #d1b7f0; }
.mag-article-head { display: block; background: transparent; color: var(--purple); padding: calc(var(--hero-top) + 30px) 0 40px; max-width: 900px; margin: auto; text-align: center; z-index: auto; }
.mag-article-head h1 { font-size: clamp(36px, 4.5vw, 66px); line-height: 1.1; margin: 22px 0; }
.mag-article-head p { font-size: 21px; line-height: 1.55; }
.mag-byline { display: block; margin-top: 22px; font-size: 13px; }
.mag-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 28px; }
.mag-prose { max-width: 760px; margin: 50px auto 75px; }
.mag-prose section { margin-bottom: 32px; }
.mag-prose h2 { font-size: 28px; margin-bottom: 14px; }
.mag-prose p { font-size: 19px; line-height: 1.85; color: #5c5168; }
.mag-related { margin-bottom: 75px; }
/* (.mag-page > header nav { gap: 20px } de la maquette : remplacé par les règles du header à 6 entrées de base.css.) */
@media (max-width: 1000px) {
 .mag-feature > div { padding: 30px; }
 .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .mag-hero { align-items: flex-start; }
 .mag-section-head { display: block; }
 .mag-section-head p { margin-top: 14px; }
}
@media (max-width: 700px) {
 .mag-hero { flex-direction: column; gap: 28px; padding-top: calc(var(--hero-top) + 18px); }
 .mag-rhythm { padding: 20px; border-radius: 18px; background: #eee6f5; max-width: none; width: 100%; }
 .mag-feature { grid-template-columns: 1fr; }
 .mag-feature > img { min-height: 0; height: 240px; }
 .mag-grid { grid-template-columns: 1fr; }
 .mag-library { padding: 45px 0; }
 .mag-cta { padding: 28px; flex-direction: column; align-items: flex-start; }
 .mag-cta h2 { font-size: 34px; }
 .mag-article-head { padding: calc(var(--hero-top) + 28px) 0 30px; }
 .mag-prose p { font-size: 18px; }
}

/* Dossier Berlin–Prague : doubles pages, respirations photo et conseils. */
.bp-story .mag-article-head { max-width: 1000px; }
.bp-story .mag-article-head h1 { font-size: clamp(42px, 5.5vw, 78px); }
.bp-story .mag-article-head em { color: #9570bd; }
.bp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bp-story figure { margin: 0; }
.bp-duo img { width: 100%; height: 350px; object-fit: cover; border-radius: 24px; }
.bp-story figcaption { padding: 13px 4px; font-size: 12px; color: #776887; line-height: 1.5; }
.bp-intro { max-width: 850px; margin: 45px auto 30px; font-size: 23px; line-height: 1.65; }
.bp-toc { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px; background: #eee6f5; border-radius: 20px; }
.bp-toc a { border: 1px solid #d3c1e5; padding: 9px 13px; border-radius: 30px; font-size: 13px; }
.bp-story .mag-prose { max-width: 880px; }
.bp-story .mag-prose section { margin-bottom: 55px; scroll-margin-top: 30px; }
.bp-story .mag-prose h2 { font-size: clamp(30px, 3vw, 41px); line-height: 1.15; margin-top: 14px; }
.bp-story h3 { font-size: 23px; margin: 26px 0 12px; }
.bp-story .mag-prose p + p { margin-top: 18px; }
.bp-story .mag-prose ul, .bp-story .mag-prose ol { padding-left: 25px; }
.bp-story .mag-prose li { padding-left: 8px; margin: 17px 0; font-size: 18px; line-height: 1.75; color: #5c5168; }
.bp-story .mag-prose a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.bp-places { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.bp-places > div { padding-bottom: 20px; border-bottom: 1px solid #e4dded; }
.bp-story .bp-places p { font-size: 17px; line-height: 1.7; }
.bp-story .bp-source { font-size: 13px; margin-top: 20px; }
.bp-wide img { width: 100%; max-height: 510px; object-fit: cover; border-radius: 24px; }
.bp-photo-note { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.bp-photo-note img { width: 100%; border-radius: 24px; }
.bp-photo-note blockquote { font: 700 clamp(28px, 3vw, 43px)/1.3 Quicksand, sans-serif; margin: 0; }
.bp-photo-note blockquote span { display: block; font: 800 11px/1.5 Nunito,sans-serif; letter-spacing: .08em; margin-top: 25px; }
.bp-tip, .bp-pitch { background: #eee6f5; border-radius: 22px; padding: 28px; margin: 28px 0; }
.bp-tip strong { display: block; font: 700 23px Quicksand,sans-serif; margin-bottom: 12px; }
.bp-pitch { border-left: 5px solid var(--coral); }
.bp-pitch p { margin-top: 15px; }
.bp-days { list-style: none; padding: 0 !important; counter-reset: days; }
.bp-days li { padding: 20px 20px 20px 70px !important; background: white; border-radius: 16px; position: relative; counter-increment: days; }
.bp-days li::before { content: counter(days, decimal-leading-zero); position: absolute; left: 18px; top: 22px; font-weight: 800; color: #aa85ca; }
.bp-finish { border-top: 2px solid #d8c5e9; padding-top: 30px; }
.bp-finish .button { margin: 24px 0 12px; }
.bp-sources { font-size: 13px; border-top: 1px solid #e4dded; padding-top: 20px; }
.bp-sources summary { cursor: pointer; font-weight: 800; }
.bp-story .bp-sources p { font-size: 13px; margin-top: 12px; }
@media (max-width: 700px) {
 .bp-duo { gap: 10px; }
 .bp-duo img { height: 210px; border-radius: 15px; }
 .bp-intro { font-size: 20px; margin-top: 28px; }
 .bp-places, .bp-photo-note { grid-template-columns: 1fr; }
 .bp-photo-note { gap: 18px; }
 .bp-photo-note blockquote { padding: 18px; }
 .bp-toc { gap: 8px; padding: 15px; }
 .bp-tip, .bp-pitch { padding: 23px; }
}

/* Formats éditoriaux et capsules vidéo. */
.mag-formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.mag-formats button { border: 0; border-radius: 12px; background: #eee6f5; color: var(--purple); padding: 12px 20px; cursor: pointer; font-weight: 800; }
.mag-formats button[aria-pressed="true"] { background: var(--coral); color: var(--deep); }
.mag-video-open { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; width: 100%; height: 100%; }
.mag-video-visual { display: block; position: relative; }
.mag-video-visual img { display: block; }
.mag-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: grid; place-items: center; background: var(--purple); color: white; border: 2px solid white; border-radius: 50%; font-size: 23px; padding-left: 4px; }
.mag-duration { position: absolute; bottom: 14px; right: 14px; background: var(--purple); color: white; padding: 4px 10px; border-radius: 7px; font-size: 12px; }
.mag-video-open .mag-card-text, .mag-video-title, .mag-video-intro { display: block; }
.mag-video-title { font: 700 26px/1.2 Quicksand, sans-serif; letter-spacing: -.045em; margin: 17px 0; }
.mag-video-intro { color: #776887; line-height: 1.6; }
.mag-video-dialog { width: min(900px, 94vw); max-height: 92vh; overflow: auto; border: 0; border-radius: 24px; padding: 24px; background: #faf9f6; color: var(--purple); }
.mag-video-dialog::backdrop { background: rgba(18, 5, 44, .8); }
.mag-video-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.mag-video-toolbar h2 { font-size: 25px; }
.mag-video-toolbar button { border: 1px solid #d5c8e4; background: white; color: var(--purple); border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; }
.mag-video-dialog video { display: block; width: 100%; max-height: 60vh; background: #12052c; border-radius: 14px; }
.mag-video-dialog p { font-size: 13px; margin: 15px 0; }

/* Articles importés (GO MAG → Importer un article) : les blocs du dossier Berlin–Prague valent pour tout article. */
.mag-prose p + p { margin-top: 18px; }
.mag-prose h3 { font-size: 23px; margin: 26px 0 12px; }
.mag-prose ul, .mag-prose ol { padding-left: 25px; }
.mag-prose li { padding-left: 8px; margin: 17px 0; font-size: 18px; line-height: 1.75; color: #5c5168; }
.mag-prose a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.mag-prose .mag-meta + h2 { margin-top: 14px; }
.mag-prose .mag-intro { font-size: 23px; line-height: 1.65; color: var(--purple); margin-bottom: 32px; }
.mag-prose blockquote { margin: 34px 0; padding-left: 26px; border-left: 5px solid var(--coral); font: 700 clamp(24px, 2.4vw, 32px)/1.3 Quicksand, sans-serif; letter-spacing: -.045em; }
.mag-prose blockquote p { font: inherit; color: inherit; }
.mag-prose blockquote span { display: block; font: 800 11px/1.5 Nunito, sans-serif; letter-spacing: .08em; margin-top: 18px; }
.mag-figure { margin: 34px 0; }
.mag-figure img { width: 100%; height: auto; border-radius: 24px; }
.mag-figure figcaption { padding: 13px 4px; font-size: 12px; color: #776887; line-height: 1.5; }
.mag-prose .bp-sources p { font-size: 13px; margin-top: 12px; }
@media (max-width: 700px) {
 .mag-prose .mag-intro { font-size: 20px; }
}

/* Sommaire flottant des articles (assets/js/mag.js) : pastille en haut, liste déroulante. */
.mag-toc-float { position: fixed; top: 12px; left: 50%; z-index: 260; transform: translate(-50%, -16px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s linear .25s; }
.mag-toc-float.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: opacity .25s, transform .25s; }
.mag-toc-toggle { display: flex; align-items: center; gap: 9px; max-width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 999px; padding: 10px 18px; background: var(--purple); color: #fff; font: 700 14px/1.2 Quicksand, Arial, sans-serif; letter-spacing: -.02em; box-shadow: 0 14px 30px -12px rgba(18, 5, 44, .55); cursor: pointer; }
.mag-toc-current { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mag-toc-icon, .mag-toc-caret { flex-shrink: 0; color: var(--lavender); }
.mag-toc-toggle[aria-expanded="true"] .mag-toc-caret { transform: rotate(180deg); }
.mag-toc-list { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; padding: 8px; background: #faf9f6; border: 1px solid #e9e0ee; border-radius: 20px; box-shadow: 0 24px 50px -18px rgba(18, 5, 44, .45); }
.mag-toc-list[hidden] { display: none; }
.mag-toc-list a { padding: 11px 14px; border-radius: 12px; color: var(--purple); font: 700 14px/1.35 Nunito, Arial, sans-serif; }
.mag-toc-list a:hover, .mag-toc-list a[aria-current] { background: #eee6f5; }
.mag-toc-list a[aria-current]::before { content: '● '; color: var(--coral); }
.bp-story .mag-prose section { scroll-margin-top: 80px; }
@media (max-width: 700px) {
 .mag-toc-float { top: 10px; }
 .mag-toc-toggle { padding: 8px 14px; font-size: 13px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
 .mag-toc-float, .mag-toc-float.is-visible { transition: none; }
}
