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

:root {
  --bg:           #faf9f7;
  --text:         #1a1a1a;
  --muted:        #71717a;
  --border:       #e2ddd8;
  --sep:          #4a5568;
  --accent:       #1d4ed8;
  --data-bg:      #f2ede8;
  --practical-bg: #f4f7f6;
  --max-w:        1100px;
  --serif:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:         system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  font-size: 1.05rem;
}

/* ─────────────────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────────────────── */
.site-nav {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner { max-width: var(--max-w); margin: 0 auto; }
.nav-home {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .04em;
}
.nav-home:hover { color: var(--text); }

/* ─────────────────────────────────────────────────────────────
   S1 · HÉROS
───────────────────────────────────────────────────────────── */
.s-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 3.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 5rem;
  align-items: center;
}
/* Sans photo : texte centré pleine largeur */
.hero-inner.hero-solo {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.hero-inner.hero-solo .hero-media { display: none; }

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 1.8rem;
}
.hero-intro {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.78;
  color: #3a3a3a;
  max-width: 500px;
}
.hero-intro p              { margin-bottom: .9rem; }
.hero-intro p:last-child   { margin-bottom: 0; }

/* Polaroïd / format archive */
.polaroid {
  background: #fff;
  padding: 10px 10px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 2px 10px rgba(0,0,0,.08);
  transform: rotate(1.4deg);
  max-width: 340px;
  margin: 0 auto;
}
.polaroid-img {
  overflow: hidden;
  aspect-ratio: 3/4;
}
.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.06) sepia(18%);
}
.polaroid-caption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: .64rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  padding: 0 4px;
}

/* ─────────────────────────────────────────────────────────────
   S2 · DATA-GRID
───────────────────────────────────────────────────────────── */
.s-data {
  background: var(--data-bg);
  border-bottom: 1px solid var(--border);
}
.data-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.data-card {
  padding: 2.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .2rem;
  border-right: 1px solid var(--border);
}
.data-card:last-child { border-right: none; }

.data-num {
  font-family: var(--sans);
  font-size: 3.4rem;
  font-weight: 200;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.025em;
  margin-top: auto; /* centre verticalement le bloc num+unit dans l'espace au-dessus du label */
}
.data-unit {
  font-family: var(--sans);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  min-height: 1.1em;
}
.data-label {
  font-family: var(--sans);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sep);
  margin-top: auto; /* aligne tous les labels en bas de carte */
  padding-top: .8rem;
}
/* Texte à la place d'un chiffre dans la case accès */
.data-num--text {
  font-size: 1.6rem;
  font-weight: 400;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
}

/* ─────────────────────────────────────────────────────────────
   S3 · HISTOIRE
───────────────────────────────────────────────────────────── */
.s-histoire {
  padding: 4.5rem 2rem;
}
.s-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* En-tête avec règles flanquantes */
.s-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.s-rule {
  flex: 1;
  height: 1px;
  background: var(--sep);
  display: block;
  opacity: .5;
}
.s-heading {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--sep);
  white-space: nowrap;
}

/* Colonnes asymétriques */
.histoire-cols {
  display: grid;
  grid-template-columns: 59% 1fr;
  gap: 0 4.5rem;
  align-items: start;
}
.histoire-main p            { margin-bottom: 1.35rem; }
.histoire-main p:last-child { margin-bottom: 0; }

/* Lettrine */
.drop-cap p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 5.2rem;
  font-weight: 700;
  float: left;
  line-height: .75;
  margin-right: .07em;
  margin-top: .08em;
  color: var(--sep);
}

/* Aside caractéristiques */
.histoire-aside {
  border-left: 1px solid var(--border);
  padding-left: 3rem;
  padding-top: .3rem;
}
.aside-title {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.aside-body {
  font-size: .93rem;
  line-height: 1.72;
  color: #454545;
}
.aside-body p            { margin-bottom: 1rem; }
.aside-body p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────
   S4 · GUIDE PRATIQUE
───────────────────────────────────────────────────────────── */
.s-pratique {
  background: var(--practical-bg);
  padding: 4.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pratique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.pratique-block        { margin-bottom: 2rem; }
.pratique-sep {
  border: none;
  border-top: 1px solid #d4d9d7;
  margin: 2.5rem 0;
}
.pratique-title {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--sep);
  margin-bottom: 1.1rem;
}
.pratique-body {
  font-size: .95rem;
  line-height: 1.78;
  color: #3a3a3a;
}
.pratique-body p            { margin-bottom: 1rem; }
.pratique-body p:last-child { margin-bottom: 0; }

/* Carte Google Maps */
.map-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Placeholder carte */
.map-placeholder {
  background: #e4ebe8;
  border: 1px dashed #9bb3ae;
  border-radius: 6px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: #5f8079;
}
.map-ph-pin {
  width: 30px;
  height: 30px;
  opacity: .55;
}
.map-ph-coords {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .06em;
  opacity: .7;
}

/* ─────────────────────────────────────────────────────────────
   CONCLUSION
───────────────────────────────────────────────────────────── */
.s-conclusion {
  padding: 3.5rem 2rem 5rem;
}
.conclusion-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.conclusion-text {
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.85;
  text-align: center;
}
.conclusion-text p            { margin-bottom: 1rem; }
.conclusion-text p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-media { order: -1; }
  .polaroid   { max-width: 260px; }

  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .data-card:nth-child(2) { border-right: none; }
  .data-card:nth-child(1),
  .data-card:nth-child(2) { border-bottom: 1px solid var(--border); }

  .histoire-cols {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
  }
  .histoire-aside {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 2rem;
  }

  .pratique-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 500px) {
  .s-hero   { padding: 2rem 1.2rem; }
  .s-data   .data-grid { grid-template-columns: 1fr 1fr; }
  .data-num { font-size: 2.6rem; }
  .s-histoire,
  .s-pratique,
  .s-conclusion { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* ─────────────────────────────────────────────────────────────
   HOME · HÉROS
───────────────────────────────────────────────────────────── */
.s-hero-home {
  background: #0A1128;
  padding: 7rem 2rem 6rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.hero-home-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-home-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 2.5rem;
}
.hero-home-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 2.5rem;
  max-width: 820px;
}
.hero-home-title em {
  color: #D4AF37;
  font-style: normal;
}
.hero-home-sub {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .9rem;
  max-width: 600px;
  line-height: 1.65;
}
.hero-home-desc {
  font-family: var(--sans);
  font-size: .8rem;
  color: #4A5568;
  max-width: 520px;
  line-height: 1.7;
  letter-spacing: .02em;
}

/* ─────────────────────────────────────────────────────────────
   HOME · INDEX GLOBAL
───────────────────────────────────────────────────────────── */
.s-index {
  background: var(--bg);
  padding: 5.5rem 2rem 6rem;
  border-top: 3px solid #0A1128;
}
.index-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 5rem;
  align-items: start;
}
.index-label {
  position: sticky;
  top: 5rem;
}
.index-label-text {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  display: block;
  margin-bottom: .9rem;
}
.index-count {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.index-groups { min-width: 0; }
.index-group  { margin-bottom: 4rem; }
.index-rule {
  border: none;
  border-top: 1px solid var(--sep);
  margin-bottom: 1.5rem;
  opacity: .35;
}
.index-group-title {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--sep);
  margin-bottom: 1.8rem;
}
.index-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem 2rem;
}
.index-links--archi {
  grid-template-columns: repeat(2, 1fr);
}
.index-links li a {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  line-height: 1.4;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.index-links li a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.index-links li a .count {
  font-family: var(--sans);
  font-size: .68rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   HOME · FOOTER SÉMANTIQUE
───────────────────────────────────────────────────────────── */
.s-footer-home {
  background: #0A1128;
  padding: 4.5rem 2rem 3rem;
  border-top: 1px solid #1a2544;
}
.footer-home-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 5rem;
  align-items: start;
  margin-bottom: 3rem;
}
.footer-home-label {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #4A5568;
  padding-top: .35rem;
}
.footer-home-text {
  font-family: var(--serif);
  font-size: .92rem;
  line-height: 1.85;
  color: #5a6a82;
}
.footer-home-text p            { margin-bottom: 1rem; }
.footer-home-text p:last-child { margin-bottom: 0; }
.footer-credit {
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--sans);
  font-size: .68rem;
  color: #2d3a4e;
  letter-spacing: .06em;
}

/* ─────────────────────────────────────────────────────────────
   LISTING · HÉROS
───────────────────────────────────────────────────────────── */
.s-listing-hero {
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.listing-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.listing-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: .8rem;
}
.listing-subtitle {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   LISTING · ITEMS
───────────────────────────────────────────────────────────── */
.s-listing {
  padding: 2.5rem 2rem 5rem;
}
.listing-items {
  max-width: var(--max-w);
  margin: 0 auto;
  list-style: none;
}
.listing-item {
  border-bottom: 1px solid var(--border);
}
.listing-item:first-child {
  border-top: 1px solid var(--border);
}
.listing-link {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
}
.listing-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--data-bg);
}
.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.06) sepia(18%);
}
.listing-link:hover .listing-name { color: var(--accent); }
.listing-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  transition: color .15s;
}
.listing-meta {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
}
.listing-info { min-width: 0; }
.listing-stats {
  display: flex;
  gap: 2rem;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}
.listing-stats span { min-width: 60px; }
.listing-arrow {
  font-size: .9rem;
  color: var(--border);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.listing-link:hover .listing-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE HOME & LISTING
───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .index-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .index-label { position: static; }
  .index-links,
  .index-links--archi { grid-template-columns: repeat(2, 1fr); }

  .footer-home-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .listing-link {
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
  }
  .listing-stats { display: none; }
}

@media (max-width: 500px) {
  .s-hero-home  { padding: 4.5rem 1.2rem 4rem; min-height: auto; }
  .s-index      { padding: 3.5rem 1.2rem 4rem; }
  .index-links,
  .index-links--archi { grid-template-columns: 1fr; }
  .s-footer-home { padding: 3rem 1.2rem 2rem; }
  .s-listing-hero { padding: 2.5rem 1.2rem 2rem; }
  .s-listing    { padding: 1.5rem 1.2rem 4rem; }
}
