:root {
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --paper: #faf9f6;
  --card: #ffffff;
  --seal: #b3402f;
  --seal-dark: #96301f;
  --line: #e4e1da;
  --radius: 10px;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 650; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 650; letter-spacing: 0.2px; display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--seal); color: #fff; font-size: 18px;
  box-shadow: 0 1px 0 var(--seal-dark);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.langsel {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; background: var(--seal); color: #fff !important;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  padding: 10px 20px; text-decoration: none;
}
.btn:hover { background: var(--seal-dark); }
.btn-big { font-size: 17px; padding: 14px 28px; }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { padding: 84px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.12; margin-bottom: 18px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 30px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* Steps */
.steps { padding: 64px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps h2, .quote h2, .pricing h2 { font-size: 30px; text-align: center; margin-bottom: 36px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.col h3 { font-size: 19px; margin-bottom: 8px; }
.col p { font-size: 15px; color: var(--ink-soft); }
.num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; margin-bottom: 14px; font-size: 16px;
}

/* Quote */
.quote { padding: 72px 0; }
.quote-sub { text-align: center; color: var(--ink-soft); margin: -24px 0 32px; }
.dropzone {
  border: 2px dashed #c9c4b8; border-radius: var(--radius); background: var(--card);
  padding: 44px 24px; text-align: center; max-width: 560px; margin: 0 auto;
  transition: border-color .15s, background .15s;
}
.dropzone.drag { border-color: var(--seal); background: #fdf6f4; }
.dz-main { font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.dz-or { color: var(--ink-soft); font-weight: 400; }
.dz-hint { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

.filelist { max-width: 560px; margin: 18px auto 0; }
.filerow {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 8px; font-size: 14px;
}
.filerow .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.filerow .fpages { color: var(--ink-soft); }
.filerow .fdel { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 16px; padding: 0 2px; }
.filerow .fdel:hover { color: var(--seal); }

.quotebox {
  max-width: 560px; margin: 22px auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center;
}
.quoterow-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 6px; }
.quoterow-total strong { font-family: 'Fraunces', Georgia, serif; font-size: 34px; color: var(--seal); }
.breakdown { font-size: 13px; color: var(--ink-soft); text-align: left; margin-bottom: 18px; }
.beta-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* Pricing */
.pricing { padding: 64px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricetable { border-collapse: collapse; margin: 0 auto 18px; min-width: 320px; }
.pricetable th, .pricetable td { border: 1px solid var(--line); padding: 10px 22px; text-align: left; font-size: 15px; }
.pricetable th { background: var(--paper); font-weight: 600; }
.pricing-note { text-align: center; font-size: 14px; color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* Trust */
.trust { padding: 64px 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.brand-footer { justify-content: center; margin-bottom: 10px; font-size: 20px; }
.brand-footer .seal { width: 26px; height: 26px; font-size: 15px; }

/* Modal commande */
.ordermodal {
  margin: auto; border: none; border-radius: var(--radius); padding: 28px;
  width: min(420px, 92vw); box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.ordermodal::backdrop { background: rgba(20, 33, 61, .45); }
.ordermodal h3 { font-size: 20px; margin-bottom: 16px; }
.ordermodal label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.ordermodal input {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px;
}
.ordermodal input:focus { outline: 2px solid var(--seal); border-color: transparent; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.btn-ghost {
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); cursor: pointer;
}
.ostatus { margin-top: 12px; font-size: 13px; color: var(--ink-soft); min-height: 18px; }
.ostatus.err { color: var(--seal); }
.ordermodal label.affil { display: flex; align-items: flex-start; gap: 8px; font-weight: 400 !important; }
.affil input { width: auto !important; margin-top: 3px; }
.dz-privacy { margin-top: 10px; font-size: 12px; color: var(--ink-soft); max-width: 440px; margin-left: auto; margin-right: auto; }

/* Téléphone : pas de glisser-déposer, on propose directement le bouton */
@media (pointer: coarse) {
  .dz-main { display: none; }
}

@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn-small { display: none; }          /* le bouton du héros suffit */
  .nav { gap: 12px; }
  .topbar-in { height: 56px; }
  .brand { font-size: 21px; gap: 8px; }
  .seal { width: 28px; height: 28px; font-size: 16px; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 16.5px; margin-bottom: 24px; }
  .btn-big { font-size: 16px; padding: 13px 22px; width: 100%; text-align: center; }
  .steps, .quote, .trust { padding: 44px 0; }
  .steps h2, .quote h2 { font-size: 26px; margin-bottom: 26px; }
  .quote-sub { margin: -14px 0 22px; }
  .dropzone { padding: 26px 16px; }
  .dz-hint { margin-top: 10px; }
  .quotebox { padding: 18px; }
  .quoterow-total strong { font-size: 28px; }
  .ordermodal { padding: 22px; }
}
