/* Police Newsreader hébergée ici (licence OFL) : aucun appel à Google Fonts */
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-400Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-600SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-700Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-400Regular_Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* Charte Refeel : fond pêche, cartes en verre, police Newsreader, accent corail */
:root {
  --ink: #2A1613;
  --text: #4A322B;
  --muted: #8B7266;
  --line: rgba(140, 90, 70, .14);
  --coral: #E8694F;
  --bg: #FCEFE2;
  --card: rgba(255, 255, 255, .62);
  --shadow: 0 12px 34px rgba(150, 90, 60, .14);
  --green-bg: #E1F0D0;
  --green: #356019;
  --premium-bg: #FBE3D6;
  --premium: #B4573F;
}

* { box-sizing: border-box; }
img { height: auto; max-width: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg) url('/img/feuillage.webp') center top / cover fixed no-repeat;
  min-height: 100vh;
}

a { color: var(--coral); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 18px; }

/* En-tête */
header.top { padding: 22px 0 8px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand img { height: 46px; width: auto; display: block; }
nav.menu { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; font-size: 16.5px; }
nav.menu a { color: var(--text); text-decoration: none; }
nav.menu a:hover, nav.menu a[aria-current] { color: var(--coral); }
nav.menu .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; background: var(--card); }

/* Cartes */
.card {
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px 26px;
  margin: 16px 0;
}

h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -.015em; }
h1 { font-size: clamp(32px, 6vw, 46px); margin: 0 0 12px; }
h2 { font-size: 25px; margin: 0 0 10px; }
h3 { font-size: 20px; margin: 18px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 12px; padding: 30px 30px; }
.hero img { width: 100%; max-width: 300px; justify-self: center; }
.hero .lead { font-size: 21px; color: var(--text); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  background: linear-gradient(180deg, #F9B29B 0%, #F08669 46%, #E8664C 100%);
  box-shadow: 0 8px 20px rgba(232, 102, 76, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.soon { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid .card { margin: 0; text-align: center; padding: 22px 18px; }
.grid img { width: 120px; height: auto; }

.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }
.pill.free { background: var(--green-bg); color: var(--green); }
.pill.prem { background: var(--premium-bg); color: var(--premium); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols .card { margin: 0; }
ul { padding-left: 20px; margin: 0 0 12px; }
li { margin-bottom: 6px; }

/* Pages de texte */
.page-head { display: flex; align-items: center; gap: 18px; }
.page-head img { width: 110px; height: auto; flex-shrink: 0; }

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: 19px; }
details p { margin-top: 8px; }

/* Pied de page */
footer { padding: 18px 0 40px; font-size: 15px; color: var(--muted); text-align: center; }
footer a { color: var(--muted); margin: 0 8px; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .hero img { max-width: 200px; order: -1; }
  .grid, .cols { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; border-radius: 24px; }
  .page-head img { width: 80px; }
  .brand img { height: 38px; }
}
