/* =========================================================
   Iris Factory — feuille de style
   ========================================================= */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Noir pur : les photos (fond noir) se fondent dans la page. */
  --bg: #000;
  --bg-2: #0d0b0a;
  --surface: #161311;
  --line: rgba(243, 236, 226, 0.12);
  --line-strong: rgba(243, 236, 226, 0.24);
  --text: #f3ece2;
  --muted: #b5aa9c;
  --accent: #eba862;
  --accent-soft: rgba(235, 168, 98, 0.14);
  --accent-ink: #1c1006;
  --error: #ff9a8a;
  --success: #9ed9a8;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --radius: 18px;
  --radius-small: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: 'opsz' 144;
}
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); font-variation-settings: 'opsz' 48; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.05rem, 0.5vw + 0.98rem, 1.25rem);
  line-height: 1.6;
  max-width: 34em;
}

.optional {
  font-weight: 500;
  font-size: 0.8em;
  color: var(--muted);
  margin-left: 6px;
}

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn-primary:hover { --btn-bg: #f3b877; }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-large { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
  font-weight: 600;
}
.text-link:hover { color: var(--accent); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}
/* Le fond flouté est porté par un pseudo-élément : un backdrop-filter sur
   l'en-tête lui-même piégerait le menu mobile en position fixe. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.site-header.is-scrolled::before,
.site-header.is-open::before {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variation-settings: 'opsz' 36;
}
.brand-logo { height: 20px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.is-current { color: var(--text); }
.main-nav .nav-contact-item { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 64px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 68%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  animation: hero-in 2.4s var(--ease) both;
}

.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 560px; }

.hero-title {
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--accent); }

.hero-lead {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 36px;
}

@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-dark { background: var(--bg-2); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-cta { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- L'expérience ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Créations ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.work { margin: 0; }
.work img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 85%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 85%, transparent 100%);
}
.work figcaption { margin-top: 12px; color: var(--muted); text-align: center; }
.work figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 2px;
}

.note {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Événements ---------- */

.events-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.events-intro .section-head { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.offer {
  position: relative;
  padding: clamp(28px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.offer-featured { border-color: rgba(235, 168, 98, 0.55); }
.offer-badge {
  position: absolute;
  top: -13px;
  left: clamp(28px, 3vw, 36px);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 700;
}
.offer-price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.1rem);
  line-height: 1;
  font-weight: 350;
}
.offer-duration {
  margin: 10px 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
}
.offer-list li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.offer-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.included {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
}

/* ---------- À propos ---------- */

.about-inner { text-align: center; }
.about-text {
  max-width: 34em;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  font-weight: 350;
  line-height: 1.4;
  font-variation-settings: 'opsz' 72;
}

/* ---------- Contact ---------- */

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact h2 { margin-bottom: 18px; }
.contact .lead { color: var(--muted); margin-bottom: 28px; }
.contact-email {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 2.2rem);
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--text); }
.contact-place { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Pages légales ---------- */

.legal { padding: calc(var(--header-h) + 56px) 0 var(--section); }
.legal .container { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 16px; }
.legal h2 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin: 44px 0 14px; }
.legal p,
.legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal strong { color: var(--text); }
.legal .todo {
  display: inline-block;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92em;
}
.legal-intro {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}
.back-link { display: inline-block; margin-bottom: 32px; }

/* ---------- Apparition au défilement ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2),
.js .offers .reveal:nth-child(2),
.js .works .reveal:nth-child(2) { transition-delay: 0.12s; }
.js .steps .reveal:nth-child(3),
.js .offers .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    padding: 32px var(--gutter);
    background: rgba(0, 0, 0, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .site-header.is-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a {
    display: block;
    padding: 20px 0;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
  }
  .main-nav .nav-contact-item { display: block; }

  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--header-h) 0 64px;
  }
  .hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 48svh;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero-media img { object-position: 50% 50%; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.8rem); margin-bottom: 18px; }
  .hero-lead { margin-bottom: 28px; }

  .steps,
  .offers,
  .works,
  .events-intro { grid-template-columns: 1fr; }
  .offers { gap: 28px; }
}

@media (max-width: 560px) {
  .hero-actions .btn,
  .section-cta .btn,
  .contact .btn { width: 100%; }
  .header-actions .btn { padding: 0 14px; }
  .brand-logo { height: 15px; }
  .about-inner { text-align: left; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
