/* pidigital.solutions - Pi Digital Solutions Sàrl. Self-hosted, no third-party requests. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f0f4f4;
  --ink: #15191d;
  --muted: #545f69;
  --line: #d8dfe2;
  --control: #87939b;
  --petrol: #1d5961;
  --petrol-deep: #123f45;
  --petrol-tint: #ddebec;
  --on-petrol: #d9e8ea;
  --rose: #c47a88;
  --skel: #e4eaec;

  --wrap: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --r-ctl: 10px;
  --r-box: 14px;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.75rem, 1.2rem + 6vw, 5.5rem);
  --space-section: clamp(64px, 9vw, 120px);

  color-scheme: light;
}

@media (min-width: 1024px) {
  :root { --fs-body: 1.125rem; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--petrol-deep); }
b, strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; background: #fff; padding: 8px 14px; border-radius: 6px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-size: 1.375rem; font-weight: 300; letter-spacing: -0.025em; line-height: 1; }
.brand-name b { font-weight: 700; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.site-nav a:hover { color: var(--petrol); text-decoration: underline; }
.show-s { display: none; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-row > .btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .hide-s { display: none; }
  .show-s { display: inline; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--petrol); border-radius: var(--r-ctl);
  background: var(--petrol); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); color: #fff; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-outline { background: transparent; color: var(--petrol); }
.btn-outline:hover { background: var(--petrol-tint); border-color: var(--petrol); color: var(--petrol-deep); }
.btn-light { background: #fff; border-color: #fff; color: var(--petrol-deep); }
.btn-light:hover { background: var(--petrol-tint); border-color: var(--petrol-tint); color: var(--petrol-deep); }
.text-link { font-weight: 600; }
.nw { white-space: nowrap; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: var(--fs-small); font-weight: 550; line-height: 1.3; }
input, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--control); border-radius: var(--r-ctl);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #6b767f; opacity: 1; }
input:focus-visible, textarea:focus-visible { border-color: var(--petrol); outline-offset: 1px; border-radius: var(--r-ctl); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-title {
  font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.045em;
  margin: 0 0 clamp(28px, 4vw, 56px);
}
.hero-a { display: block; font-weight: 760; }
.hero-b { display: block; font-weight: 280; letter-spacing: -0.04em; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "lead" "stage" "try" "actions";
  gap: 28px;
}
.lead { grid-area: lead; margin: 0; max-width: 34ch; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem); line-height: 1.5; }

.try { grid-area: try; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--mist); }
.try-title { margin: 0 0 12px; font-weight: 650; }
.try-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.try-note { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
@media (max-width: 480px) { .try-fields { grid-template-columns: 1fr; } }

.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 0; }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "lead stage" "try stage" "actions stage" ". stage";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 28px;
  }
}

/* Hero stage: the letter and the phone */
.stage { grid-area: stage; position: relative; width: 100%; max-width: 480px; margin: 4px auto 8px; aspect-ratio: 1 / 0.98; }
@media (min-width: 900px) { .stage { max-width: 580px; justify-self: end; margin: 0; } }

.letter {
  position: absolute; top: 0; right: 1%; width: 57%; aspect-ratio: 210 / 297;
  display: flex; flex-direction: column;
  padding: 9% 9% 8% 13%;
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(21, 25, 29, 0.05), 0 22px 44px -18px rgba(21, 25, 29, 0.22);
  transform: rotate(3.5deg);
  container-type: inline-size;
}
.l-head { display: flex; align-items: center; gap: 2.6cqi; font-size: 5.4cqi; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.l-head b { font-weight: 700; }
.l-head img { width: 9cqi; height: 9cqi; }
.l-to { align-self: flex-end; width: 56%; margin: 10cqi 0 0; font-size: 4.3cqi; line-height: 1.4; overflow-wrap: anywhere; }
.l-title { margin: 10cqi 0 2cqi; font-size: 7.2cqi; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.l-skel { display: block; height: 2.4cqi; margin-top: 3.4cqi; border-radius: 99px; background: var(--skel); }
.l-skel-short { width: 58%; }
.l-skel-mid { width: 82%; }
.l-gap { display: block; height: 3cqi; }
.l-qr { margin-top: auto; align-self: flex-end; display: flex; flex-direction: column; align-items: center; gap: 2.2cqi; }
.l-qr svg { width: 26cqi; height: auto; shape-rendering: crispEdges; }
.l-qr span { font-size: 3.3cqi; color: var(--muted); line-height: 1.2; }

.phone {
  position: absolute; left: 1%; bottom: 0; width: 44%; aspect-ratio: 9 / 17.6;
  padding: 3%;
  background: var(--ink); border-radius: 15% / 7.4%;
  box-shadow: 0 2px 4px rgba(21, 25, 29, 0.14), 0 34px 60px -22px rgba(21, 25, 29, 0.5);
  transform: rotate(-2.5deg);
  container-type: inline-size;
}
.screen { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 12.5% / 6.2%; }
.s-bar { display: flex; align-items: center; justify-content: space-between; padding: 6.5cqi 6cqi 3.5cqi; }
.s-mono {
  display: grid; place-items: center; width: 12cqi; height: 12cqi; border-radius: 50%;
  background: var(--petrol); color: #fff; font-size: 4.4cqi; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
}
.s-menu { display: grid; gap: 1.6cqi; }
.s-menu i { display: block; width: 7cqi; height: 0.9cqi; border-radius: 99px; background: var(--ink); }
.s-hero { margin: 0 4cqi; padding: 6cqi 5.5cqi; border-radius: 5cqi; background: var(--petrol-tint); }
.s-name { margin: 0; font-size: 8.6cqi; font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.s-city { margin: 1.6cqi 0 0; font-size: 4.6cqi; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.s-open { display: inline-block; margin: 4cqi 0 0; padding: 1.4cqi 3.2cqi; border-radius: 99px; background: #fff; font-size: 3.6cqi; font-weight: 550; line-height: 1.3; }
.s-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqi; margin: 4cqi; }
.s-btn { padding: 3.4cqi 0; border: 1px solid var(--petrol); border-radius: 3cqi; background: var(--petrol); color: #fff; font-size: 4.2cqi; font-weight: 600; line-height: 1.2; text-align: center; }
.s-btn-ghost { background: #fff; color: var(--petrol); }
.s-card { margin: 0 4cqi 3cqi; padding: 4.2cqi 4.6cqi; border: 1px solid var(--line); border-radius: 4cqi; }
.s-h { margin: 0 0 2.4cqi; font-size: 4.5cqi; font-weight: 700; line-height: 1.2; }
.s-row { display: flex; justify-content: space-between; gap: 2cqi; margin: 0 0 1.2cqi; font-size: 3.9cqi; line-height: 1.35; }
.s-row span:last-child { color: var(--muted); }
.s-skel { display: block; height: 2.6cqi; margin-top: 2.6cqi; border-radius: 99px; background: var(--skel); }
.s-skel-2 { width: 78%; }
.s-skel-3 { width: 56%; }
.s-map {
  position: relative; display: block; height: 18cqi; border-radius: 2.6cqi;
  background-color: #eef3f3;
  background-image: linear-gradient(90deg, rgba(29, 89, 97, 0.12) 1px, transparent 1px), linear-gradient(rgba(29, 89, 97, 0.12) 1px, transparent 1px);
  background-size: 7cqi 7cqi;
}
.s-map i { position: absolute; left: 54%; top: 40%; width: 4.4cqi; height: 4.4cqi; border-radius: 50%; background: var(--petrol); box-shadow: 0 0 0 1.8cqi rgba(29, 89, 97, 0.18); }
.s-tag { margin: auto 0 0; padding: 1.5cqi 0 4.5cqi; text-align: center; font-size: 3.4cqi; color: var(--muted); }

/* Sections */
.section { padding: var(--space-section) 0; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 0.6em; max-width: 22ch; text-wrap: balance; }
.section-head { display: grid; gap: 8px 48px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .h2 { margin: 0; }
.section-lead { margin: 0; max-width: 38ch; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); text-wrap: pretty; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* Le constat */
.constat { background: var(--mist); }
.constat .h2 { max-width: 24ch; margin-bottom: clamp(36px, 5vw, 60px); }
.compare { display: grid; gap: 40px clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.pair { margin: 0; }
.pair figcaption { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 650; }
.bar-row { margin-bottom: 24px; }
.bar-label { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); align-items: baseline; column-gap: 8px; margin: 0 0 10px; font-size: 1rem; line-height: 1.4; text-wrap: pretty; }
.bar-label b { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.bar { display: block; height: 12px; overflow: hidden; border-radius: 99px; background: #dbe2e4; }
.fill { display: block; height: 100%; border-radius: 99px; background: var(--petrol); }
.is-pme .fill { background: var(--rose); }
.fill-82 { width: 82%; }
.fill-77 { width: 77%; }
.fill-36 { width: 36%; }
.fill-3 { width: 3%; }
.source { max-width: 72ch; margin: 8px 0 0; color: var(--muted); font-size: var(--fs-small); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 32px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 20px; border-top: 2px solid var(--ink); }
.step-n { display: block; margin-bottom: 18px; font-size: 3rem; font-weight: 250; line-height: 1; letter-spacing: -0.04em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 8px; font-size: var(--fs-h3); font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* Offers */
.offres { border-top: 1px solid var(--line); }
.plans { display: grid; gap: 48px; }
.plan { display: flex; flex-direction: column; padding-top: 24px; border-top: 2px solid var(--ink); }
.plan h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.plan-desc { margin: 0 0 24px; color: var(--muted); text-wrap: pretty; }
.price { margin: 0 0 8px; }
.amount { display: block; font-size: clamp(2.25rem, 1.7rem + 1.5vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.per { display: block; margin-top: 6px; color: var(--muted); font-size: 1rem; }
.price-note { margin: 0 0 24px; color: var(--muted); font-size: var(--fs-small); text-wrap: pretty; }
.incl { flex: 1; list-style: none; margin: 0 0 28px; padding: 0; }
.incl li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
.incl li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol);
  transform: rotate(-45deg);
}
.plan .btn { align-self: flex-start; }
.plans-note { margin: 40px 0 0; color: var(--muted); font-size: var(--fs-small); }

@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .plan { padding: 24px 32px 0; }
  .plan:first-child { padding-left: 0; }
  .plan:last-child { padding-right: 0; }
  .plan + .plan { border-left: 1px solid var(--line); }
  @supports (grid-template-rows: subgrid) {
    .plans { grid-template-rows: repeat(6, auto); }
    .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .plan .incl { align-self: start; }
    .plan .btn { align-self: end; justify-self: start; }
  }
}

/* Commitments */
.engagements { background: var(--mist); }
.eng-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .eng-grid { grid-template-columns: 1.35fr 1fr; align-items: start; column-gap: clamp(40px, 6vw, 96px); } }
.promises { list-style: none; margin: 0; padding: 0; }
.promises li { padding: 16px 0; border-top: 1px solid var(--line); font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.note-health { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-box); background: #fff; }
@media (min-width: 900px) { .note-health { margin-top: 12px; } }
.note-health h3 { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 650; }
.note-health p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.5fr; column-gap: clamp(40px, 6vw, 96px); } }
.faq-intro p { color: var(--muted); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 20px 44px 20px 0; list-style: none; cursor: pointer; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq-list details p { max-width: 60ch; margin: -4px 0 22px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* About */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.5fr; column-gap: clamp(40px, 6vw, 96px); } }
.about-text p { max-width: 60ch; }
.about-text p:last-child { margin-bottom: 0; }

/* Request */
.demande { padding: var(--space-section) 0; background: var(--petrol); color: #fff; }
.demande .h2 { color: #fff; }
.demande a { color: #fff; }
.demande a:hover { color: var(--petrol-tint); }
.demande :focus-visible { outline-color: #fff; }
.demande-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .demande-grid { grid-template-columns: 1fr 1.25fr; column-gap: clamp(40px, 6vw, 96px); } }
.demande-copy p { max-width: 40ch; color: var(--on-petrol); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.demande-copy .small { font-size: var(--fs-small); }
.request-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .request-fields { grid-template-columns: 1fr; } }
.demande .field-label { color: #fff; }
.optional { font-weight: 400; color: var(--on-petrol); }
.demande input, .demande textarea { border-color: #fff; }
.demande input:focus-visible, .demande textarea:focus-visible { outline-color: #fff; }
.small { font-size: var(--fs-small); }
.form-note, .form-status { max-width: 62ch; margin: 16px 0 0; color: var(--on-petrol); }
.form-status { color: #fff; font-weight: 550; }

/* Footer */
.site-footer { padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { max-width: 34ch; margin: 14px 0 0; color: var(--muted); font-size: var(--fs-small); }
.site-footer address { font-style: normal; font-size: var(--fs-small); line-height: 1.75; }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); line-height: 1.75; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--petrol); }
.footer-base { margin-top: 40px; }
.footer-base p { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 96px) 0 var(--space-section); }
.legal-wrap { max-width: calc(68ch + 2 * var(--gutter)); }
.legal-title { margin: 0 0 12px; text-wrap: balance; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.legal-date { margin-bottom: 40px; color: var(--muted); font-size: var(--fs-small); }
.legal h2 { margin: 2em 0 0.5em; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.notfound .hero-actions { margin-top: 32px; }

@media print {
  .site-header .btn, .stage, .try, .demande form { display: none; }
  .demande { background: none; color: var(--ink); }
  .demande .h2, .demande a, .demande-copy p { color: var(--ink); }
}

/* Small phones: the borders do not scale, so give the mini site a little more room */
@container (max-width: 200px) {
  .s-map { height: 13cqi; }
  .s-card { margin-bottom: 2.6cqi; }
}
@container (max-width: 140px) {
  .s-tag { padding-bottom: 2cqi; }
  .s-map { height: 11cqi; }
}
