/* ==========================================================================
   InMuris AI — feuille de style commune FR/EN
   Palette : encre ardoise, pierre claire, laiton.
   ========================================================================== */

:root {
  --encre: #1c2b3b;        /* encre ardoise — fonds sombres secondaires, boutons */
  --encre-nuit: #142230;   /* encre profonde — hero, bandeaux, pied de page */
  --pierre: #f5f1e8;       /* pierre claire — fond principal */
  --pierre-2: #ece5d5;     /* pierre ombrée — section alternée */
  --carte: #fbf8f2;        /* fond des cartes */
  --ligne: #ddd3bd;        /* filets */
  --texte: #24313f;        /* texte principal sur fond clair */
  --texte-2: #55636f;      /* texte secondaire sur fond clair */
  --texte-inverse: #ece7db;   /* texte principal sur fond sombre */
  --texte-inverse-2: #b3bdc6; /* texte secondaire sur fond sombre */
  --laiton: #b48c3c;        /* laiton — décor, filets, pictos sur clair */
  --laiton-clair: #c9a45c;  /* laiton éclairci — accents sur fond sombre */
  --laiton-encre: #77602a;  /* laiton assombri — texte accentué sur fond clair (AA) */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", -apple-system, Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--pierre);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }

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

a { color: var(--laiton-encre); text-underline-offset: 3px; }
a:hover { color: var(--encre); }

:focus-visible { outline: 2px solid var(--laiton-encre); outline-offset: 2px; }
.entete :focus-visible, .hero :focus-visible,
.section-encre :focus-visible, .pied :focus-visible,
.bandeau-langue :focus-visible { outline-color: var(--laiton-clair); }

section { scroll-margin-top: 4.5rem; }

.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1.5rem; }
.wrap-etroit { max-width: 44rem; }

/* Lien d'évitement */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--encre-nuit); color: var(--texte-inverse);
  padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- Typographie commune ---------- */

.kicker {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--laiton-encre);
  margin-bottom: .75rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  max-width: 34ch;
}
h2::after {
  content: "";
  display: block;
  width: 3.5rem; height: 2px;
  background: var(--laiton);
  margin-top: .75rem;
}

h3 { font-size: 1.18rem; margin-bottom: .5rem; }

.intro { max-width: 60ch; margin-top: 1.25rem; }

.question {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--laiton-encre);
  margin-top: 1.5rem;
  max-width: 40ch;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  background: var(--encre); color: var(--pierre);
  border: 1px solid var(--encre);
  padding: .8rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--encre-nuit); color: var(--pierre); }

.btn-laiton {
  background: var(--laiton-clair); color: var(--encre-nuit);
  border-color: var(--laiton-clair);
}
.btn-laiton:hover { background: var(--laiton); color: var(--encre-nuit); }

.lien-discret { color: var(--texte-inverse-2); margin-left: 1.25rem; }
.lien-discret:hover { color: var(--texte-inverse); }

/* ---------- Bandeau de suggestion de langue ---------- */

.bandeau-langue {
  background: var(--encre);
  color: var(--texte-inverse);
  text-align: center;
  padding: .6rem 1rem;
  font-size: .95rem;
}
.bandeau-langue a { color: var(--laiton-clair); }
.bandeau-langue button {
  background: none; border: none;
  color: var(--texte-inverse-2);
  font: inherit; font-size: .85rem;
  text-decoration: underline; text-underline-offset: 3px;
  margin-left: 1rem; cursor: pointer;
}
.bandeau-langue button:hover { color: var(--texte-inverse); }

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

.entete {
  background: var(--encre-nuit);
  border-bottom: 1px solid rgba(201, 164, 92, .35);
}
.entete-int {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-block: .9rem;
}
.marque {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--texte-inverse); text-decoration: none;
}
.marque-motif { color: var(--laiton-clair); flex-shrink: 0; }
.marque em { font-style: normal; color: var(--laiton-clair); }

.entete nav { margin-left: auto; }
.entete nav ul { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; }
.entete nav a {
  color: var(--texte-inverse-2); text-decoration: none; font-size: .95rem;
}
.entete nav a:hover { color: var(--laiton-clair); }

.langue {
  font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  color: var(--laiton-clair); text-decoration: none;
  border: 1px solid rgba(201, 164, 92, .5);
  padding: .3rem .6rem;
}
.langue:hover { color: var(--encre-nuit); background: var(--laiton-clair); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--encre-nuit);
  color: var(--texte-inverse);
  overflow: hidden;
}
.hero-int { padding-block: 5.5rem 6rem; position: relative; }
.hero .kicker { color: var(--laiton-clair); }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 22ch;
}
.hero-sous {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: 1.12rem;
  color: var(--texte-inverse-2);
}
.hero-actions { margin-top: 2.25rem; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.hero-filigrane {
  position: absolute;
  right: -6rem; top: 50%;
  width: 28rem; height: 28rem;
  transform: translateY(-50%);
  color: var(--laiton-clair);
  opacity: .07;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section { padding-block: 4.5rem; }
.section-pierre { background: var(--pierre-2); }

.section-encre {
  background: var(--encre-nuit);
  color: var(--texte-inverse);
}
.section-encre .kicker { color: var(--laiton-clair); }
.section-encre p { color: var(--texte-inverse-2); }
.section-encre h2, .section-encre h3 { color: var(--texte-inverse); }

/* ---------- Cartes métiers ---------- */

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14.5rem, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.carte {
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-top: 3px solid var(--laiton);
  padding: 1.5rem 1.4rem;
}
.carte p { font-size: .97rem; color: var(--texte-2); }

.constat-commun {
  margin-top: 2.5rem;
  border-left: 3px solid var(--laiton);
  padding-left: 1.5rem;
  max-width: 62ch;
}
.constat-commun .roi { margin-top: 1rem; font-weight: 600; }

/* ---------- Blocs promesse ---------- */

.blocs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 2.25rem 2.5rem;
  margin-top: 2.5rem;
}
.picto { width: 34px; height: 34px; color: var(--laiton-clair); margin-bottom: .9rem; }
.bloc p { font-size: .97rem; }

/* ---------- Deux formats ---------- */

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.format figure { margin-bottom: 1.5rem; }
.format img { border: 1px solid var(--ligne); }
.format figcaption { font-size: .88rem; color: var(--texte-2); margin-top: .6rem; }
.points { list-style: square; margin: .9rem 0 0 1.2rem; color: var(--texte-2); font-size: .97rem; }
.points li::marker { color: var(--laiton); }

/* ---------- Étapes de l'étude ---------- */

.etapes {
  list-style: none;
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2.5rem;
}
.etapes li { counter-increment: etape; }
.etapes li::before {
  content: counter(etape);
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem; font-weight: 600;
  color: var(--laiton-encre);
  line-height: 1;
  margin-bottom: .5rem;
}
.etapes p { font-size: .97rem; color: var(--texte-2); }

.cta-milieu { margin-top: 2.75rem; }

.capot {
  margin-top: 3rem;
  background: var(--carte);
  border: 1px solid var(--ligne);
  padding: 1.1rem 1.4rem;
  max-width: 62ch;
}
.capot summary {
  font-weight: 600; cursor: pointer;
  color: var(--laiton-encre);
}
.capot p { margin-top: .9rem; font-size: .97rem; color: var(--texte-2); }

/* ---------- Formulaire ---------- */

form { margin-top: 2rem; }
.champ { margin-bottom: 1.25rem; }
.champ label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.champ input, .champ textarea {
  width: 100%;
  font: inherit; color: var(--texte);
  background: #fff;
  border: 1px solid #8a7d63;
  padding: .65rem .75rem;
}
.champ input:focus-visible, .champ textarea:focus-visible {
  outline: 2px solid var(--laiton-encre); outline-offset: 1px;
  border-color: var(--laiton-encre);
}
.pot-de-miel { display: none; }
.contact-repli { margin-top: 1.75rem; font-size: .97rem; color: var(--texte-2); }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--encre-nuit);
  color: var(--texte-inverse-2);
  padding-block: 2.5rem;
  font-size: .92rem;
}
.pied a { color: var(--laiton-clair); }
.pied a:hover { color: var(--texte-inverse); }
.pied-int { display: flex; flex-direction: column; gap: .6rem; }
.pied-copie { font-size: .85rem; }

/* ---------- Pages annexes (mentions légales) ---------- */

.page-annexe { padding-block: 3.5rem 4.5rem; }
.page-annexe h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 1.5rem; }
.page-annexe h2 { font-size: 1.25rem; margin-top: 2rem; }
.page-annexe p { max-width: 62ch; margin-top: .75rem; }
.a-completer { color: var(--texte-2); font-style: italic; }

/* ---------- Écrans étroits ---------- */

@media (max-width: 720px) {
  .entete nav { margin-left: 0; width: 100%; order: 3; }
  .entete nav ul { gap: .9rem 1.1rem; }
  .langue { margin-left: auto; }
  .hero-int { padding-block: 3.5rem 4rem; }
  .hero-filigrane { display: none; }
  .section { padding-block: 3rem; }
  .lien-discret { margin-left: 0; }
}

/* ---------- Sobriété des mouvements ---------- */

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