/* =========================================================
   L'Étrange Valise de Mira Jane - Feuille de styles
   ========================================================= */

:root {
  --bg:           #050505;
  --bg-soft:      #080808;
  --bg-panel:     #0a0a0a;
  --text:         #e5e5e5;
  --text-muted:   rgba(255, 255, 255, 0.6);
  --text-faint:   rgba(255, 255, 255, 0.4);
  --amber:        #f59e0b;
  --amber-soft:   rgba(245, 158, 11, 0.8);
  --hairline:     rgba(255, 255, 255, 0.08);
  --font-serif:   "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --max:          1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fde7b8;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: #fff; margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.serif   { font-family: var(--font-serif); }
.italic  { font-style: italic; }
.amber   { color: var(--amber-soft); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 2rem 0;
  transition: background-color .5s, padding .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
}
.nav__brand span { color: var(--amber-soft); }
.nav__links { display: flex; gap: 3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s;
}
.nav__links a:hover { color: var(--amber); }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: .25rem;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  background: #000;
  border-bottom: 1px solid var(--hairline);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  color: var(--text-muted);
}
.nav__mobile a:hover { color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 1.5rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(60, 40, 20, .22), transparent 70%),
    var(--bg);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 10; max-width: 56rem; }
.eyebrow {
  display: inline-block;
  padding: .35rem 1rem;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 999px;
  background: rgba(120, 70, 10, .12);
  color: var(--amber-soft);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1.08;
  margin-bottom: 2rem;
}
.hero h1 .italic { font-style: italic; color: rgba(255, 255, 255, .92); }
.hero__lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 40rem;
  margin: 0 auto;
  font-weight: 300;
}
.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 10;
}
.hero__scroll span {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}
.hero__scroll i {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5), transparent);
}

/* ---------- Sections génériques ---------- */
section { padding: 8rem 0; }
.section-soft  { background: var(--bg-soft); }
.section-dark  { background: var(--bg); }
.section-panel { background: var(--bg-panel); border-top: 1px solid var(--hairline); }

.lead-rule { width: 3rem; height: 1px; background: rgba(245, 158, 11, .5); margin: 1.5rem 0 2rem; }

/* ---------- Curiosités ---------- */
.curio__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.curio__top h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.curio__top p  { color: var(--text-muted); font-size: 1.15rem; }
.curio__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.curio__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.curio__img:hover img { transform: scale(1.03); }
.curio__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-soft), transparent 60%);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
  transition: background .5s;
}
.card:hover { background: rgba(255, 255, 255, .045); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 158, 11, .35), transparent);
  opacity: 0;
  transition: opacity .5s;
}
.card:hover::before { opacity: 1; }
.card__icon { color: rgba(245, 158, 11, .6); margin-bottom: 1.5rem; transition: color .5s; }
.card:hover .card__icon { color: var(--amber); }
.card h3 { font-style: italic; font-size: 1.5rem; margin-bottom: 1rem; }
.card p { color: rgba(255, 255, 255, .5); font-size: .9rem; }
.card p .italic { color: rgba(255, 255, 255, .55); }

/* ---------- Expérience ---------- */
.exp { position: relative; overflow: hidden; }
.exp::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 33%; height: 100%;
  background: linear-gradient(to left, rgba(120, 70, 10, .06), transparent);
}
.exp__inner { position: relative; z-index: 2; max-width: 70rem; margin: 0 auto; text-align: center; }
.exp h2 { font-size: clamp(2rem, 6vw, 3.75rem); margin-bottom: 3rem; }
.exp__lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.exp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; }
.exp__cell {
  padding: 2rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
}
.exp__cell h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.exp__cell p { color: rgba(255, 255, 255, .5); }

/* Formats de prestation */
.formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  margin-bottom: 2.5rem;
}
.format {
  padding: 2rem;
  border: 1px solid rgba(245, 158, 11, .18);
  background: rgba(245, 158, 11, .04);
  position: relative;
}
.format h3 {
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}
.format p { color: rgba(255, 255, 255, .55); font-size: .95rem; }

.exp__zone {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 3.5rem;
  letter-spacing: .01em;
}
.exp__zone strong { color: var(--amber-soft); font-weight: 500; }

/* ---------- À propos ---------- */
.about__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.about__media { width: 50%; }
.about__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  width: 75%;
  margin: 0 auto;
}
.about__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .7s;
}
.about__frame:hover img { opacity: 1; }
.about__tag {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, #000, transparent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .7rem;
  color: var(--amber);
  letter-spacing: .05em;
}
.about__text { width: 50%; }
.about__text h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.about__text p { color: var(--text-muted); font-size: 1.15rem; margin: 0 0 1.5rem; }
.about__quote {
  font-style: italic;
  border-left: 1px solid rgba(245, 158, 11, .3);
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.about__cite {
  margin: .85rem 0 0;
  padding-left: 1.5rem;
  color: var(--text-faint);
  font-size: .9rem;
  letter-spacing: .04em;
}

/* ---------- Contact ---------- */
.contact__inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.contact__icon { color: rgba(245, 158, 11, .5); margin-bottom: 1.5rem; }
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.contact__lead { color: rgba(255, 255, 255, .5); margin-bottom: 3rem; }

.form { text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-faint);
  margin: 0 0 .5rem .25rem;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color .3s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: rgba(245, 158, 11, .5); }
.field textarea { resize: vertical; }
.field--full { margin-bottom: 1.5rem; }
.btn {
  width: 100%;
  padding: 1rem;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  border: 0;
  cursor: pointer;
  transition: background .3s;
}
.btn:hover { background: #fdf3e0; }

.form__status {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .95rem;
  min-height: 1.4em;
  color: var(--text-muted);
}
.form__status--ok  { color: #86efac; }
.form__status--err { color: #fca5a5; }

.btn:disabled { opacity: .55; cursor: not-allowed; }

.copyright {
  margin-top: 4rem;
  text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .75rem;
  color: rgba(255, 255, 255, .2);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  section { padding: 5rem 0; }
  .curio__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr; }
  .exp__grid { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .about__inner { flex-direction: column; gap: 3rem; }
  .about__media,
  .about__text { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
