/* Picaza — studio site */
:root {
  --ink: #10131a;
  --ink-2: #161b24;
  --fog: #e8e4dc;
  --muted: #9a958c;
  --line: rgba(232, 228, 220, 0.12);
  --accent: #c8f06c;
  --accent-2: #6ec8c0;
  --warm: #f0a56c;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Syne", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--ink);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fog);
  background: transparent;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: #0e1218;
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -5%, rgba(110, 200, 192, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 45% at 92% 5%, rgba(200, 240, 108, 0.1), transparent 55%),
    radial-gradient(ellipse 80% 50% at 70% 105%, rgba(240, 165, 108, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 45%, rgba(22, 28, 38, 0.9), transparent 70%),
    linear-gradient(165deg, #12171f 0%, #0e1218 42%, #141a22 100%);
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Nav — fond edge-to-edge */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(14, 18, 24, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(14, 18, 24, 0.9); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 0.85rem 0;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--fog); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111 !important;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.nav-cta:hover { filter: brightness(1.05); }
.nav-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}
.lang-wrap,
.menu-wrap {
  position: relative;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--fog);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
.icon-btn:hover { color: var(--accent); }
.menu-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}
.burger-icon {
  display: block;
  width: 20px;
  height: 14px;
  color: inherit;
  pointer-events: none;
}

/* Menus volet (langue + sandwich) — alignés à droite */
.sheet-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 65;
  pointer-events: none;
  visibility: hidden;
}
.sheet-menu.is-open,
.sheet-menu.is-closing {
  visibility: visible;
  pointer-events: auto;
}
.sheet-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 0.35rem 0 1.25rem;
}
.sheet-link,
.sheet-btn {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fog);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: end;
  cursor: pointer;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transform: translateY(-0.35rem);
  opacity: 0;
  will-change: clip-path, transform, opacity;
}
.sheet-link:hover,
.sheet-btn:hover {
  color: var(--accent);
  background: transparent;
}
.sheet-menu.is-open .sheet-link,
.sheet-menu.is-open .sheet-btn {
  animation: shutterDown 0.48s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.09s);
}
.sheet-menu.is-closing .sheet-link,
.sheet-menu.is-closing .sheet-btn {
  animation: shutterUp 0.32s var(--ease) forwards;
  animation-delay: calc((var(--n, 3) - var(--i, 0)) * 0.06s);
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: none;
}
#sheet-menu .sheet-rail { --n: 3; }
@keyframes shutterDown {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-0.45rem);
    opacity: 0;
  }
  35% { opacity: 1; }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes shutterUp {
  0% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-0.35rem);
    opacity: 0;
  }
}
html[dir="rtl"] .sheet-rail { align-items: flex-start; }
html[dir="rtl"] .sheet-link,
html[dir="rtl"] .sheet-btn { text-align: start; }

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.modal-card {
  position: relative;
  width: min(100%, 28rem);
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: #14171e;
  padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.modal-card h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.35rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--fog);
  padding: 0.75rem 0.85rem;
  font: inherit;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  resize: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a958c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-inline-end: 2.2rem;
}
.field select option {
  background: #14171e;
  color: var(--fog);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 1px solid rgba(200, 240, 108, 0.45);
  border-color: rgba(200, 240, 108, 0.35);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

#apps[hidden] { display: none !important; }
#apps.is-visible { display: block; }

.app-hero .meta {
  color: var(--muted);
  max-width: 40rem;
  margin: 0.35rem 0 1.1rem;
  line-height: 1.55;
}

/* Hero — showcase tournant puis marque */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.25rem 0 3.5rem;
  overflow: hidden;
}
.hero-layout {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  flex: 1;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}
.hero-showcase {
  display: grid;
  width: 100%;
}
.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s var(--ease), visibility 0.85s var(--ease);
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.hero-slide-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.hero-slide-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.hero-slide-name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}
.hero-slide-summary {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.45;
  max-width: 28rem;
}
.hero-slide-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
}
.hero-slide-shot {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 16 / 10;
  width: 100%;
}
.hero-slide-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-slide-shot.is-portrait {
  aspect-ratio: 3 / 4;
}
.hero-slide-shots:has(.is-portrait) {
  max-width: 22rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-slide-shot.is-icon-only {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.hero-slide-shots:has(.is-icon-only) {
  max-width: 16rem;
}
.hero-slide-shot.is-icon-only img {
  width: 58%;
  height: auto;
  object-fit: contain;
  border-radius: 22%;
}
.hero-copy {
  max-width: 38rem;
  padding-bottom: 0.25rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 100%;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s var(--ease) 0.1s forwards;
}
.hero-brand em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1s var(--ease) 0.28s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s var(--ease) 0.42s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--fog);
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { border-color: rgba(232, 228, 220, 0.35); }

@media (max-width: 800px) {
  .hero { min-height: auto; padding-top: 1rem; padding-bottom: 3rem; }
  .hero-layout { gap: 2.75rem; justify-content: flex-start; }
  .hero-slide { gap: 1.5rem; }
  .hero-slide-shots { gap: 0.65rem; max-width: 100%; }
  .hero-slide-shots:has(.is-portrait) { max-width: 100%; }
  .hero-slide-shots:has(.is-icon-only) { max-width: 12rem; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Sections */
section { padding: 5rem 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.section-note { color: var(--muted); max-width: 28rem; margin: 0; }

/* Apps grid — interactive tiles (allowed) */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.app-tile {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  min-height: 240px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.app-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 240, 108, 0.35);
  background: linear-gradient(160deg, rgba(200, 240, 108, 0.08), rgba(255,255,255,0.02));
}
.app-tile.wide { grid-column: span 12; min-height: 280px; }
@media (max-width: 800px) {
  .app-tile, .app-tile.wide { grid-column: span 12; }
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* App detail */
.app-hero {
  padding: 3.5rem 0 1.5rem;
}
.app-hero-main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #16181f;
}
.app-detail {
  padding: 1rem 0 4rem;
}
.feature-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
}
.gallery {
  padding: 1rem 0 2rem;
}
.shot-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 320px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot {
  margin: 0;
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #12141a;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
}
.shot.placeholder {
  padding: 2rem;
  text-align: center;
}
.shot.placeholder img {
  width: 120px;
  margin: 0 auto 1rem;
  border-radius: 28px;
}
.shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.chip {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip.live { color: var(--accent); border-color: rgba(200, 240, 108, 0.35); }
.chip.soon { color: var(--warm); border-color: rgba(240, 165, 108, 0.35); }
.app-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  margin: 0 0 0.35rem;
}
.app-desc { margin: 0; color: var(--muted); max-width: 36rem; }
.app-glow {
  position: absolute;
  inset: auto 0 -35% auto;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: inherit;
  opacity: 0.35;
  pointer-events: none;
  /* pas de filter:blur — évite le débordement horizontal Safari */
}

/* Legal / support simple pages */
.page {
  padding: 4rem 0 6rem;
}
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page .meta { color: var(--muted); margin-bottom: 2rem; }
.prose {
  max-width: 42rem;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}
.prose p, .prose li { color: #cfcac1; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
}
.langs a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.langs a.active, .langs a:hover {
  color: var(--fog);
  border-color: rgba(200, 240, 108, 0.4);
}

/* Contact strip */
.contact {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact a.mail, .contact button.mail {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: start;
}
.footer-links .linkish,
button.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.footer-links .linkish:hover { color: var(--fog); }

footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
