/* La classe de Roselyne — page d'accueil du site.
   Reprend la charte du « Petit vadémécum » (regles/assets/style.css)
   pour que l'entrée et l'ouvrage ne fassent qu'un. */

:root {
  color-scheme: light;
  --papier: #fbf8f2;
  --papier-creux: #f3ede2;
  --carte: #fffdf9;
  --encre: #241f1a;
  --encre-douce: #6a6055;
  --filet: #e0d6c6;
  --accent: #8c2f2f;
  --accent-clair: #b8524a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --largeur: 40rem;
}

html[data-theme="sombre"] {
  color-scheme: dark;
  --papier: #17161a;
  --papier-creux: #1d1c21;
  --carte: #212026;
  --encre: #e7e2d9;
  --encre-douce: #a29a8d;
  --filet: #33313a;
  --accent: #e0857a;
  --accent-clair: #eda096;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 1.0625rem/1.7 var(--serif);
  -webkit-text-size-adjust: 100%;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visuellement-cachee {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ bandeau */

.bandeau {
  display: flex; align-items: center;
  height: 3.75rem; padding: 0 1rem;
  border-bottom: 1px solid var(--filet);
}

.bandeau .marque { margin-right: auto; font-size: 1.0625rem; }

.theme {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  background: none; border: 1px solid var(--filet); border-radius: 50%;
  color: var(--encre-douce); cursor: pointer;
}
.theme:hover { color: var(--accent); border-color: var(--accent); }
.theme .lune { display: none; }
html[data-theme="sombre"] .theme .soleil { display: none; }
html[data-theme="sombre"] .theme .lune   { display: block; }

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

main {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: normal;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.sous-titre {
  margin: .6rem 0 2.5rem;
  color: var(--encre-douce);
  font-style: italic;
  font-size: 1.15rem;
}

.filet {
  width: 4rem; height: 1px;
  margin: 2.5rem 0;
  background: var(--filet);
  border: 0;
}

/* ------------------------------------------------------------------ boutons */

.boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.5rem 0 0; }

.bouton {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--accent);
  color: var(--papier);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 3px;
}

.bouton:hover { background: var(--accent-clair); border-color: var(--accent-clair); }

/* --------------------------------------------------------------------- pied */

.pied {
  border-top: 1px solid var(--filet);
  padding: 2rem 1.25rem;
  color: var(--encre-douce);
  font-size: .85rem;
  text-align: center;
}
.pied p { margin: .25rem 0; }
