/*
  RencontreCougarGratuit.fr — design notes
  Sujet : guide indépendant rencontre cougar/femme mature en France.
  Header minimal (logo seul, pas de nav) sur toutes les pages : objectif =
  amener le H1 + premier paragraphe le plus haut possible dans le source HTML,
  sans réordonnancement CSS (order/flex-direction) — plus simple, zéro risque
  de divergence DOM/visuel. La nav complète vit dans le footer.
  Peu de classes ajoutées aux templates — la plupart des règles ciblent les
  balises nues, la position structurelle, ou des attributs déjà émis par Hugo
  (rel="sponsored").
*/

:root {
  --ink: #241417;
  --bg: #fffdfb;
  --panel: #f7ece7;
  --paper: #fbf3ee;
  --gold: #a9762c;
  --burgundy: #7a1f2b;
  --line: #e4d3ca;

  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

html {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- header (minimal, logo seul) ---- */

header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

header a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
  color: var(--burgundy);
  text-decoration: none;
}

header img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
}

/* ---- contenu principal ---- */

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

h1 {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--burgundy);
}

h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

main > p:first-of-type,
article > p:first-of-type {
  font-size: 1.125rem;
}

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

/* CTA principal (lien sponsorisé) */
a[rel~="sponsored"] {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

a[rel~="sponsored"]:hover {
  background: #5e181f;
}

/* neutralise le style bouton pour les liens sponsorisés qui enveloppent une image
   (piège récurrent déjà rencontré sur randkimilf.pl — toujours redéclarer ici) */
figure.article-photo a[rel~="sponsored"] {
  all: unset;
  display: block;
  cursor: pointer;
}

.article-photo {
  margin: 1.5rem 0;
}

.article-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* liste articles homepage */
main ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

main ul li {
  border-bottom: 1px solid var(--line);
}

main ul a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: inherit;
}

main ul strong {
  display: block;
  color: var(--burgundy);
  font-family: var(--display);
}

main ul span {
  display: block;
  font-size: 0.9rem;
  color: #5c4c50;
  margin-top: 0.15rem;
}

/* ---- footer ---- */

footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: #5c4c50;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 1rem;
}

footer nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 40rem) {
  main, footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
