/*
  Majordome site stylesheet: the frozen interface shared by every page (T0).
  A page adds a class it lacks in its own <style>, never here. Mobile first;
  wide screens from 720px. One look only: no dark mode.

  Page frame
    body                 livery background, Figtree, linen text. Pages use
                         <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
    .container           centred column, max 1120px, side gutters with safe-area insets
    .container--narrow   same, max 860px (questions)
    .skip-link           « Aller au contenu », visible on focus only
    .visually-hidden     text for screen readers only

  Header (on one line at every width)
    .site-header         > .container.site-header__inner
    .brand               link home: <img class="brand__logo" src="/media/logo.svg"> + <span class="brand__name">majordome</span>
    .header-dm           DM pill: <span class="header-dm__long">@majordomeapp</span><span class="header-dm__short">DM</span>;
                         the short label shows under 480px, the long one from 480px

  Actions
    .btn-dm              the DM button: lacquer pill, 56px high. Label « Écrivez « MAJORDOME » en DM »
    .btn-dm--light       linen variant, for a lacquer background (last call)
    .btn-hint            small line under a DM button
    .cta                 column wrapper for a .btn-dm and its .btn-hint (.cta--center centres it)

  Badges
    .badge               pill base (600 weight)
    .badge--soon         « Bientôt »: mist on ink, 12px
    .badge--light        linen on ink, 14px (hero kicker « Bientôt · ouverture aux premières pros »)
    .badge--lacquer      lacquer on linen, 13px (« 1er mois offert »)

  Sections and type
    .section             vertical padding of a page band (64px phone, 88px wide)
    .section--livery | --linen | --ink | --lacquer   band backgrounds; --linen turns text and links ink
    .section--tight      72px wide padding (last call)
    .checker             decorative checkerboard band (aria-hidden), 72px high
    .section-head        column of a heading and its intro, max 40em, 40px below
    .split               two columns that wrap: .split__main (text, 380px basis), .split__side (visual, 300px basis)
    .kicker              uppercase small label above a heading
    .display-1           Gloock h1, 42 to 72px
    .display-2           Gloock h2, 36 to 56px
    .display-xl          Gloock « 21:47 », 56 to 104px
    .lead                19px intro paragraph;  .text-lg 18px;  .text-strong 20 to 22px semibold
    .text-muted          mist text;  .stack (column, gap 16px; .stack--lg 22px)
    .arrow-list          list of « → » lines, no bullets

  Cards
    .card-grid           auto-fit grid, 300px min columns (.card-grid--prices: 250px, stretched)
    .card                dark card on livery (#1D4740), radius 24
    .card--white         white card with a border, for the linen band
    .card--livery        livery card, for the linen band (featured price)
    .card__title         24px semibold card heading;  .card__head row of a title and a badge
    .service-list > .service   one service: .service__head (.service__name + .badge--soon), .service__desc
    .price               Gloock 56px figure + <span class="price__unit"> / mois</span>

  Chat preview (21:47)
    .chat                phone-like card;  .chat__top (name + badge);  .chat__time
    .chat__msg--in | --out   message bubbles;  .chat__event   lacquer confirmation pill

  Butler (layers stacked in the order body, head, eyes, mouth, arms)
    .butler              square stage; each part is <img class="butler__part butler__body|head|eyes|mouth|arms" src="/butler/...svg">
    .butler--hero        92% wide inside .butler-arch;  .butler--small  180px (last call)
    .butler-arch         lacquer arch behind the hero butler, max 380px, 4:5

  Reel
    .reel                9:16 frame, radius 24, max 300px; holds the <video controls preload="none" poster>

  Questions
    .faq                 column of <details class="faq-item">; <summary> with <span class="faq-item__sign" aria-hidden="true">+</span>;
                         answer in <p class="faq-item__answer">

  Sticky DM bar (phones under 720px; script adds .is-visible; without script it never shows)
    .sticky-dm           fixed bottom bar holding one .btn-dm, clear of the home bar

  Footer
    .site-footer         > .container.site-footer__inner: .footer-brand, nav.footer-nav, .footer-note
    .footer-nav          the six links: Contact, mailto contact@majordomeapp.fr (F2.4), Mentions légales, Confidentialité, Conditions d'utilisation, Instagram

  Text pages (legal, contact, 404)
    .page-title          Gloock heading of a text page
    .prose               one column at most 68ch, Figtree 17px: h2, h3, p, ul, ol, a, address, table
    .updated             « Dernière mise à jour : <date> » line
*/

@font-face {
  font-family: "Gloock";
  src: url("/fonts/Gloock-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --livery: #14332e;
  --livery-2: #1d4740;
  --line: #2b5149;
  --linen: #eef1ec;
  --lacquer: #c8372d;
  --ink: #0f2420;
  --ink-soft: #3c5a53;
  --mist: #a8beb7;
  --mist-light: #c9d5d0;
  --white: #ffffff;
  --font-display: "Gloock", Georgia, serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-pill: 999px;
  --radius-card: 24px;
  --gutter: 24px;
  --safe-left: max(var(--gutter), env(safe-area-inset-left));
  --safe-right: max(var(--gutter), env(safe-area-inset-right));
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--livery);
  color: var(--linen);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
}

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

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

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

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--linen);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.container--narrow {
  max-width: 860px;
}

/* Header */

.site-header {
  position: relative;
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--linen);
}

.brand__logo {
  width: 36px;
  height: auto;
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.header-dm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-pill);
  color: var(--linen);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-dm__long {
  display: none;
}

@media (min-width: 480px) {
  .header-dm__long {
    display: inline;
  }

  .header-dm__short {
    display: none;
  }
}

/* Actions */

.btn-dm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--lacquer);
  color: var(--linen);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn-dm:hover {
  color: var(--linen);
  background: #b02f26;
}

.btn-dm--light {
  background: var(--linen);
  color: var(--ink);
}

.btn-dm--light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-hint {
  font-size: 15px;
  line-height: 1.5;
  color: var(--mist);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta--center {
  align-items: center;
  text-align: center;
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  line-height: 1.3;
}

.badge--soon {
  padding: 3px 9px;
  background: var(--mist);
  color: var(--ink);
  font-size: 12px;
}

.badge--light {
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--linen);
  color: var(--ink);
  font-size: 14px;
}

.badge--lacquer {
  padding: 4px 10px;
  background: var(--lacquer);
  color: var(--linen);
  font-size: 13px;
}

/* Sections and type */

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section--livery {
  background: var(--livery);
  color: var(--linen);
}

.section--linen {
  background: var(--linen);
  color: var(--ink);
}

.section--linen a:not(.btn-dm) {
  color: var(--ink);
}

.section--ink {
  background: var(--ink);
  color: var(--linen);
}

.section--lacquer {
  background: var(--lacquer);
  color: var(--linen);
}

.section--lacquer .btn-hint {
  color: var(--linen);
}

.checker {
  height: 72px;
  background: repeating-conic-gradient(var(--livery-2) 0 25%, var(--ink) 0 50%) 0 0 / 72px 72px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 40em;
  margin-bottom: 40px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.split__main {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split__side {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack--lg {
  gap: 22px;
}

.kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display-1,
.display-2,
.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
}

.display-1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.display-2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.display-xl {
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
}

.text-lg {
  font-size: 18px;
  line-height: 1.55;
}

.text-strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

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

.section--linen .text-muted {
  color: var(--ink-soft);
}

.arrow-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  line-height: 1.45;
}

/* Cards */

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

.card-grid--prices {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--livery-2);
  color: var(--linen);
}

.card--white {
  background: var(--white);
  border: 1.5px solid var(--mist-light);
  color: var(--ink);
}

.card--livery {
  background: var(--livery);
  color: var(--linen);
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service__name {
  font-size: 17px;
  font-weight: 600;
}

.service__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--mist-light);
}

.price {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
}

.price__unit {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--ink-soft);
}

.card--livery .price__unit {
  color: var(--mist);
}

/* Chat preview */

.chat {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 24px;
  border-radius: 32px;
  background: var(--livery);
  color: var(--linen);
  box-shadow: 0 24px 60px rgba(15, 36, 32, 0.25);
}

.chat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.chat__time {
  align-self: center;
  font-size: 13px;
  color: var(--mist);
}

.chat__msg--in,
.chat__msg--out {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.4;
}

.chat__msg--in {
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
  background: var(--line);
}

.chat__msg--out {
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  background: var(--linen);
  color: var(--ink);
}

.chat__event {
  align-self: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--lacquer);
  color: var(--linen);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Butler */

.butler {
  position: relative;
  aspect-ratio: 1;
}

.butler__part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.butler__body {
  z-index: 1;
}

.butler__head {
  z-index: 2;
}

.butler__eyes {
  z-index: 3;
}

.butler__mouth {
  z-index: 4;
}

.butler__arms {
  z-index: 5;
}

.butler-arch {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 190px 190px 0 0;
  background: var(--lacquer);
}

.butler--hero {
  width: 92%;
  margin-bottom: 4%;
}

.butler--small {
  width: 180px;
  flex: none;
}

/* Reel */

.reel {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--livery);
}

.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Questions */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 0 20px;
  border-radius: 18px;
  background: var(--livery-2);
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item__sign {
  flex: none;
  font-size: 24px;
  color: var(--mist);
  transition: transform 0.2s;
}

.faq-item[open] .faq-item__sign {
  transform: rotate(45deg);
}

.faq-item__answer {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mist-light);
}

/* Sticky DM bar */

.sticky-dm {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 10px var(--safe-right) max(10px, env(safe-area-inset-bottom)) var(--safe-left);
  background: rgba(15, 36, 32, 0.94);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s, visibility 0s 0.25s;
}

.sticky-dm .btn-dm {
  width: 100%;
  max-width: 420px;
  min-height: 52px;
}

.sticky-dm.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.25s;
}

@media (min-width: 720px) {
  .sticky-dm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-dm,
  .sticky-dm.is-visible,
  .faq-item__sign {
    transition: none;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  font-size: 15px;
  color: var(--mist);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--linen);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--linen);
}

.footer-nav a:hover {
  color: var(--mist);
}

.footer-note {
  color: var(--mist);
}

/* Text pages */

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.6;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 18px;
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--linen);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose address {
  font-style: normal;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

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

.updated {
  font-size: 15px;
  color: var(--mist);
}

/* Wide screens */

@media (min-width: 720px) {
  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section--tight {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .site-header__inner {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: 20px;
  }

  .brand__logo {
    width: 40px;
  }

  .brand__name {
    font-size: 26px;
  }

  .btn-dm {
    font-size: 18px;
    padding: 10px 28px;
  }

  .split {
    gap: 48px;
  }

  .card {
    padding: 26px;
  }

  .card__title {
    font-size: 24px;
  }

  .text-strong {
    font-size: 22px;
  }

  .faq-item {
    padding: 0 22px;
  }
}
