﻿/* ==========================================================================
   Marjorie · Cérémonies Païennes — Feuille de style principale
   Thème : « Nuit enchantée » — forêt profonde, rouge rose, magie florale
   ========================================================================== */

/* ---------- Variables & fondations ---------- */
:root {
  --bg: #000000;
  --bg-2: #0a0508;
  --surface: #120a0e;
  --surface-2: #190d12;
  --line: rgba(214, 69, 96, 0.16);
  --line-strong: rgba(214, 69, 96, 0.38);
  --rose: #d64560;
  --rose-bright: #ff9eb0;
  --rose-deep: #7d1428;
  --cream: #f5e6ea;
  --text: #e3d3d8;
  --muted: #ab929b;
  --sage: #c4899a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a { color: var(--rose-bright); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--cream); }

::selection { background: rgba(214, 69, 96, 0.35); color: var(--cream); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }

p { margin: 0 0 1.2em; }
strong { font-weight: 500; color: var(--cream); }
em { font-style: italic; }

/* Accessibilité : focus visible net */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rose);
  color: #1a090d;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ---------- Ciel étoilé (canvas fixe) ---------- */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.page {
  position: relative;
  z-index: 1;
}

/* ---------- Layout ---------- */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.container--narrow { width: min(820px, 92vw); }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.brand:hover { color: var(--rose-bright); }
.brand svg { width: 34px; height: 34px; flex: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.35s var(--ease), left 0.35s var(--ease);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { width: 100%; left: 0; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--rose-bright); }

.nav-cta {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 1.3rem !important;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--rose);
  color: #1a090d !important;
  box-shadow: 0 0 26px rgba(214, 69, 96, 0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--cream);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  /* Panneau plein écran, fond entièrement opaque (aucun rgba ni backdrop-filter :
     ils rendaient le menu translucide sur certains navigateurs mobiles). */
  .nav-list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 6.2rem 1.5rem 2.2rem;
    overflow-y: auto;
    background-color: #000;
    background-image:
      radial-gradient(90vw 60vh at 50% -10%, rgba(214, 69, 96, 0.16), transparent 65%),
      linear-gradient(180deg, #100a0d 0%, #000 55%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    z-index: 90;
  }

  .nav-list li { width: 100%; }

  .nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.05rem 0.2rem;
    font-size: 1.12rem;
    letter-spacing: 0.14em;
    border-bottom: 1px solid rgba(214, 69, 96, 0.13);
    color: var(--cream);
  }
  /* Chevron discret sur chaque entrée */
  .nav-list li:not(:last-child) a::before {
    content: "→";
    order: 2;
    color: var(--rose);
    opacity: 0.45;
    font-size: 0.9rem;
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] {
    color: var(--rose-bright);
    padding-left: 0.9rem;
    border-left: 2px solid var(--rose);
  }

  /* Le contact devient un vrai bouton de conversion, détaché de la liste */
  .nav-list .nav-cta {
    justify-content: center;
    margin-top: 1.6rem;
    padding: 1.1rem 1.4rem !important;
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--rose-deep), var(--rose) 55%, var(--rose-bright));
    color: #1a090d !important;
    font-weight: 500;
    letter-spacing: 0.16em;
    box-shadow: 0 10px 30px rgba(214, 69, 96, 0.35);
  }
  .nav-list .nav-cta::before { display: none; }

  /* Apparition en cascade des entrées */
  body.nav-open .nav-list li {
    animation: navEntree 0.45s var(--ease) backwards;
  }
  body.nav-open .nav-list li:nth-child(1) { animation-delay: 0.05s; }
  body.nav-open .nav-list li:nth-child(2) { animation-delay: 0.09s; }
  body.nav-open .nav-list li:nth-child(3) { animation-delay: 0.13s; }
  body.nav-open .nav-list li:nth-child(4) { animation-delay: 0.17s; }
  body.nav-open .nav-list li:nth-child(5) { animation-delay: 0.21s; }
  body.nav-open .nav-list li:nth-child(6) { animation-delay: 0.25s; }
  body.nav-open .nav-list li:nth-child(7) { animation-delay: 0.29s; }
  @keyframes navEntree {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
  }

  /* Bloc de réassurance en bas du menu */
  .nav-pied {
    margin-top: auto;
    padding-top: 1.8rem;
    text-align: center;
  }
  .nav-pied p {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0 0 0.9rem;
  }
  .nav-pied a {
    display: inline-flex;
    width: auto;
    padding: 0.5rem 0;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--rose-bright);
  }
  .nav-pied a::before { display: none !important; }
  .nav-pied .nav-insta {
    gap: 0.5rem;
    margin-top: 0.4rem;
    color: var(--muted);
  }
  .nav-pied .nav-insta svg { width: 17px; height: 17px; }

  body.nav-open .nav-list { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  /* L'en-tête reste net au-dessus du panneau, pour garder la croix accessible */
  body.nav-open .site-header {
    background: #000;
    box-shadow: none;
  }
  body.nav-open .nav-toggle {
    position: relative;
    z-index: 95;
    border-color: var(--line-strong);
  }
  body.nav-open .icon-open { display: none; }
  body.nav-open .icon-close { display: block; }
}

/* Le panneau n'existe qu'en mobile : rien ne doit fuir sur ordinateur */
@media (min-width: 901px) {
  .nav-pied { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* halo de lune */
  content: "";
  position: absolute;
  top: -22vmin; left: 50%;
  transform: translateX(-50%);
  width: 90vmin; height: 90vmin;
  background: radial-gradient(circle,
    rgba(255, 158, 176, 0.16) 0%,
    rgba(255, 158, 176, 0.07) 30%,
    transparent 65%);
  pointer-events: none;
}

.hero::after {
  /* fondu vers le bas */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 22vmin;
  background: linear-gradient(to top, var(--bg) 25%, transparent);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-moon {
  width: clamp(88px, 13vmin, 140px);
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 34px rgba(255, 158, 176, 0.5));
  animation: moonFloat 9s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Rose animée (hero) ---------- */
.hero-rose {
  width: clamp(120px, 17vmin, 180px);
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 0 30px rgba(214, 69, 96, 0.5));
  animation: roseSway 8s ease-in-out infinite;
  transform-origin: 50% 88%;
}

/* Chaque trait se dessine comme à l'encre */
.rose-draw {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: roseDraw 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.rose-draw.d1 { animation-delay: 0.7s; }
.rose-draw.d2 { animation-delay: 1.2s; }
.rose-draw.d3 { animation-delay: 1.6s; }

@keyframes roseDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes roseSway {
  0%, 100% { transform: rotate(-2.4deg); }
  50% { transform: rotate(2.4deg); }
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.4rem;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero h1 .gradient,
h1 .gradient, h2 .gradient {
  background: linear-gradient(115deg, var(--rose-deep), var(--rose-bright) 45%, var(--rose-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Masqué sur les écrans bas pour ne jamais chevaucher les boutons */
@media (max-height: 920px) {
  .hero-scroll { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn--rose {
  background: linear-gradient(120deg, var(--rose-deep), var(--rose) 55%, var(--rose-bright));
  color: #1c0a0e;
  border: none;
  box-shadow: 0 6px 26px rgba(214, 69, 96, 0.28);
}
.btn--rose:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(214, 69, 96, 0.45);
  color: #1c0a0e;
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--rose);
  color: var(--rose-bright);
  box-shadow: inset 0 0 24px rgba(214, 69, 96, 0.09), 0 0 24px rgba(214, 69, 96, 0.16);
  transform: translateY(-3px);
}

/* ---------- Ornements & titres de section ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.section-head .kicker { margin-bottom: 0.9rem; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.4rem auto 0;
  color: var(--rose);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: clamp(50px, 9vw, 110px);
}
.ornament::before { background: linear-gradient(to right, transparent, var(--line-strong)); }
.ornament::after { background: linear-gradient(to left, transparent, var(--line-strong)); }
.ornament svg { width: 26px; height: 26px; flex: none; }

/* ---------- Cartes cérémonies ----------
   Flexbox plutôt que grid : les cartes de la dernière ligne
   s'étirent pour occuper toute la largeur, jamais d'orphelines. */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.card {
  flex: 1 1 255px;
  max-width: calc(50% - 0.8rem); /* une carte seule ne s'étire jamais sur toute la ligne */
  position: relative;
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 1.9rem 2.2rem;
  text-align: center;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 50% -10%, rgba(214, 69, 96, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), 0 0 40px rgba(214, 69, 96, 0.09);
}
.card:hover::before { opacity: 1; }

.card-emblem {
  width: 74px; height: 74px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--rose);
  background: radial-gradient(circle at 50% 35%, rgba(214, 69, 96, 0.14), transparent 70%);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card-emblem svg { width: 36px; height: 36px; }
.card:hover .card-emblem {
  transform: rotate(8deg) scale(1.06);
  box-shadow: 0 0 30px rgba(214, 69, 96, 0.3);
}

.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.5rem; }

.card-link {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card-link .arrow { transition: transform 0.35s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(6px); }

/* Lien global carte : toute la carte est cliquable */
.card-link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Sections alternées / bandeaux ---------- */
.band {
  background: linear-gradient(180deg, transparent, rgba(18, 10, 14, 0.75) 18%, rgba(18, 10, 14, 0.75) 82%, transparent);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
}


/* ---------- Emplacements photo (à remplacer par les vraies images) ---------- */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(196, 137, 154, 0.14), transparent 55%),
    radial-gradient(110% 90% at 85% 90%, rgba(214, 69, 96, 0.16), transparent 55%),
    linear-gradient(160deg, #140b0f, #070304);
}
.photo--wide { aspect-ratio: 16 / 10; }
.photo--square { aspect-ratio: 1 / 1; }

.photo img,
.photo video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Lisière de forêt (page « terre » / sur mesure) ----------
   Vrais troncs photographiés en bordure de page : l'écorce brune
   apparaît puis s'efface lentement, comme une respiration. */
body[data-element="terre"]::before,
body[data-element="terre"]::after {
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  width: min(26vw, 340px);
  z-index: 0;
  pointer-events: none;
  background: url("/assets/img/tronc-arbre-ecorce-foret-rituel.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, black 62%);
  mask-image: linear-gradient(to right, transparent 4%, black 62%);
  animation: barkBreath 18s ease-in-out infinite;
}
body[data-element="terre"]::before {
  left: 0;
  transform: scaleX(-1);
}
body[data-element="terre"]::after {
  right: 0;
  animation-delay: -9s;
}

@keyframes barkBreath {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.4; }
}

/* ---------- Panneaux « quatre éléments » ---------- */
/* 2×2 : quatre grands panneaux, bien plus impactants qu'une rangée */
.elements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 560px) {
  .elements-grid { grid-template-columns: 1fr; }
}

.element-panel {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.element-panel[data-element="feu"] {
  --el: 255, 150, 84;
  background:
    radial-gradient(130% 90% at 50% 105%, rgba(226, 96, 44, 0.26), transparent 62%),
    linear-gradient(160deg, #140b0f, #070304);
}
.element-panel[data-element="eau"] {
  --el: 150, 205, 222;
  background:
    radial-gradient(130% 90% at 50% 105%, rgba(64, 138, 166, 0.22), transparent 62%),
    linear-gradient(160deg, #0c1116, #070304);
}
.element-panel[data-element="air"] {
  --el: 222, 222, 234;
  background:
    radial-gradient(130% 90% at 50% -5%, rgba(180, 190, 212, 0.15), transparent 62%),
    linear-gradient(160deg, #101014, #070304);
}
.element-panel[data-element="terre"] {
  --el: 168, 186, 106;
  background:
    radial-gradient(130% 90% at 50% 105%, rgba(110, 140, 62, 0.2), transparent 62%),
    linear-gradient(160deg, #0e120b, #070304);
}

.element-panel:hover {
  transform: translateY(-7px);
  border-color: rgba(var(--el), 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 36px rgba(var(--el), 0.22);
}

.element-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.element-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.2rem 1.3rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  pointer-events: none;
}
.element-symbol {
  display: inline-grid;
  place-items: center;
  color: rgb(var(--el));
  filter: drop-shadow(0 0 10px rgba(var(--el), 0.55));
}
.element-symbol svg { width: 40px; height: 40px; }
.element-body h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  margin: 0.5rem 0 0.2rem;
}
.element-body p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.element-cta {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--el));
}

/* Grille de médias (créations, bougies) : dernière ligne étirée */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  max-width: 1000px;
  margin-inline: auto;
}
.video-grid > .photo {
  flex: 1 1 230px;
  max-width: 320px;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.photo-placeholder svg {
  width: 54px; height: 54px;
  color: var(--rose);
  opacity: 0.65;
}

.photo::after {
  /* voile doré au survol */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(214, 69, 96, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.photo:hover::after { opacity: 1; }

/* ---------- Citation rituelle ---------- */
.rite-quote {
  text-align: center;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.rite-quote blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 400;
  color: var(--rose-bright);
  line-height: 1.5;
}
.rite-quote cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Déroulé / timeline ---------- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  max-width: 700px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 26px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}
.timeline li {
  position: relative;
  padding: 0 0 2.6rem 4.6rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0; top: 2px;
  width: 53px; height: 53px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--rose);
  background: var(--bg-2);
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.timeline p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Liste symboles / rituels ---------- */
.rituals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
/* Base large + plafond à 1/3 : exactement 3 cartes par ligne sur ordinateur,
   donc 6 rituels = 2 lignes de 3, et jamais une carte étirée sur toute la largeur. */
.ritual {
  flex: 1 1 300px;
  max-width: calc(33.333% - 0.8rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.3rem;
  background: rgba(18, 10, 14, 0.5);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.ritual:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.ritual-symbol {
  font-size: 1.5rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.ritual h3 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.ritual p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Termes du glossaire (infobulle) ---------- */
.terme {
  border-bottom: 1px dotted var(--line-strong);
  cursor: help;
  color: var(--cream);
  position: relative;
}
.terme::after {
  content: "✦";
  font-size: 0.55em;
  vertical-align: super;
  color: var(--rose);
  margin-left: 1px;
}

.terme-bulle {
  position: absolute;
  z-index: 150;
  max-width: min(320px, 88vw);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(10, 5, 8, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 26px rgba(214, 69, 96, 0.14);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.terme-bulle.is-visible { opacity: 1; transform: none; }
.terme-bulle strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--rose-bright);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.terme-bulle .bulle-lien {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- Glossaire : liste de définitions ---------- */
.glossaire-groupe { margin-bottom: 3rem; }
.glossaire-groupe > h2 {
  font-size: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.glossaire-liste { margin: 0; }
.glossaire-liste dt {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--rose-bright);
  margin-top: 1.6rem;
}
.glossaire-liste dt:first-child { margin-top: 0; }
.glossaire-liste dd {
  margin: 0.35rem 0 0;
  color: var(--text);
}

/* Sommaire ancré du glossaire */
.glossaire-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.glossaire-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.glossaire-nav a:hover { color: var(--rose-bright); border-color: var(--line-strong); }

/* ---------- Maillage : « à découvrir aussi » ---------- */
.toile {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.toile-lien {
  flex: 1 1 240px;
  display: block;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 10, 14, 0.5);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.toile-lien:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.toile-lien strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.toile-lien span {
  font-size: 0.9rem;
  color: var(--muted);
}
.toile-lien[data-externe] strong::after {
  content: " ↗";
  font-size: 0.75em;
  color: var(--rose);
}

/* ---------- FAQ (details/summary) ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--rose);
  transition: transform 0.4s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--rose-bright); }
.faq .faq-answer {
  padding: 0 0.2rem 1.6rem;
  color: var(--muted);
}
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 130vmin; height: 130vmin;
  background: radial-gradient(circle, rgba(214, 69, 96, 0.1), transparent 55%);
  pointer-events: none;
}
.cta-final .container { position: relative; }
.cta-final h2 { max-width: 700px; margin-inline: auto; }
.cta-final p { color: var(--muted); max-width: 560px; margin: 0 auto 2.4rem; }

/* ---------- Page d'en-tête interne ---------- */
.page-hero {
  padding: clamp(10rem, 18vw, 13rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
}
.page-hero .hero-sub { margin-bottom: 0; }

.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li:not(:last-child)::after {
  content: "✦";
  margin-left: 0.5rem;
  color: var(--rose-deep);
  font-size: 0.6rem;
  vertical-align: middle;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--rose-bright); }
.breadcrumb [aria-current="page"] { color: var(--rose); }

/* ---------- Prose (contenu long) ---------- */
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--rose); }

.lead {
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 300;
}

/* ---------- Encadré / note ---------- */
.callout {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  background: linear-gradient(160deg, rgba(214, 69, 96, 0.07), transparent 60%);
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Formulaire contact ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(18, 10, 14, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(214, 69, 96, 0.16);
}
.field select option { background: var(--surface); }

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 860px) {
  .contact-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
}
.contact-aside h2 { font-size: 1.5rem; }
.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.contact-item svg { width: 22px; height: 22px; color: var(--rose); flex: none; margin-top: 0.25rem; }
.contact-item p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.contact-item strong { display: block; color: var(--cream); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 320px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.social-link svg { width: 18px; height: 18px; flex: none; }
.social-link:hover {
  color: var(--rose-bright);
  border-color: var(--line-strong);
  box-shadow: 0 0 22px rgba(214, 69, 96, 0.18);
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer li a { color: var(--muted); font-size: 0.95rem; }
.site-footer li a:hover { color: var(--rose-bright); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.83rem;
}
.footer-bottom .moon-mark { color: var(--rose-deep); letter-spacing: 0.4em; }

/* ---------- Révélation au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  #stars { display: none; }
  /* La rose apparaît entièrement dessinée */
  .rose-draw { stroke-dashoffset: 0; animation: none; }
}

/* ==========================================================================
   RESPONSIVE — placé en fin de feuille pour toujours l'emporter dans la cascade
   ========================================================================== */

/* ---------- Tablette & petit portable : 2 colonnes ---------- */
@media (max-width: 1000px) {
  .ritual {
    flex-basis: calc(50% - 0.6rem);
    max-width: calc(50% - 0.6rem);
  }
  .card {
    flex-basis: calc(50% - 0.8rem);
    max-width: calc(50% - 0.8rem);
  }
  .toile-lien { flex-basis: calc(50% - 0.5rem); }
  .video-grid > .photo { flex-basis: calc(50% - 0.8rem); max-width: none; }
}

/* ---------- Mobile : une seule colonne, partout ---------- */
@media (max-width: 620px) {
  .ritual,
  .card,
  .toile-lien,
  .video-grid > .photo {
    flex-basis: 100%;
    max-width: 100%;
  }

  /* Respiration générale */
  section { padding: 3.2rem 0; }
  .container { width: 90vw; }
  body { font-size: 1rem; }

  /* Titres : on évite les débordements de mots longs */
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .page-hero { padding: 8.5rem 0 2.5rem; }
  /* 12,8 px minimum : en dessous, les majuscules espacées deviennent pénibles à lire */
  .kicker { letter-spacing: 0.2em; font-size: 0.8rem; }
  .hero-scroll { font-size: 0.75rem; }
  .breadcrumb { font-size: 0.75rem; }
  .card-link, .element-cta { font-size: 0.78rem; }

  /* Boutons : pleine largeur, cible tactile confortable */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn {
    justify-content: center;
    padding: 1rem 1.4rem;
    min-height: 48px;
    letter-spacing: 0.14em;
  }

  /* Cartes : moins de padding, texte plus lisible */
  .card { padding: 2rem 1.4rem 1.8rem; }
  .ritual { padding: 1.3rem 1.2rem; }
  .toile-lien { padding: 1.1rem 1.2rem; }

  /* Timeline : décalage réduit */
  .timeline li { padding-left: 3.6rem; padding-bottom: 2rem; }
  .timeline::before { left: 20px; }
  .timeline-dot { width: 42px; height: 42px; font-size: 1.05rem; }

  /* Éléments : une colonne, format plus compact */
  .element-panel { aspect-ratio: 3 / 2; }
  .element-body h3 { font-size: 1.7rem; }

  /* Formulaire : champs confortables au doigt */
  .field input, .field select, .field textarea {
    font-size: 16px; /* empêche le zoom automatique sur iOS */
    padding: 0.9rem 1rem;
  }
  .contact-aside { padding-top: 1.6rem; }

  /* Glossaire */
  .glossaire-nav { gap: 0.5rem; }
  .glossaire-nav a { padding: 0.6rem 0.95rem; font-size: 0.78rem; }
  .glossaire-liste dt { font-size: 1.15rem; }

  /* Cibles tactiles confortables sur tout petit écran, souris ou doigt */
  .nav-list a,
  .card-link,
  .glossaire-nav a,
  .social-link,
  .breadcrumb a,
  .toile-lien,
  .faq summary {
    min-height: 44px;
  }
  .card-link, .glossaire-nav a, .social-link {
    display: inline-flex;
    align-items: center;
  }
  .faq summary { align-items: center; }

  /* Citations */
  .rite-quote blockquote { font-size: clamp(1.25rem, 6vw, 1.7rem); }

  /* Pied de page : liens espacés, faciles à viser au doigt */
  .footer-bottom { justify-content: center; text-align: center; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
  }
  .footer-grid { gap: 2rem; }

  /* Infobulles : jamais plus larges que l'écran */
  .terme-bulle { max-width: calc(100vw - 24px); }
}

/* ---------- Très petits écrans ---------- */
@media (max-width: 380px) {
  .brand { font-size: 1.25rem; }
  .brand svg { width: 28px; height: 28px; }
  .card-emblem { width: 62px; height: 62px; }
  .card-emblem svg { width: 30px; height: 30px; }
}

/* ---------- Cibles tactiles : au moins 44 px (recommandation WCAG) ---------- */
@media (hover: none) and (pointer: coarse) {
  .nav-list a,
  .card-link,
  .glossaire-nav a,
  .social-link,
  .faq summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .card-link, .glossaire-nav a, .social-link { display: inline-flex; }
  .faq summary { justify-content: space-between; }
  /* Pas d'effet de survol figé sur tactile */
  .card:hover, .ritual:hover, .toile-lien:hover, .photo:hover { transform: none; }
}

/* ---------- Paysage sur mobile : hero moins haut ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero-rose { width: 90px; }
}

/* ---------- Impression ---------- */
@media print {
  #stars, .site-header, .hero-scroll, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #222; }
  h1, h2, h3 { color: #111; }
}
