/* Service Path Core — expediente cobre
   Paper, pine, copper. No theme switcher. */

:root {
  --paper: #f3ebe0;
  --surface: #faf6f0;
  --ink: #1f1b16;
  --muted: #6b6258;
  --rule: #d4c6b0;
  --pine: #243f36;
  --pine-mid: #2f5c4a;
  --copper: #c4622d;
  --copper-dark: #9a4a22;
  --error: #8f2d2d;
  --success: #2f5c4a;
  --shadow: 0 12px 40px rgba(31, 27, 22, 0.08);
  --max: 1120px;
  --radius: 3px;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--pine);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  margin: 0 0 0.7em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--pine);
  color: var(--surface);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 42rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.inline-error {
  background: #f4e4dc;
  color: var(--error);
  border: 1px solid #e0b8a8;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.header-copper {
  height: 5px;
  background: linear-gradient(90deg, var(--pine) 0 28%, var(--copper) 28% 100%);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--pine);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--pine);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.45rem 0.65rem;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--copper-dark);
}

.nav-cta {
  border: 1px solid var(--pine);
  padding: 0.28rem 0.7rem;
  color: var(--pine) !important;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.2rem 1.1rem;
    z-index: 40;
  }

  .site-header {
    position: relative;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-cta {
    border: 0;
    padding-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--pine);
  color: var(--surface);
  text-decoration: none;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--pine);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--pine-mid);
  color: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--pine);
}

.btn-ghost:hover {
  background: var(--pine);
  color: var(--surface);
}

.btn-copper {
  background: var(--copper);
  border-color: var(--copper);
}

.btn-copper:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: var(--surface);
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.1em;
  color: var(--ink);
}

.link-arrow:hover {
  color: var(--copper-dark);
}

/* Hero variants */
.hero-dossier {
  display: grid;
  grid-template-columns: 5.2rem 1fr minmax(14rem, 20rem);
  gap: 1.6rem 2rem;
  padding: 3.4rem 0 3rem;
  align-items: start;
}

.hero-spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--rule);
  padding-right: 0.9rem;
  min-height: 12rem;
}

.hero-copy h1 {
  max-width: 18ch;
}

.fiche {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.fiche dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.7rem;
}

.fiche dt:first-child {
  margin-top: 0;
}

.fiche dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

.hero-band img,
.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

@media (max-width: 800px) {
  .hero-dossier {
    grid-template-columns: 1fr;
    padding-top: 2.2rem;
  }

  .hero-spine {
    writing-mode: horizontal-tb;
    transform: none;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 0.7rem;
    min-height: 0;
  }
}

.section {
  padding: 3.4rem 0;
}

.section-tight {
  padding: 2.2rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.7rem;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1.15rem;
}

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

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

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

@media (max-width: 900px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-body h3 {
  margin: 0;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.folder-tab {
  align-self: flex-start;
  background: var(--pine);
  color: var(--surface);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  margin: -0.15rem 0 0.2rem;
}

/* Stats */
.stat-stack {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-stack div {
  padding: 1.3rem 1rem 1.4rem 0;
  border-right: 1px solid var(--rule);
}

.stat-stack div:last-child {
  border-right: 0;
}

.stat-stack strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.stat-stack span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

@media (max-width: 800px) {
  .stat-stack {
    grid-template-columns: 1fr 1fr;
  }

  .stat-stack div:nth-child(2) {
    border-right: 0;
  }
}

/* Benefits */
.benefit {
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.benefit .num {
  font-family: var(--font-serif);
  color: var(--copper);
  font-size: 1.35rem;
}

/* Testimonials */
.quote {
  background: var(--surface);
  border-left: 4px solid var(--copper);
  padding: 1.1rem 1.2rem;
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
}

.quote footer {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.stars {
  color: var(--copper-dark);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.6rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--pine);
  background: #eef3ef;
}

.price-card .amount {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  margin: 0.4rem 0 0.2rem;
}

.price-card ul {
  padding-left: 1.1rem;
  margin: 1rem 0 1.3rem;
  flex: 1;
}

.price-card li {
  margin-bottom: 0.4rem;
}

@media (max-width: 800px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms */
form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.92rem;
}

input,
textarea,
select {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
}

.form-status {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
}

.form-status.ok {
  border-color: var(--success);
  background: #e7f0ea;
}

.form-status.bad {
  border-color: var(--error);
  background: #f7e8e4;
}

.address-block {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.2rem 1.3rem;
  font-size: 0.98rem;
}

/* Blog */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  margin: 1rem 0 1.4rem;
}

.byline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.modules {
  counter-reset: mod;
}

.modules li {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.modules {
  padding: 0;
}

.instructor {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.2rem;
  align-items: start;
}

.instructor img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border: 1px solid var(--rule);
}

@media (max-width: 600px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin-top: 0.55rem;
  color: var(--muted);
}

/* 404 */
.page-404 {
  padding: 4.5rem 0 5rem;
  text-align: left;
}

.page-404 h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2em;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--pine);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  max-width: 42rem;
  margin-inline: auto;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner button {
  font: inherit;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--pine);
  color: #e7efe9;
  margin-top: 2.5rem;
}

.site-footer a {
  color: #f3ebe0;
}

.site-footer a:hover {
  color: #f0c4a8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 2.4rem 0 2rem;
}

.site-footer h2 {
  color: #faf6f0;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.footer-meta {
  border-top: 1px solid rgba(243, 235, 224, 0.2);
  padding: 0.85rem 0 1.2rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #c9d6cf;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  border: 1px solid var(--rule);
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
