/* Page d'attente d'Obtura Studio : même univers que le site (mur blanc cassé, ombres de feuillage,
   lueur colorée, trait en dégradé, grand italique à empattements), avec très peu de texte.
   Les polices sont sur notre serveur : aucune requête vers Google ou un autre service. */

@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("polices/instrument-serif-italique.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("polices/inter-tight.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/jetbrains-mono.woff") format("woff"); }

:root {
  --wall: #e8e7e4; --ink: #141414; --muted: #4f4f4c; --line: rgba(20,20,20,.16);
  --c1: #2f45ff; --c2: #7a3cff; --c3: #ff4f8b; --c4: #ff8a3d; --c5: #22c1ff;
  --f: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: max(20px, 5vw);
  --ease-out: cubic-bezier(.16,1,.3,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--wall); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; color: var(--ink); font: 400 1rem/1.5 var(--f);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Le mur : la lumière à travers le feuillage, dessinée en petit dans un canvas puis agrandie */
.wall { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wall canvas { width: 100%; height: 100%; display: block; }

/* Le trait en dégradé, qui se dessine à l'arrivée et passe derrière le texte */
.ribbon { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.ribbon path { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* En-tête */
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--pad) 1rem; }
/* Le logo : la forme en dégradé, puis « Obtura » en italique à empattements et « Studio » plus petit, sur la même ligne de base */
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 2.1rem; height: auto; aspect-ratio: 81 / 76.5; flex: none; overflow: visible; }
.brand .word { display: inline-flex; align-items: baseline; gap: .4rem; }
.brand .b1 { font: italic 400 1.95rem/1 var(--serif); letter-spacing: -.01em; }
.brand .b2 { font: 400 .9rem/1 var(--f); letter-spacing: -.01em; }
@media (max-width: 600px) { .brand .mark { width: 1.8rem; } .brand .b1 { font-size: 1.7rem; } .brand .b2 { font-size: .82rem; } }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--ink); font: 400 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s, color .3s; }
.pill:hover { background: var(--ink); color: var(--wall); }

/* Le centre */
.stage { position: relative; z-index: 2; flex: 1; overflow: clip; display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 2rem var(--pad) 3rem; }
.aura { position: absolute; left: 50%; top: 46%; width: min(110vmin, 900px); aspect-ratio: 1.5; translate: -50% -50%; z-index: -1; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; }
.aura i:nth-child(1) { left: 4%; top: 14%; width: 52%; height: 70%; background: radial-gradient(closest-side, var(--c1), transparent); opacity: .5; animation: drift1 15s ease-in-out infinite alternate; }
.aura i:nth-child(2) { right: 2%; top: 8%; width: 48%; height: 64%; background: radial-gradient(closest-side, var(--c3), transparent); opacity: .42; animation: drift2 18s ease-in-out infinite alternate; }
.aura i:nth-child(3) { left: 30%; bottom: 0; width: 44%; height: 52%; background: radial-gradient(closest-side, var(--c4), transparent); opacity: .45; animation: drift3 13s ease-in-out infinite alternate; }
.aura i:nth-child(4) { left: 34%; top: 0; width: 34%; height: 46%; background: radial-gradient(closest-side, var(--c2), transparent); opacity: .4; animation: drift2 21s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12%, 10%) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-14%, 12%) scale(.9); } }
@keyframes drift3 { to { transform: translate(10%, -16%) scale(1.15); } }

/* Le texte garde un contour couleur du mur : le trait s'interrompt autour des lettres et tout reste lisible */
.halo { -webkit-text-stroke: 5px var(--wall); paint-order: stroke fill; }

.status { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem; padding: .45rem .95rem; border-radius: 999px;
  background: rgba(232,231,228,.78); border: 1px solid var(--line); font: 400 .75rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c3); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c3); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

h1 { margin: 0; font: italic 400 clamp(4.2rem, 21vw, 11.5rem)/.9 var(--serif); letter-spacing: -.015em; padding: 0 .06em .06em; }
h1 .l { display: inline-block; }

.lead { margin: 1.6rem auto 0; max-width: 27rem; font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.55; color: #2e2e2c; }

.actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 52px; padding: .55rem .65rem .55rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--ink); background: rgba(232,231,228,.82); font: 500 1rem var(--f); letter-spacing: -.01em; text-decoration: none;
  transition: background-color .3s, color .3s, transform .4s var(--ease-out); }
.btn .ic { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c3)); transition: transform .4s var(--ease-out); }
.btn .ic svg { width: 1rem; height: 1rem; }
.btn.solid { background: var(--ink); color: var(--wall); }
.btn:hover .ic { transform: rotate(-45deg); }
.btn.solid:hover .ic { transform: translateY(-2px) scale(1.06); }   /* l'enveloppe ne tourne pas : elle monte juste un peu */
.btn.solid:hover { background: #2a2a2a; }
.btn:not(.solid):hover { background: var(--ink); color: var(--wall); }
.btn:active { transform: scale(.98); }

/* Bas de page */
.foot { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding: 1rem var(--pad) calc(env(safe-area-inset-bottom, 0px) + 1.2rem); font: 400 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 4px; }

/* Arrivée : tout apparaît en douceur, l'un après l'autre */
.js body:not(.in) .wall, .js body:not(.in) .status, .js body:not(.in) h1 .l, .js body:not(.in) .lead, .js body:not(.in) .actions, .js body:not(.in) .topbar { opacity: 0; }
body.in .wall { animation: fade 1.6s ease both; }
body.in .topbar { animation: rise .9s .5s var(--ease-out) backwards; }
body.in .status { animation: rise .9s .2s var(--ease-out) backwards; }
body.in h1 .l { animation: letter 1.2s calc(.3s + var(--i) * 55ms) var(--ease-out) backwards; }
body.in .lead { animation: rise 1s 1s var(--ease-out) backwards; }
body.in .actions { animation: rise 1s 1.15s var(--ease-out) backwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
@keyframes letter { from { opacity: 0; translate: 0 .35em; filter: blur(6px); } }

@media (max-width: 600px) {
  .topbar .pill { display: none; }              /* sur téléphone, le mail est déjà le premier bouton */
  .actions { flex-direction: column; align-items: stretch; width: min(100%, 22rem); }
  .btn { justify-content: space-between; }
  .foot { justify-content: center; text-align: center; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .topbar { padding-top: calc(env(safe-area-inset-top, 0px) + .4rem); padding-bottom: 0; }
  .stage { padding-top: .5rem; padding-bottom: .5rem; }
  h1 { font-size: clamp(3rem, 15vh + 2vw, 6rem); }
  .lead { margin-top: .5rem; } .actions { margin-top: .9rem; } .status { margin-bottom: .6rem; }
  .foot { padding-top: .2rem; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + .4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Mentions légales ---------- */
.doc { position: relative; z-index: 2; flex: 1; width: min(46rem, 100%); margin: 0 auto; padding: 2rem var(--pad) 4rem; }
.doc .label { margin: 0 0 1rem; font: 400 .75rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.doc h1 { font-size: clamp(3rem, 10vw, 5.5rem); }
.doc h2 { margin: 2.6rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--line); font: 500 1.35rem/1.2 var(--f); letter-spacing: -.02em; }
.doc p, .doc li { line-height: 1.6; }
.doc ul { padding-left: 1.2rem; }
.doc dl { margin: 0; display: grid; gap: .2rem; }
.doc dl div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .2rem 1rem; padding: .5rem 0; }
.doc dt { font: 400 .75rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc dd { margin: 0; }
.doc .todo { background: #fff1b8; padding: 0 .3em; border-radius: 4px; }
.doc a { text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: 2rem; }
@media (max-width: 600px) { .doc dl div { grid-template-columns: 1fr; } }
