/* -------------------- Initialisation des polices d'écritures -------------------- */

@font-face {
  font-family: "Gontserrat";
  src: url("/assets/fonts/gontserrat/Gontserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gontserrat";
  src: url("/assets/fonts/gontserrat/Gontserrat-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gontserrat";
  src: url("/assets/fonts/gontserrat/Gontserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gontserrat";
  src: url("/assets/fonts/gontserrat/Gontserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gontserrat";
  src: url("/assets/fonts/gontserrat/Gontserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Variables -------------------- */

:root {
  --void-black: #050508;
  --asteroid-gray: #121212;
  --moon-gray: #a7acbc;

  --space-blue: #243b9b;
  --cosmic-cyan: #00ffff;
  --galaxy-purple: #7a3fff;
  --nebula-pink: #ff2bd6;

  --white-star: #f5f7ff;
}

/* -------------------- Body -------------------- */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;

  overflow: hidden;
  /* Le déplacement des sections est géré par transform, sans scroll natif. */
  overflow: clip;

  font-family: "Gontserrat", "Helvetica Neue", Arial, sans-serif;

  color: var(--white-star);
  background-color: var(--void-black);
}

.horizontal-page {
  display: flex;

  width: max-content;
  height: 100vh;

  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  will-change: transform;
}

.horizontal-page > section {
  flex: 0 0 100vw;

  width: 100vw;
  height: 100vh;

  min-width: 100vw;
  min-height: 100vh;
}

/* -------------------- Navigation latérale des sections -------------------- */

.section-arrow {
  --section-arrow-color: var(--white-star);

  position: absolute;
  top: 50%;
  z-index: 20;

  display: grid;
  place-items: center;

  width: min(4rem, calc(5vw - 0.25rem));
  height: 4rem;
  padding: 0;

  border: 0;
  color: var(--section-arrow-color);
  background: transparent;

  opacity: 0.78;
  transform: translateY(-50%);

  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.25s ease;
}

.horizontal-page > section[data-footer-color="space-blue"] > .section-arrow {
  --section-arrow-color: var(--space-blue);
}

.horizontal-page > section[data-footer-color="cosmic-cyan"] > .section-arrow {
  --section-arrow-color: var(--cosmic-cyan);
}

.horizontal-page > section[data-footer-color="galaxy-purple"] > .section-arrow {
  --section-arrow-color: var(--galaxy-purple);
}

.horizontal-page > section[data-footer-color="nebula-pink"] > .section-arrow {
  --section-arrow-color: var(--nebula-pink);
}

.horizontal-page > .projects-section > .section-arrow {
  --section-arrow-color: var(--project-color);
}

.section-arrow--previous {
  left: 0.125rem;
}

.section-arrow--next {
  right: 0.125rem;
}

.section-arrow__visual {
  display: block;
  font-family: Arial, sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1;
  filter: drop-shadow(0 0 .3rem currentColor);
  transition: translate .3s ease, filter .3s ease;
}
.section-arrow--previous .section-arrow__visual { transform: rotate(180deg); }
.section-arrow:hover, .section-arrow:focus-visible { opacity: 1; }
.section-arrow:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.section-arrow--previous:hover .section-arrow__visual { translate: -.2rem 0; }
.section-arrow--next:hover .section-arrow__visual { translate: .2rem 0; }
.section-arrow:hover .section-arrow__visual { filter: drop-shadow(0 0 .65rem currentColor); }
.section-arrow:active { transform: translateY(-50%) scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .section-arrow, .section-arrow__visual { transition: none; }
}

.index-media-frame {
  margin: 0;
  overflow: hidden;
  background: var(--asteroid-gray);
}

/* -------------------- Section 1 (Hero) -------------------- */

.section1 {
  position: relative;

  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: var(--white-star);

  isolation: isolate;
}

.section1-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: -3;

  transform: scale(1.02);
}

.section1-overlay {
  position: absolute;
  inset: 0;

  z-index: -2;

  background: linear-gradient(
    90deg,
    rgba(5, 5, 8, 0.82) 0%,
    rgba(5, 5, 8, 0.62) 35%,
    rgba(5, 5, 8, 0.25) 68%,
    rgba(5, 5, 8, 0.35) 100%
  );
}

.section1-content {
  position: relative;

  width: 100%;
  height: 100%;

  box-sizing: border-box;

  padding: 0 7vw;

  display: flex;
  align-items: center;
}

.hero-main {
  position: relative;

  width: min(850px, 65vw);

  z-index: 2;
}

.hero-role {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 1rem;
}

.hero-role > span {
  width: 32px;
  height: 1px;

  background: linear-gradient(90deg, var(--cosmic-cyan), var(--galaxy-purple));

  box-shadow: 0 0 8px rgba(0, 255, 255, 0.35);
}

.role {
  margin: 0;

  color: var(--moon-gray);

  font-size: 0.65rem;

  font-weight: 400;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}

.section1 h1 {
  margin: 0;

  font-size: clamp(3rem, 4.8vw, 5rem);

  line-height: 0.95;

  font-weight: 700;

  letter-spacing: -0.055em;

  color: var(--white-star);

  white-space: nowrap;

  position: relative;
}

.hero-accent {
  width: 210px;
  height: 2px;

  margin: 1.3rem 0 1.4rem;

  background: linear-gradient(
    90deg,
    var(--cosmic-cyan) 0%,
    var(--space-blue) 35%,
    var(--galaxy-purple) 70%,
    var(--nebula-pink) 100%
  );

  box-shadow:
    0 0 12px rgba(122, 63, 255, 0.3),
    0 0 20px rgba(255, 43, 214, 0.12);
}

.catchphrase {
  margin: 0 0 0.9rem;

  font-size: clamp(1.05rem, 1.5vw, 1.45rem);

  line-height: 1.2;

  font-weight: 600;

  color: var(--white-star);
}

.description {
  max-width: 600px;

  margin: 0;

  color: var(--moon-gray);

  font-size: 0.82rem;

  line-height: 1.75;

  opacity: 0.8;
}

.buttons {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-top: 2.2rem;
}

.btn {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  min-width: 170px;

  padding: 12px 16px;

  box-sizing: border-box;

  text-transform: uppercase;

  letter-spacing: 0.13em;

  font-size: 0.62rem;

  font-weight: 600;

  text-decoration: none;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary {
  border: 1px solid var(--cosmic-cyan);

  background: rgba(0, 255, 255, 0.06);

  color: var(--white-star);
}

.btn-primary:hover {
  background: rgba(0, 255, 255, 0.15);

  box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
}

.btn-secondary {
  border: 1px solid rgba(245, 247, 255, 0.25);

  background: rgba(5, 5, 8, 0.12);

  color: var(--moon-gray);
}

.btn-secondary:hover {
  border-color: var(--nebula-pink);

  color: var(--white-star);

  box-shadow: 0 0 18px rgba(122, 63, 255, 0.08);
}

.btn-arrow {
  color: var(--cosmic-cyan);

  font-size: 1rem;

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.btn-secondary .btn-arrow {
  color: var(--nebula-pink);
}

.btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.section1-content > * {
  opacity: 0;

  transform: translateY(25px);

  animation: heroFadeUp 1s ease forwards;
}

.hero-main {
  animation-delay: 0.15s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* -------------------- Constellations partagées -------------------- */

.index-cosmos {
  --cosmos-color: var(--cosmic-cyan);

  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: var(--cosmos-color);
  pointer-events: none;
  transition: color 0.65s ease;
}

.index-cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--cosmos-color) 72%, transparent) 0 1px, transparent 1.4px),
    radial-gradient(circle, color-mix(in srgb, var(--cosmos-color) 38%, transparent) 0 1px, transparent 1.3px);
  background-position: 19px 37px, 73px 91px;
  background-size: 131px 131px, 197px 197px;
  -webkit-mask-image: radial-gradient(ellipse at 54% 48%, var(--void-black) 0, color-mix(in srgb, var(--void-black) 80%, transparent) 54%, transparent 88%);
  mask-image: radial-gradient(ellipse at 54% 48%, var(--void-black) 0, color-mix(in srgb, var(--void-black) 80%, transparent) 54%, transparent 88%);
}

.index-cosmos svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.54;
}

.index-cosmos-drift {
  transform-box: fill-box;
  transform-origin: center;
  animation: indexCosmosDrift 19s ease-in-out infinite;
}

.index-cosmos-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.32;
  animation: indexCosmosLine 7s ease-in-out infinite;
}

.index-cosmos-lines .index-cosmos-line-faint {
  stroke-width: 0.8;
  opacity: 0.24;
}

.index-cosmos-nodes circle {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 5px currentColor);
  animation: indexCosmosStar 4.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.index-cosmos-stats {
  --cosmos-color: var(--galaxy-purple);
}

.index-cosmos-projects {
  --cosmos-color: var(--project-color);
}

.index-cosmos-news {
  --cosmos-color: var(--nebula-pink);
}

.index-cosmos-contact {
  --cosmos-color: var(--galaxy-purple);
}

@keyframes indexCosmosDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  50% {
    transform: translate3d(10px, -7px, 0) rotate(.15deg);
  }
}

@keyframes indexCosmosLine {
  0%,
  100% {
    opacity: 0.23;
  }

  50% {
    opacity: 0.48;
  }
}

@keyframes indexCosmosStar {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-cosmos * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}


/* -------------------- Section 2 (Stats) -------------------- */

.stats-bar {
  position: relative;
  box-sizing: border-box;

  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 7vh 7vw;

  background:
    radial-gradient(
      ellipse 70% 85% at 75% 50%,
      color-mix(in srgb, var(--galaxy-purple) 12%, transparent) 0%,
      color-mix(in srgb, var(--galaxy-purple) 4%, transparent) 40%,
      transparent 72%
    ),
    var(--void-black);

  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.stats-bg-word {
  position: absolute;
  right: -0.05em;
  bottom: -0.11em;
  z-index: -1;
  color: color-mix(in srgb, var(--galaxy-purple) 4.5%, transparent);
  font-size: clamp(13rem, 21vw, 33rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.09em;
  pointer-events: none;
  user-select: none;
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-bar:not(.stats-visible):not(.stats-seen) .stats-bg-word {
  opacity: 0;
  transform: translateX(2.5rem);
}

.stats-bar.stats-visible .stats-bg-word,
.stats-bar.stats-seen .stats-bg-word {
  opacity: 1;
  transform: translateX(0);
}

.stats-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns:
    minmax(250px, 0.8fr)
    minmax(600px, 2fr);
  align-items: center;
  column-gap: 8vw;
}

.stats-heading {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid color-mix(in srgb, var(--white-star) 12%, transparent);
}

.stats-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--white-star);
}

.stats-heading-line {
  width: 90px;
  height: 2px;
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--galaxy-purple), transparent);
}

.stats-heading p {
  max-width: 300px;
  margin-top: 1.5rem;
  color: var(--moon-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  visibility: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
}

.stat-item {
  position: relative;
  min-height: 190px;
  padding: 2rem 2.5rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;

  opacity: 0;
  transform: translateY(18px);
}

.stat-item:nth-child(1),
.stat-item:nth-child(2) {
  border-bottom: 1px solid color-mix(in srgb, var(--white-star) 10%, transparent);
}

.stat-item:nth-child(1),
.stat-item:nth-child(3) {
  border-right: 1px solid color-mix(in srgb, var(--white-star) 10%, transparent);
}

.stat-number {
  display: block;
  margin-bottom: 0.7rem;

  font-size: clamp(4rem, 6vw, 6.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--white-star);

  transition: text-shadow 0.3s ease;
}

.stat-experience .stat-number,
.stat-experience .stat-line {
  color: var(--cosmic-cyan);
}

.stat-projects .stat-number,
.stat-projects .stat-line {
  color: var(--space-blue);
}

.stat-views .stat-number,
.stat-views .stat-line {
  color: var(--galaxy-purple);
}

.stat-awards .stat-number,
.stat-awards .stat-line {
  color: var(--nebula-pink);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moon-gray);
}

.stat-line {
  position: absolute;
  right: 2.5rem;
  bottom: 2rem;
  width: 35px;
  height: 1px;

  background: currentColor;
  opacity: 0.65;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 25px color-mix(in srgb, currentColor 20%, transparent);
}

.stat-item:hover .stat-line {
  width: 70px;
  opacity: 0.9;
}

.stats-heading > * {
  opacity: 0;
  transform: translateY(18px);
}

.stats-bar.stats-visible .stat-item {
  animation: statsFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stats-bar.stats-visible .stat-item:nth-child(1) {
  animation-delay: 0s;
}

.stats-bar.stats-visible .stat-item:nth-child(2) {
  animation-delay: 0.06s;
}

.stats-bar.stats-visible .stat-item:nth-child(3) {
  animation-delay: 0.12s;
}

.stats-bar.stats-visible .stat-item:nth-child(4) {
  animation-delay: 0.18s;
}

.stats-bar.stats-visible .stats-heading h2 {
  animation: statsFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stats-bar.stats-visible .stats-heading-line {
  animation: statsFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.stats-bar.stats-visible .stats-heading p {
  animation: statsDescriptionReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.stats-bar.stats-seen .stats-heading > *,
.stats-bar.stats-seen .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.stats-bar.stats-seen .stats-heading p {
  visibility: visible;
}

@keyframes statsFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statsDescriptionReveal {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
  }

  1% {
    visibility: visible;
  }

  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* -------------------- Section 3 (Projects) -------------------- */

.projects-section {
  --project-color: var(--cosmic-cyan);

  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  padding: clamp(6rem, 13vh, 8rem) 6vw;
  overflow: hidden;

  display: grid;
  align-items: center;
  background: var(--void-black);
}

.projects-section.project-color-1,
.projects-section .project-color-1 {
  --project-color: var(--cosmic-cyan);
}

.projects-section.project-color-2,
.projects-section .project-color-2 {
  --project-color: var(--space-blue);
}

.projects-section.project-color-3,
.projects-section .project-color-3 {
  --project-color: var(--galaxy-purple);
}

.projects-section.project-color-4,
.projects-section .project-color-4 {
  --project-color: var(--nebula-pink);
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--project-color);
  opacity: 0.13;
  mask-image: radial-gradient(ellipse 70% 85% at 80% 50%, var(--white-star), transparent 72%);
  transition: background-color 0.65s ease;
}

.projects-mobile-heading,
.project-mobile-visual,
.projects-mobile-all {
  display: none;
}

.projects-all {
  position: absolute;
  bottom: calc(100% + 0.25rem);
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--moon-gray);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 0.25s ease,
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 0;
  width: 100%;
}

.projects-navigation {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.projects-bg-number {
  position: absolute;
  top: 50%;
  left: -5vw;
  z-index: -1;
  color: color-mix(in srgb, var(--project-color) 6%, transparent);
  font-size: clamp(24rem, 42vw, 44rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  transition: color 0.6s ease;
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--moon-gray) 18%, transparent);
  transition: border-color 0.4s ease;
}

.project-entry:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--moon-gray) 18%, transparent);
}

.project-entry.is-active {
  border-top-color: var(--project-color);
}

.project-entry-header {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.project-entry-heading {
  min-width: 0;
  margin: 0;
  font: inherit;
}

.project-nav {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 84px;
  padding: 1.85rem 0;
  border: 0;
  background: transparent;
  color: var(--moon-gray);
  font: inherit;
  text-align: left;
  transition: color 0.3s ease, padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-number {
  color: var(--project-color);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.nav-title {
  min-width: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  transition: font-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-nav:hover,
.project-nav:focus-visible,
.project-nav[aria-expanded="true"] {
  color: var(--white-star);
}

.project-nav[aria-expanded="true"] {
  padding-top: 1.6rem;
  padding-bottom: 0.85rem;
}

.project-nav[aria-expanded="true"] .nav-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.project-details {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.project-entry.is-active .project-details {
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease 0.08s;
}

.project-details-content {
  min-height: 0;
  overflow: hidden;
}

.project-details-body {
  padding: 0 0.5rem 1.4rem 2.5rem;
  transform: translateY(-6px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-entry.is-active .project-details-body {
  transform: translateY(0);
}

.project-meta {
  margin: 0 0 0.75rem;
  color: var(--moon-gray);
  font-size: 0.75rem;
  line-height: 1.6;
}

.project-description {
  margin: 0 0 0.6rem;
  color: var(--white-star);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.project-discover {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  justify-self: end;
  align-self: center;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  box-shadow: inset 0 -1px 0 var(--project-color);
  color: var(--white-star);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.25s;
}

.project-entry.is-active .project-discover {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0.08s, 0.08s, 0s;
}

.project-visual-wrapper {
  position: relative;
  min-width: 0;
  width: 100%;
  align-self: center;
}

.project-visual-frame {
  width: 100%;
  border-bottom: 2px solid var(--project-color);
  transition: border-color 0.5s ease;
}

.project-visual-heading {
  position: absolute;
  bottom: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--moon-gray);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-left: auto;
  font-size: 0.75rem;
}

.project-current {
  color: var(--project-color);
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.5s ease;
}

.project-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}

.project-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.project-visual:hover .project-image.is-active,
.project-visual:focus-visible .project-image.is-active {
  transform: scale(1.02);
}

.projects-all span:last-child,
.project-discover span:last-child {
  color: var(--project-color);
  font-size: 1rem;
  transition: color 0.5s ease, transform 0.3s ease;
}

.projects-all:hover {
  color: var(--white-star);
}

.projects-all:hover span:last-child,
.project-discover:hover span:last-child {
  transform: translate(3px, -3px);
}

.project-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.projects-navigation,
.project-visual-wrapper {
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-section:not(.projects-visible):not(.projects-seen) .projects-all {
  opacity: 0;
  transform: translateY(12px);
}

.projects-section:not(.projects-visible):not(.projects-seen) .projects-navigation {
  opacity: 0;
  transform: translateX(-24px);
}

.projects-section:not(.projects-visible):not(.projects-seen) .project-visual-wrapper {
  opacity: 0;
  transform: translateX(24px);
}

.projects-visible .projects-navigation,
.projects-seen .projects-navigation {
  transition-delay: 0.08s;
}

.projects-visible .project-visual-wrapper,
.projects-seen .project-visual-wrapper {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .projects-section *,
  .projects-section::before {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}


/* -------------------- Section 4 (About) -------------------- */

.about-section {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  padding: clamp(5rem, 7vh, 7rem) 5vw clamp(5rem, 9vh, 8rem);
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--void-black);
}

.about-section::before {
  content: "PROFIL";
  position: absolute;
  right: -0.06em;
  bottom: -0.1em;
  z-index: -2;
  color: color-mix(in srgb, var(--white-star) 2.8%, transparent);
  font-size: clamp(12rem, 20vw, 32rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.09em;
  pointer-events: none;
  user-select: none;
}

.about-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(
    ellipse 70% 88% at 42% 52%,
    color-mix(in srgb, var(--cosmic-cyan) 9%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.index-cosmos-about { --cosmos-color: var(--cosmic-cyan); z-index: -1; }

.about-profile-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(28rem, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(4rem, 5vw, 8rem);
  width: 100%;
  min-height: 0;
}

.about-portrait {
  position: relative;
  width: 100%;
  height: clamp(30rem, 68vh, 61rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--white-star) 14%, transparent);
  background: var(--asteroid-gray);
  box-shadow: 0 2rem 7rem color-mix(in srgb, var(--void-black) 62%, transparent);
}

.about-portrait::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  background: var(--cosmic-cyan);
  box-shadow: 0 0 18px color-mix(in srgb, var(--cosmic-cyan) 38%, transparent);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(1.01);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-portrait:hover img {
  transform: scale(1.035);
}

.about-identity {
  min-width: 0;
  width: 100%;
}

.about-identity h2 {
  margin: 0;
  color: var(--white-star);
  font-size: clamp(4.4rem, 6.7vw, 10.5rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.about-identity-role {
  margin: clamp(0.9rem, 1.4vh, 1.4rem) 0 0;
  color: var(--white-star);
  font-size: clamp(0.78rem, 0.78vw, 1.18rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.about-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  gap: clamp(0.75rem, 0.9vw, 1.35rem);
  margin-top: clamp(1.2rem, 2.2vh, 2rem);
}

.about-formation,
.about-location {
  box-sizing: border-box;
  min-height: clamp(5.5rem, 9vh, 8.2rem);
  padding: clamp(0.9rem, 1.2vw, 1.5rem);
  border: 1px solid color-mix(in srgb, var(--white-star) 14%, transparent);
  background: color-mix(in srgb, var(--asteroid-gray) 78%, transparent);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s ease, background-color 0.35s ease, transform 0.35s ease;
}

.about-formation {
  display: flex;
  flex-direction: column;
}

.about-formation:hover,
.about-location:hover {
  border-color: color-mix(in srgb, var(--cosmic-cyan) 54%, transparent);
  background: color-mix(in srgb, var(--cosmic-cyan) 6%, var(--asteroid-gray));
  transform: translateY(-3px);
}

.about-formation > span,
.about-location > span,
.about-makingof-label {
  display: block;
  color: var(--cosmic-cyan);
  font-size: clamp(0.48rem, 0.45vw, 0.67rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-formation h3 {
  margin: clamp(0.45rem, 0.7vh, 0.7rem) 0 0;
  color: var(--white-star);
  font-size: clamp(0.95rem, 1.05vw, 1.55rem);
  font-weight: 600;
  line-height: 1.12;
}

.about-formation p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: auto 0 0;
  padding-top: clamp(0.45rem, 0.65vh, 0.65rem);
  color: var(--moon-gray);
  font-size: clamp(0.58rem, 0.55vw, 0.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-formation strong {
  color: var(--white-star);
  font-weight: 400;
}

.about-location {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-location > div {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto;
  align-items: center;
  gap: clamp(0.6rem, 0.8vw, 1rem);
}

.about-location strong {
  color: var(--white-star);
  font-size: clamp(0.88rem, 0.9vw, 1.35rem);
  font-weight: 600;
}

.about-location i {
  position: relative;
  display: block;
  height: 1px;
  background: color-mix(in srgb, var(--cosmic-cyan) 48%, transparent);
}

.about-location i::before,
.about-location i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--cosmic-cyan);
  transform: translateY(-50%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--cosmic-cyan) 56%, transparent);
}

.about-location i::before {
  left: 0;
}

.about-location i::after {
  right: 0;
}

.about-identity-text {
  max-width: 57rem;
  margin: clamp(1rem, 1.7vh, 1.6rem) 0 0;
  color: var(--moon-gray);
  font-size: clamp(0.78rem, 0.7vw, 1.05rem);
  line-height: 1.68;
}

.about-identity-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 3vw, 4rem);
  min-width: clamp(15rem, 18vw, 27rem);
  min-height: clamp(3rem, 4.1vh, 3.9rem);
  box-sizing: border-box;
  margin-top: clamp(1rem, 1.8vh, 1.7rem);
  padding: 0 clamp(1rem, 1.25vw, 1.6rem);
  border: 1px solid var(--cosmic-cyan);
  background: color-mix(in srgb, var(--cosmic-cyan) 5%, transparent);
  color: var(--white-star);
  font-size: clamp(0.58rem, 0.52vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.about-identity-link span:last-child {
  color: var(--cosmic-cyan);
  font-size: clamp(1rem, 0.9vw, 1.35rem);
  transition: transform 0.3s ease;
}

.about-identity-link:hover,
.about-identity-link:focus-visible {
  background: color-mix(in srgb, var(--cosmic-cyan) 13%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--cosmic-cyan) 13%, transparent);
}

.about-identity-link:hover span:last-child,
.about-identity-link:focus-visible span:last-child {
  transform: translate(4px, -4px);
}

.about-makingof {
  margin-top: clamp(1.1rem, 2vh, 1.9rem);
}

.about-makingof-label {
  margin-bottom: clamp(0.55rem, 0.8vh, 0.8rem);
}

.about-makingof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.45rem, 0.7vw, 1rem);
}

.about-makingof-grid figure {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--white-star) 13%, transparent);
  background: var(--asteroid-gray);
}

.about-makingof-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--cosmic-cyan) 62%, transparent);
  pointer-events: none;
}

.about-makingof-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-makingof-grid figure:hover img {
  transform: scale(1.055);
}

.about-portrait,
.about-identity > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-section:not(.about-visible):not(.about-seen) .about-portrait {
  opacity: 0;
  transform: translateX(-2.5rem) scale(0.97);
}

.about-section:not(.about-visible):not(.about-seen) .about-identity > * {
  opacity: 0;
  transform: translateX(2.5rem);
}

.about-visible .about-portrait,
.about-seen .about-portrait,
.about-visible .about-identity > *,
.about-seen .about-identity > * {
  opacity: 1;
  transform: none;
}

.about-visible .about-identity-role,
.about-seen .about-identity-role {
  transition-delay: 0.06s;
}

.about-visible .about-facts,
.about-seen .about-facts {
  transition-delay: 0.12s;
}

.about-visible .about-identity-text,
.about-seen .about-identity-text {
  transition-delay: 0.18s;
}

.about-visible .about-identity-link,
.about-seen .about-identity-link {
  transition-delay: 0.24s;
}

.about-visible .about-makingof,
.about-seen .about-makingof {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .about-section *,
  .about-section::before,
  .about-section::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* -------------------- Section 5 (Actualités) -------------------- */

.news-section {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 6rem 7vw;
  overflow: hidden;
  background: var(--void-black);
}

.news-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 68% 60%, #ff2bd619, transparent 68%);
}

.news-editorial { position: relative; z-index: 1; width: 100%; min-width: 0; }



.news-articles-link { position: absolute; right: 0; bottom: calc(100% + 1.25rem); display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 44px; border-bottom: 1px solid var(--nebula-pink); color: var(--white-star); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: color .3s ease; }
.news-articles-link > span { color: var(--nebula-pink); font-size: 1.25rem; }
.news-articles-link:hover { color: var(--nebula-pink); }

/* Tous les volets partagent les mêmes lignes de haut et de bas. */
.news-reel { display: flex; gap: 2px; height: clamp(20rem, 49vh, 44rem); border-block: 1px solid #ff2bd680; padding-block: 7px; }
.news-reel-item { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; background: #100b13; transition: flex-grow .75s cubic-bezier(.16, 1, .3, 1); }
.news-reel.is-interactive .news-reel-item.is-current { flex-grow: 3.1; }
.news-reel-media { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.news-reel-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.65); transform: scale(1.02); transition: filter .65s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
.news-reel-item::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #05050866, #05050800 35%, #050508dd 85%, #050508f5), linear-gradient(90deg, #05050844, transparent); pointer-events: none; }
.news-reel-item.is-current .news-reel-media img { filter: saturate(1) brightness(.85); transform: scale(1); }
.news-reel-toggle { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.news-reel-toggle[hidden], .news-reel-details[hidden] { display: none; }
.news-reel-toggle:focus-visible { outline: 2px solid var(--nebula-pink); outline-offset: -5px; }
.news-reel-topline { position: absolute; z-index: 3; top: clamp(1.2rem, 2vw, 2.5rem); left: clamp(1.2rem, 2vw, 2.5rem); right: clamp(1.2rem, 2vw, 2.5rem); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.news-reel-number { font-size: clamp(2rem, 3.8vw, 5rem); font-weight: 700; letter-spacing: -.07em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--white-star); transition: color .35s ease, -webkit-text-stroke-color .35s ease; }
.news-reel-item.is-current .news-reel-number { color: var(--nebula-pink); -webkit-text-stroke-color: var(--nebula-pink); }
.news-reel-copy { position: absolute; z-index: 3; bottom: clamp(1.25rem, 2.1vw, 2.75rem); left: clamp(1.2rem, 2vw, 2.5rem); right: clamp(1.2rem, 2vw, 2.5rem); pointer-events: none; }
.news-reel-copy time { color: #d5d0d8; font-family: monospace; font-size: .7rem; letter-spacing: .06em; }
.news-reel-copy h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: .75rem 0 0; font-size: clamp(1.1rem, 1.55vw, 2rem); font-weight: 600; line-height: 1.13; letter-spacing: -.04em; overflow-wrap: anywhere; text-wrap: balance; }
.news-reel-item.is-current h3 { -webkit-line-clamp: 2; font-size: clamp(1.8rem, 3.15vw, 4.5rem); }
.news-reel-details { margin-top: 1rem; }
.news-reel-details p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 40rem; margin: 0; color: #d5d0d8; font-size: clamp(.8rem, .9vw, 1rem); line-height: 1.7; }
.news-reel-read { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-height: 44px; margin-top: .9rem; padding: 0 1rem; color: var(--void-black); background: var(--nebula-pink); font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; pointer-events: auto; transition: background .25s ease; }
.news-reel-read > span:last-child { font-size: 1.25rem; }
.news-reel-read:hover { background: var(--white-star); }
.news-articles-link:focus-visible, .news-reel-read:focus-visible { outline: 2px solid var(--nebula-pink); outline-offset: 5px; }
.news-reel-item:not(.is-current):hover .news-reel-media img { filter: saturate(1) brightness(.8); }



.news-reel-placeholder { display: grid; height: 100%; place-items: center; color: #ff2bd670; font-size: 8rem; font-weight: 700; letter-spacing: -.1em; background: radial-gradient(ellipse at 30% 30%, #ff2bd625, transparent 65%); }
.news-reel-empty { padding: 4rem 0; border-block: 1px solid #ff2bd650; }
.news-reel-empty p { margin-top: 0; font-size: 2rem; letter-spacing: -.04em; }
.news-reel-empty > span { color: var(--moon-gray); line-height: 1.7; }
.news-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 1024px) and (max-height: 700px) {
  .news-section { padding-block: 5rem; }


  .news-reel { height: 48vh; min-height: 15rem; }
  .news-reel-topline { top: 1rem; }
  .news-reel-number { font-size: 2rem; }
  .news-reel-copy { bottom: 1rem; }
  .news-reel-item.is-current h3 { font-size: clamp(1.5rem, 2.5vw, 2.5rem); }
  .news-reel-details { margin-top: .6rem; }
  .news-reel-details p { -webkit-line-clamp: 1; }
  .news-reel-read { margin-top: .6rem; }

}

@media (max-width: 1023px) {

  .news-reel { height: 30rem; }
  .news-reel.is-interactive .news-reel-item.is-current { flex-grow: 3.4; }
  .news-reel-copy, .news-reel-topline { left: 1rem; right: 1rem; }
  .news-reel-copy h3 { font-size: 1.1rem; }
  .news-reel-item.is-current h3 { font-size: 2rem; }
}

@media (max-width: 699px) {


  .news-articles-link { position: static; display: flex; margin-bottom: 1.5rem; width: 100%; }
  .news-reel { flex-direction: column; height: auto; gap: 2px; }
  .news-reel-item { flex: none; min-height: 25rem; transition: min-height .5s cubic-bezier(.16, 1, .3, 1); }
  .news-reel.is-interactive .news-reel-item { flex: none; min-height: 6.5rem; }
  .news-reel.is-interactive .news-reel-item.is-current { flex: none; min-height: 25rem; }
  .news-reel-topline { top: 1.2rem; left: 1.2rem; right: 1.2rem; }
  .news-reel-number { font-size: 2rem; }
  .news-reel-copy { left: 1.2rem; right: 1.2rem; bottom: 1.2rem; }
  .news-reel-copy time { font-size: .65rem; }
  .news-reel-copy h3, .news-reel-item.is-current h3 { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }
  .news-reel.is-interactive .news-reel-item:not(.is-current) .news-reel-copy { top: 1.25rem; left: 4.5rem; right: 3rem; bottom: auto; }
  .news-reel.is-interactive .news-reel-item:not(.is-current) h3 { margin-top: .4rem; font-size: 1rem; -webkit-line-clamp: 2; }
  .news-reel.is-interactive .news-reel-item:not(.is-current) .news-reel-media img { filter: saturate(.5) brightness(.35); }
  .news-reel-details p { font-size: .83rem; -webkit-line-clamp: 3; }
  .news-reel-read { margin-top: 1rem; }

}

@media (prefers-reduced-motion: reduce) {
  .news-section *, .news-section *::before, .news-section *::after { animation: none !important; transition: none !important; }
}

/* -------------------- Section 6 (Contact) -------------------- */

.contact-section {
  position: relative;

  box-sizing: border-box;

  flex: 0 0 100vw;

  width: 100vw;
  height: 100vh;

  min-width: 100vw;
  min-height: 100vh;

  padding: 3vh 7vw;

  overflow: hidden;

  background: radial-gradient(
    ellipse 70% 85% at 85% 50%,
    rgba(122, 63, 255, 0.16) 0%,
    rgba(122, 63, 255, 0.055) 40%,
    transparent 72%
  );

  isolation: isolate;
}

.contact-bg-word {
  position: absolute;
  right: -0.05em;
  bottom: -0.11em;
  font-size: clamp(13rem, 21vw, 33rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.09em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--galaxy-purple) 4.5%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.contact-container {
  position: relative;

  box-sizing: border-box;

  width: 100%;
  height: 100%;

  display: grid;

  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);

  align-items: center;

  column-gap: clamp(2.75rem, 4vw, 7rem);

  z-index: 1;
}

.contact-intro {
  position: relative;

  width: 100%;
  max-width: 720px;

  justify-self: end;

  padding-left: 1.5rem;

  border-left: 1px solid rgba(245, 247, 255, 0.12);
}

.contact-title {
  margin: 0;

  font-size: clamp(3.5rem, 5.5vw, 6.2rem);

  line-height: 0.87;

  letter-spacing: -0.06em;

  font-weight: 700;

  color: var(--white-star);
}

.contact-title span {
  color: var(--galaxy-purple);
}

.contact-accent {
  width: 150px;
  height: 2px;

  margin-top: 1.8rem;

  background: linear-gradient(
    90deg,
    var(--galaxy-purple),
    var(--nebula-pink),
    transparent
  );

  box-shadow: 0 0 14px rgba(122, 63, 255, 0.2);
}

.contact-description {
  max-width: 560px;

  margin: 1.6rem 0 0;

  color: var(--moon-gray);

  font-size: clamp(0.86rem, 0.72vw, 1rem);

  line-height: 1.75;

  opacity: 0.86;
}

.contact-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 2rem;

  opacity: 0;
  transform: translateY(15px);

  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-legal a {
  color: var(--moon-gray);
  text-decoration: none;
  font-size: clamp(0.72rem, 0.58vw, 0.82rem);
  line-height: 1.45;
  transition: color 0.3s ease;
}

.contact-legal a:hover {
  color: var(--galaxy-purple);
}

.contact-form-wrapper {
  box-sizing: border-box;

  width: 100%;

  max-width: 1120px;

  padding: clamp(1.5rem, 2vw, 2.75rem);

  border: 1px solid rgba(245, 247, 255, 0.08);

  background: linear-gradient(
    145deg,
    rgba(13, 11, 27, 0.7),
    rgba(122, 63, 255, 0.045)
  );

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(245, 247, 255, 0.025);

  backdrop-filter: blur(5px);

  justify-self: end;
}

.contact-form-row {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1.2rem;
}

.contact-field {
  display: flex;
  flex-direction: column;

  gap: 0.35rem;

  min-width: 0;
}

.contact-field label {
  color: color-mix(in srgb, var(--moon-gray) 88%, var(--white-star));

  font-size: clamp(0.65rem, 0.52vw, 0.76rem);

  font-weight: 600;

  letter-spacing: 0.18em;
}

.contact-optional {
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.62;
}

.contact-field input,
.contact-field textarea {
  box-sizing: border-box;

  width: 100%;

  border: none;

  border-bottom: 1px solid rgba(245, 247, 255, 0.27);

  padding: 0.55rem 0.15rem;

  background: transparent;

  color: var(--white-star);

  font-family: "Gontserrat", "Helvetica Neue", Arial, sans-serif;

  font-size: clamp(0.86rem, 0.68vw, 0.98rem);

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-field textarea {
  min-height: 100px;
  max-height: 170px;

  resize: vertical;

  line-height: 1.5;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--galaxy-purple);

  box-shadow: 0 1px 0 var(--galaxy-purple);
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: none;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: rgba(122, 63, 255, 0.55);
}

.contact-captcha {
  margin: 0.1rem 0 0;

  flex-shrink: 0;
}

.contact-submit-row {
  display: flex;

  align-items: center;

  gap: 1.2rem;

  margin-top: 0.15rem;

  width: 100%;
}

.contact-submit {
  box-sizing: border-box;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 3rem;

  min-width: min(270px, 100%);
  min-height: 40px;

  padding: 12px 14px;

  border: 1px solid var(--galaxy-purple);

  background: rgba(122, 63, 255, 0.07);

  color: var(--white-star);

  font-family: "Gontserrat", "Helvetica Neue", Arial, sans-serif;

  font-size: clamp(0.64rem, 0.52vw, 0.75rem);

  font-weight: 600;

  letter-spacing: 0.14em;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-submit:hover {
  background: rgba(122, 63, 255, 0.16);

  border-color: var(--galaxy-purple);

  box-shadow: 0 0 25px rgba(122, 63, 255, 0.12);
}

.contact-submit-arrow {
  color: var(--galaxy-purple);

  font-size: 1rem;

  transition: transform 0.3s ease;
}

.contact-submit:hover .contact-submit-arrow {
  transform: translate(4px, -4px);
}

.contact-status {
  min-height: 0.9rem;

  color: var(--nebula-pink);

  font-size: clamp(0.64rem, 0.5vw, 0.74rem);

  font-weight: 600;

  line-height: 1.3;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  width: 100%;

  margin-top: 0.75rem;
}

.contact-status.error {
  color: var(--nebula-pink);
}

.contact-status.success {
  color: var(--cosmic-cyan);
}

.contact-section:not(.contact-visible):not(.contact-seen) .contact-bg-word {
  opacity: 0;
  transform: translateX(2.5rem);
}

.contact-section:not(.contact-visible):not(.contact-seen) .contact-intro {
  opacity: 0;

  transform: translateX(-45px);
}

.contact-section:not(.contact-visible):not(.contact-seen)
  .contact-form-wrapper {
  opacity: 0;

  transform: translateX(55px) scale(0.97);
}

.contact-bg-word {
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-intro {
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form-wrapper {
  transition:
    opacity 0.9s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-title {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-accent {
  opacity: 0;

  transform: translateX(-25px);

  transition:
    opacity 0.7s ease,
    transform 0.8s ease;
}

.contact-description {
  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;

  margin-top: 2rem;
  max-width: 560px;

  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-socials a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--moon-gray);
  text-decoration: none;

  font-size: clamp(0.68rem, 0.55vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.14em;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.contact-social-icon {
  display: none;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-socials a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -4px;

  width: 0;
  height: 1px;

  background: var(--galaxy-purple);

  transition: width 0.3s ease;
}

.contact-socials a:hover {
  color: var(--white-star);
  transform: translateY(-2px);
}

.contact-socials a:hover::after {
  width: 100%;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-out 0s;
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid {
  border-color: var(--nebula-pink);
  box-shadow: 0 1px 0 var(--nebula-pink);
}

.contact-field input.is-valid,
.contact-field textarea.is-valid {
  border-color: var(--cosmic-cyan);
  box-shadow: 0 1px 0 var(--cosmic-cyan);
}

.contact-field .field-error {
  display: block;

  min-height: 0.85rem;

  margin: 0 0 0.6rem;

  color: var(--nebula-pink);

  font-size: clamp(0.62rem, 0.48vw, 0.7rem);
  line-height: 1.3;
  letter-spacing: 0.04em;

  opacity: 0;

  transform: translateY(-3px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.contact-field .field-error.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.contact-visible .contact-bg-word,
.contact-seen .contact-bg-word {
  opacity: 1;
  transform: translateX(0);
}

.contact-visible .contact-intro,
.contact-seen .contact-intro {
  opacity: 1;

  transform: translateX(0);

  transition-delay: 0.05s;
}

.contact-visible .contact-form-wrapper,
.contact-seen .contact-form-wrapper {
  opacity: 1;

  transform: translateX(0) scale(1);

  transition-delay: 0.15s;
}

.contact-visible .contact-title,
.contact-seen .contact-title {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.3s;
}

.contact-visible .contact-accent,
.contact-seen .contact-accent {
  opacity: 1;

  transform: translateX(0);

  transition-delay: 0.45s;
}

.contact-visible .contact-description,
.contact-seen .contact-description {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.55s;
}

.contact-visible .contact-socials,
.contact-seen .contact-socials {
  opacity: 1;
  transform: translateY(0);

  transition-delay: 0.65s;
}

.contact-visible .contact-form,
.contact-seen .contact-form {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.35s;
}

.contact-visible .contact-legal,
.contact-seen .contact-legal {
  opacity: 1;
  transform: translateY(0);

  transition-delay: 0.8s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--cosmic-cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--white-star);
  color: var(--void-black);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/*
 * Desktop moins haut que le Full HD : les sections restent entièrement
 * comprises entre le header et le footer, même sur un écran très large.
 */
@media (min-width: 1024px) and (max-height: 1000px) {
  .projects-section,
  .about-section,
  .contact-section {
    padding-top: clamp(4.75rem, 9vh, 5.75rem);
    padding-bottom: clamp(4.75rem, 9vh, 5.75rem);
  }

  .projects-container,
  .about-profile-layout {
    gap: clamp(1.75rem, 3.5vw, 3.75rem);
    scale: 0.92;
  }

  .project-nav {
    min-height: 66px;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .project-nav[aria-expanded="true"] {
    padding-top: 1rem;
    padding-bottom: 0.55rem;
  }

  .project-nav[aria-expanded="true"] .nav-title {
    font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  }

  .project-details-body {
    padding-bottom: 0.85rem;
  }

  .project-meta {
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
  }

  .project-description {
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.52;
  }

  .project-discover {
    font-size: 0.78rem;
  }

  .about-profile-layout {
    grid-template-columns: minmax(22rem, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 3.5vw, 4rem);
  }

  .about-portrait {
    height: min(60vh, 32rem);
  }

  .about-identity h2 {
    font-size: clamp(3.25rem, 5.2vw, 5.25rem);
  }

  .about-identity-role {
    margin-top: 0.55rem;
    font-size: clamp(0.65rem, 0.68vw, 0.85rem);
  }

  .about-facts {
    margin-top: 0.8rem;
  }

  .about-formation,
  .about-location {
    min-height: 5rem;
    padding: 0.8rem;
  }

  .about-formation h3 {
    margin-top: 0.3rem;
    font-size: clamp(0.85rem, 0.9vw, 1.05rem);
  }

  .about-identity-text {
    margin-top: 0.75rem;
    font-size: clamp(0.78rem, 0.7vw, 0.9rem);
    line-height: 1.5;
  }

  .about-identity-link {
    min-height: 2.65rem;
    margin-top: 0.75rem;
  }

  .about-makingof {
    margin-top: 0.75rem;
  }

  .about-makingof-label {
    margin-bottom: 0.4rem;
  }

  .contact-container {
    column-gap: clamp(2rem, 3vw, 4rem);
  }

  .contact-title {
    font-size: clamp(3rem, 4.7vw, 5rem);
  }

  .contact-accent {
    margin-top: 1rem;
  }

  .contact-description {
    margin-top: 0.9rem;
    line-height: 1.55;
  }

  .contact-socials,
  .contact-legal {
    margin-top: 1rem;
  }

  .contact-form-wrapper {
    padding: clamp(1rem, 1.5vw, 1.5rem);
  }

  .contact-form-row {
    gap: 0.8rem;
  }

  .contact-field {
    gap: 0.2rem;
  }

  .contact-field input,
  .contact-field textarea {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .contact-field textarea {
    min-height: 68px;
    max-height: 96px;
  }

  .contact-field .field-error {
    min-height: 0.7rem;
    margin-bottom: 0.2rem;
  }

  .contact-status {
    margin-top: 0.35rem;
  }
}

@media (min-width: 1024px) and (max-height: 850px) {
  .projects-section,
  .about-section,
  .contact-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .project-nav {
    min-height: 58px;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .projects-container,
  .about-profile-layout {
    scale: 0.9;
  }

  .about-portrait {
    height: min(56vh, 27rem);
  }

  .about-makingof-grid figure {
    aspect-ratio: 2.15 / 1;
  }

  .contact-field textarea {
    min-height: 54px;
    max-height: 72px;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  .projects-container {
    scale: 0.88;
    translate: 0 1.25rem;
  }

  .about-profile-layout {
    scale: 0.88;
  }


}

/* Le portrait suit exactement la hauteur du contenu de profil sur desktop. */
@media (min-width: 1024px) {
  .about-profile-layout {
    align-items: stretch;
  }

  .about-portrait {
    align-self: stretch;
    height: auto;
  }

  .about-portrait img {
    position: absolute;
    inset: 0;
  }

  .about-identity {
    align-self: center;
  }
}

/* Le captcha et le bouton ne tiennent pas côte à côte sur les petits desktops. */
@media (min-width: 1024px) and (max-width: 1399px) {
  .contact-submit-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact-submit {
    align-self: flex-start;
    width: min(100%, 270px);
    min-width: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop peu haut : le contenu reste entre le header et le footer. */
@media (min-width: 1024px) and (max-width: 1399px) and (max-height: 700px) {
  .projects-section,
  .about-section,
  .contact-section {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .project-nav {
    min-height: 58px;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .project-nav[aria-expanded="true"] {
    padding-top: 0.85rem;
    padding-bottom: 0.45rem;
  }

  .project-nav[aria-expanded="true"] .nav-title {
    font-size: 1.35rem;
  }

  .project-details-body {
    padding-bottom: 0.65rem;
  }

  .project-meta {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
  }

  .project-description {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .project-discover {
    min-height: 36px;
  }

  .about-profile-layout {
    grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
    gap: 2rem;
  }

  .about-portrait {
    height: auto;
  }

  .about-identity h2 {
    font-size: clamp(3rem, 5vw, 3.5rem);
  }

  .about-identity-role {
    margin-top: 0.45rem;
    font-size: 0.65rem;
  }

  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.65rem;
  }

  .about-formation,
  .about-location {
    min-height: 4.75rem;
    padding: 0.7rem;
  }

  .about-formation h3 {
    margin-top: 0.3rem;
    font-size: 0.84rem;
  }

  .about-formation p,
  .about-location strong {
    font-size: 0.56rem;
  }

  .about-identity-text {
    margin-top: 0.65rem;
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .about-identity-link {
    min-height: 2.5rem;
    margin-top: 0.65rem;
  }

  .about-makingof {
    margin-top: 0.65rem;
  }

  .about-makingof-label {
    margin-bottom: 0.35rem;
  }

  .contact-form-wrapper {
    padding: 0.75rem;
  }

  .contact-field {
    gap: 0.2rem;
  }

  .contact-field input,
  .contact-field textarea {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .contact-field textarea {
    min-height: 52px;
    max-height: 72px;
  }

  .contact-field .field-error {
    height: 1rem;
    min-height: 1rem;
    margin-bottom: 0;
    overflow: hidden;
    font-size: 0.56rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-submit-row {
    align-items: center;
    flex-direction: row;
    gap: 0.6rem;
  }

  .contact-submit {
    align-self: center;
    flex: 1 1 auto;
    width: auto;
    min-height: 32px;
    padding: 6px 8px;
    gap: 0.35rem;
    font-size: 0.53rem;
    letter-spacing: 0.06em;
  }

  .contact-submit > span:first-child {
    white-space: nowrap;
  }

  .contact-status {
    margin-top: 0.35rem;
  }
}

/* -------------------- Responsive vertical (mobile et tablette) -------------------- */

/*
 * Le layout historique reste strictement inchangé à partir de 1024 px.
 * En dessous, la page retrouve un flux vertical natif : pas de translation
 * horizontale, pas de molette capturée et pas de flèches latérales.
 */
@media (max-width: 1023px) {
  :root {
    --index-gutter: 0.875rem;
    --index-section-space: 4rem;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: auto;
  }

  html {
    scroll-behavior: smooth;
  }

  .horizontal-page {
    display: block;
    width: 100%;
    height: auto;
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .horizontal-page > section,
  .section1,
  .stats-bar,
  .projects-section,
  .about-section,
  .news-section,
  .contact-section {
    box-sizing: border-box;
    flex: none;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    scroll-margin-top: 5rem;
  }

  /* Relief entre les sections, identique aux transitions du Vidéo Club. */
  .horizontal-page > section {
    position: relative;
    isolation: isolate;
    margin-top: -1px;
    border-top: 1px solid color-mix(in srgb, var(--moon-gray) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--moon-gray) 10%, transparent);
    box-shadow:
      0 -22px 34px rgba(0, 0, 0, 0.72),
      0 22px 34px rgba(0, 0, 0, 0.68);
  }

  .horizontal-page > section:nth-child(odd) {
    z-index: 4;
  }

  .horizontal-page > section:nth-child(even) {
    z-index: 1;
  }

  .section-arrow {
    display: none !important;
  }

  .section1 {
    min-height: 100svh;
    align-items: center;
  }

  .section1-overlay {
    background:
      linear-gradient(180deg, rgba(5, 5, 8, 0.2) 0%, rgba(5, 5, 8, 0.58) 42%, rgba(5, 5, 8, 0.94) 100%),
      linear-gradient(90deg, rgba(5, 5, 8, 0.6), rgba(5, 5, 8, 0.16));
  }

  .section1-bg {
    object-position: center;
  }

  .section1-content {
    height: auto;
    min-height: 100svh;
    padding: 6.5rem var(--index-gutter) 5rem;
    align-items: center;
  }

  .hero-main {
    width: 100%;
    max-width: 42rem;
  }

  .hero-role {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .hero-role > span {
    flex: 0 0 1.5rem;
    margin-top: 0.42rem;
  }

  .role {
    font-size: 0.58rem;
    line-height: 1.65;
    letter-spacing: 0.14em;
  }

  .section1 h1 {
    font-size: clamp(2.6rem, 13vw, 4.25rem);
    line-height: 0.9;
    white-space: normal;
  }

  .hero-accent {
    width: min(9rem, 52vw);
    margin: 1.15rem 0 1.25rem;
  }

  .catchphrase {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .description {
    max-width: 35rem;
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 24rem;
    margin-top: 1.75rem;
  }

  .btn {
    width: 100%;
    min-height: 46px;
  }

  .stats-bar,
  .projects-section,
  .about-section,
  .news-section,
  .contact-section {
    padding: var(--index-section-space) var(--index-gutter) calc(var(--index-section-space) + 2.5rem);
    overflow: hidden;
  }

  .stats-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .stats-heading {
    padding-left: 1rem;
  }

  .stats-heading h2 {
    font-size: clamp(2.8rem, 15vw, 4.75rem);
  }

  .stats-heading p {
    max-width: 32rem;
    font-size: 0.86rem;
    visibility: visible;
  }

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

  .stat-item {
    min-height: 9.25rem;
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .stat-line {
    right: 0.75rem;
    bottom: 1rem;
    width: 1.5rem;
  }

  .projects-container {
    display: block;
  }

  .project-visual-wrapper {
    display: none;
  }

  .projects-navigation {
    display: block;
  }

  .projects-bg-number {
    display: none;
  }

  .projects-mobile-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .projects-mobile-heading h2 {
    margin: 0;
    font-size: clamp(2.8rem, 15vw, 4.75rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.06em;
    text-transform: uppercase;
  }

  .projects-mobile-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    color: var(--moon-gray);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  .projects-mobile-counter strong {
    color: var(--cosmic-cyan);
    font-size: 1rem;
    font-weight: 600;
  }

  .project-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid color-mix(in srgb, var(--moon-gray) 22%, transparent);
  }

  .project-entry:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--moon-gray) 22%, transparent);
  }

  .project-entry.is-active {
    border-top-color: var(--project-color);
  }

  .project-entry-header {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  .project-nav {
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 1.2rem 0;
  }

  .project-nav::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.2rem;
    border-right: 1px solid var(--project-color);
    border-bottom: 1px solid var(--project-color);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .project-nav[aria-expanded="true"] {
    padding-top: 1.2rem;
    padding-bottom: 1rem;
  }

  .project-nav[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .project-details {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    transition:
      grid-template-rows 0.62s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease;
  }

  .project-entry.is-active .project-details {
    transition:
      grid-template-rows 0.62s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.38s ease 0.06s;
  }

  .project-details-content {
    opacity: 0;
    transform: translateY(-0.75rem);
    transition:
      opacity 0.28s ease,
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .project-entry.is-active .project-details-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.08s;
  }

  .project-mobile-visual {
    display: block;
    width: 100%;
    margin: 0 0 1.25rem;
    aspect-ratio: 16 / 9;
    border-bottom: 2px solid var(--project-color);
    background: var(--asteroid-gray);
  }

  .project-mobile-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .project-details-body {
    padding: 0 0 0.5rem 2.5rem;
  }

  .project-meta {
    color: var(--project-color);
    font-size: 0.65rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .project-description {
    color: var(--moon-gray);
    font-size: 0.76rem;
    line-height: 1.65;
  }

  .project-discover {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    min-height: 0;
    max-height: 0;
    margin: 0 0 0 2.5rem;
    overflow: hidden;
    transition:
      max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.42s;
  }

  .project-discover[aria-hidden="false"] {
    max-height: 44px;
    margin-bottom: 1.25rem;
    transition-delay: 0.08s, 0.08s, 0.08s, 0.08s, 0s;
  }

  .projects-mobile-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    margin-top: 0.25rem;
    padding: 0.9rem 0;
    border-top: 1px solid color-mix(in srgb, var(--moon-gray) 24%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--moon-gray) 24%, transparent);
    color: var(--white-star);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .projects-mobile-all span:last-child {
    color: var(--nebula-pink);
    font-size: 1rem;
  }

  .about-profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .about-identity {
    display: contents;
  }

  .about-identity h2 {
    order: 1;
  }

  .about-identity-role {
    order: 2;
  }

  .about-portrait {
    order: 3;
    width: min(100%, 34rem);
    height: auto;
    margin-top: 2rem;
    aspect-ratio: 4 / 5;
  }

  .about-identity h2 {
    font-size: clamp(3.1rem, 15vw, 6rem);
    line-height: 0.88;
  }

  .about-identity-role {
    font-size: 0.68rem;
  }

  .about-facts {
    order: 4;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2.5rem;
  }

  .about-formation,
  .about-location {
    min-height: 6.5rem;
    padding: 1rem;
  }

  .about-identity-text {
    order: 5;
    font-size: 0.84rem;
  }

  .about-identity-link {
    order: 6;
    width: 100%;
    min-width: 0;
  }

  .about-makingof {
    order: 7;
  }

  .about-makingof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    height: auto;
  }

  .contact-form-wrapper {
    justify-self: stretch;
    max-width: none;
  }

  .contact-intro {
    display: contents;
  }

  .contact-title {
    order: 1;
    margin-left: 1rem;
    font-size: clamp(3rem, 15vw, 5.5rem);
  }

  .contact-accent {
    order: 2;
    margin-left: 1rem;
  }

  .contact-description {
    order: 3;
    margin-left: 1rem;
  }

  .contact-form-wrapper {
    order: 4;
    margin-top: 3rem;
    padding: 1rem;
  }

  .contact-socials {
    order: 5;
    width: 100%;
    max-width: none;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2rem;
  }

  .contact-socials a {
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--moon-gray) 30%, transparent);
    border-radius: 50%;
  }

  .contact-socials a::after,
  .contact-socials a > span {
    display: none;
  }

  .contact-social-icon {
    display: block;
  }

  .contact-legal {
    order: 6;
    align-items: center;
    width: 100%;
    margin-top: 1.25rem;
    text-align: center;
  }

  .contact-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .contact-submit-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-captcha {
    max-width: 100%;
    overflow-x: auto;
  }

  .contact-submit {
    align-self: flex-start;
    width: min(100%, 270px);
    min-width: 0;
    min-height: 40px;
  }

  /* Les animations horizontales ne doivent jamais masquer le contenu scrollé. */
  .stats-heading > *,
  .stat-item,
  .projects-navigation,
  .project-visual-wrapper,
  .about-portrait,
  .about-identity > *,
  .contact-bg-word,
  .contact-intro,
  .contact-form-wrapper,
  .contact-title,
  .contact-accent,
  .contact-description,
  .contact-socials,
  .contact-form,
  .contact-legal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* Très petit mobile — même seuil que video-club.php */
@media (min-width: 360px) and (max-width: 1023px) {
  :root {
    --index-gutter: 1rem;
    --index-section-space: 4.5rem;
  }
}

/* Mobile — même seuil que video-club.php */
@media (min-width: 480px) and (max-width: 1023px) {
  :root {
    --index-gutter: 1.25rem;
    --index-section-space: 5rem;
  }

  .buttons {
    flex-direction: row;
    max-width: 30rem;
  }

  .about-makingof-grid,
  .contact-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-row {
    gap: 1rem;
  }
}

/* Grand mobile — même seuil que video-club.php */
@media (min-width: 640px) and (max-width: 1023px) {
  :root {
    --index-gutter: 2rem;
    --index-section-space: 5.75rem;
  }

  .stats-content {
    gap: 3.5rem;
  }

  .stat-item {
    min-height: 11rem;
    padding: 1.75rem;
  }

  .stat-line {
    right: 1.75rem;
    bottom: 1.5rem;
  }

  .about-facts {
    grid-template-columns: minmax(0, 1.2fr) minmax(13rem, 0.8fr);
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* Tablette — même seuil que video-club.php */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --index-gutter: clamp(2.5rem, 4.7vw, 3rem);
    --index-section-space: clamp(6rem, 10vw, 6.75rem);
  }

  .section1-content {
    padding-top: 9rem;
    padding-bottom: 7rem;
  }

  .section1 h1 {
    font-size: clamp(4.4rem, 10vw, 6rem);
  }

  .stats-content {
    grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 2rem;
  }

  .stats-heading h2 {
    font-size: clamp(3rem, 7vw, 4rem);
  }

  .stat-item {
    min-height: 9.5rem;
    padding: 1.25rem;
  }

  .stat-number {
    font-size: clamp(2.6rem, 7vw, 4rem);
  }

  .projects-container {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .project-visual-wrapper {
    order: initial;
  }

  .about-profile-layout {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas:
      "title title"
      "role role"
      "portrait facts"
      "portrait link"
      "text text"
      "makingof makingof";
    align-items: start;
    column-gap: 2rem;
    row-gap: 0;
  }

  .about-portrait {
    position: relative;
    top: auto;
    grid-area: portrait;
    align-self: start;
    width: 100%;
    margin-top: 2rem;
  }

  .about-identity h2 {
    grid-area: title;
    font-size: clamp(3.6rem, 8.5vw, 5rem);
    white-space: nowrap;
  }

  .about-identity-role {
    grid-area: role;
  }

  .about-facts {
    grid-area: facts;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-top: 2rem;
  }

  .about-identity-text {
    grid-area: text;
    max-width: none;
    width: 100%;
    margin-top: 2rem;
  }

  .about-identity-link {
    grid-area: link;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    margin-top: 0.5rem;
  }

  .about-makingof {
    grid-area: makingof;
    margin-top: 2rem;
  }



  .contact-form-wrapper {
    padding: 2rem;
  }
}

