/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Alaska Beta';
  src: url('fonts/alaskabeta-regular-webfont.woff2') format('woff2'),
       url('fonts/alaskabeta-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alaska Beta';
  src: url('fonts/alaskabeta-bold-webfont.woff2') format('woff2'),
       url('fonts/alaskabeta-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Réglages ---------- */

:root {
  /* >>>>>> TAILLE DE LA VIDÉO SUR MOBILE : c'est ici, et nulle part ailleurs <<<<<<
     Le chiffre = le % de la hauteur d'écran occupé par la vidéo.
     La vidéo remplit toujours tout le bloc : il n'y a jamais de bande noire.

     80svh = grand bloc, mais vidéo très zoomée donc les côtés sont coupés
     50svh = compromis
     25svh = bande fine, image entière visible, texte le plus lisible

     Plus tu baisses le chiffre, plus on voit de la largeur de la vidéo. */
  --hero-height-mobile: 50svh;

  --blue: #0038ff;

  --nav-height: 4.5rem;
  /* Largeur max du contenu de la nav sur grand écran */
  --nav-max-width: 1120px;
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: 'Alaska Beta', Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: max(1.5rem, calc((100% - var(--nav-max-width)) / 2));
  background: #fff;
}

.navbar__logo img {
  height: 28px;
  width: auto;
}

.navbar__links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #0a0a0a;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.navbar__links a:hover,
.navbar__links a:focus-visible {
  border-color: #0a0a0a;
}

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

.hero {
  position: relative;
  width: 100%;
  height: var(--hero-height-mobile);
  overflow: hidden;
  background: #000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- CTA scroll ---------- */

.scroll-cta {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-left: -1.625rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

.scroll-cta svg {
  width: 1.5rem;
  height: 1.5rem;
}

.scroll-cta:hover,
.scroll-cta:focus-visible {
  background: #fff;
  color: var(--blue);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- Statement ---------- */

.statement {
  padding: 8rem 1.5rem;
  text-align: center;
  background: #0a0a0a;
}

.statement p {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.highlight {
  position: relative;
  display: inline-block;
  padding: 0 0.12em 5px;
  z-index: 0;
  transition: color 0.35s ease-in-out 0.15s;
}

.highlight::before {
  content: '';
  position: absolute;
  inset: 0.08em 0 0;
  z-index: -1;
  background: #c6ff3d;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s ease-in-out;
}

.highlight.is-visible {
  color: #0a0a0a;
}

.highlight.is-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

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

.about {
  padding: 12vh 1.5rem;
  background: #0a0a0a;
  color: #f5f5f5;
}

.about__inner {
  max-width: 40ch;
  margin: 0 auto;
  /* TAILLE DU TEXTE « À propos » : clamp(taille mobile, progression, taille max desktop) */
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  line-height: 1.45;
  text-align: left;
}

.about__title {
  margin: -150px 0 0.9em;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.about__inner p {
  margin: 0;
  font-weight: 400;
}

.accent {
  color: #c6ff3d;
}

/* Masqué uniquement si le JS a activé l'animation (jamais en reduced-motion) */
.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

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

.contact {
  padding: 6rem 1.5rem 8rem;
  background: var(--blue);
  color: #fff;
}

.contact__title {
  margin: 0 0 3rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  text-align: center;
}

.contact__grid {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.field select option {
  color: #0a0a0a;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.btn {
  align-self: flex-start;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: #fff;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.contact__info a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact__info a:hover,
.contact__info a:focus-visible {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background: #0a0a0a;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.6);
}

/* ---------- Layout: tablet and up ---------- */

@media (min-width: 768px) {
  .hero {
    height: calc(100svh - var(--nav-height));
  }

  .about {
    padding-block: 20vh;
  }

  .contact__grid {
    flex-direction: row;
    align-items: flex-start;
    max-width: 860px;
    gap: 4rem;
  }

  .contact__form {
    flex: 1.4;
  }

  .contact__info {
    flex: 1;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 3rem;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
  }
}

/* ---------- Accessibility ---------- */

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

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