/* ==========================================================================
   Geoffrey Mahe · Portfolio
   ========================================================================== */

@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #deebff;
  --surface: #FFFFFF;
  --surface-2: #EEF2F9;
  --ink: #0D1526;
  --ink-2: #475269;
  --ink-3: #667089;
  --line: #E2E7F0;
  --accent: #2F5BFF;
  --accent-2: #1E45E6;
  --accent-soft: #E8EEFF;
  --ok: #16A34A;
  --danger: #D92D20;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .05);
  --shadow: 0 1px 2px rgba(13, 21, 38, .04), 0 12px 32px -16px rgba(13, 21, 38, .18);
  --shadow-lg: 0 2px 4px rgba(13, 21, 38, .04), 0 40px 80px -40px rgba(13, 21, 38, .35);

  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i:last-child { transform: translateX(2px); }
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(47, 91, 255, .7);
}
.btn--primary:hover { background: var(--accent-2); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: #C9D1DF; background: #fff; }

.btn--glass {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.btn--glass:hover { background: rgba(255, 255, 255, .13); }

.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(246, 248, 252, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__menu a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__menu a:not(.btn):hover { color: var(--ink); background: rgba(13, 21, 38, .04); }
.nav__menu a.is-active { color: var(--ink); font-weight: 500; }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open .nav__menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__menu a:not(.btn) { padding: 13px 16px; font-size: 17px; border-radius: 14px; }
  .nav__cta { margin: 8px 0 0; height: 50px; }
}

/* ---------- Accueil ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 104px));
  padding-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.hero__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hero__name { font-weight: 500; }
.hero__sep { width: 1px; height: 16px; background: var(--line); }

.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--ok);
  opacity: .25;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: .35; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(2.7rem, 8.2vw, 6.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.hero__title > span { display: block; }
.hero__accent { color: var(--accent); }

.hero__text {
  max-width: 600px;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 300;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 520px) {
  .hero__name, .hero__sep { display: none; }
  .hero__badge { gap: 10px; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Showreel ---------- */
.showreel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0D1526;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.showreel__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.showreel__bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 2.4vw, 24px);
  background: linear-gradient(to top, rgba(8, 12, 24, .55), rgba(8, 12, 24, 0));
  pointer-events: none;
}
.showreel__bar > * { pointer-events: auto; }
.showreel__label {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.showreel__controls { display: flex; gap: 8px; }

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .2s var(--ease);
}
.glass-btn:hover { background: rgba(255, 255, 255, .24); }
.glass-btn--icon { width: 42px; padding: 0; justify-content: center; }

.showreel__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: rgba(8, 12, 24, .25);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.showreel__play[hidden] { display: none; }
.showreel__frame.is-idle .showreel__bar { display: none; }
.showreel__playicon {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease);
}
.showreel__playicon .i { width: 38%; height: 38%; margin-left: 6%; }
.showreel__play:hover .showreel__playicon { transform: scale(1.06); }

@media (max-width: 560px) {
  .showreel__frame { border-radius: 20px; }
  .showreel__label { display: none; }
  .showreel__bar { justify-content: flex-end; padding: 10px; }
  .glass-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .glass-btn--icon { width: 36px; padding: 0; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(88px, 12vw, 144px); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__head h2, .about h2, .contact h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 16ch;
}
.section__lead {
  max-width: 380px;
  color: var(--ink-2);
  font-size: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
}
.eyebrow--light { color: rgba(255, 255, 255, .72); }
.eyebrow--light span { background: rgba(47, 91, 255, .22); color: #AFC2FF; }

/* ---------- Projets ---------- */
.group + .group { margin-top: clamp(56px, 7vw, 80px); }
.group__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.group__head h3 { font-size: 22px; letter-spacing: -0.025em; }
.group__sub { margin-left: auto; color: var(--ink-3); font-size: 15px; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.grid--h { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--v { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }

@media (max-width: 760px) {
  .grid--h { grid-template-columns: 1fr; }
  .grid--v { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group__sub { margin-left: 0; width: 100%; }
}

.vcard { display: block; color: inherit; }
.vcard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.vcard--v .vcard__media { aspect-ratio: 9 / 16; border-radius: 20px; }

.vcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.001);
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.vcard__media img.is-loaded { opacity: 1; }

.vcard__player {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.vcard__player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.02);
}
.vcard.is-previewing .vcard__player { opacity: 1; }

.vcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  transform: translate(-50%, -50%) scale(.85);
  opacity: 0;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.vcard__play .i { width: 22px; height: 22px; margin-left: 3px; }
.vcard--v .vcard__play { width: 52px; height: 52px; }

.vcard__chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 21, 38, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.vcard__chip .i { width: 14px; height: 14px; }

a.vcard:hover .vcard__media img,
a.vcard:focus-visible .vcard__media img { transform: scale(1.045); }
a.vcard:hover .vcard__play,
a.vcard:focus-visible .vcard__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
a.vcard:hover .vcard__chip,
a.vcard:focus-visible .vcard__chip { opacity: 1; transform: none; }
a.vcard.is-previewing .vcard__play { opacity: 0; }

/* Écrans tactiles : le bouton lecture reste visible */
@media (hover: none) {
  a.vcard .vcard__play { opacity: 1; transform: translate(-50%, -50%) scale(.8); }
}

.vcard__body { padding: 16px 4px 0; }
.vcard__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color .2s var(--ease);
}
a.vcard:hover .vcard__title { color: var(--accent); }
.vcard__desc { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.vcard--v .vcard__title { font-size: 16px; }
.vcard--v .vcard__desc { font-size: 14px; }
.vcard.is-empty .vcard__media img { filter: saturate(.85); }

.more { display: flex; justify-content: center; margin-top: 48px; }
.more[hidden] { display: none; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

.service {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.service__icon .i { width: 26px; height: 26px; }
.service h3 { font-size: 20px; letter-spacing: -0.025em; }
.service p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- À propos ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about__photo {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; }

.about h2 { max-width: 14ch; }
.about__text { margin-top: 28px; display: grid; gap: 16px; color: var(--ink-2); font-size: 17.5px; line-height: 1.7; }

.timeline { margin-top: 36px; border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline__year { color: var(--accent); font-weight: 500; font-size: 15px; }
.timeline__text { font-size: 16px; }

.tools { margin-top: 36px; }
.tools__label { color: var(--ink-3); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.tools__list { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}
.tool img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; max-width: 420px; }
}
@media (max-width: 480px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Avis ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; max-width: 640px; } }

.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.review__quote { width: 30px; height: 30px; color: var(--accent); stroke-width: 2; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); font-weight: 350; }
.review figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 600;
}
.review figcaption > span:last-child { display: grid; gap: 2px; }
.review__name { font-weight: 500; font-size: 16px; line-height: 1.3; }
.review__meta { color: var(--ink-3); font-size: 14px; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(28px, 6vw, 72px);
  border-radius: 36px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  left: -220px;
  bottom: -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 91, 255, .45), rgba(47, 91, 255, 0));
}
.contact h2 { color: #fff; max-width: 15ch; }
.contact h2 span { display: block; }
.contact__lead { margin-top: 20px; color: rgba(255, 255, 255, .72); font-size: 17px; max-width: 420px; }

.contact__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.contact__list { margin-top: 36px; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .85); font-size: 16px; }
.contact__list .i { color: #8FA8FF; }
.contact__list a { overflow-wrap: anywhere; transition: color .2s var(--ease); }
.contact__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: 15px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.social .i { width: 15px; height: 15px; }
.social:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }

.form {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
}
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 16px;
  font-weight: 350;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8C95A8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 91, 255, .14);
}
.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--ink-2);
  border-bottom: 1.8px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { padding-right: 44px; cursor: pointer; }

.field__error { display: none; margin-top: 6px; color: var(--danger); font-size: 13.5px; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form .btn { margin-top: 4px; height: 54px; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form__status { min-height: 0; font-size: 14.5px; color: var(--ink-2); }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--danger); }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; border-radius: 28px; }
}
@media (max-width: 520px) {
  .contact { padding: 28px 20px 20px; }
  .contact__buttons .btn { width: 100%; }
  .contact__list li { font-size: 15px; }
  .form { padding: 20px 16px; }
  .showreel__playicon { width: 64px; height: 64px; }
}

/* ---------- Pied de page ---------- */
.footer { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
  color: var(--ink-3);
  font-size: 14.5px;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover, .link-btn:hover { color: var(--ink); }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }

/* ---------- Mentions légales ---------- */
.legal {
  width: min(640px, calc(100% - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.legal::backdrop { background: rgba(13, 21, 38, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.legal__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.legal__head h2 { font-size: 22px; }
.legal__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.legal__body { padding: 8px 26px 28px; font-size: 15px; color: var(--ink-2); }
.legal__body h3 { margin: 22px 0 6px; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.legal__body p + p { margin-top: 6px; }
.legal__body a { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Message d'erreur de contenu.js ---------- */
.config-error {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 720px;
  margin-inline: auto;
  padding: 16px 20px;
  border-radius: 16px;
  background: #FFF4F2;
  border: 1px solid #F6C9C3;
  color: #7A1C12;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Apparitions au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { --delay: .08s; }
.hero .reveal:nth-child(3) { --delay: .16s; }
.hero .reveal:nth-child(4) { --delay: .24s; }
.showreel.reveal { --delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { transform: none; }
}
