/* Jetons : toute couleur, taille et durée du site est ici. */
:root {
  --fond: #f4f1ea;
  --surface: #fbfaf6;
  --encre: #18261f;
  --encre-douce: #55615a;
  --trait: #dcd7cb;
  --accent: #2c7a57;
  --accent-texte: #ffffff;
  --profond: #18261f;
  --profond-texte: #eef0ea;
  --profond-doux: #a9b8ae;

  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --t-petit: 0.875rem;
  --t-corps: 1.0625rem;
  --t-chapeau: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --t-h2: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --t-h1: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem);

  --largeur: 70rem;
  --gouttiere: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --espace-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --rayon: 0.75rem;
  --duree: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #101a15;
    --surface: #16231c;
    --encre: #e9ede8;
    --encre-douce: #a3b0a7;
    --trait: #26372d;
    --accent: #5cc493;
    --accent-texte: #101a15;
    --profond: #0b130f;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 var(--t-corps) / 1.65 var(--sans);
}

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

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duree);
}

a:hover {
  color: var(--accent);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.cadre {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

.evitement {
  position: absolute;
  left: -100vw;
}

.evitement:focus {
  left: var(--gouttiere);
  top: 0.5rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
}

.marque {
  font-family: var(--serif);
  font-size: 1.1875rem;
  text-decoration: none;
  margin: 0;
}

.marque span {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.menu {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-petit);
}

.menu a {
  text-decoration: none;
}

@media (max-width: 30rem) {
  .menu li:last-child {
    display: none;
  }
}

/* Héros */
.heros {
  padding-block: clamp(3.5rem, 8vw, 7rem) var(--espace-section);
}

.surtitre,
.etiquette,
.frise__date {
  font-size: var(--t-petit);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.heros h1 {
  font-size: var(--t-h1);
  max-width: 16ch;
  margin: 1rem 0 1.75rem;
}

.heros h1 em {
  font-style: italic;
  color: var(--accent);
}

.chapeau {
  font-size: var(--t-chapeau);
  line-height: 1.45;
  color: var(--encre-douce);
  max-width: 44ch;
  margin: 0;
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
}

.bouton {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-texte);
  font-size: var(--t-petit);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duree), color var(--duree);
}

.bouton:hover {
  background: var(--encre);
  color: var(--fond);
}

.bouton--contour {
  background: transparent;
  color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--encre);
}

/* Sections */
.titre-section {
  font-size: var(--t-h2);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Histoire */
.histoire {
  background: var(--profond);
  color: var(--profond-texte);
  padding-block: var(--espace-section);
}

.frise {
  display: grid;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 52rem) {
  .frise {
    grid-template-columns: repeat(3, 1fr);
  }
}

.frise li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--profond-doux);
}

.histoire .frise__date {
  color: var(--profond-doux);
}

.frise h3 {
  font-size: var(--t-h3);
  margin: 0.5rem 0 0.75rem;
}

.frise li > p:last-child {
  color: var(--profond-doux);
  margin: 0;
}

/* Aujourd'hui */
.aujourdhui {
  padding-top: var(--espace-section);
}

.vedette {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}

@media (min-width: 52rem) {
  .vedette {
    grid-template-columns: 1fr 16rem;
  }
}

.vedette h3 {
  font-size: var(--t-h2);
  margin: 0.5rem 0 1rem;
}

.vedette p:not(.etiquette) {
  color: var(--encre-douce);
}

.vedette__adresse {
  font-size: var(--t-petit);
}

.vedette__photo {
  margin: 0;
}

.vedette__photo img {
  border-radius: var(--rayon);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  width: 100%;
}

.vedette__photo figcaption {
  margin-top: 0.5rem;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}

.lien-site {
  font-weight: 700;
}

.lien-site::after,
.articles__liste a::after {
  content: " \2197";
  color: var(--accent);
}

.liens-grille {
  display: grid;
  gap: 1px;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
}

@media (min-width: 40rem) {
  .liens-grille {
    grid-template-columns: 1fr 1fr;
  }
}

.liens-grille li {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
}

.liens-grille h3 {
  font-size: var(--t-h3);
  margin: 0.5rem 0 0.5rem;
}

.liens-grille li > p:not(.etiquette) {
  color: var(--encre-douce);
  margin: 0 0 1.25rem;
}

.liens-grille .lien-site {
  margin-top: auto;
  font-size: var(--t-petit);
}

/* Articles */
.articles {
  padding-block: var(--espace-section);
}

.articles__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--encre);
}

.articles__liste a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--trait);
  text-decoration: none;
}

.articles__titre {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.3;
}

.articles__source {
  font-size: var(--t-petit);
  color: var(--encre-douce);
}

.articles__liste a::after {
  display: none;
}

.articles__liste a:hover .articles__titre {
  color: var(--accent);
}

/* Pied */
.pied {
  border-top: 1px solid var(--trait);
  padding-block: 2.5rem;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}

.pied__grille {
  display: grid;
  gap: 1rem;
}

.pied .marque {
  color: var(--encre);
}

.pied__legal {
  margin: 0;
  max-width: 75ch;
}

.pied__mentions summary {
  cursor: pointer;
}

.pied__mentions p {
  max-width: 75ch;
}
