/* sebastienvolpe.com — brouillon de refonte (octobre 2026) */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #06080d;
  --bg-2: #0b0f18;
  --surface: #111722;
  --surface-2: #171f2d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f6;
  --muted: #a3adbd;
  --accent: #ffa424;
  --accent-hot: #ff6a1f;
  --accent-ink: #1a0f00;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffc266; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 0.8rem/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb84d; color: var(--accent-ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--text); background: rgba(6, 8, 13, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open { background: rgba(6, 8, 13, 0.88); backdrop-filter: blur(12px); border-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.1; }
.brand strong { font: 700 1.15rem/1.1 var(--display); }
.brand span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); margin-left: 8px; }
.nav .nav-cta:hover { background: #ffb84d; color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 8, 13, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.55) 0%, rgba(6, 8, 13, 0) 28%),
    linear-gradient(90deg, rgba(6, 8, 13, 0.92) 0%, rgba(6, 8, 13, 0.55) 45%, rgba(6, 8, 13, 0.05) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 13, 0) 30%);
}
.hero-content { padding: 140px 0 clamp(56px, 9vh, 110px); max-width: 720px; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: #d3d9e3; margin-bottom: 30px; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 22px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 860px) {
  .hero-media img { object-position: 70% 50%; }
  .hero::after {
    background: linear-gradient(0deg, var(--bg) 8%, rgba(6, 8, 13, 0.72) 55%, rgba(6, 8, 13, 0.3) 100%);
  }
  .hero-credit { display: none; }
}

/* Bandeau de repères */
.creds { border-block: 1px solid var(--line); background: var(--bg-2); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.creds li { padding: 22px 20px; border-left: 1px solid var(--line); }
.creds li:first-child { border-left: 0; }
.creds strong { display: block; font: 700 1.05rem/1.25 var(--display); margin-bottom: 4px; }
.creds span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; display: block; }
@media (max-width: 960px) {
  .creds ul { grid-template-columns: 1fr 1fr; }
  .creds li:nth-child(3) { border-left: 0; }
  .creds li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .creds ul { grid-template-columns: 1fr; }
  .creds li { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .creds li:first-child { border-top: 0; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.block + .block { margin-top: clamp(64px, 8vw, 104px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.block-head h3 { margin: 0; }
.tag { display: inline-block; font: 600 0.75rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255, 164, 36, 0.4); padding: 7px 10px; border-radius: 999px; }

.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.55fr; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.points { list-style: none; padding: 0; margin: 0 0 1.4em; }
.points li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

/* Vidéo à la demande (rien n'est chargé chez YouTube avant le clic) */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: 0.88; }
.video:hover img { transform: scale(1.03); opacity: 1; }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255, 164, 36, 0.22); transition: transform .2s ease;
}
.video:hover .play { transform: scale(1.08); }
.video .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left;
  font: 600 0.95rem/1.3 var(--body); background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .video-pair { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 15vw, 210px); grid-auto-flow: dense; gap: 12px; }
.gallery button {
  position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface);
  grid-column: span 4;
}
.gallery button.wide { grid-column: span 8; }
.gallery button.tall { grid-row: span 2; }
.gallery button.big { grid-column: span 8; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; text-align: left; color: #fff;
  font-size: 0.85rem; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.gallery button:hover figcaption, .gallery button:focus-visible figcaption { opacity: 1; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .gallery button, .gallery button.wide { grid-column: span 1; }
  .gallery button.big { grid-column: span 2; grid-row: span 2; }
  .gallery button.tall { grid-row: span 2; }
  .gallery figcaption { opacity: 1; font-size: 0.78rem; }
}

/* Visionneuse */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(3, 4, 7, 0.94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 64px 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 8px; }
.lightbox p { color: var(--text); margin: 14px 0 0; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(17, 23, 34, 0.85); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lightbox-inner { padding: 64px 10px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
}

/* Cartes tutoriels */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 164, 36, 0.5); color: var(--text); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.card .more { color: var(--accent); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.card .more svg { width: 16px; height: 16px; }

/* Enseignement (accueil) */
.teach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .teach { grid-template-columns: 1fr; } }
.weeks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.weeks a {
  display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.weeks a:hover { border-color: rgba(255, 164, 36, 0.5); color: var(--text); }
.weeks b { font: 700 0.85rem/1 var(--display); color: var(--accent); min-width: 72px; text-transform: uppercase; letter-spacing: 0.08em; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.mosaic img:first-child { grid-column: span 2; aspect-ratio: 16 / 8; }

/* À propos */
.about { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about .photo { max-width: 340px; } }
.photo { position: relative; }
.photo img { border-radius: var(--radius-lg); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin-inline: auto; }
.contact-mail { display: inline-block; font: 700 clamp(1.4rem, 4.6vw, 2.6rem)/1.2 var(--display); color: var(--text); text-decoration: none; margin: 10px 0 30px; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--accent); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 20px; height: 20px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Pages intérieures */
.page-hero { padding: 150px 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 13, 0.55) 60%, rgba(6, 8, 13, 0.75) 100%); }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #d6dbe4; }

.bio-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .bio-layout { grid-template-columns: 1fr; } }
.facts { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.facts h2 { font-size: 1.2rem; margin-bottom: 14px; }
.facts ul { list-style: none; padding: 0; margin: 0 0 18px; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts li strong { display: block; font-family: var(--display); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.04em; }
.quote { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; margin: 2em 0; font: 500 clamp(1.2rem, 2.4vw, 1.5rem)/1.4 var(--display); color: var(--text); }

/* Programme */
.program { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .program { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 96px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.93rem; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.is-active { color: var(--text); border-left-color: var(--accent); background: var(--surface); }
.week { padding-bottom: clamp(56px, 7vw, 88px); margin-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.week:last-child { border-bottom: 0; margin-bottom: 0; }
.week-num { font: 700 0.85rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.week h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.objective { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 28px; }
.objective strong { color: var(--accent); }
.exercise { margin: 0 0 22px; }
.exercise h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge { font: 600 0.7rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: rgba(255, 164, 36, 0.14); color: var(--accent); }
.badge.opt { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.tip { border-left: 3px solid var(--accent); background: rgba(255, 164, 36, 0.06); padding: 12px 16px; border-radius: 0 10px 10px 0; color: #d6dbe4; font-size: 0.97rem; margin: 12px 0; }
details.chapters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 26px 0; }
details.chapters summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.chapters summary::-webkit-details-marker { display: none; }
details.chapters summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details.chapters[open] summary::after { content: "−"; }
.chapters-body { padding: 0 20px 20px; }
.chapters-body h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 16px 0 8px; }
.chapters-body ol { columns: 2 220px; column-gap: 28px; margin: 0; padding-left: 1.4em; color: var(--muted); font-size: 0.93rem; }
.chapters-body li { break-inside: avoid; padding: 2px 0; }

.badge-draft {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; background: #ffd400; color: #1a1400;
  font: 700 0.75rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
