@charset "UTF-8";
/* ============================================================================
   PIXEL RIVIERA — studio de design graphique, Nice
   Le nom est le concept : tout est fait de blocs. Pixel art assumé, couleurs
   franches du Sud, mouvement qui répond au geste.
   Ordre : tokens · socle · curseur · nav · héro · sections · tuiles ·
           visionneuse · pied · responsive · accessibilité
   ========================================================================= */

/* ─── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #06162e;
  --bg2: #0b2246;
  --bg3: #0f5aa0;
  --ink: #f6f1e6;
  --muted: rgba(246, 241, 230, 0.66);
  --faint: rgba(246, 241, 230, 0.38);
  --coral: #ff6b4a;
  --orange: #ff9a3c;
  --sun: #ffd23f;
  --sea: #35c4e8;
  --sea2: #1e8fc9;
  --line: rgba(246, 241, 230, 0.18);

  --display: "Unbounded", "Arial Black", Impact, sans-serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* le pas du pixel : tout l'espacement en est un multiple */
  --u: 8px;
  --edge: clamp(20px, 4vw, 72px);
  --sect: clamp(72px, 12vh, 168px);

  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);

  --z-nav: 50;
  --z-menu: 60;
  --z-box: 70;
  --z-cursor: 100;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--u) * 10);
  -webkit-text-size-adjust: 100%;
}

html, body { margin: 0; background: var(--bg); color: var(--ink); }

body {
  font-family: var(--sans);
  font-size: clamp(16px, 0.95rem + 0.15vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

.display { font-family: var(--display); }

figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

/* le pixel art ne doit jamais être lissé : c'est tout le propos */
.px-img { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

::selection { background: var(--sun); color: var(--bg); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  padding: 14px 22px;
  background: var(--sun);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

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

/* ─── curseur ────────────────────────────────────────────────────────────── */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

  .cursor {
    display: block;
    position: fixed;
    left: 0; top: 0;
    width: 14px; height: 14px;
    background: var(--coral);
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.18s var(--ease), height 0.18s var(--ease), background-color 0.18s;
  }
  .cursor.is-big { width: 44px; height: 44px; background: var(--sun); }
  /* état « action » : le curseur porte un mot, il ne fait plus deviner */
  .cursor.is-label {
    width: 88px; height: 88px;
    background: var(--sun);
    mix-blend-mode: normal;
  }
  .cursor__txt {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bg);
    opacity: 0;
    transition: opacity 0.18s;
  }
  .cursor.is-label .cursor__txt { opacity: 1; }
}

/* ─── navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--u);
  padding: calc(var(--u) * 2.5) var(--edge);
  padding-top: max(calc(var(--u) * 2.5), env(safe-area-inset-top, 0px));
  mix-blend-mode: difference;
  transition: transform 0.4s var(--ease);
}
.nav.is-away { transform: translateY(-115%); }

.brand {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav__links { display: flex; gap: calc(var(--u) * 3.5); font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; padding: var(--u) 0; }
/* le soulignement est un bloc de 3px, pas un filet : on reste dans le pixel */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 3px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--u) * 14) var(--edge) calc(var(--edge) + env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu > nav { display: grid; align-content: center; min-height: 0; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--u) * 1.5); }
.menu__list a {
  font-family: var(--display);
  font-size: clamp(32px, 11vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: inline-block;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.45s var(--ease) calc(var(--i) * 0.06s), opacity 0.4s calc(var(--i) * 0.06s);
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu__list li:nth-child(3n + 1) a { color: var(--sun); }
.menu__list li:nth-child(3n + 2) a { color: var(--coral); }
.menu__list li:nth-child(3n) a { color: var(--sea); }
.menu__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--u);
  margin: 0;
  padding-top: calc(var(--u) * 2);
  border-top: 3px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ─── héro ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
#hero { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero__copy {
  position: absolute;
  left: var(--edge); right: var(--edge);
  bottom: max(calc(var(--u) * 5), env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: calc(var(--u) * 4);
  pointer-events: none;
}
.hero__copy p { margin: 0; }
.hero__tag {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 500;
  max-width: 32ch;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(6, 22, 46, 0.7);
}
.hero__hint {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.hero__hint i { display: block; width: 10px; height: 10px; background: var(--sun); animation: blink 1.6s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ─── sections ───────────────────────────────────────────────────────────── */
section { padding: var(--sect) var(--edge); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 calc(var(--u) * 3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--coral); flex: none; }

/* texte qui éclate puis se rassemble */
.burst { display: inline-block; }
.burst span { display: inline-block; white-space: pre; transition: transform 0.9s var(--ease), opacity 0.6s; }
.burst.is-scattered span { opacity: 0; }

.manifeste h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 68px);
  font-weight: 300;
  line-height: 1.14;
  max-width: 24ch;
  letter-spacing: -0.01em;
}
.manifeste h2 b { font-weight: 800; color: var(--sun); }
.manifeste__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: calc(var(--u) * 4);
  margin-top: calc(var(--u) * 5);
}
.manifeste__grid p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; }
.manifeste__grid p strong { color: var(--ink); font-weight: 600; }

h2.title {
  margin: 0 0 calc(var(--u) * 5);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
}

/* ─── tuiles ─────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--u) * 4);
}
/* une pièce sur cinq prend toute la largeur : le rythme d'une planche */
.tile:nth-child(5n + 1) { grid-column: 1 / -1; }

.tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg2);
  text-align: left;
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}
.tile__frame { position: relative; display: block; aspect-ratio: var(--ar, 4 / 3); overflow: hidden; }
.tile__img { width: 100%; height: 100%; object-fit: cover; }
.tile__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.tile__meta {
  position: absolute;
  left: calc(var(--u) * 3); right: calc(var(--u) * 3);
  bottom: calc(var(--u) * 2.5);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--u);
  font-size: 15px;
  text-shadow: 0 2px 10px rgba(6, 22, 46, 0.85);
  pointer-events: none;
}
.tile__meta strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.tile__meta em { font-style: normal; color: var(--muted); }
.tile__n {
  position: absolute;
  top: calc(var(--u) * 2); left: calc(var(--u) * 3);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  color: var(--sun);
  text-shadow: 0 2px 10px rgba(6, 22, 46, 0.85);
  pointer-events: none;
}

/* ─── archive ────────────────────────────────────────────────────────────── */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 22vw, 260px);
  gap: calc(var(--u) * 2.5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--u);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.strip > * { scroll-snap-align: start; }
.strip button { display: block; width: 100%; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip figcaption { padding-top: 10px; font-size: 13px; color: var(--muted); }

/* ─── services ───────────────────────────────────────────────────────────── */
.services { border-top: 3px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 4);
  padding: calc(var(--u) * 4) 0;
  border-bottom: 3px solid var(--line);
  align-items: baseline;
}
.row h3 { margin: 0; font-size: clamp(24px, 3.2vw, 52px); font-weight: 500; letter-spacing: -0.01em; }
.row h3 .burst span { transition: transform 0.5s var(--ease); }
.row p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; max-width: 44ch; }
.row:nth-child(4n + 1) h3 { color: var(--sun); }
.row:nth-child(4n + 2) h3 { color: var(--coral); }
.row:nth-child(4n + 3) h3 { color: var(--sea); }

/* ─── contact ────────────────────────────────────────────────────────────── */
.contact { padding-bottom: calc(var(--u) * 10); }
.contact h2 {
  font-size: clamp(42px, 8vw, 132px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 calc(var(--u) * 6);
  user-select: none;
}
.contact h2 .burst span { transition: transform 1.1s var(--ease), opacity 0.8s; }
.contact h2 .burst span:nth-child(3n) { color: var(--coral); }
.contact h2 .burst span:nth-child(5n) { color: var(--sea); }
.contact h2 .burst span:nth-child(7n) { color: var(--sun); }

.actions { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 2.5); align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  background: var(--sun);
  color: var(--bg);
  font-weight: 600;
  font-size: 17px;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--coral); color: var(--ink); }
.btn i { width: 10px; height: 10px; background: currentColor; flex: none; }
.mail { font-size: 17px; font-weight: 500; border-bottom: 3px solid var(--line); padding-bottom: 4px; transition: border-color 0.2s; }
.mail:hover { border-color: var(--sun); }
.note { margin: calc(var(--u) * 3) 0 0; font-size: 14px; color: var(--muted); }
.note b { color: var(--sea); font-weight: 600; }

/* ─── visionneuse ────────────────────────────────────────────────────────── */
.box {
  position: fixed;
  inset: 0;
  z-index: var(--z-box);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 2) var(--edge) calc(var(--u) * 2 + env(safe-area-inset-bottom, 0px));
  padding-top: max(calc(var(--u) * 2), env(safe-area-inset-top, 0px));
  background: rgba(6, 22, 46, 0.97);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.box.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.box__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--u);
  padding-bottom: calc(var(--u) * 1.5);
  border-bottom: 3px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.box__count { font-family: var(--display); font-weight: 500; color: var(--sun); margin: 0; }
.box__where { margin: 0; text-align: center; }

.box__stage { position: relative; min-height: 0; overflow: hidden; }
.box__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.box__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--u);
  align-items: end;
  padding-top: calc(var(--u) * 1.5);
  border-top: 3px solid var(--line);
}
.box__title { margin: 0 0 4px; font-family: var(--display); font-size: clamp(20px, 3.4vw, 38px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.box__meta { margin: 0; font-size: 14px; color: var(--muted); }
.box__nav { display: flex; gap: var(--u); }
.box__btn {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  background: var(--bg2);
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.box__btn:hover:not(:disabled) { background: var(--sun); color: var(--bg); }
.box__btn:disabled { opacity: 0.35; }
.box__btn svg { width: 18px; height: 18px; }

/* ─── pied ───────────────────────────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 4) var(--edge) calc(var(--u) * 4 + env(safe-area-inset-bottom, 0px));
  border-top: 3px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
footer .socials { display: flex; gap: calc(var(--u) * 3); }
footer .socials a { border-bottom: 3px solid transparent; padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
footer .socials a:hover { color: var(--ink); border-color: var(--coral); }

/* ─── révélation au défilement ───────────────────────────────────────────── */
/* On ne masque que si JavaScript est là pour révéler. `scripting` évite le
   script inline qui posait une classe — donc aucune entorse à la CSP, et zéro
   requête. Un navigateur qui ignore cette requête média affiche tout : la
   dégradation va dans le bon sens. */
@media (scripting: enabled) {
  .rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .rv.is-in { opacity: 1; transform: none; }
}

/* ─── responsive : des compositions pensées, pas un design rétréci ───────── */
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
  .grid { gap: calc(var(--u) * 3); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }

  .burger {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  /* quatre blocs qui deviennent une croix : le pixel jusque dans l'icône */
  .burger__sq { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
  .burger__sq i { display: block; width: 9px; height: 9px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }
  .burger[aria-expanded="true"] .burger__sq i:nth-child(2),
  .burger[aria-expanded="true"] .burger__sq i:nth-child(3) { opacity: 0; }
  .burger[aria-expanded="true"] .burger__sq i:nth-child(1) { transform: translate(6px, 6px); }
  .burger[aria-expanded="true"] .burger__sq i:nth-child(4) { transform: translate(-6px, -6px); }

  /* une colonne, et la pleine largeur perd son privilège */
  .grid { grid-template-columns: 1fr; }
  .tile:nth-child(5n + 1) { grid-column: auto; }

  /* le bas du héro s'empile : la phrase d'abord, l'indice ensuite */
  .hero__copy { flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 2); }
  .hero__tag { max-width: none; font-size: 17px; }

  .box__foot { grid-template-columns: 1fr; gap: calc(var(--u) * 2); }
  .box__nav { justify-content: space-between; }
  .box__btn { width: 48px; height: 48px; }
  .box__where { display: none; }
  .box__bar { grid-template-columns: auto auto; justify-content: space-between; }
}

@media (max-width: 460px) {
  footer { flex-direction: column; }
}

/* ─── accessibilité ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .burst span { transform: none !important; opacity: 1 !important; }
  .burst.is-scattered span { opacity: 1; }
  .rv { opacity: 1 !important; transform: none !important; }
  .tile { transform: none !important; }
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

@media (prefers-contrast: more) {
  :root { --muted: #f6f1e6; --line: rgba(246, 241, 230, 0.5); }
}

@media print {
  .nav, .menu, .cursor, .box, .hero__hint { display: none !important; }
  body { background: #fff; color: #000; }
}
