/* ==========================================================================
   Servlys stylesheet.
   Palette taken from the lily: petal white, stem green, saffron anther.
   One typeface only (Archivo variable). Contrast comes from width
   (wdth) and weight (wght) rather than a second family.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 380 760;
  font-stretch: 100% 112%;
  font-display: swap;
}

:root {
  --paper:      #F7F8F6;
  --paper-2:    #EDF1EC;
  --ink:       #1A2A24;
  --grey:        #56655E;
  --green:        #17372C;
  --green-deep:  #0E2119;
  --green-soft:   #E7EDE7;
  --rule:       #D3DCD5;
  --saffron:      #9A4E05;
  --saffron-bright:  #E08A1E;
  --light:       #EAF0EA;
  --light-2:     #A9BDB0;

  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-lead: 1.1875rem;
  --t-h3:   1.3125rem;
  --t-h2:   clamp(1.75rem, 1.30rem + 1.6vw, 2.25rem);
  --t-h1:   clamp(2.1rem, 1.35rem + 3.2vw, 3.4rem);
  --t-num:  clamp(2.5rem, 1.8rem + 3vw, 4rem);

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --maxw: 1120px;
  --measure: 68ch;
  --rhythm: clamp(3.5rem, 7vw, 6rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: var(--t-base);
  font-variation-settings: 'wght' 400, 'wdth' 100;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-variation-settings: 'wght' 630, 'wdth' 108;
  letter-spacing: -0.021em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); line-height: 1.16; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 1.0625rem; }

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

a { color: inherit; text-decoration: none; }

.prose a,
.lien {
  color: var(--ink);
  border-bottom: 2px solid var(--saffron-bright);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.prose a:hover,
.lien:hover { color: var(--saffron); border-color: var(--saffron); }

/* Un btn placé dans du content rédactionnel reste un btn : sans cette
   `.prose a` beats `.btn` and the label becomes unreadable. */
.prose a.btn,
.prose a.btn:hover { color: #fff; border-bottom-color: transparent; }
.prose a.btn--ghost,
.prose a.btn--ghost:hover { color: var(--green); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--grey);
  max-width: 46ch;
}

.standfirst {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--grey);
  max-width: var(--measure);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Layout ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--rhythm); }
.band--tight { padding-block: calc(var(--rhythm) * .62); }

.band--dark {
  background: var(--green);
  color: var(--light);
}
.band--dark h2, .band--dark h3 { color: #fff; }
.band--dark p { color: var(--light-2); }

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

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

/* --- Masthead -------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.375rem;
  font-variation-settings: 'wght' 680, 'wdth' 110;
  letter-spacing: -0.03em;
  color: var(--green);
}
.brand__mark { width: 22px; height: 26px; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }

.nav__link {
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 500, 'wdth' 100;
  color: var(--grey);
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--ink); border-color: var(--saffron-bright); }

/* Both rules below are class-level, so .btn would win on source order alone.
   Scoping to .nav raises specificity above it. Same reason .fact .fact__value
   and .post .meta are scoped: a `.parent element` rule outranks a bare class. */
.nav .nav__cta {
  padding: .55rem 1rem;
  font-size: var(--t-xs);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: .5rem .75rem;
  font: inherit;
  font-size: var(--t-sm);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.25rem;
    z-index: 40;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link {
    padding-block: .85rem;
    border-bottom: 1px solid var(--rule);
    border-left: 2px solid transparent;
    font-size: var(--t-base);
  }
  .nav__link:hover, .nav__link[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav .nav__cta { margin-top: 1rem; justify-content: center; font-size: var(--t-sm); }
  .masthead__inner { position: relative; }
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 600, 'wdth' 104;
  letter-spacing: -0.005em;
  border: 1.5px solid var(--green);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn--ghost {
  background: transparent;
  color: var(--green);
}
.btn--ghost:hover { background: var(--green-soft); color: var(--green); border-color: var(--green); }

.btn--accent {
  background: var(--saffron-bright);
  border-color: var(--saffron-bright);
  color: var(--green-deep);
}
.btn--accent:hover { background: #f0a343; border-color: #f0a343; }

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

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

.hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.4rem; }
.hero .actions { margin-top: 2rem; }

/* Contact card: for a services company, the phone number is the hero. */
.contact-card {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--saffron-bright);
  background: #fff;
  padding: 1.6rem 1.5rem;
}
.contact-card__label {
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 600, 'wdth' 104;
  color: var(--grey);
  margin-bottom: .9rem;
}
.contact-card__lead {
  display: inline-block;
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.375rem);
  word-break: break-word;
  font-variation-settings: 'wght' 660, 'wdth' 108;
  letter-spacing: -0.02em;
  color: var(--green);
  border-bottom: 2px solid var(--saffron-bright);
}
.contact-card__lead:hover { color: var(--saffron); }
.contact-card dl { margin: 1.2rem 0 0; font-size: var(--t-sm); }
.contact-card dt { color: var(--grey); }
.contact-card dd { margin: 0 0 .8rem; color: var(--ink); }
.contact-card dd:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
}

/* --- Services: columns split by hairlines, not cards --------------------- */

.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }

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

.service {
  padding: 0 clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid var(--rule);
}
.service:first-child { padding-left: 0; border-left: 0; }
.service:last-child { padding-right: 0; }

.service h3 { margin-bottom: .5rem; }
.service__summary { color: var(--grey); font-size: var(--t-sm); }

.service__list {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  font-size: var(--t-sm);
}
.service__list li {
  padding: .5rem 0 .5rem 1.1rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05em;
  width: 5px; height: 5px;
  background: var(--saffron-bright);
}

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
  .service {
    border-left: 0;
    border-top: 2px solid var(--green);
    padding: 1.75rem 0 0;
    margin-top: 1.75rem;
  }
  .service:first-child { margin-top: 0; }
}

/* --- La méthode : le moment fort de la page ------------------------------- */

.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }

.step {
  position: relative;
  padding: 2.4rem clamp(1rem, 2vw, 1.75rem) 0 0;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--saffron-bright);
  opacity: .35;
}
.step:first-child::before { opacity: 1; }

.step__num {
  display: block;
  font-size: var(--t-num);
  font-variation-settings: 'wght' 700, 'wdth' 112;
  letter-spacing: -0.05em;
  line-height: .85;
  color: var(--saffron-bright);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.125rem; margin-bottom: .45rem; }
.step p { font-size: var(--t-sm); line-height: 1.55; }

@media (max-width: 820px) {
  .method { grid-template-columns: 1fr; }
  .step { padding: 1.5rem 0 0 3.5rem; }
  .step::before { top: 0; left: 0; right: auto; bottom: 0; width: 2px; height: auto; }
  .step__num { position: absolute; left: 0; top: 1.3rem; font-size: 2rem; margin: 0; }
}

/* --- Facts ------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.fact .fact__value {
  font-size: 1.75rem;
  font-variation-settings: 'wght' 660, 'wdth' 108;
  letter-spacing: -0.025em;
  color: var(--green);
  margin-bottom: .2rem;
}
.fact p { font-size: var(--t-sm); color: var(--grey); }

/* --- Common questions ------------------------------------------------- */

.faq { max-width: var(--measure); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 1.15rem 2rem 1.15rem 0;
  font-variation-settings: 'wght' 570, 'wdth' 104;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 1rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--saffron);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 2rem 1.3rem 0; color: var(--grey); font-size: var(--t-sm); }

/* --- Editorial content ------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.8em 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--saffron-bright);
  color: var(--grey);
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin-bottom: 1.5em; }
.prose th, .prose td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--rule); }
.prose th { font-variation-settings: 'wght' 600, 'wdth' 104; }
.prose code {
  background: var(--green-soft);
  padding: .1em .35em;
  font-size: .92em;
}

/* --- Posts ------------------------------------------------------------- */

.post-list { display: grid; gap: 0; max-width: var(--measure); }
.post {
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.post:last-child { border-bottom: 1px solid var(--rule); }
.post h2 { font-size: var(--t-h3); margin-bottom: .4rem; }
.post h2 a:hover { color: var(--saffron); }
.post p { color: var(--grey); font-size: var(--t-sm); }
.post .meta, .meta { font-size: var(--t-xs); color: var(--grey); margin-bottom: .5rem; }

/* --- Form ----------------------------------------------------------- */

.contact-form { max-width: 34rem; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 560, 'wdth' 102;
  margin-bottom: .35rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .7rem .85rem;
  font: inherit;
  font-size: var(--t-base);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); }
.field textarea { min-height: 9rem; resize: vertical; }
.field--check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--t-sm); }
.field--check input { width: auto; margin-top: .25rem; flex: none; }
.hint { font-size: var(--t-xs); color: var(--grey); margin-top: .3rem; }
.honeypot { position: absolute; left: -9999px; }

/* --- Sent confirmation --------------------------------------------------- */

.form-sent {
  max-width: 34rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--saffron-bright);
}
.form-sent h2 { font-size: var(--t-h3); margin-bottom: .6rem; }
.form-sent p { font-size: var(--t-sm); color: var(--grey); }
.form-sent p strong { color: var(--ink); }
.form-sent:focus { outline: none; }
.form-sent:focus-visible { outline: 3px solid var(--saffron-bright); outline-offset: 3px; }

/* --- Footer --------------------------------------------------------- */

.site-footer {
  background: var(--green-deep);
  color: var(--light-2);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
  font-size: var(--t-sm);
}
.site-footer a { color: var(--light); }
.site-footer a:hover { color: var(--saffron-bright); }
.site-footer h2 {
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 620, 'wdth' 104;
  color: #fff;
  margin-bottom: .9rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: .5rem; }
.site-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  justify-content: space-between;
  font-size: var(--t-xs);
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* --- Breadcrumb --------------------------------------------------------- */

.breadcrumb { font-size: var(--t-xs); color: var(--grey); padding-top: 1.75rem; }
.breadcrumb a { border-bottom: 1px solid var(--rule); }
.breadcrumb a:hover { color: var(--ink); border-color: var(--saffron-bright); }

/* --- Utilities --------------------------------------------------------------- */

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

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

@media print {
  .masthead, .site-footer, .actions { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* --- Servlys Gate: the demo widget ---------------------------------------
   The most characteristic thing about a CAPTCHA is the moment you meet it,
   so the product leads with a working version of itself rather than a
   screenshot. Motion here answers a click; nothing animates on its own. */

.gate-demo {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 26rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--saffron-bright);
}

.gate-demo__control {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--green);
  cursor: pointer;
  color: var(--green);
}
.gate-demo__control:disabled { cursor: default; }

.gate-demo__tick { width: 16px; height: 16px; opacity: 0; transition: opacity .18s ease; }
.gate-demo[data-state="done"] .gate-demo__tick { opacity: 1; }
.gate-demo[data-state="done"] .gate-demo__control { background: var(--green); color: #fff; }

.gate-demo__bar {
  width: 16px; height: 3px;
  background: var(--rule);
  overflow: hidden;
  display: none;
}
.gate-demo[data-state="checking"] .gate-demo__bar { display: block; }
.gate-demo[data-state="checking"] .gate-demo__tick { display: none; }
.gate-demo__bar span {
  display: block; width: 100%; height: 100%;
  background: var(--saffron-bright);
  transform: translateX(-100%);
  animation: gate-sweep .9s linear infinite;
}
@keyframes gate-sweep { to { transform: translateX(100%); } }

.gate-demo__text { flex: 1; min-width: 0; }
.gate-demo__status {
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 560, 'wdth' 102;
  line-height: 1.3;
}
.gate-demo__note { font-size: var(--t-xs); color: var(--grey); margin-top: .15rem; }
.gate-demo__brand {
  flex: none;
  font-size: var(--t-xs);
  color: var(--grey);
  text-align: right;
  line-height: 1.2;
}

/* --- Pricing -------------------------------------------------------------- */

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

.plan {
  position: relative;
  padding: 2rem clamp(1.25rem, 2.5vw, 2rem) 0 0;
}
.plan::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--saffron-bright);
  opacity: .3;
}
.plan--featured::before { opacity: 1; }

.plan__name {
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 600, 'wdth' 104;
  color: var(--grey);
  margin-bottom: .5rem;
}
.plan__price {
  font-size: 2.25rem;
  font-variation-settings: 'wght' 660, 'wdth' 110;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
}
.plan__price small {
  font-size: var(--t-sm);
  font-variation-settings: 'wght' 450, 'wdth' 100;
  letter-spacing: 0;
  color: var(--grey);
}
.plan__for { font-size: var(--t-sm); color: var(--grey); margin: .7rem 0 1.1rem; }
.plan__list { list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: var(--t-sm); }
.plan__list li {
  padding: .5rem 0 .5rem 1.1rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05em;
  width: 5px; height: 5px;
  background: var(--saffron-bright);
}

@media (max-width: 820px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 1.75rem 0 0; margin-top: 1.75rem; }
  .plan:first-child { margin-top: 0; }
}

/* --- Code samples --------------------------------------------------------- */

.prose pre {
  background: var(--green-deep);
  color: var(--light);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.6;
  margin: 0 0 1.5em;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose code, .prose pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
