/* ==========================================================
   C² Studio — page d'attente
   Tokens tirés de la Brand Guideline v9.0 (dark-first).
   Modifiez les variables ci-dessous, tout le reste suit.
   ========================================================== */

:root {
  --void: #0a0a0a;
  --carbon: #161616;
  --steel: #2e2e2e;
  --ash: #3e3e3e;
  --fawn: #C2A878;
  --gold-light: #e8d5a8;
  --porcelain: #F1F5F2;
  --mist: #999999;
  --smoke: #666666;
  --hunter: #355834;

  --font-display: 'Julius Sans One', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --measure: 34rem;      /* largeur de lecture */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face {
  font-family: 'Julius Sans One';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/julius-sans-one-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/outfit-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/outfit-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/outfit-latin-500-normal.woff2') format('woff2');
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--void);
  color: var(--porcelain);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Vignettage cinématique discret (règle brand) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}

::selection { background: var(--fawn); color: var(--void); }

/* ---------- filigrane ---------- */

.mark {
  position: fixed;
  top: 50%; left: 50%;
  width: clamp(560px, 92vmin, 1100px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  animation: mark-in 2.4s var(--ease) .3s forwards;
}
@keyframes mark-in { to { opacity: .07; } }

/* ---------- halo curseur (souris uniquement) ---------- */

.glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,168,120,.055) 0%, rgba(194,168,120,.02) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
  will-change: transform;
  z-index: -1;
}
.glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .glow { display: none; } }

/* ---------- sélecteur de langue ---------- */

.lang {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  z-index: 5;
  display: flex;
  gap: .25rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
}
.lang a {
  color: var(--smoke);
  text-decoration: none;
  padding: .35rem .5rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang a:hover { color: var(--mist); }
.lang a[aria-current] { color: var(--fawn); border-bottom-color: var(--fawn); }

/* ---------- structure ---------- */

.page {
  position: relative;
  /* pas de z-index ici : le logo doit se fondre avec le fond de page */
  width: min(100% - 3rem, 42rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

/* Le logo "éclipse" est en vraie transparence (canal alpha) : aucun mode
   de fusion, donc rendu identique sur Safari, Firefox et Chrome. */
.logo {
  width: clamp(230px, 30vw, 300px);
  height: auto;
  display: block;
  user-select: none;
}

/* ---------- hero ---------- */

.hero { max-width: 38rem; }
.hero .lede { max-width: var(--measure); margin-inline: auto; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--mist);
  letter-spacing: .02em;
  margin-bottom: 1.6rem;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fawn);
  box-shadow: 0 0 0 0 rgba(194,168,120,.5);
  animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(194,168,120,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(194,168,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,168,120,0); }
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.28;
  letter-spacing: .04em;
  color: var(--porcelain);
  text-wrap: balance;
  margin-bottom: 1.4rem;
}

.lede {
  color: var(--mist);
  text-wrap: pretty;
}

/* ---------- séparateur ---------- */

.rule {
  width: 48px; height: 1px;
  background: var(--fawn);
  opacity: .45;
  margin: clamp(3rem, 8vh, 5rem) 0;
}

/* ---------- contact ---------- */

.contact {
  width: 100%;
  max-width: 30rem;
  text-align: left;
}
/* Ordinateur et tablette : colonne plus large pour que les pastilles
   de préférence tiennent sur une ligne. */
@media (min-width: 700px) {
  .page { width: min(100% - 3rem, 46rem); }
  .contact { max-width: 37rem; }
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: .12em;
  color: var(--fawn);
  text-align: center;
  margin-bottom: 1rem;
}

.intro {
  text-align: center;
  color: var(--mist);
  font-size: .9375rem;
  max-width: 26rem;
  margin: 0 auto 2.4rem;
  text-wrap: pretty;
}

/* ---------- canal de rendez-vous ---------- */

.pref {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .2rem;
}
.pref { column-gap: .6rem; }
.pref legend {
  width: 100%;
  font-size: .8125rem;
  color: var(--mist);
  margin-bottom: .85rem;
}
.pref label { position: relative; cursor: pointer; }
.pref input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.pref span {
  display: inline-block;
  font-size: .875rem;
  font-weight: 400;
  color: var(--mist);
  padding: .45rem .95rem;
  border: 1px solid var(--steel);
  border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.pref label:hover span { border-color: var(--ash); color: var(--porcelain); }
.pref input:checked + span {
  color: var(--void);
  background: var(--fawn);
  border-color: var(--fawn);
}
.pref input:focus-visible + span { outline: 2px solid var(--fawn); outline-offset: 3px; }

.form { display: flex; flex-direction: column; gap: 1.9rem; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field { position: relative; }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--steel);
  color: var(--porcelain);
  font: inherit;
  font-weight: 300;
  padding: 1.35rem 0 .55rem;
  outline: none;
  border-radius: 0;
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.55; }

.field label {
  position: absolute;
  left: 0; top: 1.35rem;
  color: var(--smoke);
  font-weight: 300;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s var(--ease);
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--fawn); }

.field input:focus ~ label,
.field textarea:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-1.15rem) scale(.78);
  color: var(--mist);
}
.field input:focus ~ label,
.field textarea:focus ~ label { color: var(--fawn); }

.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #b45c5c; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--fawn);
  background: var(--fawn);
  color: var(--void);
  font: inherit;
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .06em;
  padding: .8rem 2.1rem;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.is-sending { cursor: wait; }

.alt { font-size: .875rem; color: var(--smoke); }

.consent { font-size: .8125rem; color: var(--smoke); margin-top: -.6rem; }
.consent a, .foot a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--steel);
  transition: color .2s, border-color .2s;
}
.consent a:hover, .foot a:hover { color: var(--fawn); border-color: var(--fawn); }
.alt-unused {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--steel);
  transition: color .2s, border-color .2s;
}
.alt a:hover { color: var(--fawn); border-color: var(--fawn); }

.notice {
  font-size: .9375rem;
  font-weight: 400;
  padding: .85rem 1rem;
  border-left: 2px solid var(--fawn);
  background: var(--carbon);
  color: var(--porcelain);
  margin-bottom: 1.5rem;
}
.notice[hidden] { display: none; }
.notice-ok  { border-left-color: var(--hunter); }
.notice-err { border-left-color: #b45c5c; }

/* Focus clavier visible, partout */
:focus-visible { outline: 2px solid var(--fawn); outline-offset: 4px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

noscript .notice { margin-top: 0; }

/* ---------- pied ---------- */

.foot {
  margin-top: clamp(4rem, 12vh, 7rem);
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .8125rem;
  color: var(--smoke);
}
.foot span:first-child { font-family: var(--font-display); letter-spacing: .1em; color: var(--mist); }

/* ---------- page mentions légales ---------- */

.legal .page { align-items: flex-start; text-align: left; padding-top: 5rem; }
.legal h1 { font-size: 1.5rem; margin-bottom: 2.5rem; }
.legal-section { max-width: 38rem; margin-bottom: 2.4rem; }
.legal-section h2 { text-align: left; font-size: .9375rem; margin-bottom: .9rem; }
.legal-section p { color: var(--mist); font-size: .9375rem; margin-bottom: .8rem; text-wrap: pretty; }
.back {
  font-size: .8125rem;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--steel);
  margin-bottom: 3rem;
  transition: color .2s, border-color .2s;
}
.back:hover { color: var(--fawn); border-color: var(--fawn); }
.legal .foot { align-self: center; }

/* ---------- révélation à l'ouverture (une seule fois) ---------- */

.logo, .hero, .rule, .contact, .foot {
  opacity: 0;
  transform: translateY(10px);
  animation: rise .9s var(--ease) forwards;
}
.logo    { animation-delay: .05s; }
.hero    { animation-delay: .25s; }
.rule    { animation-delay: .45s; }
.contact { animation-delay: .55s; }
.foot    { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .logo, .hero, .rule, .contact, .foot { animation: none; opacity: 1; transform: none; }
  .mark { animation: none; opacity: .07; }
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile ---------- */

@media (max-width: 600px) {
  .lang { top: .85rem; right: .75rem; }
  body { font-size: 1rem; }
  .page { width: min(100% - 2.5rem, 42rem); }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .alt { text-align: center; }
  .foot { gap: .6rem 1.25rem; }
}
