@import '../base/variables.css';
@import '../base/reset.css';
@import '../base/typography.css';

.topbar {
  background: var(--gris-f);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 2px solid var(--dore);
}

.topbar-brand {
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--lavande);
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 0;
}

.topbar-brand span {
  color: var(--dore);
}

.topbar nav {
  display: flex;
}

.topbar nav a {
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--lavande);
  text-decoration: none;
  padding: 18px 24px;
  transition: color .25s;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--dore);
}

.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(110,48,113,.92), rgba(47,48,49,.92));
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,48,113,.5), rgba(47,48,49,.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--fond);
  max-width: 900px;
  padding: 50px 30px;
}

.hero-breadcrumb,
.hero-cycle-num,
.hero-eyebrow {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--dore);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--fond);
  margin: 18px 0 12px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px auto 18px;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  height: 1px;
  width: 90px;
  background: rgba(255,255,255,.6);
}

.summary-section {
  padding: 60px 30px;
}

.summary-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 30px;
  align-items: start;
}

.summary-label,
.summary-meta {
  font-size: .7rem;
  color: var(--violet);
}

.summary-text {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--gris-f);
}

.chapters-grid {
  display: grid;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.chapter-card {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(110,48,113,.2);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.chapter-card h3 {
  font-size: 1.3rem;
  color: var(--violet);
}

.chapter-card p {
  color: var(--gris-m);
  font-style: italic;
}

.chapter-link {
  color: var(--dore);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-breadcrumb,
.hero-cycle-num,
.hero-eyebrow {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--dore);
  text-transform: uppercase;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-breadcrumb a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.hero-type {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

.diamond-sm {
  width: 8px;
  height: 8px;
  background: var(--dore);
  transform: rotate(45deg);
  display: inline-block;
}

.summary-label-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-label,
.summary-meta {
  font-size: .7rem;
  color: var(--violet);
}

.summary-meta {
  font-family: 'Cinzel', serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.7;
}

.summary-genre {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gris-m);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: min(92%, 900px);
  text-align: center;
  padding: 60px 30px 50px;
}

.chapter-page {
  max-width: 900px;
  margin: 44px auto 0;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(110,48,113,.12);
  box-shadow: 0 18px 32px rgba(0,0,0,.06);
  padding: 46px 52px 42px;
}

.ch-corps {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.85;
  color: var(--gris-f);
}

.ch-corps p {
  margin-bottom: 1.15em;
}

.ch-corps p:last-child {
  margin-bottom: 0;
}

.ch-corps em {
  color: var(--violet);
}

.ch-corps strong {
  color: var(--violet);
}

.ch-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 28px 0 18px;
}

.ch-sep::before,
.ch-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dore), transparent);
}

.ch-sep-diamond {
  width: 10px;
  height: 10px;
  background: var(--dore);
  transform: rotate(45deg);
  display: inline-block;
}

.img-paysage,
.img-carre,
.img-float-droite {
  margin: 28px 0 12px;
}

.img-paysage {
  position: relative;
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(233,221,238,.9));
  border: 1px solid rgba(110,48,113,.18);
  box-shadow: 0 26px 50px rgba(24,17,29,.08), inset 0 0 0 1px rgba(255,255,255,.32);
}

.img-paysage::before,
.img-paysage::after {
  content: '';
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(225,177,77,.8);
  border-style: solid;
  pointer-events: none;
}

.img-paysage::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.img-paysage::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 2px 2px 0;
}

.img-paysage img {
  display: block;
  width: 100%;
  border: 1px solid rgba(110,48,113,.14);
  box-shadow: 0 10px 22px rgba(0,0,0,.09);
}

.img-placeholder {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(110,48,113,.08), rgba(225,177,77,.12));
  border: 1px solid rgba(110,48,113,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-icon-diamond {
  width: 52px;
  height: 52px;
  border: 2px solid var(--dore);
  transform: rotate(45deg);
  position: relative;
  opacity: .9;
}

.placeholder-text {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(47,48,49,.7);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
}

.img-legende {
  margin: 10px 0 0;
  text-align: center;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-m);
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.img-float-droite {
  float: right;
  width: min(36%, 280px);
  margin: 8px 0 18px 28px;
}

.ch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(110,48,113,.18);
  color: var(--gris-m);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ch-footer-num {
  color: var(--dore);
  font-size: .8rem;
}

.ch-nav-btn,
.ch-nav-center a {
  color: var(--violet);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ch-nav-btn {
  border: 1px solid rgba(110,48,113,.2);
  padding: 10px 16px;
  background: rgba(255,255,255,.75);
}

.ch-nav-center {
  text-align: center;
}

@media (max-width: 760px) {
  .chapter-page {
    padding: 30px 20px 28px;
  }

  .img-float-droite {
    float: none;
    width: 100%;
    margin: 18px 0;
  }
}

.cycles-section {
  padding: 28px 20px 40px;
}

.section-header {
  text-align: center;
  margin: 0 auto 36px;
  position: relative;
}

.section-label {
  margin: 0 0 14px;
  letter-spacing: .28em;
  font-weight: 600;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  line-height: 1.1;
  letter-spacing: .02em;
  font-weight: 500;
}

.section-rule {
  margin-top: 18px;
  position: relative;
  gap: 18px;
}

.section-rule::before,
.section-rule::after {
  content: '';
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,48,113,.4), transparent);
}

.cycles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.cycle-card {
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(249,244,251,.96) 100%);
  border: 1px solid rgba(110,48,113,.15);
  border-top: 3px solid var(--dore);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(88, 54, 88, .06);
  position: relative;
}

.cycle-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225,177,77,.8), transparent);
}

.cycle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(110,48,113,.14);
  border-color: rgba(110,48,113,.22);
}

.cycle-cover-placeholder {
  position: relative;
  min-height: 190px;
  background: linear-gradient(135deg, rgba(238,230,245,1) 0%, rgba(224,213,233,1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(110,48,113,.12);
}

.placeholder-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--violet);
}

.placeholder-label {
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gris-m);
}

.cycle-body {
  padding: 20px 20px 12px;
}

.cycle-num {
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 10px;
}

.cycle-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--violet);
  margin: 0;
  letter-spacing: .01em;
}

.cycle-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(110,48,113,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(110,48,113,.02));
}

.status-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 7px 10px;
  border: 1px solid rgba(110,48,113,.2);
  background: rgba(110,48,113,.04);
  color: var(--violet);
}

.cycle-link {
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dore);
  position: relative;
  padding-bottom: 2px;
}

.cycle-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform .2s ease;
}

.cycle-link:hover::after {
  transform: scaleX(1);
}

.chapter-list {
  display: grid;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.chapter-item {
  display: grid;
  grid-template-columns: 110px 1fr 32px;
  gap: 18px;
  align-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(110,48,113,.14);
  text-decoration: none;
  padding: 16px 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.chapter-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 24px rgba(110,48,113,.08);
}

.chapter-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(110,48,113,.08), rgba(225,177,77,.1));
  border: 1px solid rgba(110,48,113,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-num {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--violet);
}

.chapter-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapter-num {
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dore);
}

.chapter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: var(--violet);
  margin: 0;
}

.chapter-hook {
  color: var(--gris-m);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
}

.chapter-link-icon {
  color: var(--dore);
  font-size: 1.6rem;
}

.cycle-nav,
.chapter-nav {
  max-width: 1100px;
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
}

.cycle-nav-btn,
.ch-nav-btn,
.cycle-nav-center a,
.ch-nav-center a {
  color: var(--violet);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cycle-nav-btn,
.ch-nav-btn {
  border: 1px solid rgba(110,48,113,.2);
  padding: 10px 16px;
  background: rgba(255,255,255,.75);
}

.cycle-nav-center,
.ch-nav-center {
  text-align: center;
}

@media (max-width: 760px) {
  .chapter-item {
    grid-template-columns: 80px 1fr;
  }

  .chapter-link-icon {
    display: none;
  }

  .cycles-grid {
    grid-template-columns: 1fr;
  }

  .cycle-nav,
  .chapter-nav {
    flex-direction: column;
  }
}

.view-switcher {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: transparent;
}

.switcher-label {
  color: var(--violet);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.switch-btn {
  border: 1px solid rgba(110,48,113,.22);
  background: rgba(255,255,255,.7);
  color: var(--violet);
  padding: 10px 16px;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.switch-btn:hover,
.switch-btn.active {
  background: var(--violet);
  color: #fff;
  transform: translateY(-1px);
}

.page-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.hero-corner,
.hero-corner-br {
  position: absolute;
  width: 120px;
  height: 120px;
  border-color: rgba(225,177,77,.7);
  border-style: solid;
  pointer-events: none;
}

.hero-corner {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.hero-corner-br {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

.narrative-container {
  max-width: 980px;
  margin: 36px auto 0;
  padding: 0 0 20px;
}

.narrative-body {
  max-width: 760px;
  margin: 0 auto;
}

.narrative-body p {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.85;
  color: var(--gris-f);
  margin: 0 0 1.2em;
}

.narrative-body p.dropcap::first-letter {
  float: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.8rem;
  line-height: 0.82;
  padding-right: 10px;
  color: var(--violet);
}

.single-image-wrapper {
  margin: 2.4rem auto;
}

.single-image-box {
  width: 100%;
  background: linear-gradient(135deg, rgba(110,48,113,.08), rgba(225,177,77,.12));
  border: 1px solid rgba(110,48,113,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--violet);
  padding: 28px;
}

.placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--dore);
  display: block;
  position: relative;
}

.placeholder-icon::before,
.placeholder-icon::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--dore);
  transform: rotate(45deg);
}

.placeholder-lbl {
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-m);
}

.image-caption {
  margin-top: 12px;
  color: var(--gris-m);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

.narrative-quote {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 1.6rem 2rem;
  border-left: 4px solid var(--dore);
  background: rgba(223,213,235,.28);
  color: var(--violet);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.4;
  font-style: italic;
  box-shadow: inset 0 0 0 1px rgba(110,48,113,.08);
}

.narrative-quote span {
  color: var(--dore);
}

.narrative-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 18px;
  margin-top: 28px;
  border-top: 1px solid rgba(110,48,113,.18);
  color: var(--gris-m);
  font-size: .63rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.narrative-footer-sym {
  color: var(--dore);
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid rgba(110,48,113,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(243,237,247,.92));
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-kicker {
  font-family: 'Cinzel', serif;
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dore);
}

.footer-brand strong {
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--violet);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-transform: none;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gris-m);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--violet);
}

.footer-copy {
  margin: 0;
  color: var(--gris-m);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: .08em;
}

.footer-copy span {
  color: var(--dore);
  margin: 0 6px;
}

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    gap: 12px;
  }
  .view-switcher {
    gap: 8px;
    padding: 0 12px;
  }

  .switch-btn {
    width: 100%;
  }

  .page-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .narrative-quote {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
