/* =========================================================
   Sarah Blaya — portfolio d'illustration
   ========================================================= */

:root {
  --bg: #080d26;
  --bg-soft: #0c1435;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-2: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --ink: #d6c5ff;
  --text: #f5f3ff;
  --muted: rgba(245, 243, 255, 0.8);
  --muted-2: rgba(245, 243, 255, 0.62);
  --pink: #ef86c0;
  --pink-2: #f7b3d4;
  --orange: #f7b199;
  --gold: #ffe3a4;
  --violet: #a88ce8;
  --periwinkle: #aab4f0;
  --sky: #9fd7f2;
  --grad: linear-gradient(100deg, #ef86c0 0%, #f7a98f 52%, #ffe3a4 100%);
  --grad-text: linear-gradient(100deg, #f39ac8 0%, #b3a6ee 38%, #aab4f0 58%, #ffe3a4 100%);
  --radius: 24px;
  --radius-lg: 36px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-script: "Dancing Script", "Segoe Script", cursive;
  --shadow: 0 30px 80px -30px rgba(58, 35, 107, 0.35);
  --container: 1180px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

html.no-scroll {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(178, 160, 245, 0.34), transparent 62%),
    radial-gradient(1000px 800px at 100% 12%, rgba(159, 215, 242, 0.2), transparent 62%),
    radial-gradient(900px 700px at 62% 55%, rgba(196, 184, 255, 0.14), transparent 62%),
    radial-gradient(1000px 800px at 25% 100%, rgba(159, 215, 242, 0.22), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  /* Protection basique contre l'enregistrement et le glisser-déposer */
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(239, 134, 192, 0.45);
  color: #2f1b5e;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #351538;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.25s;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Ciel étoilé ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.nebula--one {
  width: 640px;
  height: 640px;
  top: -220px;
  left: 48%;
  background: radial-gradient(circle, rgba(178, 160, 245, 0.34), transparent 65%);
}

.nebula--two {
  width: 720px;
  height: 720px;
  top: 22%;
  left: -320px;
  background: radial-gradient(circle, rgba(159, 215, 242, 0.26), transparent 65%);
}

.nebula--three {
  width: 760px;
  height: 760px;
  bottom: -260px;
  right: -260px;
  background: radial-gradient(circle, rgba(196, 184, 255, 0.24), transparent 65%);
}

.nebula--four {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -200px;
  background: radial-gradient(circle, rgba(159, 215, 242, 0.22), transparent 65%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(214, 197, 255, 0.16), rgba(159, 215, 242, 0.08) 40%, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.4s;
}

/* ---------- Curseur étoile ---------- */

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

html.has-custom-cursor.lightbox-open,
html.has-custom-cursor.lightbox-open * {
  cursor: auto !important;
}

html.has-custom-cursor.lightbox-open a,
html.has-custom-cursor.lightbox-open button {
  cursor: pointer !important;
}

html.lightbox-open .cursor-star {
  opacity: 0 !important;
}

.cursor-star {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  /* Marge négative plutôt que translate(-50%) : le centrage reste stable
     quand l'étoile rétrécit à l'appui du bouton de la souris. */
  margin: -12px 0 0 -12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(214, 197, 255, 0.8);
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor-star.is-down .cursor-star__glyph {
  transform: scale(0.72);
}

.cursor-star__glyph {
  display: block;
  transform-origin: 50% 50%;
  transition: transform 0.15s ease;
  will-change: transform;
}

.cursor-trail {
  position: fixed;
  z-index: 9998;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 8px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: cursor-trail-fade 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes cursor-trail-fade {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.2) rotate(var(--rot, 90deg));
  }
}

/* ---------- Utilitaires ---------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 132px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}

.eyebrow::before {
  content: "✦";
  font-size: 0.85em;
  color: var(--pink-2);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  letter-spacing: -0.015em;
}

h1 em,
h2 em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.section__head {
  max-width: 730px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section__head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.04;
}

.section__lead {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  position: relative;
  z-index: 0;
  background: var(--grad);
  color: #351538;
  box-shadow: 0 14px 34px -12px rgba(239, 134, 192, 0.6);
}

/* Étend légèrement le dégradé au-delà du cadre du bouton */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(247, 169, 143, 0.65);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--pink-2);
  background: rgba(239, 134, 192, 0.16);
}

.btn--sm {
  padding: 0.68em 1.2em;
  font-size: 0.86rem;
}

.btn__spark {
  color: #ffffff;
  font-size: 0.95em;
  line-height: 1;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.85);
}

/* Le bouton d'en-tête reprend le dégradé du « Sarah » qui scintille */
.header__cta,
.nav-mobile-cta {
  background: var(--grad-text);
  box-shadow: 0 14px 34px -12px rgba(179, 166, 238, 0.55);
}

.header__cta:hover,
.nav-mobile-cta:hover {
  box-shadow: 0 20px 44px -14px rgba(243, 154, 200, 0.6);
}

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(8, 13, 38, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
  transition: gap 0.3s ease;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter:
    drop-shadow(0 0 6px rgba(243, 154, 200, 0.85))
    drop-shadow(0 0 14px rgba(179, 166, 238, 0.7))
    drop-shadow(0 0 26px rgba(170, 180, 240, 0.5));
  transition: transform 0.4s ease, width 0.3s ease, height 0.3s ease;
}

.brand:hover .brand__mark {
  transform: rotate(18deg) scale(1.06);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1.12;
  transition: font-size 0.3s ease;
}

.brand__sub {
  margin-top: 2px;
  padding-right: 0.2em;
  padding-bottom: 0.08em;
  font-family: var(--font-hand);
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: font-size 0.3s ease;
}

/* Marque plus généreuse en haut de page, retour à sa taille initiale au scroll */
.site-header .brand {
  gap: 28px;
}

.site-header .brand__mark {
  width: 112px;
  height: 112px;
}

.site-header .brand__name {
  font-size: 3.5rem;
  color: #ffffff;
}

.site-header .brand__sub {
  font-size: 2.36rem;
}

.site-header.scrolled .brand {
  gap: 12px;
}

.site-header.scrolled .brand__mark {
  width: 44px;
  height: 44px;
}

.site-header.scrolled .brand__name {
  font-size: 1.5rem;
}

.site-header.scrolled .brand__sub {
  font-size: 1.02rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav > a:not(.btn) {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav > a:not(.btn):hover {
  color: var(--ink);
}

.main-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  flex: none;
}

.lang-switch__btn {
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.lang-switch__btn:hover {
  color: var(--ink);
}

.lang-switch__btn.is-active {
  color: #0b1030;
  background: var(--grad-text);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-mobile-cta {
  display: none;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.menu-toggle:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.nav-open .menu-toggle span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 66px);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Même police droite que « Moi, c'est Sarah » (sans italique) */
.hero h1 em {
  font-style: normal;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero__lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* ---------- Galerie ---------- */

.gallery {
  padding-top: clamp(36px, 5vw, 66px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
}

.chip {
  padding: 0.6em 1.15em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.chip.is-active {
  position: relative;
  z-index: 0;
  background: var(--grad-text);
  border-color: transparent;
  color: #351538;
  box-shadow: 0 10px 26px -10px rgba(243, 154, 200, 0.55);
}

/* Étend légèrement le dégradé au-delà du cadre de la pastille active */
.chip.is-active::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* En-tête du film d'animation : bannière fondue en haut et en bas */
.film-header {
  margin: 0 0 clamp(24px, 4vw, 38px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.film-header[hidden] {
  display: none;
}

.film-header img {
  display: block;
  width: 100%;
  height: auto;
}

/* Présentation du court-métrage */
.film-content {
  max-width: 900px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.film-content__title {
  margin: 0 0 1.1rem;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.film-content__title--sub {
  margin-top: clamp(40px, 5vw, 60px);
}

.film-content__text {
  max-width: 72ch;
  margin: 0 auto 1.1rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  line-height: 1.85;
}

/* Animation du travail sur le projet */
.film-process {
  margin: clamp(20px, 3vw, 30px) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.film-process img {
  display: block;
  width: 100%;
  height: auto;
}

.film-process__caption {
  margin: 0;
  padding: 0.9rem 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* Cadres du film : une œuvre par ligne */
.film-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: clamp(36px, 5vw, 54px);
  text-align: left;
}

.film-gallery .art-card {
  background: #000;
}

.film-gallery .art-card--wide {
  aspect-ratio: 16 / 9;
}

.film-gallery .art-card img {
  object-fit: contain;
}

/* Affiches et concept art : mêmes cadres que les autres œuvres dans « Tout » */
.art-card--poster,
.art-card--concept {
  background: #000;
}

/* Dans « Tout », les cadres du film sont légèrement zoomés pour remplir la vignette */
.art-card.art-card--poster img,
.art-card.art-card--concept img {
  object-fit: cover;
}

/* Cadrage du premier concept art : personnages centrés dans la vignette */
#galerie:not(.is-film) .art-card--pano img {
  object-position: 65% 50%;
}

/* Making-of intégré à la galerie du film (jamais visible dans « Tout ») */
.film-still {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.film-still.is-hidden {
  display: none;
}

.film-still img {
  display: block;
  width: 100%;
  height: auto;
}

.film-still__caption {
  margin: 0;
  padding: 0.9rem 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* Mise en page d'origine, réservée à « Mon film d'animation » */
#galerie.is-film .gallery__grid {
  grid-template-columns: repeat(2, 1fr);
}

#galerie.is-film .art-card--poster {
  aspect-ratio: 1769 / 2498;
}

#galerie.is-film .art-card--concept {
  grid-column: 1 / -1;
}

#galerie.is-film .art-card--pano {
  aspect-ratio: 4096 / 1714;
}

#galerie.is-film .art-card--cinema {
  aspect-ratio: 3996 / 2160;
}

#galerie.is-film .art-card--couleurs {
  order: 2;
  aspect-ratio: 2308 / 1714;
}

#galerie.is-film .art-card--key3 {
  order: 3;
  aspect-ratio: 1920 / 1080;
}

#galerie.is-film .art-card--decors {
  order: 3;
  aspect-ratio: 4096 / 1714;
}

#galerie.is-film .art-card--decors-b {
  order: 3;
  aspect-ratio: 3046 / 1646;
}

.film-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.film-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-video__fallback {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.film-video__fallback a {
  color: var(--pink-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.film-video__fallback a:hover {
  color: var(--gold);
}

/* Aperçu cliquable si la vidéo ne peut pas être intégrée (ouverture en local) */
.film-video__poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.film-video__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.film-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 52px;
  border-radius: 12px;
  background: #ff0000;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.film-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #ffffff;
}

.film-video__poster:hover .film-video__play {
  background: #ff1a1a;
  transform: translate(-50%, -50%) scale(1.08);
}

.art-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.art-card--landscape {
  aspect-ratio: 3 / 2;
}

.art-card--portrait {
  aspect-ratio: 4 / 5;
}

/* Œuvre sur fond papier : image entière, sans recadrage */
.art-card--paper {
  background: #ffffff;
}

.art-card--paper img {
  object-fit: contain;
}

/* Sur fond papier clair, le bandeau d'infos passe en version sombre */
.art-card--paper .art-card__info {
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.97));
}

.art-card--paper .art-card__info strong {
  color: #3a2350;
}

.art-card--paper .art-card__info small {
  color: rgba(58, 35, 80, 0.75);
}

.art-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 34px 70px -30px rgba(58, 35, 107, 0.45);
}

.art-card:hover img {
  transform: scale(1.06);
}

.art-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.35em 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 13, 38, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.art-card__info {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 64px 20px 18px;
  background: linear-gradient(transparent, rgba(8, 13, 38, 0.96));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.art-card:hover .art-card__info,
.art-card:focus-visible .art-card__info {
  opacity: 1;
  transform: none;
}

.art-card__info strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.art-card__info small {
  color: var(--muted);
  font-size: 0.82rem;
}

.art-card.is-hidden {
  display: none;
}

/* Cadres vides pour les illustrations à venir */
.art-card--soon {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--line-strong);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(178, 160, 245, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.03);
  cursor: default;
}

.art-card--soon:hover {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: none;
}

.art-card__soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--muted-2);
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  letter-spacing: 0.02em;
}

.art-card__soon span {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.6em;
  opacity: 0.8;
}

/* ---------- À propos ---------- */

.about {
  padding-top: clamp(160px, 18vh, 200px);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.about__media {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
}

.about__media::before {
  content: "";
  position: absolute;
  inset: -7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.62) 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 68%
  );
  filter: blur(26px);
}

.about__portrait {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 34px 5px rgba(255, 255, 255, 0.4),
    var(--shadow);
}

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Légère mise à l'échelle pour supprimer le liseré blanc de la photo */
  transform: scale(1.05);
}

/* Petites étoiles blanches animées sur le contour de la photo */
.about__star {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  /* Propriété translate (et non transform) : le scale de l'animation ne
     décale pas l'étoile pendant qu'elle scintille. */
  translate: -50% -50%;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(214, 197, 255, 0.7);
  animation: about-star-twinkle 3.8s ease-in-out infinite;
}

.about__star--one {
  top: 1%;
  left: 50%;
  font-size: 16px;
  animation-delay: -0.2s;
}

.about__star--two {
  top: 13%;
  left: 88%;
  font-size: 11px;
  animation-delay: -0.9s;
}

.about__star--three {
  top: 54%;
  left: 99%;
  font-size: 14px;
  animation-delay: -1.6s;
}

.about__star--four {
  top: 88%;
  left: 82%;
  font-size: 10px;
  animation-delay: -2.3s;
}

.about__star--five {
  top: 99%;
  left: 44%;
  font-size: 15px;
  animation-delay: -3s;
}

.about__star--six {
  top: 82%;
  left: 10%;
  font-size: 12px;
  animation-delay: -3.6s;
}

.about__star--seven {
  top: 42%;
  left: 0%;
  font-size: 14px;
  animation-delay: -1.2s;
}

.about__star--eight {
  top: 9%;
  left: 18%;
  font-size: 10px;
  animation-delay: -2.6s;
}

.about__star--nine {
  top: 5%;
  left: 32%;
  font-size: 7px;
  animation-delay: -0.6s;
}

.about__star--ten {
  top: 7%;
  left: 70%;
  font-size: 20px;
  animation-delay: -1.9s;
}

.about__star--eleven {
  top: 26%;
  left: 96%;
  font-size: 8px;
  animation-delay: -2.9s;
}

.about__star--twelve {
  top: 68%;
  left: 97%;
  font-size: 7px;
  animation-delay: -0.5s;
}

.about__star--thirteen {
  top: 96%;
  left: 70%;
  font-size: 18px;
  animation-delay: -1.5s;
}

.about__star--fourteen {
  top: 96%;
  left: 22%;
  font-size: 8px;
  animation-delay: -2.2s;
}

@keyframes about-star-twinkle {
  0%, 100% {
    opacity: 0.25;
    scale: 0.65;
  }
  50% {
    opacity: 1;
    scale: 1.15;
  }
}

.about__body h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 22px;
}

.sparkle-word {
  position: relative;
  display: inline-block;
}

.sparkle-word__spark {
  position: absolute;
  font-family: var(--font-body);
  font-style: normal;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 227, 164, 0.9);
}

.sparkle-word__spark--one {
  top: -0.2em;
  left: -0.42em;
  font-size: 0.34em;
}

.sparkle-word__spark--two {
  right: -0.36em;
  bottom: -0.12em;
  font-size: 0.26em;
}

.sparkle-word:hover {
  animation: sarah-glow 1.8s ease-in-out infinite;
}

.sparkle-word:hover .sparkle-word__spark--one {
  animation: sarah-sparkle 1.35s ease-in-out infinite;
}

.sparkle-word:hover .sparkle-word__spark--two {
  animation: sarah-sparkle 1.35s ease-in-out infinite 0.45s;
}

@keyframes sarah-glow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 0 rgba(255, 227, 164, 0));
  }
  50% {
    filter: brightness(1.15) drop-shadow(0 0 9px rgba(255, 227, 164, 0.5));
  }
}

@keyframes sarah-sparkle {
  0%, 100% {
    opacity: 0;
    transform: translateY(2px) scale(0.55) rotate(0deg);
  }
  45% {
    opacity: 0.95;
    transform: translateY(0) scale(1) rotate(30deg);
  }
  70% {
    opacity: 0.35;
    transform: translateY(-2px) scale(0.8) rotate(60deg);
  }
}

.about__body p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 58ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.link-arrow span[aria-hidden="true"] {
  transition: transform 0.25s ease;
}

.link-arrow:hover span[aria-hidden="true"] {
  transform: translateX(5px);
}

/* ---------- Contact ---------- */

.contact__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 100px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    radial-gradient(110% 150% at 18% 0%, rgba(178, 160, 245, 0.28), transparent 55%),
    radial-gradient(120% 160% at 85% 100%, rgba(159, 215, 242, 0.18), transparent 58%),
    radial-gradient(90% 120% at 50% 50%, rgba(255, 227, 164, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  text-align: center;
}

.contact__panel h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.02;
}

.contact__panel h2 em {
  font-style: normal;
}

.contact__lead {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* Le bouton reprend exactement le dégradé du mot « ensemble » */
.contact__actions .btn--primary {
  background: var(--grad-text);
  box-shadow: 0 14px 34px -12px rgba(179, 166, 238, 0.55);
}

.contact__actions .btn--primary:hover {
  box-shadow: 0 20px 44px -14px rgba(243, 154, 200, 0.6);
}

.contact__spark {
  position: absolute;
  color: var(--gold);
  opacity: 0.65;
  animation: bob 6s ease-in-out infinite;
  pointer-events: none;
}

.contact__spark--one {
  top: 12%;
  left: 9%;
  font-size: 2.4rem;
}

.contact__spark--two {
  bottom: 16%;
  right: 10%;
  font-size: 1.8rem;
  animation-delay: -2s;
}

.contact__spark--three {
  top: 22%;
  right: 18%;
  font-size: 1.2rem;
  animation-delay: -4s;
}

/* ---------- Pied de page ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(52px, 7vw, 80px) 0 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(120, 140, 220, 0.16));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer__brand .brand {
  margin-bottom: 18px;
}

.footer__brand p {
  max-width: 300px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.footer__col h3 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__col a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s;
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.8rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__top {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer__top:hover {
  color: var(--ink);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(1060px, 94vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(4, 7, 20, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[open] {
  animation: lb-in 0.3s ease;
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

.lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #121a3d;
  overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.7);
}

.lightbox figure img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #0e1636;
}

.lightbox figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}

.lightbox figcaption strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.lightbox figcaption span {
  color: var(--muted);
  font-size: 0.88rem;
}

.lightbox__close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 26, 61, 0.92);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.lightbox__close:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.lightbox__nav {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 26, 61, 0.92);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

/* Le dégradé du « Sarah » scintillant, étendu de quelques pixels sous le cadre */
.lightbox__nav::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad-text);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox__nav:hover {
  border-color: transparent;
  color: #351538;
  transform: scale(1.06);
}

.lightbox__nav:hover::before {
  opacity: 1;
}

/* ---------- Sparkles au clic ---------- */

.click-spark {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  animation: spark-pop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes spark-pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.15) rotate(var(--rot, 45deg));
  }
}

/* ---------- Apparition au scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

/* Entre le menu mobile et les grands écrans, on garde la marque à sa taille
   précédente pour laisser toute la place à la navigation. */
@media (min-width: 921px) and (max-width: 1119px) {
  .site-header .brand {
    gap: 14px;
  }

  .site-header .brand__mark {
    width: 54px;
    height: 54px;
  }

  .site-header .brand__name {
    font-size: 1.9rem;
  }

  .site-header .brand__sub {
    font-size: 1.18rem;
  }
}

@media (max-width: 1020px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 74px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(360px, calc(100vw - 48px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(12, 20, 53, 0.97);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav > a:not(.btn) {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .main-nav > a:not(.btn)::after {
    display: none;
  }

  .main-nav > a:not(.btn):hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-mobile-cta {
    display: inline-flex;
    margin-top: 6px;
  }

  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about__media {
    width: min(72%, 340px);
  }

  .about__body {
    text-align: center;
  }

  .about__body p {
    margin-inline: auto;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .header__cta {
    display: none;
  }

  .site-header .brand__mark {
    width: 48px;
    height: 48px;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-switch__btn {
    padding: 5px 7px;
    font-size: 0.66rem;
  }

  .site-header .brand__name {
    font-size: 1.7rem;
  }

  .site-header .brand__sub {
    font-size: 0.9rem;
  }

  .site-header.scrolled .brand__mark {
    width: 44px;
    height: 44px;
  }

  .site-header.scrolled .brand__name {
    font-size: 1.5rem;
  }

  .site-header.scrolled .brand__sub {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .lightbox__nav {
    position: absolute;
    bottom: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev { left: 14px; }
  .lightbox__nav--next { right: 14px; }

  .lightbox figcaption {
    padding-bottom: 70px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
    z-index: 3;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 700px) {
  #galerie.is-film .gallery__grid {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  #galerie.is-film .gallery__grid {
    max-width: none;
  }

  .about__media {
    width: min(80%, 300px);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__brand p {
    max-width: none;
  }

  .contact__panel {
    border-radius: 30px;
  }

  .contact__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header .brand {
    gap: 10px;
  }

  .site-header .brand__name {
    font-size: 1.5rem;
  }

  .site-header .brand__sub {
    font-size: 0.8rem;
  }

  .lang-switch__btn {
    padding: 5px 6px;
    font-size: 0.64rem;
  }
}

@media (max-width: 400px) {
  .header__inner {
    gap: 16px;
  }

  .site-header .brand {
    gap: 8px;
  }

  .site-header .brand__mark {
    width: 42px;
    height: 42px;
  }

  .site-header .brand__name {
    font-size: 1.35rem;
  }

  .site-header .brand__sub {
    font-size: 0.7rem;
  }

  .lang-switch__btn {
    padding: 4px 5px;
    font-size: 0.6rem;
  }
}

@media (max-width: 340px) {
  .header__inner {
    gap: 8px;
  }

  .site-header .brand {
    gap: 6px;
  }

  .site-header .brand__mark {
    width: 38px;
    height: 38px;
  }

  .site-header .brand__name {
    font-size: 1.3rem;
  }

  .site-header .brand__sub {
    display: none;
  }

  .lang-switch__btn {
    padding: 4px 4px;
    font-size: 0.58rem;
  }
}

@media (hover: none) {
  .art-card__info {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
