/* SOCKHO — design sobre (03/12/2026) : colonne latérale, grands titres très gras, beaucoup d'air.
   Deux thèmes, noir (par défaut) et blanc, choisis par le bouton « Noir / Blanc » et mémorisés.
   Police : SF Pro via la police système (Mac, iPhone, iPad) ; repli Helvetica / Segoe UI / Roboto ailleurs.
   L'ancienne version (fond noir, mise en page Squarespace) est dans .archive-noir-03-12/. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;
  --rail: 96px;        /* largeur de la colonne latérale */
  --pad: 64px;         /* marges du contenu */
  --radius: 18px;
  color-scheme: dark;
  --bg: #000; --fg: #fff; --muted: rgba(255, 255, 255, .5); --soft: rgba(255, 255, 255, .5); --faint: #4a4a4a;
  --line: rgba(255, 255, 255, .14); --field: #0f0f0f; --logo: brightness(0) invert(1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff; --fg: #111; --muted: rgba(0, 0, 0, .5); --soft: rgba(0, 0, 0, .5); --faint: #c4c4c4;
  --line: rgba(0, 0, 0, .1); --field: #fafafa; --logo: brightness(0);
}
@media (max-width: 1024px) { :root { --pad: 40px; } }
@media (max-width: 640px) { :root { --pad: 20px; --radius: 12px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color .3s ease, color .3s ease; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.6em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* petit surtitre, écrit comme le menu du haut (même taille, gras, sans capitales ni espacement) */
.eyebrow { margin: 0 0 22px; font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--fg); }
/* lien souligné d'un petit trait */
.link-dash { display: inline-block; position: relative; padding-bottom: 14px; font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
.link-dash::after { content: ""; position: absolute; left: 0; bottom: 0; width: 14px; height: 2px; background: currentColor; transition: width .25s ease; }
.link-dash:hover::after { width: 100%; }

/* ---------- colonne latérale (ordinateur) ---------- */
.rail { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); background: var(--bg); transition: background-color .3s ease; }
.rail-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.rail-bottom { padding-bottom: 36px; }

/* bouton de thème : pictogramme (provisoire, en attendant celui de Stéphane) */
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .15s, transform .4s ease; }
.theme-toggle:hover { opacity: .6; }
.theme-toggle svg { display: block; transition: transform .4s ease; }
:root[data-theme="light"] .theme-toggle svg { transform: rotate(180deg); }

/* ---------- en-tête ---------- */
.site-header { position: relative; z-index: 40; display: flex; align-items: center; gap: 64px; height: var(--rail); margin-left: var(--rail); padding: 0 var(--pad); }
.site-logo img { height: 20px; width: auto; filter: var(--logo); }
.header-nav { display: flex; gap: 48px; font-size: 13px; line-height: 1.4; font-weight: 700; }
.header-nav a { position: relative; padding: 6px 0; color: var(--fg); transition: opacity .15s; }
.header-nav a:hover { opacity: .55; }
.header-nav a.active::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 14px; height: 2px; background: currentColor; }
.mobile-bar, .mobile-menu { display: none; }

@media (max-width: 1024px) {
  .rail { display: none; }
  .site-header { margin-left: 0; }
}
@media (max-width: 640px) {
  .site-header { display: none; }
  .mobile-bar { display: flex; align-items: center; gap: 4px; position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: 60px; padding: 0 8px 0 var(--pad); background: var(--bg); transition: background-color .3s ease; }
  .mobile-logo { margin-right: auto; }
  .mobile-logo img { width: 92px; height: auto; filter: var(--logo); }
  .menu-toggle { position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
  .menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--fg); transition: transform .25s, opacity .2s; }
  .menu-toggle span:nth-child(1) { top: 14px; }
  .menu-toggle span:nth-child(2) { top: 19.5px; }
  .menu-toggle span:nth-child(3) { top: 25px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { display: flex; position: fixed; inset: 60px 0 0; z-index: 999; background: var(--bg); flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--pad); }
  .mobile-menu a { font-size: 34px; font-weight: 800; line-height: 1.3; letter-spacing: normal; }
  .mobile-menu a[target] { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
}

/* ---------- mise en page générale ---------- */
.site-page { margin-left: var(--rail); padding-bottom: 96px; }
@media (max-width: 1024px) { .site-page { margin-left: 0; } }
@media (max-width: 640px) { .site-page { padding-top: 60px; } }
.page-text-wrapper { text-align: center; margin: 90px auto 120px; padding: 0 var(--pad); }
.page-description p { margin: 0; }

/* ---------- accueil : présentation + projets à la une ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 56fr); align-items: center; gap: 0 56px; min-height: calc(100svh - var(--rail)); padding: 24px var(--pad) 64px; }
.hero-text { max-width: 520px; padding-bottom: 32px; }
.hero-title { margin: 0 0 28px; font-size: clamp(42px, 4.4vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: normal; text-wrap: balance; }
.hero-lead { max-width: 420px; margin: 0 0 40px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.hero-media { position: relative; aspect-ratio: 1 / .78; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide img { transform: scale(1.04); transition: transform 6s ease-out; }
.hero-slide.is-active img { transform: none; }
.hero-caption { position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: 300px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13px; line-height: 1.3; font-weight: 700; }
.hero-caption .num, .index-title .num { font-size: 10px; font-weight: 600; letter-spacing: .1em; opacity: .6; }
.hero-counter { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-counter.in-hero { display: none; }
.c-bar { position: relative; width: 1px; height: 160px; background: var(--line); }
.c-bar i { position: absolute; left: -1px; top: 0; width: 3px; height: 0; background: var(--fg); }
.c-bar i.run { height: 100%; transition: height var(--dur, 6s) linear; }
.hero-arrows { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.hero-arrows button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .15s; }
.hero-arrows button:hover { opacity: .5; }
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 48px var(--pad) 72px; }
  .hero-text { max-width: 640px; padding: 0; }
  .hero-counter.in-hero { display: flex; flex-direction: row; gap: 14px; justify-content: flex-start; margin-top: -16px; }
  .c-bar { width: 120px; height: 1px; }
  .c-bar i { left: 0; top: -1px; width: 0; height: 3px; }
  .c-bar i.run { width: 100%; height: 3px; transition: width var(--dur, 6s) linear; }
  .hero-arrows { flex-direction: row; margin: 0 0 0 auto; }
  .hero-arrows svg { transform: rotate(-90deg); }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; gap: 32px; }
  .hero-title { font-size: 40px; }
  .hero-caption { left: 12px; bottom: 12px; }
}

.hero-lead strong { color: var(--fg); font-weight: 700; }

/* ---------- accueil : grille des projets ---------- */
.projects { padding: 40px var(--pad) 0; scroll-margin-top: 24px; }
.index-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
@media (max-width: 1024px) { .index-list { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; } }
.index-item a { display: block; }
.index-thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 1 / .69; border-radius: var(--radius); isolation: isolate; }
.index-thumb picture, .index-thumb img { width: 100%; height: 100%; object-fit: cover; }
.index-thumb img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.index-item a:hover .index-thumb img { transform: scale(1.035); }
.index-title { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.35; font-weight: 700; }
.index-title .num { color: var(--muted); opacity: 1; }
@media (max-width: 640px) { .index-title { font-size: 13px; margin-top: 10px; } }

/* ---------- pages projet ---------- */
.page-project { padding: 0 var(--pad) 96px; }
@media (max-width: 640px) { .page-project { padding-top: 60px; } }
.page-project .page-text-wrapper { max-width: 1000px; padding: 0; }
.page-title { margin: 0 0 40px; font-size: clamp(40px, 5vw, 88px); line-height: 1.04; font-weight: 800; letter-spacing: normal; text-wrap: balance; }
.page-project .page-description { max-width: 640px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--muted); }
.page-project .page-description strong { color: var(--fg); }
.project-slide { margin-bottom: 36px; }
.slide-media { margin: 0 auto; border-radius: var(--radius); overflow: hidden; }
.project-slide.is-portrait .slide-media, .project-slide.is-square .slide-media { max-width: 50%; }
@media (max-width: 640px) { .project-slide.is-portrait .slide-media, .project-slide.is-square .slide-media { max-width: 100%; } }
.slide-media img { width: 100%; }
.slide-description { margin: 72px auto; text-align: center; }
.slide-description h3 { max-width: 40%; margin: 0 auto 40px; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: normal; }
@media (min-width: 1025px) { .slide-description h3 { font-size: 2.2vw; } }
.slide-text { max-width: 40%; margin: 0 auto; font-size: 14px; line-height: 1.7; color: var(--soft); }
@media (max-width: 1024px) { .slide-description h3, .slide-text { max-width: 80%; } }
@media (max-width: 640px) { .slide-description { margin: 40px auto; } .slide-description h3, .slide-text { max-width: 100%; } }
.js .slide-media { opacity: 0; transform: translateY(60px); transition: opacity 1s cubic-bezier(.33, 0, .2, 1), transform 1s cubic-bezier(.33, 0, .2, 1); }
.js .slide-media.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .slide-media { opacity: 1; transform: none; transition: none; } }
.slide-video { position: relative; background: #000; overflow: hidden; }
.slide-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.slide-video .play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, .15); cursor: pointer; }
.slide-video .play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -22px 0 0 -14px; border-left: 36px solid #fff; border-top: 22px solid transparent; border-bottom: 22px solid transparent; }
.slide-video picture, .slide-video img { width: 100%; height: 100%; object-fit: cover; }
.collection-footer { max-width: 1280px; margin: 21.6px auto 0; }
.block-image { margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; }
.block-html { text-align: center; }
.block-html h3 { margin: 22px 0; font-size: 17px; line-height: 1.5; font-weight: 400; letter-spacing: -.02em; color: var(--soft); }
.block-video { margin-bottom: 36px; }
.block-video video { width: 100%; background: #000; display: block; border-radius: var(--radius); }

/* liste des projets en bas de page */
.index-navigation { max-width: 1100px; margin: 120px auto 0; padding-top: 48px; text-align: center; font-size: 15px; line-height: 2; font-weight: 700; }
.index-navigation a { display: inline-block; padding: 0 .45em; color: var(--faint); transition: color .15s ease-out; }
.index-navigation a:hover, .index-navigation a.active { color: var(--fg); }

/* ---------- À propos, Contact ---------- */
.page-intro { max-width: 900px; margin: 110px auto 110px; }
.page-intro .page-description { font-size: clamp(30px, 3.4vw, 60px); line-height: 1.12; font-weight: 800; letter-spacing: normal; }
@media (max-width: 640px) { .page-intro { margin: 72px auto 64px; } .page-intro .page-description { font-size: 32px; } }
.page-body { width: min(1170px, 100% - 2 * var(--pad)); margin: 0 auto; }
.text-column { width: 36%; margin: 0 auto; font-size: 14px; line-height: 1.85; color: var(--soft); }
.text-column strong { color: var(--fg); }
@media (max-width: 1024px) { .text-column { width: 70%; } }
@media (max-width: 640px) { .page-body { width: auto; padding: 0 var(--pad); } .text-column { width: auto; } }
.text-center { text-align: center; font-size: 14px; color: var(--soft); }
.text-center a, .text-column a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.button-block { margin-top: 64px; text-align: center; }
.button { display: inline-block; padding: 18px 40px; border-radius: 300px; background: var(--fg); color: var(--bg); font-size: 13px; line-height: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: opacity .15s linear; }
.button:hover { opacity: .8; }
.about-me { margin-top: 72px; }
.about-me .portrait { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.about-me .portrait img { width: 100%; filter: grayscale(1); }

.contact-form { max-width: 560px; margin: 96px auto 0; }
.form-item { margin-bottom: 28px; }
.form-item label { display: block; margin-bottom: 8px; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .04em; }
.form-item .required { font-weight: 400; color: var(--muted); }
.form-item input, .form-item textarea { display: block; width: 100%; padding: 14px 16px; margin: 0; font: inherit; font-size: 16px; line-height: 1.5; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none; transition: border-color .15s; }
.form-item textarea { min-height: 160px; resize: vertical; }
.form-item input:focus, .form-item textarea:focus { outline: none; border-color: var(--fg); }
.form-button { margin-top: 12px; text-align: center; }
.form-button button { padding: 18px 44px; line-height: normal; border: 0; border-radius: 300px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: opacity .15s linear; }
.form-button button:hover { opacity: .8; }
.form-error { color: #ff5c5c; font-size: 14px; line-height: 1.4; text-align: center; }
:root[data-theme="light"] .form-error { color: #c00; }
.form-success { margin-top: 24px; text-align: center; font-size: 14px; color: var(--soft); }

/* périmètre d'intervention en tags (pages projet) */
.scope-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 32px auto 0; padding: 0; list-style: none; }
.scope-tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 300px; font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--fg); }
.page-description + .scope-tags { margin-top: 28px; }

/* ---------- À propos, Contact : composition de l'accueil ---------- */
.split { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 50fr); align-items: start; gap: 0 96px; min-height: calc(100svh - var(--rail) - 96px); padding: 64px var(--pad) 0; }
.split.is-centered { align-items: center; padding-top: 24px; }
.split-title { margin: 0 0 40px; font-size: clamp(36px, 3.8vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: normal; text-wrap: balance; }
.split-title strong { font-weight: 800; }
.split-body { max-width: 460px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.split-body strong { color: var(--fg); font-weight: 700; }
.split-body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.split-side { position: sticky; top: 40px; }
.split .about-me { max-width: 400px; margin: 0; }
.split .about-me .portrait { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.split .about-me .portrait img { width: 100%; filter: grayscale(1); }
.split .about-me .button { margin-top: 40px; }
.split .contact-form { width: 100%; max-width: 520px; margin: 0; }
.split .form-button { text-align: left; }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 64px; min-height: 0; padding-top: 48px; }
  .split-side { position: static; }
}
@media (max-width: 640px) { .split { padding-top: 40px; gap: 48px; } .split-title { font-size: 36px; } }

/* ---------- pages projet : projet précédent / suivant ---------- */
.project-pager { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; line-height: 1.4; font-weight: 700; }
.project-pager a { display: inline-flex; align-items: center; gap: 10px; min-width: 0; transition: opacity .15s; }
.project-pager a:hover { opacity: .55; }
.project-pager .num { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.project-pager .pp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 32vw; }
.project-pager .pp-next { margin-left: auto; text-align: right; }
.project-pager.is-top { padding-top: 8px; }
.project-pager.is-bottom { max-width: 1100px; margin: 120px auto 0; padding: 32px 0; font-size: 15px; }
.project-pager.is-bottom + .index-navigation { margin-top: 0; }
@media (max-width: 640px) { .project-pager.is-top { padding-top: 20px; } .project-pager .pp-name { max-width: 28vw; } }
.hero-arrows a { display: grid; place-items: center; width: 32px; height: 32px; transition: opacity .15s; }
.hero-arrows a:hover { opacity: .5; }

/* ---------- pages projet : fond flou plein écran (première image du projet) puis dégradé vers le fond ---------- */
.project-backdrop { position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; }
.project-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.25); transform: scale(1.25); opacity: .85; }
.project-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 45%, var(--bg) 100%); }
/* le fond flou ne s'affiche qu'en thème noir */
:root[data-theme="light"] .project-backdrop { display: none; }
:root[data-theme="light"] .project-backdrop::after { background: linear-gradient(to bottom, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, .6) 45%, var(--bg) 100%); }
.rail { background: transparent; }
@media (max-width: 640px) { .mobile-bar { background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }

/* accroche du projet, sous le titre (petite typo) */
.accroche { max-width: 560px; margin: 28px auto 0; font-size: 14px; line-height: 1.75; color: var(--soft); }
.accroche h3 { margin: 0 0 1em; font: inherit; }
.accroche p { margin: 0 0 1em; }
.accroche p:last-child { margin-bottom: 0; }
.page-description + .accroche { margin-top: 20px; }
.accroche + .scope-tags { margin-top: 28px; }

/* contour fin (1 px, 10 % d'opacité) autour de chaque visuel */
:root { --frame: rgba(255, 255, 255, .1); }
:root[data-theme="light"] { --frame: rgba(0, 0, 0, .1); }
.slide-media, .index-thumb, .hero-media, .block-image, .block-video, .about-me .portrait { position: relative; border-radius: var(--radius); overflow: hidden; }
.slide-media::after, .index-thumb::after, .hero-media::after, .block-image::after, .block-video::after, .about-me .portrait::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid var(--frame); border-radius: inherit; pointer-events: none; }
.block-video video { border-radius: 0; }

/* espacements sous le titre d'un projet : sous-titre près du titre, tags plus loin */
.page-project .page-title { margin-bottom: 18px; }
.page-title + .accroche, .page-title + .page-description { margin-top: 0; }
.page-description + .accroche { margin-top: 12px; }
.accroche + .scope-tags, .page-description + .scope-tags { margin-top: 44px; }
.page-title + .scope-tags { margin-top: 32px; }
.accroche > :last-child { margin-bottom: 0; }

/* bouton « partager par e-mail » sur chaque visuel (apparaît au survol ; toujours visible sur écran tactile) */
.share { position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, background-color .2s; }
.slide-media:hover .share, .block-image:hover .share, .share:focus-visible { opacity: 1; transform: none; }
.share:hover { background: rgba(0, 0, 0, .75); }
@media (hover: none) { .share { opacity: .9; transform: none; width: 32px; height: 32px; top: 10px; right: 10px; } }
.project-slide, .block-image { scroll-margin-top: 40px; }

/* accueil : le fond flou change avec le projet affiché */
.home-backdrop img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.home-backdrop img.is-on { opacity: .85; }

/* vidéo en boucle (comme un GIF) */
.slide-loop video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .slide-media[style*="max-width"] { max-width: 100% !important; } }

/* vignette vidéo (accueil) */
.thumb-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.index-item a:hover .thumb-video { transform: scale(1.035); }
.thumb-video { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }

/* choix de la langue FR / UK, en haut à droite */
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; line-height: 1.4; font-weight: 700; }
.lang-switch a { color: var(--muted); transition: color .15s; }
.lang-switch a:hover, .lang-switch a.active { color: var(--fg); }
.lang-switch span { color: var(--faint); font-weight: 400; }
.mobile-bar .lang-switch { margin: 0 6px 0 0; font-size: 12px; }

/* « Variantes » : autres pistes, une colonne par piste, numérotée */
.variants { max-width: 1280px; margin: 120px auto 0; }
.variants .eyebrow { text-align: center; margin-bottom: 40px; }
.variants-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 24px; align-items: start; }
.variants-label { margin: 0 0 16px; font-size: 13px; line-height: 1.4; font-weight: 700; }
.variant { margin: 0 0 24px; }
@media (max-width: 640px) { .variants-grid { grid-template-columns: 1fr; } .variants-col + .variants-col { margin-top: 40px; } }

/* annotation sur un visuel : rond blanc, icône noire, toujours visible ; le texte apparaît au survol (au toucher sur mobile) */
.slide-media.has-note { overflow: visible; }
.slide-media.has-note picture, .slide-media.has-note img { border-radius: var(--radius); }
.note-btn { position: absolute; z-index: 4; top: 58px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #000; color: #fff; cursor: pointer; }
.note { position: absolute; z-index: 5; top: 116px; right: 14px; width: min(380px, calc(100% - 28px)); padding: 18px 20px; border-radius: 10px; background: #000; color: #fff; font-size: 13px; line-height: 1.6; }
.note p { margin: 0 0 .8em; }
.note p:last-child { margin-bottom: 0; }
@media (hover: none) { .note-btn { top: 50px; right: 10px; width: 32px; height: 32px; } .note { top: 100px; right: 10px; } }
@media (max-width: 640px) { .note { position: relative; top: auto; right: auto; width: auto; margin: 12px 0 0; } }
.note-btn svg { width: 18px; height: 18px; }
.share svg { width: 14px; height: 18px; margin-top: -2px; }
/* petit message « Lien copié » */
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 32px; padding: 10px 18px; border-radius: 300px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 700; opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.note strong { font-weight: 700; }
/* visuel annoté : l'icône d'annotation en premier, le partage dessous (ailleurs le partage reste en haut) */
.has-note .note-btn { top: 14px; }
.has-note .share { top: 58px; }
.has-note .note { top: 58px; }
@media (hover: none) {
  .has-note .note-btn { top: 10px; }
  .has-note .share { top: 50px; }
  .has-note .note { top: 50px; }
}
/* visuel détouré (fond transparent) : ni contour ni coins arrondis ajoutés */
.slide-media.is-plain { border-radius: 0; }
.slide-media.is-plain::after { display: none; }
.slide-media.has-note video { border-radius: var(--radius); }
/* visuel présenté dans une carte de la taille des autres (ex. poinçon) : petit, centré, avec de l'air autour */
.slide-media.is-card { display: grid; place-items: center; aspect-ratio: var(--card-ratio, 16 / 9); }
.slide-media.is-card picture, .slide-media.is-card img { width: var(--card-scale, 30%); height: auto; border-radius: 0; }
