:root {
  --creme: #f5ead8;
  --papier: #fffaf2;
  --blanc: #fff;
  --terre: #c67139;
  --terre-fonce: #a5491f;
  --encre: #201e1d;
  --gris: #5d564c;
  --gris-clair: #8a8175;
  --trait: #e6dbc7;
  --large: 70rem;
  --rayon: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--terre-fonce); }

.dedans {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

h1, h2, h3 { letter-spacing: -0.025em; }

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin: 0 0 1.75rem;
}

h3 { font-size: 1rem; margin: 0 0 0.35rem; }

p { margin: 0; }

/* ── En-tête ─────────────────────────────────────────────── */

.entete {
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--encre);
  text-decoration: none;
}

.entete nav { display: flex; align-items: center; gap: 0.35rem; }

.entete nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--gris);
  text-decoration: none;
  border-radius: 0.6rem;
}

.entete nav a:hover { color: var(--encre); background: var(--creme); }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terre);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.7rem;
  padding: 0 1.25rem;
  min-height: 3rem;
}

.bouton:hover { background: var(--terre-fonce); color: #fff; }

.entete nav .acces {
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  padding: 0 1rem;
  min-height: 2.5rem;
  color: var(--encre);
  margin-left: 0.35rem;
}

.entete nav .acces:hover { border-color: var(--terre); background: transparent; color: var(--terre-fonce); }

.lien-fort {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.lien-fort:hover { border-bottom-color: var(--terre); }

/* ── Hero ────────────────────────────────────────────────── */

.hero { background: var(--creme); padding: 3.5rem 0 4rem; }

.hero .dedans {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero .chapeau {
  font-size: 1.1rem;
  color: var(--gris);
  max-width: 34ch;
  margin: 1.25rem 0 0;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero .note { color: var(--gris-clair); font-size: 0.875rem; margin-top: 0.75rem; }

.hero .fil { font-size: 0.85rem; color: var(--gris-clair); margin-bottom: 0.75rem; }
.hero .fil a { color: var(--gris-clair); }

.hero .image {
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(32 30 29 / 45%);
}

.hero .image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% center;
}

.hero.court { padding: 3rem 0 2.5rem; }
.hero.court .dedans { grid-template-columns: 1fr; }

@media (min-width: 60rem) {
  .hero .dedans { grid-template-columns: 1fr 30rem; gap: 4rem; }
  .hero.court .dedans { grid-template-columns: 1fr; }
}

/* ── Sections ────────────────────────────────────────────── */

section { padding: 3.5rem 0; }
.piliers, .faq { background: var(--papier); }
.etapes, .exemples { background: var(--creme); }
.metiers, .offres, .texte { background: var(--papier); }

.grille {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.grille article {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.35rem;
}

.grille p { color: var(--gris); font-size: 0.94rem; }

.numeros {
  list-style: none;
  counter-reset: pas;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 0;
  padding: 0;
}

.numeros li { counter-increment: pas; }

.numeros h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.numeros .pas {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--terre);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.numeros .pas::before { content: counter(pas); }
.numeros p { color: var(--gris); font-size: 0.94rem; padding-left: 2.5rem; }
.numeros.large { gap: 1.5rem; }

.titre-rangee {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.titre-rangee h2 { margin-bottom: 1.75rem; }

.grille-photos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.vignette {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.vignette img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.vignette .etiquette {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--terre-fonce);
  padding: 0.9rem 1rem 0;
}

.vignette .nom { font-weight: 700; padding: 0.15rem 1rem 0; }
.vignette .quoi { color: var(--gris); font-size: 0.9rem; padding: 0.1rem 1rem 1.1rem; }
.vignette:hover { border-color: var(--terre); }

.grille-metiers {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.grille-metiers a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  text-decoration: none;
  color: inherit;
}

.grille-metiers strong { color: var(--terre-fonce); }
.grille-metiers span { color: var(--gris); font-size: 0.92rem; }
.grille-metiers a:hover { border-color: var(--terre); }

.grille-offres {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.offre {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.offre.avant { border: 2px solid var(--terre); }
.offre h2 { margin-bottom: 0.25rem; font-size: 1.3rem; }
.offre .prix { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }

.offre ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--gris);
  font-size: 0.94rem;
}

.offre li { padding-left: 1.4rem; position: relative; }
.offre li::before { content: "✓"; position: absolute; left: 0; color: var(--terre); font-weight: 800; }

.faq details {
  border-bottom: 1px solid var(--trait);
  max-width: 52rem;
}

.faq details:first-of-type { border-top: 1px solid var(--trait); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1.15rem 0;
  min-height: 3rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--terre);
}

.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--gris); max-width: 60ch; padding: 0 0 1.25rem; }

.texte p { max-width: 60ch; color: var(--gris); margin-bottom: 1rem; }

.appel {
  background: var(--encre);
  color: var(--creme);
  text-align: center;
  padding: 4rem 0;
}

.appel h2 { margin-bottom: 1.5rem; color: var(--creme); }
.appel .note { color: #a89f92; font-size: 0.9rem; margin-top: 1rem; }

/* ── Pied ────────────────────────────────────────────────── */

footer { background: var(--creme); border-top: 1px solid var(--trait); padding: 3rem 0 2.5rem; }

footer nav {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

footer nav div { display: flex; flex-direction: column; }
footer nav strong { margin-bottom: 0.5rem; font-size: 0.95rem; }

footer nav a {
  display: flex;
  align-items: center;
  min-height: 2.4rem;
  color: var(--gris);
  text-decoration: none;
  font-size: 0.92rem;
}

footer nav a:hover { color: var(--encre); }

.fin { color: var(--gris-clair); font-size: 0.82rem; margin-top: 2.5rem; }

@media (max-width: 46rem) {
  .entete nav a:not(.acces) { display: none; }
  section { padding: 2.75rem 0; }
  .hero { padding: 2.5rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
