@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-400.ttf) format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/playfair-700.ttf) format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-italic-400.ttf) format('truetype');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora-400.ttf) format('truetype');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/lora-500.ttf) format('truetype');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora-italic-400.ttf) format('truetype');
}

:root {
  --bg: #F7F5F2;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --accent-blue: #2B5A8C;
  --accent-red: #C23A2E;
  --reading-width: 680px;
  --border: #d0cdc8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  line-height: 1.8;
}

sup {
  font-size: 0.6em;
  line-height: 0;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-caption {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.8rem 2rem 0;
}

.hero-text {
  position: absolute;
  top: 6vh;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  color: #fff;
  padding: 0 2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-text .surtitre {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.35;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

.hero-text .sous-titre {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  margin-top: 1.2rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.lang-switch {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  z-index: 3;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.lang-switch a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.lang-switch a:hover {
  opacity: 0.8;
}

.lang-switch .sep {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.3em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* =============================================
   CONTENT
   ============================================= */

.content {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.content.content--first {
  padding-top: 8rem;
}

.content.content--continuation {
  padding-top: 0;
}

.content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.content p:last-child {
  margin-bottom: 0;
}

/* =============================================
   IMAGE BREAK
   ============================================= */

.image-break {
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.image-break img {
  width: 100%;
  display: block;
}

.image-break.image-break--small {
  max-width: 500px;
}

.image-break.image-break--small img {
  width: 100%;
}

.image-break figcaption {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.8rem;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* =============================================
   PULL QUOTE
   ============================================= */

.pull-quote {
  max-width: 780px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  line-height: 1.4;
  color: var(--text);
  font-weight: 400;
  font-style: italic;
}

/* =============================================
   SECTION TITLE
   ============================================= */

.section-title {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 4rem 2rem 0;
}

.section-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--text);
}

/* =============================================
   DISTANCES
   ============================================= */

.distances {
  max-width: 720px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.distance-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 2rem;
}

.distance-row:last-child {
  margin-bottom: 0;
}

.distance-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-blue);
  white-space: nowrap;
  text-align: right;
  min-width: 100px;
}

.distance-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  border-top: 1px solid var(--border);
  max-width: 960px;
  margin: 6rem auto 0;
  padding: 3rem 2rem 4rem;
  text-align: center;
}

.site-footer .contact {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.site-footer .contact a {
  color: var(--accent-blue);
  text-decoration: none;
}

.site-footer .contact a:hover {
  text-decoration: underline;
}

.site-footer .links {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.site-footer .links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--accent-red);
}

.site-footer .links .sep {
  margin: 0 0.8em;
  opacity: 0.4;
}

.site-footer .credits {
  font-size: 0.72rem;
  color: #a0a0a0;
  line-height: 1.6;
}

.site-footer .credits a {
  color: #a0a0a0;
  text-decoration: underline;
  text-decoration-color: #ccc;
}

.site-footer .credits a:hover {
  color: var(--text-secondary);
}

/* =============================================
   INLINE LINKS
   ============================================= */

.content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #c0bdb8;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.content a:hover {
  text-decoration-color: var(--accent-blue);
  text-decoration-style: solid;
}

/* =============================================
   FOOTNOTES
   ============================================= */

.footnote-ref {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  color: var(--text-secondary);
  text-decoration: none;
}

.footnote-ref:hover {
  color: var(--accent-blue);
}

.footnotes {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border);
}

.footnotes h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footnotes ol {
  list-style: none;
  counter-reset: footnote;
  padding: 0;
}

.footnotes li {
  counter-increment: footnote;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 2em;
  position: relative;
}

.footnotes li::before {
  content: counter(footnote) ".";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

.footnotes li a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: #ccc;
}

.footnotes li a:hover {
  color: var(--text);
}

/* =============================================
   LEGAL PAGE
   ============================================= */

.legal-header {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.legal-header a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--accent-blue);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-header a:hover {
  text-decoration: underline;
}

.legal-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 2rem;
}

.legal-content {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.legal-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: left;
}

.legal-content a {
  color: var(--accent-blue);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hero-text {
    top: 4vh;
  }

  .hero-text .surtitre {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text .sous-titre {
    font-size: 0.85rem;
  }

  .content {
    padding: 4rem 1.5rem;
  }

  .content.content--first {
    padding-top: 5rem;
  }

  .pull-quote {
    padding: 0 1.5rem;
    margin: 3rem auto;
  }

  .pull-quote p {
    font-size: 1.4rem;
  }

  .section-title {
    padding: 3rem 1.5rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .distances {
    padding: 2.5rem 1.5rem;
  }

  .distance-row {
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 2.5rem;
  }

  .distance-num {
    text-align: left;
    min-width: auto;
  }

  .image-break {
    padding: 0 1rem;
  }

  .site-footer {
    padding: 2.5rem 1.5rem 3rem;
    margin-top: 4rem;
  }

  .legal-header {
    padding: 3rem 1.5rem 1.5rem;
  }

  .legal-header h1 {
    font-size: 1.8rem;
  }

  .legal-content {
    padding: 2rem 1.5rem 4rem;
  }

  .lang-switch {
    top: 1.2rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-text .surtitre {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .pull-quote p {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }
}
