/* ── Polices auto-hébergées ──────────────────────── */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-400-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-600-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/spectral-latin-400-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/spectral-latin-600-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/spectral-latin-400-italic.woff2")
    format("woff2");
}
:root {
  color-scheme: light;
  --ivory: #faf5ec;
  --cream: #f3ecdd;
  --sand: #e7dcc7;
  --sand-strong: #d8cbb4;
  --ink: #2a2521;
  --muted: #655c53;
  --terra: #c0653f;
  --terra-dark: #9c4d2e;
  --sage: #55613f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

h1, h2, p {
  margin: 0;
}

h1, h2 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--terra-dark);
  outline-offset: 5px;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--sand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand span {
  font-family: "Spectral", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--terra-dark);
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.button:hover {
  background: #793b24;
  transform: translateY(-2px);
}

.button-small {
  padding: 10px 17px;
}

.hero {
  padding-block: 94px 80px;
  background:
    radial-gradient(
      ellipse at 85% 20%,
      rgb(217 164 65 / 10%),
      transparent 55%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--terra-dark);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

h1 em {
  color: var(--terra-dark);
}

.lead {
  max-width: 42ch;
  margin-top: 26px;
  font-size: 20px;
}

.description {
  max-width: 54ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.hero-button {
  margin-top: 30px;
}

.commitments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.commitments li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: var(--sage);
}

.workshop {
  padding: 22px;
  border: 1px solid var(--sand);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--ivory), var(--cream));
}

.workshop-label,
.workshop-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.stamp-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(rgb(216 203 180 / 25%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(216 203 180 / 25%) 1px, transparent 1px);
  background-size: 32px 32px;
}

.stamp-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid var(--sand-strong);
  border-radius: 50%;
}

.stamp {
  width: min(240px, 80%);
  transform: rotate(-7deg);
  filter: drop-shadow(0 24px 16px rgb(120 58 33 / 20%));
}

.workshop-caption {
  padding-top: 18px;
  border-top: 1px solid var(--sand);
}

.workshop-caption span:last-child {
  font-family: "Spectral", Georgia, serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0;
}

.contact {
  padding-block: 30px 64px;
  scroll-margin-top: 24px;
}

.contact-panel {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--sand);
  border-radius: 24px;
  background: var(--cream);
  text-align: center;
}

h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.contact-panel > p:not(.eyebrow) {
  max-width: 56ch;
  margin: 22px auto;
  color: var(--muted);
}

.contact-panel .button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: inherit;
  text-underline-offset: 4px;
}

.legal-page {
  max-width: 800px;
  padding-block: 48px 76px;
  overflow-wrap: anywhere;
}

.legal-page h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.legal-page section {
  margin-block: 32px;
}

.legal-page h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 4vw, 32px);
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--sand);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .hero {
    padding-block: 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .workshop {
    width: min(460px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 76px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand span {
    font-size: 25px;
  }

  .button-small {
    padding-inline: 12px;
    font-size: 13px;
  }

  .stamp-stage {
    min-height: 280px;
  }

  .hero-button {
    width: 100%;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}/* ── Expertises ─────────────────────────────────── */

.services {
  padding-block: 48px 76px;
  scroll-margin-top: 24px;
}

.section-heading {
  max-width: 650px;
}

.section-intro {
  max-width: 55ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  margin-top: 38px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--sand);
  border-radius: 18px;
  background: var(--cream);
}

.service-reference {
  display: block;
  margin-bottom: 24px;
  color: var(--terra-dark);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .06em;
}

.service-card h3 {
  margin: 0;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.service-description {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.service-details {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
}

.service-details li {
  position: relative;
  padding-left: 16px;
}

.service-details li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.service-example {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--sand-strong);
}

.example-label {
  color: var(--terra-dark);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-example p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .services {
    padding-block: 32px 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 26px;
  }
}/* ── Maîtrise des données ───────────────────────── */

.data-section {
  padding-block: 0 76px;
  scroll-margin-top: 24px;
}

.data-panel {
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse at 100% 0,
      rgb(192 101 63 / 20%),
      transparent 55%
    ),
    var(--ink);
  color: var(--ivory);
}

.data-panel .eyebrow {
  color: #d9a441;
}

.data-heading {
  max-width: 760px;
}

.data-intro {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--sand);
  font-size: 17px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgb(231 220 199 / 22%);
}

.data-item {
  min-width: 0;
}

.data-label {
  color: #d9a441;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .06em;
}

.data-item h3 {
  margin: 16px 0 0;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.data-item p {
  margin-top: 14px;
  color: #d3c8b7;
  font-size: 15px;
}

.data-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 16px 28px;
  margin-top: 36px;
  padding: 20px 24px;
  border: 1px solid rgb(231 220 199 / 16%);
  border-radius: 12px;
  background: rgb(250 245 236 / 4%);
}

.data-note-label {
  color: #d9a441;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.data-note p {
  color: var(--sand);
  font-size: 14px;
}

@media (max-width: 820px) {
  .data-section {
    padding-bottom: 48px;
  }

  .data-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .data-item + .data-item {
    padding-top: 24px;
    border-top: 1px solid rgb(231 220 199 / 16%);
  }

  .data-note {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }
}/* ── Démarche ───────────────────────────────────── */

.method-section {
  padding-block: 12px 76px;
  scroll-margin-top: 24px;
}

.method-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
  gap: 72px;
}

.method-layout > * {
  min-width: 0;
}

.method-heading {
  padding-top: 8px;
}

.method-signature {
  max-width: 40ch;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--terra);
  color: var(--muted);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding-block: 28px;
  border-top: 1px solid var(--sand-strong);
}

.method-step:last-child {
  border-bottom: 1px solid var(--sand-strong);
}

.method-number {
  padding-top: 5px;
  color: var(--terra-dark);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: .04em;
}

.method-content {
  min-width: 0;
}

.method-content h3 {
  margin: 0;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.method-content > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.method-content .method-deliverable {
  margin-top: 18px;
  font-size: 13px;
}

.method-deliverable strong {
  color: var(--sage);
  font-weight: 650;
}

@media (max-width: 820px) {
  .method-section {
    padding-block: 8px 48px;
  }

  .method-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .method-step {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding-block: 24px;
  }

  .method-content h3 {
    font-size: 25px;
  }
}/* ── Navigation ─────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ivory);
}

.header-inner {
  position: relative;
}

/* Le titre ciblé ne doit pas passer sous le bandeau. */
section[id],
#contenu {
  scroll-margin-top: 112px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav > a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.desktop-nav > a:not(.button):hover {
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1000px) {
  .desktop-nav {
    gap: 16px;
  }

  .desktop-nav > a:not(.button) {
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--sand-strong);
    border-radius: 9px;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    list-style: none;
  }

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

  .menu-symbol {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
  }

  .mobile-menu[open] .menu-symbol {
    transform: rotate(45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, 100%);
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--sand-strong);
    border-radius: 14px;
    background: var(--ivory);
    box-shadow: 0 18px 40px -24px rgb(42 37 33 / 35%);
  }

  .mobile-menu nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 15px;
    text-decoration: none;
  }

  .mobile-menu nav a:hover {
    background: var(--cream);
  }

  .mobile-menu nav a:last-child {
    margin-top: 6px;
    background: var(--terra-dark);
    color: white;
  }

  .mobile-menu nav a:last-child:hover {
    background: #793b24;
  }
}/* ── Poinçon interactif ──────────────────────────── */

@media
  (hover: hover)
  and (pointer: fine)
  and (prefers-reduced-motion: no-preference) {

  .stamp-stage {
    perspective: 900px;
  }

  .stamp {
    position: relative;
    transform:
      rotateX(var(--stamp-tilt-x, 0deg))
      rotateY(var(--stamp-tilt-y, 0deg))
      rotate(calc(-7deg + var(--stamp-turn, 0deg)));
    transition: transform 180ms ease-out;
  }

  .stamp::after {
    content: "";
    position: absolute;

    /* Respecter la marge transparente du fichier SVG. */
    inset: 3%;
    border-radius: 28%;

    background:
      radial-gradient(
        circle at
          var(--stamp-light-x, 30%)
          var(--stamp-light-y, 20%),
        rgb(255 255 255 / 25%),
        transparent 65%
      );

    box-shadow:
      inset 0 1px 1px rgb(255 255 255 / 28%),
      inset 0 -3px 8px rgb(91 44 24 / 12%);

    pointer-events: none;
  }
}
/* ── Démonstration métier ───────────────────────── */

.demo-section {
  padding-block: 0 76px;
}

.workflow-demo {
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--sand-strong);
  border-radius: 24px;
  background: var(--cream);
}

/* Garantir le masquage des éléments pilotés par le script. */
.workflow-demo [hidden] {
  display: none !important;
}

.demo-disclaimer {
  padding: 20px 30px;
  border-bottom: 1px solid var(--sand-strong);
  background: rgb(250 245 236 / 65%);
}

.demo-disclaimer strong {
  color: var(--terra-dark);
  font-size: 13px;
  font-weight: 600;
}

.demo-disclaimer p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.demo-step {
  padding: clamp(24px, 4vw, 44px);
}

.demo-step + .demo-step {
  border-top: 1px solid var(--sand-strong);
}

.workflow-demo[data-enhanced] .demo-step {
  border-top: 0;
}

.demo-step-label {
  margin-bottom: 16px;
  color: var(--terra-dark);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.demo-step h3 {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.demo-description {
  max-width: 68ch;
  margin-top: 18px;
  color: var(--muted);
}

.demo-message {
  margin: 26px 0 0;
  padding: 24px;
  border-left: 3px solid var(--terra);
  border-radius: 0 12px 12px 0;
  background: var(--ivory);
}

.demo-message > p {
  max-width: 62ch;
  font-family: "Spectral", Georgia, serif;
  font-size: 20px;
  font-style: italic;
}

.demo-message footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.demo-fields {
  margin: 26px 0 0;
}

.demo-fields > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px 24px;
  padding-block: 15px;
  border-top: 1px solid var(--sand-strong);
}

.demo-fields dt {
  color: var(--muted);
  font-size: 14px;
}

.demo-fields dd {
  min-width: 0;
  margin: 0;
  font-size: 15px;
}

.demo-review {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--sand-strong);
  border-radius: 12px;
  background: var(--ivory);
}

.demo-review h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.demo-review ul {
  margin-block: 16px;
  padding-left: 22px;
}

.demo-review li + li {
  margin-top: 8px;
}

.demo-review > p {
  max-width: 65ch;
  color: var(--muted);
  font-size: 14px;
}

.demo-takeaway {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--sage);
  color: var(--sage);
  font-weight: 600;
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 30px;
  border-top: 1px solid var(--sand-strong);
}

.demo-progress {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-buttons .button {
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
}

.demo-buttons .demo-back {
  border-color: var(--sand-strong);
  background: transparent;
  color: var(--ink);
}

.demo-buttons .demo-back:hover {
  background: var(--ivory);
}

.demo-buttons .button:disabled {
  opacity: .5;
  cursor: default;
  transform: none;
}

@media (max-width: 820px) {
  .demo-section {
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .demo-disclaimer,
  .demo-controls {
    padding: 20px;
  }

  .demo-fields > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .demo-buttons {
    width: 100%;
  }

  .demo-buttons .button {
    flex: 1 1 100%;
  }
}
