/* ================================================
   TERRE ODYSSEUS — Feuille de style commune
   Charte : noir profond / doré chaud / blanc cassé
   ================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --bg:      #0D0D0D;
  --gold:    #C9A84C;
  --gold-lt: #E8D5A3;
  --text:    #F5F0E8;
  --sec:     #BDBDBD;
  --border:  rgba(201, 168, 76, 0.2);
  --surface: rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* --- Base --- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

/* ================================================
   ACCESSIBILITÉ
   ================================================ */

/* Lien d'évitement — visible uniquement au focus clavier */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: #0D0D0D;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 0;
}

/* Focus visible global — ne jamais supprimer */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Taille minimale des zones de clic : 44 × 44 px (WCAG 2.5.5) */
a, button {
  min-height: 44px;
}

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ================================================
   TYPOGRAPHIE
   ================================================ */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

.label {
  display: block;
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ================================================
   EN-TÊTE
   ================================================ */

.site-header {
  text-align: center;
  padding: 36px 24px 28px;
  border-bottom: 1px solid var(--border);
}

.site-brand {
  display: inline-block;
  font-size: .68rem;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 4px 0;
  min-height: auto;
}
.site-brand:hover,
.site-brand:focus-visible {
  opacity: .8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sec);
  text-decoration: none;
  border: 1px solid rgba(201, 168, 76, .3);
  padding: 8px 18px;
  min-height: 44px;
  transition: color .2s, border-color .2s;
}
.back-link:hover,
.back-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

/* ================================================
   CONTENU PRINCIPAL
   ================================================ */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ================================================
   SÉPARATEUR
   ================================================ */

.sep {
  width: 44px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 40px auto;
  opacity: .6;
}

/* ================================================
   BOUTONS
   ================================================ */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 16px 24px;
  min-height: 52px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}

.btn-gold {
  background: var(--gold);
  color: #0D0D0D;
}
.btn-gold:hover,
.btn-gold:focus-visible {
  opacity: .85;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  transition: background .2s;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(201, 168, 76, .1);
}

.sub-cta {
  font-size: .73rem;
  color: var(--sec);
  text-align: center;
  margin-top: 12px;
}
.sub-cta a {
  color: var(--gold-lt);
  text-decoration: none;
}
.sub-cta a:hover,
.sub-cta a:focus-visible {
  text-decoration: underline;
}

/* ================================================
   PIED DE PAGE
   ================================================ */

.site-footer {
  text-align: center;
  padding: 36px 24px 52px;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-info {
  font-size: .85rem;
  color: var(--sec);
  line-height: 2.2;
  font-style: normal;
}
.footer-info a {
  color: var(--gold-lt);
  text-decoration: none;
}
.footer-info a:hover,
.footer-info a:focus-visible {
  text-decoration: underline;
}

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

@media (max-width: 480px) {
  .site-header {
    padding: 28px 18px 22px;
  }
  main {
    padding: 0 16px;
  }
}
