/* Charte identique à l'application, plus deux variantes propres au site
   pour le texte courant (contrastes WCAG calculés) :
   - texte doux clair  #a89d83 : 5,35:1 sur #1b2e22, 4,61:1 sur #24392b
   - texte doux foncé  #776b51 : 4,65:1 sur #f6f1e4
   Le texte doux de la charte (#8a7d5f) ne passe 4,5:1 sur aucun fond :
   réservé aux décors et aux grands textes.
   L'or (#c9a24b) : 5,99:1 sur vert, 2,13:1 sur crème → jamais sur crème. */
:root {
  --vert: #1b2e22;
  --vert-doux: #24392b;
  --creme: #f6f1e4;
  --texte: #2b2118;
  --texte-clair: #ede6d6;
  --texte-doux: #8a7d5f;
  --or: #c9a24b;
  --ligne: #4a5d4e;

  --texte-doux-sur-vert: #a89d83;
  --texte-doux-sur-creme: #776b51;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;

  --marge: 1rem;
  --largeur: 68rem;
  --largeur-etroite: 42rem;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: var(--or);
  text-underline-offset: 0.2em;
}

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

main:focus,
section:focus {
  outline: none;
}

abbr[title] {
  text-decoration: none;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: var(--marge);
  top: -100%;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--or);
  color: var(--vert);
  font-weight: bold;
}

.evitement:focus {
  top: var(--marge);
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
}

.conteneur--etroit {
  max-width: var(--largeur-etroite);
}

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

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

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--texte-clair);
  text-decoration: none;
}

.marque__logo {
  width: 40px;
  height: 40px;
  flex: none;
}

.marque__nom {
  font-family: var(--serif);
  font-size: 1.125rem;
}

.lien-connexion {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--or);
  border-radius: 4px;
  color: var(--or);
  text-decoration: none;
  white-space: nowrap;
}

.lien-connexion:hover {
  background: var(--vert-doux);
}

/* Accroche */
.accroche {
  padding: 3rem 0 2.5rem;
}

.accroche h1 {
  font-size: clamp(1.875rem, 7vw, 3.25rem);
  color: var(--texte-clair);
}

.accroche__suite {
  display: block;
  color: var(--or);
}

.accroche__texte {
  max-width: 40rem;
  color: var(--texte-doux-sur-vert);
  font-size: 1.125rem;
  margin-bottom: 1.75rem;
}

.bouton {
  display: inline-block;
  padding: 0.8125rem 1.375rem;
  border-radius: 4px;
  background: var(--or);
  color: var(--vert);
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.bouton:hover {
  background: var(--texte-clair);
}

/* Cartes */
.services {
  padding: 1rem 0 3rem;
}

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

.carte {
  padding: 1.5rem;
  border-radius: 6px;
  border-top: 4px solid var(--or);
  background: var(--creme);
  color: var(--texte);
}

.carte h3 {
  font-size: 1.375rem;
  color: var(--texte);
}

.carte p {
  margin: 0;
  color: var(--texte-doux-sur-creme);
}

/* Blocs */
.bloc {
  padding: 3rem 0;
  border-top: 1px solid var(--ligne);
}

.bloc--doux {
  background: var(--vert-doux);
}

.bloc h2 {
  font-size: clamp(1.5rem, 5vw, 2.125rem);
  color: var(--texte-clair);
}

.bloc p {
  color: var(--texte-doux-sur-vert);
  font-size: 1.125rem;
}

.rejoindre .bouton {
  margin: 0.5rem 0 1rem;
}

.rejoindre .rejoindre__note {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* Pied de page */
.pied {
  padding: 2rem 0;
  border-top: 1px solid var(--ligne);
  font-size: 0.9375rem;
}

.pied__barre {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pied__nom {
  margin: 0;
  font-family: var(--serif);
  color: var(--texte-doux-sur-vert);
}

.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied__liens a {
  display: inline-block;
  padding: 0.25rem 0;
}

/* Écrans plus larges */
@media (min-width: 48rem) {
  :root {
    --marge: 2rem;
  }

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

  .cartes {
    grid-template-columns: repeat(3, 1fr);
  }

  .bloc {
    padding: 4rem 0;
  }

  .pied__barre {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* L'adresse passe à la ligne d'un bloc plutôt que d'être coupée au tiret. */
.adresse {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
