/* Phytologist — feuille de style du site provisoire.
   Palette et échelle reprises du thème d'origine. Titres en Fraunces ;
   texte et chasse fixe en polices du système tant que le choix n'est pas arrêté. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("polices/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("polices/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("polices/fraunces-400-italique.woff2") format("woff2");
}

:root {
  --papier: #F4EFE3;
  --carte: #FBF8F0;
  --filet: #D9D0BC;
  --encre: #1E1E1C;
  --pierre: #4A4A44;
  --foret: #2F4A3A;
  --mimosa: #E8B931;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --colonne: 42rem;
  --large: 68rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--foret); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--mimosa); outline-offset: 3px; }

h1, h2 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 1.4rem + 5vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); font-weight: 600; }

.evitement {
  position: absolute;
  left: -999rem;
  background: var(--carte);
  padding: 0.5rem 1rem;
}
.evitement:focus { left: 1rem; top: 1rem; z-index: 10; }

.bandeau {
  margin: 0;
  padding: 0.55rem 1.25rem;
  background: var(--foret);
  color: var(--papier);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.entete, main, .pied {
  max-width: var(--large);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.entete { padding-top: 1.5rem; padding-bottom: 0.5rem; }

.marque {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--encre);
  text-decoration: none;
}
.marque sup, .etiquette-nom sup {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.5em;
  margin-left: 0.15em;
}

main { display: flex; flex-direction: column; gap: 4.5rem; padding-top: 2.5rem; padding-bottom: 5rem; }

.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.chapeau { font-size: 1.25rem; line-height: 1.5; color: var(--pierre); max-width: 34rem; margin: 1.5rem 0 2rem; }

.planche { margin: 0; background: var(--carte); border: 1px solid var(--filet); padding: 1.5rem; }
/* L'illustration a un fond blanc : la fusion « multiply » laisse voir la teinte de la carte, sans retoucher le fichier. */
.planche img { width: 100%; max-width: 24rem; margin: 0 auto; mix-blend-mode: multiply; }

.etiquette {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--encre);
  background: var(--papier);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}
.etiquette-nom { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; }

.bloc { max-width: var(--colonne); }
.bloc p { margin: 1rem 0 0; }
.surtitre {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foret);
}
.bloc .surtitre { margin-top: 0; }
.latin { font-family: var(--titre); font-style: italic; font-size: 1.25rem; color: var(--foret); }
.bloc .latin { margin-top: 0.35rem; }

.regle { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.regle li { border-top: 1px solid var(--filet); padding-top: 0.9rem; }

.prevenu { background: var(--carte); border: 1px solid var(--filet); padding: 2rem; max-width: var(--colonne); }

.bouton {
  display: inline-block;
  background: var(--foret);
  color: var(--papier);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 6px;
}
.bouton:hover { background: var(--encre); }

.texte h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.texte h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.texte .chapeau { margin: 1.25rem 0 0; font-size: 1.15rem; }
.version { font-size: 0.875rem; color: var(--pierre); border-top: 1px solid var(--filet); padding-top: 1rem; }
.bloc .version { margin-top: 2.5rem; }

.pied {
  border-top: 1px solid var(--filet);
  padding-top: 2rem;
  padding-bottom: 3rem;
  font-size: 0.95rem;
  color: var(--pierre);
}
.pied p { margin: 0 0 0.75rem; max-width: var(--colonne); }
.pied-marque { font-family: var(--titre); font-weight: 700; font-size: 1.25rem; color: var(--encre); }
.pied-liens { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 1.25rem 0; }
.pied-legal { font-size: 0.85rem; }

@media (max-width: 760px) {
  .ouverture { grid-template-columns: 1fr; gap: 2rem; }
  main { gap: 3.5rem; }
  .prevenu { padding: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .bouton { transition: background-color 0.15s ease; }
}
