/* Typefaces */
@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/cinzel-decorative-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cinzel-decorative-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #120a09;
  --hull: #2b1c1a;
  --lantern: #f2ae72;
  --gold: #c6a72a;
  --gold-lit: #dcbe45;
  --bone: #fbf5ea;
  --parchment: #efe3ce;
  --ash: #bfae98;
  --line: rgba(239, 227, 206, 0.32);
  --font-display: "Cinzel Decorative", "Cinzel", "Trajan Pro", Georgia, serif;
  --font-text: "Libre Caslon Text", "EB Garamond", Georgia, serif;
  --gutter: clamp(16px, 4.5vw, 72px);
  --focal-x: 72%;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 0.92rem + 0.22vw, 1.25rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--night); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Scene */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--night); }
.scene { position: absolute; inset: -2vmax; will-change: transform; }
.scene video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal-x) 40%; }

@media (max-aspect-ratio: 4/5) {
  .scene { bottom: 30%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
}

.dark, .glow { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.dark {
  width: 280vmax; height: 280vmax;
  transform: translate(calc(var(--focal-x) - 140vmax), calc(40vh - 140vmax));
  background: radial-gradient(circle closest-side,
    color-mix(in srgb, var(--night) 0%, transparent) 0%,
    color-mix(in srgb, var(--night) 8%, transparent) 14%,
    color-mix(in srgb, var(--night) 26%, transparent) 30%,
    color-mix(in srgb, var(--night) 40%, transparent) 52%,
    color-mix(in srgb, var(--night) 46%, transparent) 100%);
}
.glow {
  width: 115vmax; height: 115vmax;
  transform: translate(calc(var(--focal-x) - 57.5vmax), calc(40vh - 57.5vmax));
  background: radial-gradient(circle closest-side,
    color-mix(in srgb, var(--lantern) 72%, transparent) 0%,
    color-mix(in srgb, var(--lantern) 26%, transparent) 32%,
    color-mix(in srgb, var(--lantern) 0%, transparent) 100%);
  mix-blend-mode: soft-light;
}
.dust { position: absolute; left: -48px; top: -48px; width: calc(100% + 96px); height: calc(100% + 96px); will-change: transform; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 125% 95% at 62% 42%, transparent 55%, color-mix(in srgb, var(--night) 58%, transparent) 100%); }
.scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--night) 45%, transparent) 0%, transparent 14%),
    linear-gradient(to top, color-mix(in srgb, var(--night) 82%, transparent) 0%, color-mix(in srgb, var(--night) 34%, transparent) 32%, transparent 56%),
    radial-gradient(ellipse 70% 62% at 0% 100%, color-mix(in srgb, var(--night) 50%, transparent), transparent 72%);
}
.veil { position: absolute; inset: 0; background: var(--night); opacity: 0; }
.js .veil { animation: kindle 2.4s cubic-bezier(0.22, 0.7, 0.2, 1) 0.1s both; }
@keyframes kindle { from { opacity: 0.94; } to { opacity: 0; } }

/* Layout */
.page {
  position: relative; z-index: 10;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 4vh, 40px);
  padding-inline: var(--gutter);
  padding-block: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-bottom, 0px));
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
}
.lang { position: relative; display: inline-flex; align-items: center; }
.lang-current {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 2px; border-bottom: 1px solid transparent;
  color: var(--ash); font-size: 0.95rem; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.lang-current::after {
  content: ""; width: 10px; height: 6px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23bfae98' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center;
}
.lang select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 16px;
  border: 0; margin: 0; appearance: none; -webkit-appearance: none;
}
.lang select option { background: var(--night); color: var(--parchment); }
.lang:hover .lang-current { color: var(--parchment); border-bottom-color: var(--line); }
.lang:focus-within .lang-current { color: var(--parchment); outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.hero { align-self: end; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 46rem; }

/* Titre mobile ajusté : clamp augmenté en bas pour plus de visibilité sur petit écran */
.title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 1.2rem + 7vw, 6.6rem);
  line-height: 1.02; letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--bone);
  text-wrap: balance;
  text-shadow: 0 0 42px color-mix(in srgb, var(--night) 85%, transparent), 0 2px 6px color-mix(in srgb, var(--night) 60%, transparent);
  will-change: transform;
}
.status { margin: 16px 0 0; font-size: 1rem; color: var(--ash); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px;
  border: 1px solid var(--gold); border-radius: 2px;
  background: var(--gold); color: var(--night);
  font: inherit; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn:hover { background: var(--gold-lit); border-color: var(--gold-lit); box-shadow: 0 0 28px color-mix(in srgb, var(--lantern) 38%, transparent); }
.steam { margin-top: clamp(18px, 3vh, 28px); }

.signup { display: grid; gap: 10px; width: 100%; max-width: 32rem; margin-top: clamp(22px, 4vh, 40px); }
.signup-lead { margin: 0; font-size: 1.05rem; color: var(--parchment); }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: stretch; }

/* Input E-mail : Retrait de l'italique pour le rendre droit */
.signup input[type="email"] {
  flex: 1 1 15rem; min-width: 0;
  min-height: 46px;
  padding: 10px 4px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--bone);
  font: inherit; font-size: 1.05rem; font-style: normal; /* Droit */
  caret-color: var(--lantern);
  transition: border-color 0.2s;
}
.signup input[type="email"]::placeholder { color: var(--ash); opacity: 0.85; font-style: italic; }
.signup input[type="email"]:hover { border-bottom-color: var(--ash); }
.signup input[type="email"]:focus { border-bottom-color: var(--gold); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-note { margin: 0; font-size: 0.85rem; color: var(--ash); }
.signup-note a { color: var(--ash); text-underline-offset: 3px; }
.signup-note a:hover { color: var(--parchment); }
.signup-status { margin: 0; min-height: 0; font-size: 0.95rem; color: var(--lantern); }
.signup-status:empty { display: none; }

.foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; font-size: 0.9rem; }
.follow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.follow a { color: var(--parchment); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.follow a:hover { color: var(--bone); border-bottom-color: var(--gold); }
.colophon { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 18px; color: var(--ash); }
.colophon a { color: var(--ash); text-underline-offset: 3px; }
.colophon a:hover { color: var(--parchment); }

@media (max-width: 640px) {
  .foot { flex-direction: column; align-items: flex-start; }
  .colophon { justify-content: flex-start; }
  .signup-row .btn { flex: 1 1 100%; }
}