/* Site hommage — responsive ordinateur, tablette et smartphone */
:root {
  color-scheme: light;
  --bg: #efe8dc;
  --card: rgba(255, 252, 246, 0.94);
  --ink: #27231f;
  --muted: #6b6257;
  --line: #d9cdb9;
  --accent: #796851;
  --accent-dark: #4e4233;
  --shadow: 0 24px 70px rgba(56, 45, 31, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.85), transparent 36rem),
    linear-gradient(135deg, #efe7da 0%, #f8f4ec 48%, #e3d8c5 100%);
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
  line-height: 1.75;
}

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  text-align: center;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem) 1.5rem;
}

.preview-image {
  width: min(100%, 720px);
  height: auto;
  display: block;
  margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 .4rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.08;
  color: var(--accent-dark);
}

.subtitle {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 0 clamp(1rem, 5vw, 4rem) 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.35rem;
  padding: .45rem .8rem;
  color: var(--accent-dark);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf2;
  font: 700 .88rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.social-links a:hover,
.social-links a:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.tributes {
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}

.tribute-block {
  padding: clamp(1rem, 3vw, 1.7rem) 0;
  border-top: 1px solid var(--line);
}

.tribute-block h2 {
  margin: 0 0 .6rem;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.25;
}

.tribute-block p {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

[dir="rtl"] {
  text-align: right;
  font-family: "DejaVu Sans", Arial, sans-serif;
}

.signature {
  border-top: 1px solid var(--line);
  padding: 1.2rem clamp(1rem, 5vw, 4rem) 1.5rem;
  color: var(--muted);
  background: rgba(239, 232, 220, .5);
  font-size: clamp(.95rem, 2vw, 1.05rem);
}

@media (max-width: 640px) {
  body { line-height: 1.68; }
  .page-shell { padding: .75rem; }
  .card { border-radius: 1rem; }
  .hero { padding-top: 1rem; }
  .preview-image { border-radius: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
