/* ═══════════════════════════════════════════════════════════
   jules_cesar.css — Thème Rome antique · Spartacus · Arène
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --stone:       #1a1510;
  --stone-lt:    #2c2418;
  --stone-mid:   #3d3020;
  --marble:      #f0e8d8;
  --marble-dk:   #d8ccb4;
  --sand:        #c8a96a;
  --sand-lt:     #e8d090;
  --blood:       #8b1a1a;
  --blood-lt:    #c0392b;
  --crimson:     #9b2335;
  --gold:        #c9a227;
  --gold-lt:     #f0c040;
  --laurel:      #4a6c30;
  --text:        #1a1208;
  --text-lt:     #f0e8d8;
  --text-muted:  #8a7060;
  --radius:      6px;
  --shadow:      0 8px 40px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Times New Roman', Georgia, serif;
  background: var(--stone);
  color: var(--text-lt);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Texture marbre (pseudo-élément sur body) ─────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      105deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,.012) 60px,
      rgba(255,255,255,.012) 62px
    ),
    repeating-linear-gradient(
      -15deg,
      transparent,
      transparent 80px,
      rgba(255,255,255,.008) 80px,
      rgba(255,255,255,.008) 82px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Barre de progression ─────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--blood), var(--gold), var(--blood-lt));
  z-index: 1000;
  transition: width .1s linear;
}

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(26,21,16,.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
}

.hdr {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hdr-spqr {
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 2px 9px;
  border-radius: 3px;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(201,162,39,.4);
}

.hdr-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--marble);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

nav {
  margin-left: auto;
  display: flex;
  gap: .15rem;
  flex-wrap: wrap;
}

nav a {
  font-size: .75rem;
  color: rgba(240,232,216,.6);
  padding: 4px 9px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}

nav a:hover, nav a.active {
  background: var(--blood);
  color: var(--gold-lt);
}

/* ── Hero colisée ─────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 6rem;
  background:
    linear-gradient(180deg, rgba(26,21,16,.85) 0%, rgba(44,36,24,.9) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 58px,
      rgba(201,162,39,.06) 58px,
      rgba(201,162,39,.06) 60px
    );
  border-bottom: 3px solid var(--gold);
}

/* Arches du colisée en bas du héro */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55px;
  background: var(--stone-lt);
  clip-path: polygon(
    0% 100%, 0% 40%,
    3.3% 40%, 3.3% 0%, 6.6% 0%, 6.6% 40%,
    10%  40%, 10%  0%, 13.3% 0%, 13.3% 40%,
    16.6% 40%, 16.6% 0%, 20% 0%, 20% 40%,
    23.3% 40%, 23.3% 0%, 26.6% 0%, 26.6% 40%,
    30%  40%, 30%  0%, 33.3% 0%, 33.3% 40%,
    36.6% 40%, 36.6% 0%, 40% 0%, 40% 40%,
    43.3% 40%, 43.3% 0%, 46.6% 0%, 46.6% 40%,
    50%  40%, 50%  0%, 53.3% 0%, 53.3% 40%,
    56.6% 40%, 56.6% 0%, 60% 0%, 60% 40%,
    63.3% 40%, 63.3% 0%, 66.6% 0%, 66.6% 40%,
    70%  40%, 70%  0%, 73.3% 0%, 73.3% 40%,
    76.6% 40%, 76.6% 0%, 80% 0%, 80% 40%,
    83.3% 40%, 83.3% 0%, 86.6% 0%, 86.6% 40%,
    90%  40%, 90%  0%, 93.3% 0%, 93.3% 40%,
    96.6% 40%, 96.6% 0%, 100% 0%, 100% 40%,
    100% 100%
  );
  border-top: 2px solid var(--gold);
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--blood);
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 3px;
  margin-bottom: .8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--marble);
  line-height: 1.1;
  margin-bottom: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 .hl {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,162,39,.4);
}

.hero h1 .dates {
  font-size: .5em;
  font-weight: 400;
  color: var(--sand);
  display: block;
  letter-spacing: .1em;
  margin-top: .2rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--marble-dk);
  max-width: 520px;
  line-height: 1.7;
}

/* Bouclier / emblème latéral */
.hero-emblem {
  background: var(--stone-mid);
  border: 2px solid var(--gold);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  padding: 1.5rem 1.75rem;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.4), var(--shadow);
}

.emblem-label {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: .5rem;
}

.emblem-svg { display: block; margin: 0 auto .5rem; }

.emblem-motto {
  font-size: .75rem;
  color: var(--gold-lt);
  font-style: italic;
  letter-spacing: .06em;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Cards tabulae romaines ───────────────────────────────── */
.card {
  background: var(--stone-lt);
  border: 1px solid rgba(201,162,39,.25);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease, border-color .2s;
  position: relative;
  overflow: hidden;
}

/* Filigrane colonne */
.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.03));
  pointer-events: none;
}

.card.visible      { opacity: 1; transform: translateY(0); }
.card:hover        { border-color: rgba(201,162,39,.5); }
.card.blood-top    { border-top-color: var(--blood-lt); }
.card.laurel-top   { border-top-color: var(--laurel); }

.card-icon {
  font-size: 1.7rem;
  margin-bottom: .5rem;
  display: block;
}

h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-lt);
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

p   { margin-bottom: .75rem; color: var(--marble-dk); }
ul  { padding-left: 1.4rem; margin-bottom: .75rem; }
li  { margin-bottom: .4rem; color: var(--marble-dk); }
li::marker { color: var(--gold); }

strong { color: var(--sand-lt); }

/* ── Dates / timeline pills ───────────────────────────────── */
.date-pill {
  display: inline-block;
  background: var(--blood);
  border: 1px solid var(--blood-lt);
  color: var(--marble);
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: .6rem;
  letter-spacing: .05em;
}

/* ── Heritage list ────────────────────────────────────────── */
.heritage-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.heritage-list li {
  background: var(--stone-mid);
  border-left: 3px solid var(--gold);
  padding: .5rem .9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: var(--marble-dk);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 2px solid rgba(201,162,39,.3);
  background: var(--stone);
  position: relative;
  z-index: 1;
  letter-spacing: .04em;
}

footer strong { color: var(--gold); }

/* ── Bouton retour en haut ────────────────────────────────── */
#top-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px; height: 44px;
  background: var(--blood);
  border: 2px solid var(--gold);
  color: var(--gold-lt);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  text-decoration: none;
}

#top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#top-btn:hover   { background: var(--crimson); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .cols-2 { grid-template-columns: 1fr; }
  nav { display: none; }
}
