/* monsnus.com, page d'information unique. Palette reprise du site Odoo 804 (thème Alan) :
   vert profond #142e26, menthe #79dfc1, fond #f0f5f4, rose de marque #b04a68 assombri en #9e3b58
   pour tenir 4,5:1 sur le fond. Polices système : aucune ressource externe. */

:root {
  --fond: #f0f5f4;
  --surface: #ffffff;
  --encre: #142e26;
  --encre-douce: #45605a;
  --ligne: #c9d8d3;
  --lien: #0f6b52;
  --rouge: #9e3b58;
  --menthe: #79dfc1;
  --menthe-pale: #dff5ee;
  --focus: #142e26;
  --largeur: 44rem;
  --gouttiere: 1.25rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0e1d18;
    --surface: #14271f;
    --encre: #e4eeea;
    --encre-douce: #a8c0b8;
    --ligne: #2a4239;
    --lien: #8fe3c9;
    --rouge: #f29bb3;
    --menthe: #79dfc1;
    --menthe-pale: #173a2f;
    --focus: #79dfc1;
  }
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  border-top: 6px solid var(--menthe);
}

p,
dd,
li {
  overflow-wrap: break-word;
}

a {
  color: var(--lien);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

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

.evitement {
  position: absolute;
  left: var(--gouttiere);
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: var(--fond);
  font-weight: 700;
  z-index: 10;
}

.evitement:focus {
  top: 0.75rem;
}

/* En-tête */

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 1.1rem var(--gouttiere);
}

.marque {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.marque-ext {
  color: var(--lien);
}

.etat {
  margin: 0;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--encre-douce);
  border-radius: 999px;
  color: var(--encre-douce);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Contenu */

main {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere) 3rem;
}

.annonce {
  padding-top: 1.75rem;
}

.tampon {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--rouge);
  border-radius: 4px;
  color: var(--rouge);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.125rem, 1.35rem + 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.chapeau {
  margin: 0 0 1rem;
  font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
}

.date {
  margin: 0;
  color: var(--encre-douce);
  font-size: 1rem;
}

.bloc {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ligne);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.fiche {
  margin: 0;
}

.fiche > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ligne);
}

.fiche > div:first-child {
  padding-top: 0;
}

.fiche dt {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.fiche dd {
  margin: 0;
}

sup {
  font-size: 0.7em;
  line-height: 0;
}

.renvoi {
  margin-left: 0.15em;
  padding: 0 0.15em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
  text-decoration: none;
}

.renvoi:hover {
  text-decoration: underline;
}

.declaration {
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 6px solid var(--menthe);
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.arguments {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.arguments li {
  margin: 0.75rem 0;
  padding-left: 0.25rem;
}

.arguments li::marker {
  color: var(--rouge);
}

.sites {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.sites a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--encre);
  border-radius: 10px;
  background: var(--surface);
  color: var(--encre);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.sites a:hover {
  background: var(--menthe-pale);
}

.note {
  margin: 0 0 1rem;
  color: var(--encre-douce);
}

.sources ol {
  margin: 0;
  padding-left: 1.5rem;
}

.sources li {
  margin: 0.5rem 0;
  padding-left: 0.25rem;
  scroll-margin-top: 1rem;
}

.sources li:target {
  background: var(--menthe-pale);
  outline: 2px solid var(--menthe);
  outline-offset: 4px;
}

/* Pied de page et mentions légales */

.pied {
  border-top: 4px solid var(--encre);
  background: var(--surface);
}

.pied-contenu {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 2rem var(--gouttiere) 3rem;
}

.pied h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.mentions {
  margin: 0;
}

.mentions > div {
  margin: 0.6rem 0;
}

.mentions dt {
  font-weight: 700;
}

.mentions dd {
  margin: 0;
}

.maj {
  margin: 1.25rem 0 0;
  color: var(--encre-douce);
}

/* Page introuvable */

.introuvable {
  padding-top: 2.5rem;
}

/* Écrans larges */

@media (min-width: 40rem) {
  :root {
    --gouttiere: 2rem;
  }

  .sites {
    grid-template-columns: 1fr 1fr;
  }

  .fiche > div {
    display: grid;
    grid-template-columns: 11.5rem 1fr;
    gap: 1.5rem;
  }

  .fiche dt {
    margin: 0;
  }

  .mentions > div {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 1rem;
  }
}

@media (min-width: 64rem) {
  .annonce {
    padding-top: 3.5rem;
  }
}

@media print {
  body,
  .pied {
    border-top: 0;
    background: #fff;
    color: #000;
  }

  .evitement,
  .etat {
    display: none;
  }

  a {
    color: #000;
  }

  .sources a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}
