/* =====================================================================
   STUDIO NOTES — système graphique v0.1 (phase 3, maquette)
   Brutalisme graphique × graphisme suisse.

   ISOLATION : chaque règle est préfixée par .studio-notes.
   Ce fichier ne peut rien modifier en dehors d'un conteneur
   <div class="studio-notes">. Il deviendra assets/css/studio-notes.css
   dans l'extension studio-notes-core, chargé uniquement sur le magazine.

   Typographie : la famille finale viendra du kit Adobe Fonts dédié
   (voir --sn-font). Repli : Helvetica Neue / Helvetica / Arial.
   ===================================================================== */

.studio-notes {
  /* --- Couleurs : noir, blanc, gris neutres uniquement --- */
  --sn-black: #000000;
  --sn-white: #ffffff;
  --sn-grey-1: #f2f2f2;   /* fond d'image en attente */
  --sn-grey-2: #d9d9d9;   /* filets secondaires */
  --sn-grey-3: #6e6e6e;   /* texte secondaire (contraste AA sur blanc) */

  /* --- Typographie --- */
  --sn-font: "neue-haas-grotesk-text", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sn-font-display: "neue-haas-grotesk-display", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Échelle : 12 · 14 · 18 · 24 · 36 · 56 · 96 · fluide jusqu'à 240 */
  --sn-t-micro: 0.75rem;                          /* 12 — métadonnées */
  --sn-t-small: 0.875rem;                         /* 14 — légendes, crédits */
  --sn-t-body: 1.125rem;                          /* 18 — texte courant */
  --sn-t-lead: clamp(1.25rem, 1rem + 1vw, 1.5rem);/* 20→24 — chapô */
  --sn-t-h3: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --sn-t-h2: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  --sn-t-h1: clamp(2.75rem, 1rem + 7vw, 6rem);
  --sn-t-display: clamp(3.5rem, 0.5rem + 13vw, 15rem);

  /* --- Grille : 12 colonnes, marges généreuses --- */
  --sn-cols: 12;
  --sn-gutter: clamp(12px, 1.6vw, 24px);
  --sn-margin: clamp(16px, 4vw, 64px);
  --sn-max: 1600px;

  /* --- Filets --- */
  --sn-rule: 1px solid var(--sn-black);
  --sn-rule-heavy: 6px solid var(--sn-black);
  --sn-rule-light: 1px solid var(--sn-grey-2);

  /* --- Espacements (base 8) --- */
  --sn-s1: 8px; --sn-s2: 16px; --sn-s3: 24px; --sn-s4: 40px; --sn-s5: 64px; --sn-s6: 120px;

  /* --- Neutralisation des styles du thème, dans le conteneur seulement --- */
  all: initial;
  display: block;
  font-family: var(--sn-font);
  font-size: var(--sn-t-body);
  line-height: 1.5;
  color: var(--sn-black);
  background: var(--sn-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "tnum" 0;
}

.studio-notes *,
.studio-notes *::before,
.studio-notes *::after { box-sizing: border-box; }

.studio-notes h1, .studio-notes h2, .studio-notes h3, .studio-notes h4,
.studio-notes p, .studio-notes ul, .studio-notes ol, .studio-notes li,
.studio-notes figure, .studio-notes figcaption, .studio-notes blockquote,
.studio-notes dl, .studio-notes dd, .studio-notes dt {
  margin: 0; padding: 0; font: inherit; color: inherit;
  letter-spacing: normal; text-transform: none; border: 0; background: none;
}
.studio-notes ul, .studio-notes ol { list-style: none; }
.studio-notes img { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.studio-notes a { color: inherit; text-decoration: none; background: none; box-shadow: none; }
.studio-notes button, .studio-notes input {
  font: inherit; color: inherit; background: none; border: 0; border-radius: 0;
  margin: 0; padding: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.studio-notes button { cursor: pointer; }
.studio-notes :focus-visible { outline: 3px solid var(--sn-black); outline-offset: 3px; }
.studio-notes .sn-invert :focus-visible { outline-color: var(--sn-white); }
.studio-notes ::selection { background: var(--sn-black); color: var(--sn-white); }

/* =====================================================================
   Grille
   ===================================================================== */
.studio-notes .sn-wrap { max-width: var(--sn-max); margin: 0 auto; padding: 0 var(--sn-margin); }
.studio-notes .sn-grid {
  display: grid;
  grid-template-columns: repeat(var(--sn-cols), minmax(0, 1fr));
  column-gap: var(--sn-gutter);
}
.studio-notes .sn-span-12 { grid-column: 1 / -1; }

/* =====================================================================
   Typographie
   ===================================================================== */
.studio-notes .sn-display {
  font-family: var(--sn-font-display);
  font-size: var(--sn-t-display);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.studio-notes .sn-h1 {
  font-family: var(--sn-font-display);
  font-size: var(--sn-t-h1); font-weight: 700;
  line-height: 0.92; letter-spacing: -0.04em;
}
.studio-notes .sn-h2 {
  font-family: var(--sn-font-display);
  font-size: var(--sn-t-h2); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.03em;
}
.studio-notes .sn-h3 { font-size: var(--sn-t-h3); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.studio-notes .sn-lead { font-size: var(--sn-t-lead); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.studio-notes .sn-meta {
  font-size: var(--sn-t-micro); line-height: 1.3; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.studio-notes .sn-small { font-size: var(--sn-t-small); line-height: 1.45; }
.studio-notes .sn-muted { color: var(--sn-grey-3); }
.studio-notes .sn-num { font-variant-numeric: tabular-nums; }
.studio-notes .sn-rule-top { border-top: var(--sn-rule); }
.studio-notes .sn-rule-heavy { border-top: var(--sn-rule-heavy); }

/* Lien éditorial : soulignement épais, inversion au survol */
.studio-notes .sn-link {
  background-image: linear-gradient(var(--sn-black), var(--sn-black));
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .15s linear, color .15s linear;
}
.studio-notes .sn-link:hover { background-size: 100% 100%; color: var(--sn-white); }

/* Aplat inversé */
.studio-notes .sn-invert { background: var(--sn-black); color: var(--sn-white); }
.studio-notes .sn-invert .sn-muted { color: #a6a6a6; }
.studio-notes .sn-invert .sn-rule-top { border-top-color: var(--sn-white); }

/* =====================================================================
   Bandeau (masthead) et navigation
   ===================================================================== */
.studio-notes .sn-topbar {
  display: flex; justify-content: space-between; gap: var(--sn-s2); flex-wrap: wrap;
  padding: 10px 0; border-bottom: var(--sn-rule);
}
.studio-notes .sn-topbar a:hover { text-decoration: underline; }

.studio-notes .sn-masthead { padding-top: var(--sn-s3); }
.studio-notes .sn-wordmark {
  display: block;
  font-family: var(--sn-font-display);
  font-weight: 700; text-transform: uppercase;
  /* le mot-symbole remplit la largeur utile (« K/DENCE » ≈ 4,19 em de large) */
  font-size: calc((min(100vw, var(--sn-max)) - 2 * var(--sn-margin)) / 4.3);
  line-height: 0.78; letter-spacing: -0.06em;
  margin-left: -0.04em;
  white-space: nowrap;
}
.studio-notes .sn-wordmark--small { font-size: clamp(2rem, 1rem + 4vw, 4.5rem); line-height: .85; }

.studio-notes .sn-nav {
  margin-top: var(--sn-s3);
  border-top: var(--sn-rule-heavy);
  border-bottom: var(--sn-rule);
}
.studio-notes .sn-nav ul { display: grid; grid-template-columns: repeat(4, 1fr) repeat(3, auto); }
.studio-notes .sn-nav li + li { border-left: var(--sn-rule); }
.studio-notes .sn-nav a, .studio-notes .sn-nav button {
  display: flex; gap: 8px; align-items: baseline; height: 100%;
  padding: 12px 14px; width: 100%; text-align: left;
}
.studio-notes .sn-nav a:hover, .studio-notes .sn-nav button:hover,
.studio-notes .sn-nav [aria-current="page"] { background: var(--sn-black); color: var(--sn-white); }
.studio-notes .sn-nav .sn-nav-num { opacity: .55; }

/* Note de transparence (contenu produit par une IA) */
.studio-notes .sn-notice {
  display: grid; grid-template-columns: auto 10rem minmax(0, 1fr) auto;
  gap: var(--sn-gutter); align-items: baseline;
  padding: 12px 0; border-bottom: var(--sn-rule);
}
.studio-notes .sn-notice__badge {
  align-self: start; background: var(--sn-black); color: var(--sn-white);
  font-weight: 700; padding: 3px 7px 2px; letter-spacing: .08em;
}
.studio-notes .sn-notice__text { max-width: 62em; }
.studio-notes .sn-notice__link { white-space: nowrap; justify-self: start; }
@media (max-width: 760px) {
  .studio-notes .sn-notice { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .studio-notes .sn-notice__text, .studio-notes .sn-notice__link { grid-column: 1 / -1; }
}

/* =====================================================================
   Composants éditoriaux
   ===================================================================== */

/* Étiquette de rubrique */
.studio-notes .sn-tag {
  display: inline-flex; gap: 6px; align-items: baseline;
  border: var(--sn-rule); padding: 3px 8px 2px;
}
.studio-notes .sn-invert .sn-tag { border-color: var(--sn-white); }

/* Image en attente / image */
.studio-notes .sn-figure { position: relative; }
.studio-notes .sn-placeholder {
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--sn-grey-2) 50%, transparent calc(50% + .5px)),
    linear-gradient(to top left, transparent calc(50% - .5px), var(--sn-grey-2) 50%, transparent calc(50% + .5px)),
    var(--sn-grey-1);
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end; padding: 10px;
}
.studio-notes .sn-placeholder--wide { aspect-ratio: 16 / 9; }
.studio-notes .sn-placeholder--tall { aspect-ratio: 4 / 5; }
.studio-notes .sn-placeholder span { background: var(--sn-white); padding: 2px 6px; }
.studio-notes .sn-figcaption {
  display: flex; justify-content: space-between; gap: var(--sn-s2);
  padding-top: 8px; border-top: var(--sn-rule); margin-top: 8px;
}

/* Bloc « article à la une » */
.studio-notes .sn-lead-story { padding: var(--sn-s5) 0 var(--sn-s5); border-bottom: var(--sn-rule-heavy); }
.studio-notes .sn-lead-story .sn-grid { row-gap: var(--sn-s3); align-items: end; }
.studio-notes .sn-lead-story__head { grid-column: 1 / span 7; }
.studio-notes .sn-lead-story__media { grid-column: 8 / -1; }
.studio-notes .sn-lead-story__num {
  font-family: var(--sn-font-display); font-weight: 700;
  font-size: clamp(5rem, 2rem + 10vw, 12rem); line-height: .8; letter-spacing: -.06em;
}
.studio-notes .sn-lead-story h2 { margin: var(--sn-s3) 0 var(--sn-s3); }
/* Titres sur plusieurs lignes : soulignement épais au survol plutôt qu'un aplat,
   qui chevaucherait la ligne supérieure avec un interlignage serré */
.studio-notes .sn-lead-story h2 a,
.studio-notes .sn-card h3 a {
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: .07em; text-underline-offset: .1em;
  transition: text-decoration-color .12s linear;
}
.studio-notes .sn-lead-story h2 a:hover,
.studio-notes .sn-card h3 a:hover { text-decoration-color: currentColor; }

/* En-tête de section numérotée */
.studio-notes .sn-section { padding: var(--sn-s5) 0; }
.studio-notes .sn-section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--sn-gutter);
  border-top: var(--sn-rule-heavy); padding-top: 10px; margin-bottom: var(--sn-s4);
}
.studio-notes .sn-section-head > :first-child { grid-column: 1 / span 2; }
.studio-notes .sn-section-head > :nth-child(2) { grid-column: 3 / span 7; }
.studio-notes .sn-section-head > :nth-child(3) { grid-column: 10 / -1; text-align: right; }

/* Carte d'article (sans arrondi, sans ombre) */
.studio-notes .sn-card { display: flex; flex-direction: column; gap: 12px; border-top: var(--sn-rule); padding-top: 10px; }
.studio-notes .sn-card__top { display: flex; justify-content: space-between; gap: 8px; }
.studio-notes .sn-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--sn-s4) var(--sn-gutter); }

/* Liste index (rangées numérotées) */
.studio-notes .sn-index { border-top: var(--sn-rule); }
.studio-notes .sn-index li { border-bottom: var(--sn-rule); }
.studio-notes .sn-index a {
  display: grid; grid-template-columns: 4.5rem minmax(0,1fr) 11rem 7rem 2.5rem;
  gap: var(--sn-gutter); align-items: baseline; padding: 14px 0;
}
.studio-notes .sn-index a:hover { background: var(--sn-black); color: var(--sn-white); padding-left: 10px; padding-right: 10px; }
.studio-notes .sn-index .sn-index__title { font-size: var(--sn-t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

/* Blocs rubriques (aplats) */
.studio-notes .sn-rubrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.studio-notes .sn-rubric {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sn-s5);
  min-height: 26rem; padding: var(--sn-s2) var(--sn-s2) var(--sn-s3);
  border-left: 1px solid var(--sn-white);
}
.studio-notes .sn-rubric:first-child { border-left: 0; }
.studio-notes .sn-rubric:hover { background: var(--sn-white); color: var(--sn-black); }
.studio-notes .sn-rubric:hover .sn-muted { color: var(--sn-grey-3); }
.studio-notes .sn-rubric__day {
  font-family: var(--sn-font-display); font-weight: 700;
  font-size: clamp(3rem, 1rem + 5vw, 6.5rem); line-height: .8; letter-spacing: -.05em;
}
.studio-notes .sn-rubric__name { font-size: var(--sn-t-h3); font-weight: 700; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }

/* Bouton favori */
.studio-notes .sn-fav {
  display: inline-flex; align-items: center; gap: 6px;
  border: var(--sn-rule); padding: 6px 10px 5px;
}
.studio-notes .sn-fav:hover, .studio-notes .sn-fav[aria-pressed="true"] { background: var(--sn-black); color: var(--sn-white); }
.studio-notes .sn-fav[aria-pressed="true"] .sn-fav__icon::before { content: "■"; }
.studio-notes .sn-fav__icon::before { content: "□"; }

/* Champ de recherche / filtre */
.studio-notes .sn-search {
  display: flex; border: var(--sn-rule-heavy); border-width: 3px;
}
.studio-notes .sn-search input { flex: 1; padding: 14px 16px; font-size: var(--sn-t-lead); font-weight: 500; min-width: 0; }
.studio-notes .sn-search input::placeholder { color: var(--sn-grey-3); }
.studio-notes .sn-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-notes .sn-chip { border: var(--sn-rule); padding: 6px 10px 5px; }
.studio-notes .sn-chip:hover, .studio-notes .sn-chip[aria-pressed="true"] { background: var(--sn-black); color: var(--sn-white); }

/* =====================================================================
   Article
   ===================================================================== */
.studio-notes .sn-article-head { padding-top: var(--sn-s4); padding-bottom: var(--sn-s5); }
.studio-notes .sn-article-meta {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--sn-gutter);
  border-top: var(--sn-rule-heavy); padding-top: 10px; margin-bottom: var(--sn-s5);
}
.studio-notes .sn-article-meta > * { grid-column: span 2; }
.studio-notes .sn-article-meta > :last-child { grid-column: 11 / -1; justify-self: end; }
.studio-notes .sn-article-title { grid-column: 1 / span 11; }
.studio-notes .sn-article-lead { grid-column: 4 / span 7; margin-top: var(--sn-s4); }

.studio-notes .sn-article-media { grid-column: 1 / -1; margin-bottom: var(--sn-s5); }

.studio-notes .sn-article-body { padding-bottom: var(--sn-s5); row-gap: var(--sn-s3); }
.studio-notes .sn-article-aside { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: var(--sn-s3); }
.studio-notes .sn-article-aside > div { border-top: var(--sn-rule); padding-top: 8px; }
.studio-notes .sn-prose { grid-column: 4 / span 6; }
.studio-notes .sn-prose > * + * { margin-top: 1.1em; }
.studio-notes .sn-prose p { font-size: var(--sn-t-body); line-height: 1.6; max-width: 38em; hyphens: auto; }
.studio-notes .sn-prose h2 { font-size: var(--sn-t-h3); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-top: 1.8em; }
.studio-notes .sn-prose a { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.studio-notes .sn-prose blockquote {
  font-family: var(--sn-font-display); font-size: var(--sn-t-h3); font-weight: 600; line-height: 1.1;
  letter-spacing: -.02em; border-top: var(--sn-rule-heavy); padding-top: 12px; margin: 1.6em 0;
}
.studio-notes .sn-prose .sn-dropcap::first-letter {
  float: left; font-family: var(--sn-font-display); font-weight: 700;
  font-size: 5.4em; line-height: .78; margin: .04em .08em 0 0; letter-spacing: -.04em;
}
.studio-notes .sn-article-tools { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

.studio-notes .sn-sources { border-top: var(--sn-rule-heavy); padding-top: 10px; }
.studio-notes .sn-sources ol { counter-reset: src; }
.studio-notes .sn-sources li {
  counter-increment: src; display: grid; grid-template-columns: 3rem minmax(0,1fr);
  gap: var(--sn-gutter); padding: 10px 0; border-bottom: var(--sn-rule-light);
}
.studio-notes .sn-sources li::before { content: counter(src, decimal-leading-zero); font-variant-numeric: tabular-nums; }

/* =====================================================================
   Bibliothèque
   ===================================================================== */
.studio-notes .sn-az { display: flex; flex-wrap: wrap; border-top: var(--sn-rule); border-left: var(--sn-rule); }
.studio-notes .sn-az a {
  width: calc(100% / 13); min-width: 2.75rem; text-align: center; padding: 10px 0;
  border-right: var(--sn-rule); border-bottom: var(--sn-rule);
  font-weight: 700; font-size: var(--sn-t-lead);
}
.studio-notes .sn-az a:hover { background: var(--sn-black); color: var(--sn-white); }
.studio-notes .sn-az a[aria-disabled="true"] { color: var(--sn-grey-2); pointer-events: none; }
.studio-notes .sn-lib { columns: 3; column-gap: var(--sn-gutter); column-rule: var(--sn-rule); }
.studio-notes .sn-lib-letter { break-inside: avoid; margin-bottom: var(--sn-s4); }
.studio-notes .sn-lib-letter > h3 {
  font-family: var(--sn-font-display); font-weight: 700; font-size: var(--sn-t-h2);
  line-height: 1; border-bottom: var(--sn-rule-heavy); padding-bottom: 6px; margin-bottom: 6px;
}
.studio-notes .sn-lib-letter li a {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: var(--sn-rule-light);
}
.studio-notes .sn-lib-letter li a:hover { background: var(--sn-black); color: var(--sn-white); }

/* =====================================================================
   Pied de page
   ===================================================================== */
.studio-notes .sn-footer { padding: var(--sn-s5) 0 var(--sn-s3); margin-top: var(--sn-s5); }
.studio-notes .sn-footer .sn-grid { row-gap: var(--sn-s4); }
.studio-notes .sn-footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; }
.studio-notes .sn-footer a:hover { text-decoration: underline; }
.studio-notes .sn-schedule li { display: flex; justify-content: space-between; border-bottom: 1px solid #333; padding: 6px 0; }

/* Utilitaires */
.studio-notes .sn-mt-1 { margin-top: var(--sn-s1); } .studio-notes .sn-mt-2 { margin-top: var(--sn-s2); }
.studio-notes .sn-mt-3 { margin-top: var(--sn-s3); } .studio-notes .sn-mt-4 { margin-top: var(--sn-s4); }
.studio-notes .sn-mt-5 { margin-top: var(--sn-s5); }
.studio-notes .sn-row { display: flex; gap: var(--sn-s2); align-items: baseline; flex-wrap: wrap; }
.studio-notes .sn-between { justify-content: space-between; }
.studio-notes .sn-hidden { display: none !important; }
.studio-notes .sn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.studio-notes .sn-uppercase { text-transform: uppercase; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .studio-notes .sn-nav ul { grid-template-columns: repeat(4, 1fr); }
  .studio-notes .sn-nav li:nth-child(5) { border-left: 0; }
  .studio-notes .sn-nav li:nth-child(n+5) { border-top: var(--sn-rule); }
  .studio-notes .sn-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .studio-notes .sn-rubrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .studio-notes .sn-rubric:nth-child(3) { border-left: 0; }
  .studio-notes .sn-rubric:nth-child(n+3) { border-top: 1px solid var(--sn-white); }
  .studio-notes .sn-lib { columns: 2; }
  .studio-notes .sn-article-aside { grid-column: 1 / span 4; }
  .studio-notes .sn-prose { grid-column: 5 / -1; }
  .studio-notes .sn-article-tools { grid-column: 5 / -1; align-items: flex-start; flex-direction: row; }
  .studio-notes .sn-article-body .sn-article-tools { order: -1; }
}

@media (max-width: 760px) {
  .studio-notes { --sn-cols: 4; }
  .studio-notes .sn-grid > * { grid-column: 1 / -1 !important; }
  .studio-notes .sn-nav ul { grid-template-columns: 1fr 1fr; }
  .studio-notes .sn-nav li { border-left: 0 !important; border-top: var(--sn-rule); }
  .studio-notes .sn-nav li:nth-child(-n+2) { border-top: 0; }
  .studio-notes .sn-nav li:nth-child(even) { border-left: var(--sn-rule) !important; }
  .studio-notes .sn-cards, .studio-notes .sn-rubrics { grid-template-columns: 1fr; }
  .studio-notes .sn-rubric { border-left: 0 !important; border-top: 1px solid var(--sn-white); min-height: 15rem; }
  .studio-notes .sn-rubric:first-child { border-top: 0; }
  .studio-notes .sn-section-head > * { grid-column: 1 / -1 !important; text-align: left !important; }
  .studio-notes .sn-index a { grid-template-columns: 3rem minmax(0,1fr) 2rem; }
  .studio-notes .sn-index a > :nth-child(3), .studio-notes .sn-index a > :nth-child(4) { display: none; }
  .studio-notes .sn-article-meta { row-gap: 6px; }
  .studio-notes .sn-article-meta > * { grid-column: span 2 !important; justify-self: start !important; }
  .studio-notes .sn-lib { columns: 1; }
  .studio-notes .sn-az a { width: calc(100% / 7); }
  .studio-notes .sn-footer__col { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-notes * { transition: none !important; }
}

/* =====================================================================
   Ajouts propres à l'extension WordPress
   ===================================================================== */
body.sn-body { margin: 0; background: #fff; }
.studio-notes .sn-safe {
  background: var(--sn-black); color: var(--sn-white);
  text-align: center; padding: 6px var(--sn-margin);
}
.studio-notes .sn-img, .studio-notes .sn-card__img { width: 100%; height: auto; display: block; }
.studio-notes .sn-card__img { aspect-ratio: 4 / 3; object-fit: cover; }
.studio-notes .sn-placeholder--blank { aspect-ratio: 4 / 3; background: var(--sn-black); }
.studio-notes .sn-prose em, .studio-notes .sn-prose i { font-style: italic; }
.studio-notes .sn-prose strong, .studio-notes .sn-prose b { font-weight: 700; }
.studio-notes .sn-prose ul, .studio-notes .sn-prose ol { padding-left: 1.2em; }
.studio-notes .sn-prose ul { list-style: square; }
.studio-notes .sn-prose ol { list-style: decimal; }
.studio-notes .sn-prose figure img { width: 100%; height: auto; }
.studio-notes .sn-prose figcaption { font-size: var(--sn-t-small); color: var(--sn-grey-3); margin-top: 6px; }
.studio-notes .sn-prose > p:first-child::first-letter {
  float: left; font-family: var(--sn-font-display); font-weight: 700;
  font-size: 5.4em; line-height: .78; margin: .04em .08em 0 0; letter-spacing: -.04em;
}
.studio-notes a.sn-chip { display: inline-block; }
.studio-notes a.sn-tag:hover { background: var(--sn-black); color: var(--sn-white); }

/* Vidéo intégrée (chargée au clic, lecteur sans cookie) */
.studio-notes .sn-video { position: relative; aspect-ratio: 16 / 9; background: var(--sn-black); color: var(--sn-white); }
.studio-notes .sn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.studio-notes .sn-video__play {
  position: absolute; inset: 0; width: 100%; display: flex; align-items: flex-end; gap: 12px;
  padding: var(--sn-s3); color: var(--sn-white); text-align: left;
}
.studio-notes .sn-video__play:hover .sn-video__icon { background: var(--sn-white); color: var(--sn-black); }
.studio-notes .sn-video__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border: 1px solid var(--sn-white); font-size: 1.2rem;
}
.studio-notes .sn-video__play .sn-muted { color: #a6a6a6; }
.studio-notes .sn-video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-notes .sn-video__thumb + .sn-video__play { background: rgba(0, 0, 0, .28); }
.studio-notes .sn-video__note { color: #d9d9d9; }

/* Photo plus haute que 16:9 : placée en fin d'article, dans la colonne du texte */
.studio-notes .sn-photo-fin { padding-bottom: var(--sn-s5); }
.studio-notes .sn-photo-fin .sn-article-media { grid-column: 4 / span 6; margin-bottom: 0; }
@media (max-width: 1100px) { .studio-notes .sn-photo-fin .sn-article-media { grid-column: 5 / -1; } }

/* 0.1.3 — images de presse dans le texte et publications Instagram intégrées (chargées au clic) */
.studio-notes .sn-prose .sn-figure-texte { margin: 1.8em 0; }
.studio-notes .sn-prose .sn-figure-texte img { display: block; width: 100%; height: auto; }
.studio-notes .sn-prose .sn-instagram { margin: 1.8em 0; max-width: 540px; }
.studio-notes .sn-prose .sn-instagram__boite { border: var(--sn-rule-heavy); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.studio-notes .sn-prose .sn-instagram__compte { font-weight: 700; }
.studio-notes .sn-prose .sn-instagram__bouton {
  align-self: flex-start; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 14px;
  background: var(--sn-black); color: var(--sn-white); border: 0;
}
.studio-notes .sn-prose .sn-instagram__bouton:hover { background: var(--sn-white); color: var(--sn-black); box-shadow: inset 0 0 0 1px var(--sn-black); }
.studio-notes .sn-prose .sn-instagram__note { font-size: var(--sn-t-small); color: var(--sn-grey-3); }
.studio-notes .sn-prose .sn-instagram iframe { display: block; width: 100%; min-height: 640px; border: 0; background: #fff; }
