/* Les styles du site (TECH-039, conception § 5.5), d'après spec-fondations-du-site.md d'EPIC-005 : direction 2 de
   l'application, fond crème, encre, Fraunces 600 pour les titres, police du système pour le texte. Provisoire : la
   page d'accueil d'EPIC-005 reprendra ce fichier. Tailles en rem, pour suivre le réglage du navigateur jusqu'à 200 %.
   `/a/fraunces-600.c2a04e608c.ttf` est remplacé à la construction par l'adresse de la police, à empreinte (ressources.mjs). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/a/fraunces-600.c2a04e608c.ttf") format("truetype");
}

:root {
  --creme: #faf6f0;
  --encre: #231e1a;
  --texte2: #6a5f55;
  --filet: #e8dfd3;
  --capsule: #ede3d6;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Sitka Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}

p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--creme);
  border-radius: 4px;
}

.cadre {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* En-tête */
.entete {
  border-bottom: 1px solid var(--filet);
}

.entete .cadre {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.logotype {
  display: block;
  height: 2.875rem;
  width: auto;
}

/* Contenu */
main {
  flex: 1;
}

.page {
  padding: 1.75rem 0 3rem;
}

.lecture {
  max-width: 42.5rem;
}

.titre {
  font-size: 2.125rem;
  line-height: 1.12;
  /* À 200 % sur 320 px, « animaux » ne tient plus sur la ligne : il se coupe avec un tiret là où le navigateur a le
     dictionnaire du français, sinon sans tiret (overflow-wrap). Jamais de défilement de côté. */
  hyphens: auto;
}

.chapo {
  margin-top: 0.875rem;
  font-size: 1.125rem;
}

.dispo {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-weight: 600;
}

.retour {
  margin-top: 1.5rem;
}

.retour a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

/* Demande de suppression (TECH-048) : deux intertitres, un bouton secondaire qui ouvre la messagerie */
.suppression h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 2rem 0 0.625rem;
}

.suppression p {
  margin: 0 0 0.75rem;
}

.suppression .chapo {
  margin-top: 0.875rem;
}

.bouton-secondaire {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  /* Le rembourrage vertical garde de l'air quand le texte passe sur deux lignes, à 320 px. */
  padding: 0.5rem 1.25rem;
  border: 2px solid currentColor;
  border-radius: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.pictogramme {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
}

.renvoi {
  margin-top: 2rem;
}

/* Textes légaux */
.meta {
  margin-top: 0.75rem;
  color: var(--texte2);
  font-size: 0.9375rem;
}

.legal {
  margin-top: 1.75rem;
}

.legal h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 2rem 0 0.625rem;
}

.legal h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 1.25rem 0 0.5rem;
}

.legal p,
.legal ul,
.legal ol {
  margin: 0 0 0.75rem;
}

.legal ul,
.legal ol {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 0.375rem;
}

.legal aside {
  margin: 0 0 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: var(--capsule);
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--filet);
  margin: 1.5rem 0;
}

/* Pied de page */
.pied {
  background: var(--capsule);
  padding: 1.75rem 0 2.25rem;
}

.pied ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.pied a {
  display: flex;
  align-items: center;
  min-height: 3rem;
}

@media (min-width: 900px) {
  .cadre {
    padding: 0 3rem;
  }

  .entete .cadre {
    min-height: 5rem;
  }

  .page {
    padding: 4rem 0 5rem;
  }

  .titre {
    font-size: 3.5rem;
    line-height: 1.06;
  }

  .accueil .chapo {
    font-size: 1.3125rem;
  }

  body {
    font-size: 1.125rem;
  }

  .pied ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 2rem;
  }
}
