/* Site produit typos-print.com : thème clair et sombre, sans police ni ressource externe. */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --band: #eaf1fb;
  --text: #182033;
  --muted: #55607a;
  --border: #d9dfeb;
  --accent: #1d4f91;
  --accent-hover: #163d70;
  --accent-text: #ffffff;
  --accent-soft: #dce8f8;
  --focus: #f0a400;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151f;
    --surface: #1a2030;
    --band: #161d2c;
    --text: #e8ecf5;
    --muted: #a3adc4;
    --border: #2c3549;
    --accent: #7fb2f0;
    --accent-hover: #a5c9f5;
    --accent-text: #0e1a2e;
    --accent-soft: #22324d;
    --shadow: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

a {
  color: var(--accent);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  font-size: 1.1rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 32px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* En-tête */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  flex: 1;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.lang {
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .lang {
    margin-left: auto;
  }

  .site-header nav {
    order: 3;
    flex-basis: 100%;
  }
}

/* Sections */
.hero {
  padding-block: clamp(40px, 8vw, 88px);
  background: linear-gradient(180deg, var(--band), var(--bg));
}

.hero h1 {
  max-width: 21em;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44em;
}

.page-head {
  padding-top: clamp(32px, 6vw, 56px);
}

.section {
  padding-block: clamp(28px, 5vw, 48px);
}

.band {
  background: var(--band);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.cards.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.callout {
  border-left: 4px solid var(--accent);
}

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

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}

.button.disabled,
.button.disabled:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--muted);
  cursor: default;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.checks {
  list-style: none;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.5em;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.steps {
  padding-left: 1.4em;
}

.steps li {
  margin-bottom: 0.8em;
}

/* Tarif */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: start;
}

.calculator label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.quantity input[type='range'] {
  flex: 1;
  accent-color: var(--accent);
  min-width: 0;
}

.quantity input[type='number'] {
  width: 5.5em;
  font: inherit;
  font-size: 1.2rem;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.2em;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.all-prices td:nth-child(2) {
  font-variant-numeric: tabular-nums;
}

details {
  border-top: 1px solid var(--border);
  padding-block: 12px;
}

details:last-child {
  border-bottom: 1px solid var(--border);
}

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

details p {
  margin: 0.6em 0 0;
  color: var(--muted);
}

.faq {
  max-width: 820px;
}

/* Téléchargement, notice, pages légales */
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

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

.prose h2:first-child {
  margin-top: 0;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-row p {
  margin: 0;
}

.footer-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
