/* ============================================================
   SOROR ROSA — STYLE.CSS
   Cabinet de clarté somatique
   ============================================================ */

/* ---------- 1. VARIABLES ---------- */
:root {
  --ardoise: #14161e;
  --ardoise-mid: #292c36;
  --ivoire: #f1e7d2;
  --ivoire-chaud: #e5d4b4;
  --ivoire-profond: #d2b88f;
  --rose: #a85e44;
  --rose-pale: #d8aa97;
  --terracotta: #7c3618;
  --gris: #54545e;
  --blanc: #faf5e6;
}

/* ---------- 2. RESET / BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--ardoise);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

ul {
  list-style: none;
}

em {
  font-style: italic;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- 3. UTILS — fade-in scroll ---------- */
.fi {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fi.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. SECTION LABEL ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--rose);
  margin-bottom: 1.6rem;
}

.section-label .label-line {
  display: inline-block;
  width: 1.8rem;
  height: 2px;
  background: var(--rose);
}

.section-label-center {
  justify-content: center;
  text-align: center;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--ardoise);
  margin-bottom: 1.6rem;
}

.section-title em {
  color: var(--terracotta);
  font-style: italic;
}

.section-text {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.95;
  opacity: 0.85;
  max-width: 64ch;
}

/* ============================================================
   1. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 4rem;
  background: rgba(253, 252, 250, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 94, 68, 0.18);
  transition: box-shadow 0.3s ease;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ardoise);
  line-height: 1;
}

.nav-logo span {
  color: var(--rose);
}

.nav-logo-img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.6rem;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  text-decoration: underline;
  text-decoration-color: rgba(168, 94, 68, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.55em;
  transition: opacity 0.3s ease, color 0.3s ease,
    text-decoration-color 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--rose);
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
}

/* État actif — section actuellement visible.
   Placé après :hover pour conserver la lecture
   du repère de section même au survol. */
.nav-links a.is-active,
.nav-links a.is-active:hover {
  opacity: 1;
  color: var(--terracotta);
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2.5px;
}

.nav-cta {
  background: var(--ardoise);
  color: var(--blanc);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
}

.nav-cta:hover {
  background: var(--terracotta);
  color: var(--blanc);
}

/* ============================================================
   2. HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../assets/img/sun-moon.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0b0f;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(241, 231, 210, 0.93) 0%,
    rgba(241, 231, 210, 0.8) 38%,
    rgba(241, 231, 210, 0.55) 70%,
    rgba(241, 231, 210, 0.4) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 9rem 5rem 6rem;
  max-width: 1450px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--rose);
  margin-bottom: 2rem;
}

.hero-eyebrow .eyebrow-line {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--rose);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.4rem, 5vw, 5.6rem);
  line-height: 1.08;
  color: var(--ardoise);
  margin-bottom: 2.2rem;
}

.hero-title em {
  color: var(--terracotta);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.9;
  opacity: 0.9;
  max-width: 60ch;
  margin-bottom: 2.6rem;
  color: var(--ardoise);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--ardoise);
  color: var(--blanc);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.05rem 2.2rem;
}

.btn-primary:hover {
  background: var(--terracotta);
  color: var(--blanc);
}

.btn-secondary {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  color: var(--ardoise);
}

.btn-secondary:hover {
  opacity: 1;
  color: var(--terracotta);
}

/* ============================================================
   3. CITATION BAND
   ============================================================ */
.citation-band {
  background: var(--ardoise);
  color: var(--ivoire);
  padding: 2rem 4rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* ============================================================
   4. OBJETS
   ============================================================ */
#objets {
  background: var(--blanc);
  padding: 7rem 4rem;
}

/* Bloc intro 2 colonnes */
.objets-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: start;
}

.objets-intro-left .section-text {
  max-width: none;
}

.objets-intro-right {
  border-left: 3px solid var(--rose-pale);
  padding-left: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.65;
  opacity: 0.92;
  color: var(--ardoise);
}

/* Grille objets 2x3
   align-items: start → chaque carte garde sa hauteur propre.
   Quand une carte s'ouvre, sa voisine ne s'étire pas. */
.obj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.obj-card {
  background: var(--blanc);
  padding: 2.6rem 2.4rem;
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(20, 22, 30, 0.22);
  transition: transform 0.4s ease, box-shadow 0.4s ease,
    background 0.35s ease, border-color 0.35s ease;
}

.obj-card:not(.obj-placeholder):hover,
.obj-card[data-open='true'] {
  background: var(--ivoire);
  border-color: var(--rose);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 22, 30, 0.14);
}

.obj-card-header {
  display: flex;
  flex-direction: column;
}

.obj-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ardoise);
  margin-bottom: 0.55rem;
}

.obj-tagline {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  color: var(--ardoise);
}

.obj-toggle {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.obj-toggle .arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}

.obj-card[data-open='true'] .obj-toggle .arrow {
  transform: rotate(180deg);
}

/* Détail déplié */
.obj-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.obj-detail-inner {
  padding-top: 1.8rem;
}

.obj-detail-label {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--ardoise-mid);
  margin-bottom: 0.8rem;
}

.obj-detail-text {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.85;
  opacity: 0.88;
  margin-bottom: 1.3rem;
  color: var(--ardoise);
}

.obj-rituel {
  background: var(--ivoire-chaud);
  border-left: 3px solid var(--rose);
  padding: 1.3rem 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.65;
  opacity: 0.95;
  margin-bottom: 1.4rem;
  color: var(--ardoise);
}

.obj-prix-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.4rem;
}

.obj-prix {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.78rem;
  color: var(--terracotta);
}

.obj-dispo {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  text-align: right;
  color: var(--ardoise);
}

/* Placeholder */
.obj-placeholder {
  background: var(--ivoire);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-color: rgba(20, 22, 30, 0.14);
}

.obj-placeholder:hover {
  background: var(--ivoire);
  transform: none;
  box-shadow: none;
}

.placeholder-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  text-align: center;
  opacity: 0.55;
  line-height: 1.5;
  color: var(--ardoise);
}

/* Bloc Fioles */
.fioles-block {
  margin-top: 3rem;
}

.fioles-block .section-label {
  margin-bottom: 2.5rem;
}

.fiole-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.fiole-card {
  background: var(--ivoire);
  padding: 2.6rem 2.4rem;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(20, 22, 30, 0.22);
  transition: transform 0.4s ease, box-shadow 0.4s ease,
    background 0.35s ease, border-color 0.35s ease;
}

.fiole-card:not(.obj-placeholder):hover {
  background: var(--ivoire-profond);
  border-color: var(--rose);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 22, 30, 0.14);
}

.fiole-theme {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--terracotta);
  border: 2px solid var(--rose);
  padding: 0.3rem 0.85rem;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.fiole-card .obj-tagline {
  margin-bottom: 1.2rem;
}

.fiole-rituel {
  margin-bottom: 1.4rem;
}

/* ============================================================
   5. PROGRAMMES
   ============================================================ */
#programmes {
  background: var(--ivoire);
  padding: 7rem 4rem;
}

.prog-intro {
  margin-bottom: 4rem;
  max-width: 1000px;
}

.prog-intro .section-text {
  max-width: 76ch;
}

.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.prog-card {
  background: var(--ivoire);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(20, 22, 30, 0.22);
  transition: transform 0.4s ease, box-shadow 0.4s ease,
    background 0.35s ease, border-color 0.35s ease;
}

.prog-card:hover {
  background: var(--ivoire-profond);
  border-color: var(--rose);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 22, 30, 0.14);
}

.prog-num {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 6.5rem;
  line-height: 1;
  color: var(--ardoise);
  opacity: 0.05;
  pointer-events: none;
}

.prog-badge {
  display: inline-block;
  border: 2px solid var(--terracotta);
  padding: 0.4rem 0.95rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--terracotta);
  margin-bottom: 1.8rem;
}

.prog-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--ardoise);
  margin-bottom: 0.5rem;
}

.prog-title em {
  color: var(--terracotta);
  font-style: italic;
}

.prog-subtitle {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.7;
  margin-bottom: 1.6rem;
  color: var(--ardoise);
}

.prog-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  opacity: 0.88;
  margin-bottom: 2rem;
  color: var(--ardoise);
}

.prog-phases {
  margin-bottom: 2.2rem;
}

.prog-phases li {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.98rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid rgba(20, 22, 30, 0.18);
  opacity: 0.92;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  color: var(--ardoise);
}

.prog-phases li:last-child {
  border-bottom: none;
}

.phase-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  font-size: 1.05rem;
  min-width: 1.6rem;
}

.prog-link {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ardoise);
  border-bottom: 2px solid var(--ardoise);
  padding-bottom: 0.35rem;
}

.prog-link:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* ============================================================
   6. SÉLÈNE
   ============================================================ */
#selene {
  background: var(--ivoire-chaud);
  padding: 7rem 4rem;
}

.selene-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.selene-text .section-label {
  justify-content: center;
}

.selene-text .section-title {
  text-align: center;
}

.selene-para {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.9;
  opacity: 0.92;
  margin: 0 auto 1.5rem;
  max-width: 60ch;
  color: var(--ardoise);
}

.selene-credentials {
  border-top: 2px solid rgba(20, 22, 30, 0.22);
  margin: 2.6rem auto 0;
  padding-top: 2.2rem;
  max-width: 60ch;
  text-align: left;
  display: inline-block;
}

.credential {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.88;
  line-height: 1.8;
  margin-bottom: 0.4rem;
  padding: 0.45rem 0.9rem;
  margin-left: -0.9rem;
  display: flex;
  gap: 0.7rem;
  color: var(--ardoise);
  border-left: 2px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease,
    transform 0.35s ease, opacity 0.35s ease;
}

.credential:hover {
  background: var(--ivoire);
  border-left-color: var(--rose);
  transform: translateX(6px);
  opacity: 1;
}

.credential:hover .cred-mark {
  color: var(--terracotta);
}

.cred-mark {
  color: var(--rose);
  flex-shrink: 0;
  opacity: 1;
  transition: color 0.35s ease;
}

.selene-signature {
  margin-top: 2.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  opacity: 0.9;
}

/* ============================================================
   7. FOOTER
   ============================================================ */
footer {
  background: #0d0f15;
  padding: 2.2rem 4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ivoire);
  opacity: 0.85;
}

.footer-copy {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ivoire);
  opacity: 0.78;
  text-align: center;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-social a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ivoire);
  opacity: 0.85;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--rose);
}

.footer-social .dot {
  color: var(--ivoire);
  opacity: 0.45;
}

.footer-credit {
  border-top: 1px solid rgba(241, 231, 210, 0.08);
  padding-top: 1.2rem;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ivoire);
  opacity: 0.45;
}

.footer-credit-name {
  color: var(--ivoire);
  opacity: 1;
  font-weight: 400;
  margin-left: 0.4rem;
}

/* ============================================================
   RESPONSIVE — max-width: 900px
   ============================================================ */
@media (max-width: 900px) {
  /* Nav */
  .nav {
    padding: 1.2rem 1.5rem;
  }
  .nav-links {
    display: none;
  }

  /* Hero */
  .hero-content {
    padding: 8rem 2rem 5rem;
  }
  .hero-actions {
    gap: 1.4rem;
  }

  /* Citation band */
  .citation-band {
    padding: 1.6rem 1.5rem;
    font-size: 1rem;
  }

  /* Objets */
  #objets {
    padding: 5rem 1.5rem;
  }
  .objets-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .objets-intro-right {
    border-left: none;
    border-top: 2px solid var(--rose-pale);
    padding-left: 0;
    padding-top: 2rem;
  }
  .obj-grid {
    grid-template-columns: 1fr;
  }
  .fiole-grid {
    grid-template-columns: 1fr;
  }

  /* Programmes */
  #programmes {
    padding: 5rem 1.5rem;
  }
  .prog-grid {
    grid-template-columns: 1fr;
  }
  .prog-card {
    padding: 2.5rem 2rem;
  }

  /* Sélène */
  #selene {
    padding: 5rem 1.5rem;
  }
  .selene-text {
    padding: 0;
  }
  .selene-credentials {
    text-align: left;
  }

  /* Footer */
  footer {
    padding: 2rem 1.5rem 1.4rem;
    gap: 1.2rem;
  }
  .footer-main {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
