/* Palette fournie par Brenn */
:root {
  --noir: #141a1e;
  --ardoise: #2b3a3a;
  --foret: #355b4e;
  --sauge: #7b9c76;
  --sable: #d6c7a7;
  --sapin: #0e3529;
  --vert: #215f47;
  --jade: #4b8a6c;
  --creme: #e7ddc6;
  --or: #b89b4a;
  --serif:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    serif;
  --largeur: 68rem;
  --hauteur-entete: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--noir);
  color: var(--creme);
  font: 1.0625rem/1.75 var(--serif);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--or);
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-top: 1.6em;
}
p {
  max-width: 62ch;
  margin: 0 0 1.1em;
}
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

.conteneur {
  width: min(100% - 2.5rem, var(--largeur));
  margin-inline: auto;
}
.conteneur-etroit {
  width: min(100% - 2.5rem, 42rem);
}
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

/* En-tête : signature à gauche, onglets à droite */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--hauteur-entete);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(20, 26, 30, 0.94);
  border-bottom: 1px solid rgba(184, 155, 74, 0.4);
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 2.75rem;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  color: var(--creme);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--or);
  color: var(--or);
}

/* Menu mobile sans JavaScript */
.menu-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.burger {
  display: none;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--or);
}
.menu-toggle:focus-visible + .burger {
  outline: 2px solid var(--or);
}

@media (max-width: 760px) {
  .burger {
    display: grid;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    background: var(--noir);
    border-bottom: 1px solid rgba(184, 155, 74, 0.4);
  }
  .menu-toggle:checked ~ .site-nav {
    display: flex;
  }
}

/* Boutons */
.bouton {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background: var(--or);
  color: var(--noir);
  border: 1px solid var(--or);
  text-decoration: none;
  font-weight: 600;
}
.bouton:hover {
  background: transparent;
  color: var(--or);
}
.lien-discret {
  color: var(--creme);
  margin-left: 1.5rem;
}

/* Formulaires (le style est prêt, le formulaire s'y glisse) */
.zone-formulaire {
  margin-top: 2rem;
}
.zone-formulaire label {
  display: block;
  margin: 1.25rem 0 0.4rem;
  color: var(--sable);
}
.zone-formulaire input[type="text"],
.zone-formulaire input[type="email"],
.zone-formulaire input[type="tel"],
.zone-formulaire select,
.zone-formulaire textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--sapin);
  color: var(--creme);
  border: 1px solid var(--foret);
  font: inherit;
}
.zone-formulaire textarea {
  min-height: 9rem;
  resize: vertical;
}
.zone-formulaire input:focus,
.zone-formulaire select:focus,
.zone-formulaire textarea:focus {
  border-color: var(--or);
}
.zone-formulaire button {
  margin-top: 1.5rem;
  cursor: pointer;
  font: inherit;
  padding: 0.85rem 1.9rem;
  background: var(--or);
  color: var(--noir);
  border: 1px solid var(--or);
  font-weight: 600;
}
.zone-formulaire button:hover {
  background: transparent;
  color: var(--or);
}

/* Pied de page */
.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(184, 155, 74, 0.4);
  color: var(--sable);
  font-size: 0.95rem;
  text-align: center;
}
.site-footer p {
  margin: 0.3rem auto;
  max-width: none;
}
.zone-formulaire .consentement {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.zone-formulaire .consentement input {
  margin-top: 0.35rem;
  accent-color: var(--or);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
