/* ====== SECTION 1 — Infographie journée ====== */

/* Overlay ivoire léger au-dessus du panorama global (body) */
#section-1 {
  position: relative;
}
#section-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0.78) 0%,
    rgba(250, 247, 242, 0.90) 100%
  );
  pointer-events: none;
  z-index: 0;
}
#section-1 > .section-inner {
  position: relative;
  z-index: 1;
}

.s1-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-5) 0 var(--space-6);
  border-bottom: 1px solid var(--line);
}

.s1-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 1;
  color: var(--burgundy);
  letter-spacing: 0;
}
.s1-hero h1 .num {
  font-size: 1.5em;
  display: inline-block;
  line-height: 0.9;
}

.s1-hero .lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 520px;
  margin-top: var(--space-3);
  line-height: 1.6;
}

.s1-hero .meta-row {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.s1-hero .meta-row .item { display: flex; flex-direction: column; gap: 4px; }
.s1-hero .meta-row .item .k {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 700;
}
.s1-hero .meta-row .item .v {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-lead);
  color: var(--burgundy);
}

/* Date hexagon */
.date-hex-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 400 / 460;
  margin-left: auto;
}
.date-hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.date-hex-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14% 18%;
  color: var(--ivory);
  text-align: center;
  gap: 0;
}
.dh-logo {
  height: 22px;
  width: auto;
  display: block;
  margin: 0 auto 10px;
  opacity: 0.95;
}
.dh-anniv {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  color: white;
  line-height: 0.95;
  letter-spacing: 0;
}
.dh-rule {
  width: 40px;
  height: 1px;
  background: white;
  opacity: 0.4;
  margin: 12px 0 10px;
}
.dh-rule-2 {
  width: 44px;
  margin: 10px 0 8px;
}
.dh-day-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  opacity: 0.82;
  font-weight: 500;
}
.dh-day {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(70px, 10vw, 110px);
  line-height: 0.88;
  letter-spacing: 0;
  color: white;
  margin: 4px 0 0;
}
.dh-month {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: white;
  font-weight: 700;
  margin-top: 6px;
}
.dh-event {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: white;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.dh-hours {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  color: white;
  opacity: 0.7;
  font-weight: 600;
  text-transform: uppercase;
}

/* Moments grid */
.s1-infographic { padding: var(--space-6) 0; }

.s1-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

.moment {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: var(--space-4);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFB 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.35s cubic-bezier(.2,.8,.2,1),
              border-color 0.25s ease,
              background 0.35s ease;
  overflow: hidden;
}
.moment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(117,32,49,0.08) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.moment::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.moment:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(117, 32, 49, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.04);
}
.moment:hover::before { opacity: 1; }
.moment:hover::after { transform: scaleX(1); }
.moment > * { position: relative; z-index: 1; }

.moment .time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-data-m);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--burgundy);
}
.moment .time-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 0;
  background: var(--burgundy);
}

.moment .label {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 700;
}

.moment h3 {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  line-height: 1.2;
  color: var(--burgundy);
}

.moment p {
  font-size: var(--fs-body);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.moment .ico {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
}

.moment.feature {
  grid-column: span 6;
  background: linear-gradient(160deg, #8A2942 0%, #752031 55%, #5E1A27 100%);
  border: none;
  min-height: 260px;
  color: white;
  overflow: hidden;
  position: relative;
}
.moment.feature::before {
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.12) 0%, transparent 50%);
  opacity: 1;
}
.moment.feature::after {
  background: white;
  opacity: 0.4;
}
.moment.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(117, 32, 49, 0.28);
}
.moment.feature h3 {
  font-size: var(--fs-display-m);
  color: white;
}
.moment.feature .time-badge { color: white; }
.moment.feature .time-badge::before { background: white; }
.moment.feature .label { color: white; opacity: 0.7; }
.moment.feature p { color: white; opacity: 0.85; }

.moment.span-3 { grid-column: span 3; }
.moment.span-4 { grid-column: span 4; }
.moment.span-6 { grid-column: span 6; }
.moment.span-8 { grid-column: span 8; }

.moment.dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.moment.dark h3 { color: white; }
.moment.dark .time-badge { color: white; }
.moment.dark .time-badge::before { background: var(--burgundy-soft); }
.moment.dark .label { color: var(--grey); }
.moment.dark p { color: var(--grey-light); }
.moment.dark .ico { color: var(--burgundy-soft); }

.moment.light {
  background: var(--burgundy-bg);
  border: 1px solid var(--burgundy);
  border-left-width: 3px;
}
.moment.light .ico { color: var(--burgundy); }
.moment.light h3 { color: var(--burgundy); }

/* Stats */
.s1-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-5) 0;
  margin-top: var(--space-4);
  border-top: 2px solid var(--burgundy);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat .num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-data-l);
  color: var(--burgundy);
  line-height: 1;
  letter-spacing: 0;
}
.stat .num small {
  font-size: 0.45em;
  color: var(--grey);
  margin-left: 4px;
  letter-spacing: 0;
  font-weight: 700;
}
.stat .desc {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

/* Building card */
.building-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--cream);
  border-radius: 0;
  border: 1px solid var(--line);
  align-items: center;
  margin-top: var(--space-4);
}
.building-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 12px;
  color: var(--burgundy);
}
.building-card p {
  color: var(--ink-soft);
  line-height: 1.6;
}
.building-card .floors {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.floor-bar { display: flex; align-items: center; gap: 16px; }
.floor-bar .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  width: 100px;
  font-weight: 700;
}
.floor-bar .bar {
  flex: 1;
  height: 34px;
  background: white;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.floor-bar .bar .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0;
}
.floor-bar .bar .fill.alt {
  background: var(--ink);
  color: white;
}

/* Responsive */
@media (max-width: 800px) {
  .s1-hero { grid-template-columns: 1fr; }
  .date-hex-wrap { max-width: 280px; margin: 0 auto; }
  .s1-grid { grid-template-columns: 1fr 1fr; }
  .moment.span-3,
  .moment.span-4,
  .moment.span-6,
  .moment.span-8,
  .moment.feature { grid-column: span 2; }
  .s1-stats { grid-template-columns: repeat(2, 1fr); }
  .building-card { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 600px) {
  .s1-hero {
    gap: var(--space-4);
    padding: var(--space-3) 0 var(--space-4);
  }
  .s1-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
    word-break: break-word;
    hyphens: auto;
  }
  .s1-hero h1 .num { font-size: 1.3em; }
  .s1-hero .lead {
    font-size: 14px;
    max-width: 100%;
    margin-top: var(--space-2);
  }
  .s1-hero .meta-row {
    gap: var(--space-2);
    margin-top: var(--space-3);
  }
  .s1-hero .meta-row .item { flex: 1 1 45%; min-width: 0; }
  .s1-hero .meta-row .item .v {
    font-size: 13px;
    word-break: break-word;
  }
  .date-hex-wrap { max-width: 240px; }
  .dh-day { font-size: clamp(56px, 18vw, 80px); }
  .dh-anniv { font-size: clamp(22px, 6vw, 32px); }
  .s1-infographic { padding: var(--space-4) 0; }
  .s1-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .moment.span-3,
  .moment.span-4,
  .moment.span-6,
  .moment.span-8,
  .moment.feature {
    grid-column: span 1;
  }
  .moment { padding: var(--space-3); }
  .moment.feature { min-height: 200px; }
  .moment.feature h3 { font-size: 22px; }
  .moment h3 { font-size: 18px; }
  .moment .time-badge { font-size: 18px; }
  .s1-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    padding: var(--space-3) 0;
  }
  .stat .num { font-size: 36px; }
  .stat .desc { font-size: 10px; }
  .building-card {
    padding: var(--space-3);
    gap: var(--space-3);
  }
  .building-card h3 { font-size: 22px; }
  .floor-bar { gap: 10px; }
  .floor-bar .lbl {
    width: auto;
    min-width: 80px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .floor-bar .bar { height: 28px; }
  .floor-bar .bar .fill { font-size: 11px; padding-right: 8px; }
}

/* Small phones */
@media (max-width: 400px) {
  .s1-hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .s1-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .floor-bar { flex-direction: column; align-items: stretch; gap: 4px; }
  .floor-bar .lbl { min-width: 0; }
}
