/* ══════════════════════════════════════════════════════════════
   RAVERZ
   Direction : futurisme Y2K. Chrome liquide, verre translucide,
   iridescence pétrole sur champ profond.
   Aucune police externe, aucun script, aucun traceur.
   ══════════════════════════════════════════════════════════════ */

:root {
  --void:       #04060C;
  --field-a:    #070B16;
  --field-b:    #0D1B33;
  --field-c:    #1B1440;

  --chrome-hi:  #FFFFFF;
  --chrome-mid: #C8D8EE;
  --chrome-lo:  #4E6484;

  --iris-cyan:  #4FE8FF;
  --iris-violet:#A98CFF;
  --iris-rose:  #FF9AD0;

  --text:       #DCE6F4;
  --text-dim:   #7D8CA6;
  --hair:       rgba(190, 214, 245, 0.13);
  --glass:      rgba(150, 185, 235, 0.055);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
          "Roboto Mono", Menlo, Consolas, monospace;

  --pad: clamp(1.15rem, 4vw, 3.25rem);
  --col: min(100%, 62rem);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(62% 20% at 50% 40%,
      rgba(79, 232, 255, 0.11) 0%, transparent 72%),
    radial-gradient(42% 16% at 28% 58%,
      rgba(169, 140, 255, 0.10) 0%, transparent 72%),
    radial-gradient(46% 18% at 70% 76%,
      rgba(79, 232, 255, 0.07) 0%, transparent 72%),
    radial-gradient(80% 26% at 50% 97%,
      rgba(169, 140, 255, 0.09) 0%, transparent 74%),
    linear-gradient(180deg,
      #070B16  0%,
      #0C1830 16%,
      #0A1428 38%,
      #080F20 62%,
      #060A15 82%,
      var(--void) 100%);
}

/* ── Trame et repères ─────────────────────────────────────────── */

.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right,  rgba(180, 210, 245, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 210, 245, 0.045) 1px, transparent 1px);
  background-size: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 104px);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 25%, transparent 80%);
}

.marks { position: fixed; inset: 0; pointer-events: none; z-index: 3; }

.mk {
  position: absolute;
  width: 15px; height: 15px;
  border: 1px solid rgba(200, 216, 238, 0.42);
}
.mk-tl { top: 16px;    left: 16px;  border-right: 0; border-bottom: 0; }
.mk-tr { top: 16px;    right: 16px; border-left: 0;  border-bottom: 0; }
.mk-bl { bottom: 16px; left: 16px;  border-right: 0; border-top: 0; }
.mk-br { bottom: 16px; right: 16px; border-left: 0;  border-top: 0; }

/* ── Barre de tête ────────────────────────────────────────────── */

.bar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--pad) var(--pad) 0;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.slash {
  color: var(--iris-cyan);
  opacity: 0.75;
  font-weight: 400;
  padding-inline: 0.7em;
}

.lang { display: inline-flex; gap: 0.62em; }

.lang a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.22s ease;
}

.lang a:hover { color: var(--text); }

.lang a[aria-current="true"] {
  color: var(--iris-cyan);
  text-shadow: 0 0 12px rgba(79, 232, 255, 0.5);
}

/* ── En-tête ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 2;
  min-height: min(92svh, 58rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 9vw, 6rem) var(--pad) clamp(4rem, 8vw, 6rem);
  text-align: center;
  overflow: hidden;
}

/* L'objet signature : le lever de lumière */

.dawn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72%;
  pointer-events: none;
  overflow: hidden;
}

.dawn-glow {
  position: absolute;
  inset: -12% -6% -20% -6%;
  background:
    radial-gradient(ellipse 58% 96% at 50% 100%,
      rgba(79, 232, 255, 0.46) 0%,
      rgba(126, 168, 255, 0.26) 36%,
      transparent 74%),
    radial-gradient(ellipse 34% 74% at 34% 100%,
      rgba(169, 140, 255, 0.38) 0%, transparent 72%),
    radial-gradient(ellipse 38% 62% at 70% 100%,
      rgba(255, 154, 208, 0.20) 0%, transparent 72%);
  filter: blur(28px);
  animation: breathe 15s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { opacity: 0.82; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.045); }
}

@keyframes sheen {
  from { background-position: 50% 6%; }
  to   { background-position: 50% 94%; }
}

.hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 clamp(-0.9rem, -1.1vw, -0.2rem);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.reg { display: inline-flex; color: var(--iris-cyan); opacity: 0.85; }

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

.wordmark {
  margin: 0;
  width: min(104%, 72rem, 112vh);
  display: block;
}

.wordmark-art {
  display: block;
  width: 100%;
  aspect-ratio: 1500 / 711;

  -webkit-mask-image: url("logo.png");
          mask-image: url("logo.png");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;

  background-image: linear-gradient(
    174deg,
    #FFFFFF            0%,
    #D4E6FC            9%,
    #8AA6CC           20%,
    #2E4468           31%,
    #FFFFFF           43%,
    #E8F3FF           49%,
    #94AFD2           57%,
    var(--iris-cyan)  67%,
    var(--iris-violet)77%,
    #5E769C           88%,
    #EAF4FF          100%
  );
  background-size: 100% 128%;
  background-position: 50% 30%;

  filter: drop-shadow(0 0 52px rgba(79, 232, 255, 0.3));
  animation:
    sheen 30s ease-in-out infinite alternate,
    ignite 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ignite {
  from { opacity: 0; transform: scale(0.965); filter: blur(7px) drop-shadow(0 0 0 transparent); }
  to   { opacity: 1; transform: none; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55em;
  margin: clamp(-1.3rem, -1.7vw, -0.4rem) 0 0;
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-meta i { color: var(--iris-cyan); font-style: normal; opacity: 0.6; }

/* ── Carte événement, en verre ────────────────────────────────── */

.card {
  position: relative;
  margin-top: clamp(2.2rem, 6vw, 3.6rem);
  padding: clamp(1.3rem, 3.4vw, 2rem) clamp(1.6rem, 4.5vw, 3rem);
  width: min(100%, 25rem);
  border: 1px solid rgba(198, 220, 250, 0.18);
  border-radius: 3px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 60px rgba(4, 6, 12, 0.5);
  animation: lift 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes lift {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.card-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--iris-cyan);
}

.card-name {
  margin: 0.75rem 0 0;
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #F2F7FE;
}

.card-date {
  display: flex;
  justify-content: center;
  gap: 0.55em;
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.card-date i { color: var(--iris-violet); font-style: normal; }

.card-note {
  margin: 1.1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-hint {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 7vw, 4rem);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ── Corps ────────────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vw, 6.5rem);
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 0;
}

.sect-tag {
  display: block;
  margin-bottom: 1.35rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--iris-cyan);
}

/* ── Tableau de bord ──────────────────────────────────────────── */

.panel {
  width: var(--col);
  margin-inline: auto;
  border: 1px solid rgba(198, 220, 250, 0.15);
  border-radius: 3px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.2rem, 3.5vw, 2.2rem);
  border-bottom: 1px solid var(--hair);
  background: rgba(160, 195, 245, 0.04);
}

.panel-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}

.panel-sub {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rows { margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(0.95rem, 2.4vw, 1.25rem) clamp(1.2rem, 3.5vw, 2.2rem);
  border-bottom: 1px solid var(--hair);
}

.row:last-child { border-bottom: 0; }

.row dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.row .val {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Pastilles de statut */

.st {
  margin: 0;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.st::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
}

.st-on {
  color: #C9F6FF;
  border-color: rgba(79, 232, 255, 0.4);
  background: rgba(79, 232, 255, 0.09);
}
.st-on::before {
  background: var(--iris-cyan);
  box-shadow: 0 0 9px rgba(79, 232, 255, 0.9);
}

.st-mid {
  color: #E0D3FF;
  border-color: rgba(169, 140, 255, 0.38);
  background: rgba(169, 140, 255, 0.09);
}
.st-mid::before {
  background: var(--iris-violet);
  box-shadow: 0 0 9px rgba(169, 140, 255, 0.8);
}

.st-off {
  color: var(--text-dim);
  border-color: rgba(190, 214, 245, 0.2);
}
.st-off::before { border: 1px solid var(--text-dim); }

/* ── Présentation ─────────────────────────────────────────────── */

.about { width: var(--col); margin-inline: auto; }

.about p {
  margin: 0 0 1rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.about .lead {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #EEF4FD;
  margin-bottom: 1.1rem;
}

/* ── Contact ──────────────────────────────────────────────────── */

.contact { width: var(--col); margin-inline: auto; }

.links { margin: 0; padding: 0; list-style: none; }

.links li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-top: 1px solid var(--hair);
}

.links li:last-child { border-bottom: 1px solid var(--hair); }

.lk-l {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lk-a {
  justify-self: start;
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(190, 214, 245, 0.28);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.lk-a:hover,
.lk-a:focus-visible {
  color: var(--iris-cyan);
  border-bottom-color: var(--iris-cyan);
}

:focus-visible {
  outline: 2px solid var(--iris-cyan);
  outline-offset: 3px;
}

/* ── Pied de page ─────────────────────────────────────────────── */

.foot {
  position: relative;
  z-index: 2;
  width: var(--col);
  margin: clamp(4rem, 10vw, 7rem) auto 0;
  padding: 1.4rem var(--pad) clamp(2.5rem, 6vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Petits écrans ────────────────────────────────────────────── */

@media (max-width: 680px) {
  .row,
  .links li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .st { justify-self: start; }
  .bar { font-size: 0.55rem; letter-spacing: 0.14em; }
  .slash { padding-inline: 0.45em; }
  .mk { width: 11px; height: 11px; }
  .mk-tl, .mk-tr { top: 10px; }
  .mk-bl, .mk-br { bottom: 10px; }
  .mk-tl, .mk-bl { left: 10px; }
  .mk-tr, .mk-br { right: 10px; }
}

/* ── Écrans courts : portables 768p, tablettes et téléphones en paysage ──
   Sans cela, la carte First Light passe sous la ligne de flottaison.     */

@media (max-height: 950px) {
  .hero { padding-block: clamp(1.5rem, 4vh, 3rem); }
  .wordmark { width: min(104%, 72rem, 96vh); }
  .card { margin-top: clamp(1.1rem, 3vh, 2.2rem); }
  .scroll-hint { margin-top: clamp(1.2rem, 3vh, 2rem); }
}

@media (max-height: 560px) {
  .hero {
    min-height: auto;
    padding-block: clamp(0.9rem, 3vh, 1.6rem);
  }
  .wordmark { width: min(92%, 40rem, 86vh); }
  .card {
    margin-top: 0.9rem;
    padding: 0.95rem 1.5rem;
  }
  .card-name { font-size: 1.35rem; }
  .card-note { margin-top: 0.75rem; padding-top: 0.7rem; }
  .scroll-hint { display: none; }
}

/* ── Très grands écrans ─────────────────────────────────────────────────
   Tout est dimensionné en rem, donc agrandir la base agrandit
   proportionnellement le logo, les colonnes et la typographie.           */

@media (min-width: 1800px) { html { font-size: 18px; } }
@media (min-width: 2600px) { html { font-size: 21px; } }
@media (min-width: 3400px) { html { font-size: 25px; } }

/* ── Mouvement réduit ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .dawn-glow, .card, .wordmark-art { animation: none; }
  .card { opacity: 1; transform: none; }
  .wordmark-art { opacity: 1; transform: none; }
}
