/* Okazo Agency — V5 : la direction de la V4 (couleurs de la marque, grand titre), avec plus de mouvement */

@font-face { font-family: Syne; src: url('fonts/syne-extra-bold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: Syne; src: url('fonts/syne-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Host; src: url('fonts/host-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Host; src: url('fonts/host-medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Instrument; src: url('fonts/instrument-italic.ttf') format('truetype'); font-style: italic; font-display: swap; }

:root {
  --blue: #c3daee;
  --navy: #1f2a4a;
  --yellow: #f4e4a6;
  --paper: #f9f9f6;
  --line: rgba(31, 42, 74, 0.22);
  --line-light: rgba(195, 218, 238, 0.32);

  --sans: Host, Arial, sans-serif;
  --display: Syne, Arial, sans-serif;
  --serif: Instrument, "Times New Roman", serif;

  --gutter: clamp(20px, 4.2vw, 80px);
  --section: clamp(64px, 8.5vw, 130px);
  --wide: 1360px;
  --top: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }

body {
  margin: 0;
  background: var(--blue);
  color: var(--navy);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.075em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; text-align: inherit; }
img, video { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--navy); color: var(--yellow); }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; background: var(--yellow); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Petites légendes en capitales */
.label { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.07em; text-transform: uppercase; }

/* Boutons et liens */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--yellow); color: var(--navy); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--paper); border-color: var(--paper); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); }
.link { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 500; transition: opacity 0.2s ease; }
.link:hover { opacity: 0.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* En-tête */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--top);
  padding: 0 var(--gutter);
  background: var(--navy);
  color: var(--paper);
}
.brand { display: block; flex-shrink: 0; width: 112px; height: 68px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.top__nav { display: flex; gap: clamp(18px, 2.6vw, 38px); margin-left: auto; font-size: 14px; }
.top__nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.top__nav a:hover { color: var(--yellow); border-color: currentColor; }
.top__cta { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* Accueil */
.hero { padding: 26px var(--gutter) clamp(48px, 6vw, 88px); overflow: hidden; }
.hero__meta { display: flex; justify-content: space-between; gap: 20px; }
.hero__title {
  margin-top: clamp(14px, 2vw, 30px);
  font-size: min(calc((100vw - 2 * var(--gutter)) / 7.15), 300px);
  line-height: 0.95;
  letter-spacing: -0.085em;
  white-space: nowrap;
  text-align: center;
}
.hero__title span { display: inline-block; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__title span:nth-child(2) { animation-delay: 0.08s; }
.hero__title span:nth-child(3) { animation-delay: 0.16s; }

.strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 26px);
  max-width: 1180px;
  margin: calc(-1 * clamp(8px, 2.2vw, 40px)) auto 0;
  padding-bottom: 40px;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: rotate 0.4s ease, scale 0.4s ease;
}
.tile:nth-child(1) { rotate: -3deg; translate: 0 26px; animation-delay: 0.2s; }
.tile:nth-child(2) { rotate: 2deg; translate: 0 -6px; animation-delay: 0.28s; }
.tile:nth-child(3) { rotate: -1deg; translate: 0 40px; animation-delay: 0.36s; }
.tile:nth-child(4) { rotate: 2.5deg; translate: 0 0; animation-delay: 0.44s; }
.tile:nth-child(5) { rotate: -2deg; translate: 0 30px; animation-delay: 0.52s; }
.tile:hover, .tile:focus-visible { rotate: 0deg; scale: 1.04; z-index: 2; }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(16, 23, 43, 0.72)); pointer-events: none; }
.tile__name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-size: 14px; font-weight: 500; line-height: 1.3; }

@keyframes rise {
  from { opacity: 0; translate: 0 70px; }
}

.hero__base {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px 8%;
  align-items: end;
  max-width: var(--wide);
  margin: clamp(36px, 4.5vw, 64px) auto 0;
}
.hero__pitch { font: 700 clamp(34px, 4.4vw, 72px) / 1.02 var(--display); letter-spacing: -0.065em; }
.hero__side p { max-width: 30em; margin-bottom: 26px; }

/* Bandeau défilant */
.ticker { overflow: hidden; padding: 18px 0; background: var(--navy); color: var(--yellow); }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker p { display: flex; align-items: center; gap: 0.7em; padding-right: 0.7em; font: 700 clamp(24px, 3vw, 44px) / 1.2 var(--display); letter-spacing: -0.06em; white-space: nowrap; }
.ticker i { width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* En-têtes de section */
.section-head { margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head h2 { margin-top: 12px; font-size: clamp(44px, 6.4vw, 112px); line-height: 1.02; }

/* L'agence */
.agency {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px 8%;
  align-items: end;
  padding: var(--section) var(--gutter);
  background: var(--paper);
}
.agency h2 { margin-top: 22px; font-size: clamp(42px, 5.6vw, 100px); font-weight: 700; line-height: 1.03; letter-spacing: -0.068em; }
.agency h2 span { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); white-space: nowrap; }
.cases li { padding: 18px 0; border-top: 1px solid var(--line); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; }
.cases li:last-child { border-bottom: 1px solid var(--line); }
.cases em { font-family: var(--serif); font-size: 1.28em; line-height: 1; }
.agency__note { margin-top: 26px; font-weight: 500; }

/* Un film en grand */
.feature { position: relative; background: var(--navy); color: #fff; }
.feature video { width: 100%; height: min(56.25vw, 86vh); object-fit: cover; }
.feature::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(16, 23, 43, 0.78)); pointer-events: none; }
.feature__info {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 3.4vw, 52px);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.feature__name { margin-top: 6px; font: 800 clamp(40px, 7vw, 124px) / 1 var(--display); letter-spacing: -0.075em; }

/* La méthode */
.method { padding: var(--section) var(--gutter); }
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 20px 4%;
  align-items: start;
  padding: clamp(26px, 3vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { padding-top: 0.6em; }
.step h3 { font-size: clamp(38px, 4.3vw, 76px); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--navy); font-size: 13px; line-height: 1.4; }

/* Pourquoi nous */
.why { padding: var(--section) var(--gutter); background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.card { display: flex; flex-direction: column; min-height: clamp(240px, 24vw, 360px); padding: clamp(22px, 2.4vw, 36px); }
.card h3 { margin-top: auto; padding-top: 32px; font-size: clamp(30px, 3.2vw, 54px); font-weight: 700; line-height: 1.03; letter-spacing: -0.065em; }
.card p { margin-top: 14px; }
.card--yellow { background: var(--yellow); }
.card--blue { background: var(--blue); }
.card--navy { background: var(--navy); color: var(--paper); }
.card--navy h3 { color: var(--yellow); }

/* Contact */
.contact { padding: clamp(56px, 6.5vw, 100px) var(--gutter); background: var(--yellow); overflow: hidden; }
.contact h2 { margin: 16px 0 clamp(26px, 3.4vw, 48px); font-size: min(calc((100vw - 2 * var(--gutter)) / 7.15), 300px); letter-spacing: -0.085em; white-space: nowrap; }
.contact__bottom { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.contact .btn:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.contact .btn--ghost:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* Pied de page */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  padding: 26px var(--gutter);
  background: var(--navy);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.55;
}
.brand--large { width: 150px; height: 92px; }
.footer .link { font-size: 14px; }

/* Visionneuse */
.viewer { width: min(1000px, 94vw); max-height: 94dvh; padding: 22px; border: 0; background: var(--navy); color: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.viewer::backdrop { background: rgba(17, 24, 43, 0.9); }
.viewer__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.viewer__head .label { color: var(--blue); }
.viewer__head h2 { margin-top: 4px; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -0.05em; }
.viewer__close { padding: 10px 16px; border: 1px solid var(--line-light); font-size: 14px; transition: background-color 0.2s ease, color 0.2s ease; }
.viewer__close:hover { background: var(--blue); color: var(--navy); }
.viewer__stage { height: min(64dvh, 660px); min-height: 200px; background: #11182b; }
.viewer__stage video { width: 100%; height: 100%; object-fit: contain; }
.viewer__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.viewer__foot .label { color: var(--blue); text-align: center; }
.viewer__foot button { padding: 10px 0; border-bottom: 1px solid currentColor; font-size: 14px; }

/* Apparition au défilement (seulement si le JS est actif) */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity 0.8s ease, translate 0.8s ease; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Tablette */
@media (max-width: 1000px) {
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .agency { grid-template-columns: 1fr; align-items: start; }
  .step { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); }
  .step .chips { grid-column: 2 / -1; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { padding-top: 48px; }
}

/* Mobile : les films défilent au doigt */
@media (max-width: 700px) {
  :root { --top: 68px; }
  body { font-size: 16px; }
  .brand { width: 100px; height: 61px; }
  .top { gap: 16px; }
  .hero__meta p:first-child { display: none; }
  .strip {
    display: flex;
    gap: 12px;
    margin: 18px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 58vw; max-width: 300px; scroll-snap-align: start; }
  .tile:nth-child(n) { rotate: 0deg; translate: 0 0; }
  .tile:hover, .tile:focus-visible { scale: 1; }
  .hero__base { grid-template-columns: 1fr; margin-top: 30px; }
  .hero__pitch { font-size: 11vw; }
  .actions .btn { width: 100%; }
  .section-head h2 { font-size: 12vw; }
  .agency h2 { font-size: 11.6vw; }
  .feature video { height: 118vw; }
  .feature__info { flex-direction: column; align-items: flex-start; }
  .feature__name { font-size: 13vw; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step .chips { grid-column: auto; }
  .step__num { padding-top: 0; }
  .step h3 { font-size: 13vw; }
  .contact__bottom { display: block; }
  .contact__bottom .actions { margin-top: 24px; }
  .footer { display: grid; }
  .viewer { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
