/* ===== Croissant Vidéo — portfolio de Tom ===== */
@font-face {
  font-family: "Outfit";
  src: url("assets/outfit.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #08080b;
  --bg-2: #0f0f14;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f3f8;
  --muted: #a3a1b0;
  --accent: #5b3ff0;
  --accent-2: #8b6dff;
  --glow: rgba(110, 80, 255, 0.45);
  --radius: 18px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  border: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 30px -8px var(--glow);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: #6a50ff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 12px 40px -8px var(--glow); }
.btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; }
.btn--ghost:hover { background: var(--card-hover); }
.btn--pill { border-radius: 999px; padding: 8px 18px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(8, 8, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__brand:hover { color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 230px 0 110px; text-align: center; overflow: hidden; }
.hero__sky {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
          mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__aurora {
  position: absolute; left: 50%; top: -120px; width: 1100px; height: 480px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 40% 60%, rgba(140, 100, 255, .55), transparent),
    radial-gradient(closest-side at 65% 55%, rgba(40, 70, 220, .45), transparent);
  filter: blur(40px);
  animation: aurora 12s ease-in-out infinite alternate;
}
.hero__planet {
  position: absolute; left: 50%; top: 150px; width: 2400px; height: 2400px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #121218 0%, var(--bg) 40%);
  box-shadow: 0 -2px 0 rgba(255,255,255,.55), 0 -10px 40px rgba(170, 150, 255, .35), 0 -60px 160px rgba(110, 80, 255, .25);
}
@keyframes aurora { from { transform: translateX(-52%) scale(1); opacity: .9; } to { transform: translateX(-48%) scale(1.08); opacity: 1; } }

.hero__content { position: relative; }
.hero__id { display: inline-flex; align-items: center; gap: 28px; text-align: left; }
.hero__photo {
  width: 138px; height: 148px; object-fit: cover; border-radius: 36px;
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px -10px rgba(110, 80, 255, .5);
}
.hero__name { font-size: clamp(52px, 8vw, 76px); font-weight: 600; line-height: 1; margin: 0; letter-spacing: -.02em; }
.hero__role { margin: 10px 0 0; font-size: 20px; color: var(--muted); }
.hero__pitch { max-width: 560px; margin: 44px auto 30px; color: var(--muted); font-size: 18px; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__tools { margin-top: 50px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { font-size: 13px; color: var(--muted); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; overflow-x: clip; }
/* Fonds d'origine : map monde en traits, vagues, ruban */
.section--map::before,
.waves-wrap::before,
.section--ribbon::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-repeat: no-repeat;
}
.section--map::before {
  background-image: url("assets/bg-map.png");
  background-size: max(1300px, 100%) auto;
  background-position: center 40px;
  opacity: 1;
}
/* Un seul fond de vagues continu derrière la FAQ et le contact (pas de coupure entre les deux) */
.waves-wrap { position: relative; overflow-x: clip; }
.waves-wrap::before {
  background-image: url("assets/bg-waves.png");
  background-size: cover;
  background-position: center top;
  opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 85%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 85%, transparent);
}
.section--ribbon::before {
  background-image: url("assets/bg-ribbon.png");
  background-size: max(1300px, 100%) auto;
  background-position: center bottom;
  opacity: .6;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.section > .container { position: relative; z-index: 1; }
.section--glow::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(900px, 100%); height: 260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 80, 255, .28), transparent); pointer-events: none;
}
.section__head { text-align: center; margin-bottom: 60px; position: relative; }
.section__title { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.section__sub { color: var(--muted); margin: 14px auto 0; max-width: 520px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }

/* ---------- Vidéos ---------- */
.grid { display: grid; gap: 22px; position: relative; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.grid--vertical { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; transition: background .3s, border-color .3s, transform .3s;
}
.card:hover { background: var(--card-hover); border-color: rgba(255,255,255,.16); }

.video { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video--vertical { aspect-ratio: 9 / 16; }
.video__btn {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000;
}
.video__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; opacity: .88; }
.video__btn:hover img { transform: scale(1.04); opacity: 1; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 16, 40, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  transition: transform .25s ease, background .25s ease;
}
.video__play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.video__btn:hover .video__play { transform: translate(-50%, -50%) scale(1.1); background: var(--accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card__title { margin: 14px 4px 2px; font-size: 17px; font-weight: 500; }
.card__meta { margin: 0 4px 2px; font-size: 14px; color: var(--muted); }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px; justify-content: center; }
.client { display: flex; align-items: center; gap: 16px; padding: 22px; }
.client img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #111; }
.client__name { margin: 0; font-weight: 500; font-size: 18px; }
.client__type { margin: 0; color: var(--muted); font-size: 14px; }
.client a { transition: color .2s; }
.client a:hover { color: var(--accent-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: background .3s, border-color .3s; }
.faq__item[open] { background: var(--card-hover); border-color: rgba(255,255,255,.15); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__answer { padding: 0 22px 20px; color: var(--muted); }
.faq__answer p { margin: 0; }
.faq__aside { text-align: center; padding: 28px 24px; position: sticky; top: 100px; }
.faq__aside h3 { margin: 0 0 8px; font-size: 21px; font-weight: 500; }
.faq__aside p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { text-align: center; position: relative; }
.contact__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.contact__free { margin-top: 14px; color: var(--muted); font-size: 15px; }
.contact__free strong { color: var(--text); font-weight: 500; }
.calendly-box { margin: 44px auto 0; max-width: 1000px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.calendly-box iframe { display: block; width: 100%; height: 700px; border: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ---------- Pages légales ---------- */
.legal { padding: 140px 0 90px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 6px; letter-spacing: -.02em; }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 36px 0 10px; }
.legal p, .legal li { color: #cfcdd9; }
.legal a { color: var(--accent-2); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__aurora { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 8, 11, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open { background: rgba(8, 8, 11, .96); }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 215px 0 80px; }
  .hero__id { flex-direction: column; text-align: center; gap: 20px; }
  .hero__photo { width: 120px; height: 128px; border-radius: 30px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--vertical { grid-template-columns: repeat(3, 78%); justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: -20px; padding-inline: 20px; }
  .grid--vertical > * { scroll-snap-align: center; }
  .clients { grid-template-columns: 1fr; }
  .calendly-box iframe { height: 1000px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
