/* =========================
   Fonts (local) - optionnel
   (à conserver si ton site utilise déjà ces polices)
========================= */
@font-face{
  font-family: "Moonlight";
  src: url("../fonts/MOONLIGHT.woff2") format("woff2"),
       url("../fonts/MOONLIGHT.woff") format("woff"),
       url("../fonts/MOONLIGHT.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Author";
  src: url("../fonts/Author-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Author";
  src: url("../fonts/Author-VariableItalic.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* =========================
   Variables
========================= */
:root{
  --bg: #f4eeec;
  --surface: #ffffff;
  --text: #1f1a1c;
  --muted: #6b5f64;
  --border: rgba(31, 26, 28, .12);

  --brand-1: #6d2236;
  --brand-2: #ba3353;

  --shadow: 0 18px 60px rgba(0,0,0,.08);
  --radius: 18px;

  --max: 980px;
}

/* =========================
   Base
========================= */
*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: "Author", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a{
  color: var(--brand-1);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Accessibilité */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.skip-link:focus{
  left: 20px;
  z-index: 1000;
}

/* =========================
   Header
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background-color: #6d2236;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-inner{
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand-title{
  font-family: "Moonlight", "Author", system-ui, sans-serif;
  font-size: 28px;
  letter-spacing: .6px;
  color: var(--brand-1);
  line-height: 1;
}

.brand-subtitle{
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.header-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-link{
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  font-size: 14px;
}
.nav-link.is-active{
  border-color: rgba(109, 34, 54, .35);
  background: rgba(186, 51, 83, .10);
}

/* =========================
   Main / Hero
========================= */
.main{
  padding: 28px 0 52px;
}

.hero{
  padding: 18px 0 10px;
}
.hero h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: .2px;
}
.hero-desc{
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 70ch;
}
.hero-meta{
  margin: 0;
  color: rgba(31, 26, 28, .55);
  font-size: 13px;
}

/* =========================
   Cards
========================= */
.card{
  margin-top: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2{
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--brand-1);
}
.card h3{
  margin: 18px 0 8px;
  font-size: 15px;
  color: var(--text);
}

.card p{
  margin: 0 0 10px;
}

ul{
  margin: 8px 0 0 18px;
  padding: 0;
}
li{ margin: 6px 0; }

/* KV grid */
.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.kv{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(244, 238, 236, .45);
}
.kv .k{
  font-size: 12px;
  color: rgba(31, 26, 28, .60);
  margin-bottom: 4px;
}
.kv .v{
  font-size: 14px;
  color: var(--text);
}

/* Notes */
.note{
  margin-top: 14px;
  padding: 14px 14px;
  border-left: 4px solid var(--brand-2);
  background: rgba(186, 51, 83, .08);
  border-radius: 12px;
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; }
.hint{
  color: rgba(31, 26, 28, .55);
  font-size: 12px;
  margin-left: 6px;
}

/* Footer */
.page-footer{
  margin-top: 22px;
  padding: 18px 4px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-link{
  font-size: 13px;
  color: rgba(31, 26, 28, .70);
}
.footer-link:hover{ color: var(--brand-1); }

/* Responsive */
@media (max-width: 760px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .grid{
    grid-template-columns: 1fr;
  }
}
