/* =============================================================
   HIRRY — site components, "Pierre et cobalt"
   Reference: design/hirry/home.html. Tokens come from
   colors_and_type.css (load it first). Class names are the shared
   template contract; Hirry's own partials (hero, how, guarantee)
   add .ruler, .track, .slot, .steps.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--fg1);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--marine-100); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
section { scroll-margin-top: 80px; }

.ic { width: 20px; height: 20px; display: inline-flex; vertical-align: middle; flex: none; }

/* --- Wordmark ------------------------------------------------------- */
.wm { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
      color: var(--fg1); display: inline-flex; align-items: baseline; line-height: 1; }
.wm .dot { color: var(--marine-600); margin-left: -0.02em; }
.wm--reversed, .wm--reversed .dot { color: var(--paper); }

/* --- Buttons -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
       min-height: 48px; white-space: nowrap; font-weight: 600; font-size: 16px;
       border-radius: var(--r-md); padding: 0 22px; border: 2px solid transparent;
       transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn-primary { background: var(--action); border-color: var(--action); color: var(--fg-on-marine); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-secondary { background: var(--surface); color: var(--fg1); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-400); }
.btn-paper { background: #FFFFFF; border-color: #FFFFFF; color: var(--marine-600); }
.btn-paper:hover { background: var(--paper); border-color: var(--paper); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }

/* --- Skip link ------------------------------------------------------ */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--surface);
             color: var(--fg1); padding: 12px 16px; border-radius: var(--r-md); font-weight: 600;
             font-size: 15px; transition: top .15s; }
.skip-link:focus { top: 12px; }

/* --- Header --------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper);
               border-bottom: 1px solid var(--line); }
.site-header.scrolled { background: rgba(241, 236, 228, 0.92); backdrop-filter: saturate(160%) blur(8px); }
.site-header__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 44px; }
.brand .wm { font-size: 26px !important; }
.tagline { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-util { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
                       font-family: var(--font-text); font-size: 15px; font-weight: 500; color: var(--fg1);
                       background: none; border: none; border-radius: 8px; }
.nav-link:hover, .nav-util:hover { background: rgba(36, 73, 184, 0.07); }
.nav-link:visited { color: var(--fg1); }
@media (max-width: 899px) { .nav-link { display: none; } }

/* --- Legal / prose document ----------------------------------------- */
.legal-main { max-width: 72ch; margin: 0 auto; padding: 8px 16px 72px; }
.legal-main h1 { margin: 10px 0 4px; }
.legal-main h2 { margin: 34px 0 10px; }
.legal-main p { margin: 0 0 14px; }
.legal-main ul { margin: 0 0 16px; padding-left: 20px; }
.legal-main li { margin: 7px 0; color: var(--fg2); line-height: var(--lh-text); }
.legal-main a { color: var(--action); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-main a:hover { color: var(--action-hover); }
.legal-updated { color: var(--fg3); font-size: 13px; margin-bottom: 28px; }
.legal-note { background: var(--surface); border: 1px solid var(--line);
              border-left: 3px solid var(--marine-600); border-radius: var(--r-sm);
              padding: 12px 16px; margin: 4px 0 14px; }
.legal-note p { margin: 0; }

/* --- Language selector ---------------------------------------------- */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
      clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-select { display: inline-flex; align-items: center; margin-left: 4px; }
.lang-select select {
  font-family: var(--font-text); font-size: 15px; font-weight: 500; color: var(--fg1);
  min-height: 44px; background-color: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 0 30px 0 12px; cursor: pointer; max-width: 9.5em;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2359514A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.lang-select select:hover { border-color: var(--line-ink); }
/* Language landing: endonyms in scripts the brand's faces lack. */
.lang-grid a:lang(el), .lang-grid a:lang(bg) { font-family: 'Manrope', var(--font-text); }

/* --- Hero ----------------------------------------------------------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
}
.hero h1 { margin: 0 0 20px; max-width: 16ch; }
.hero__sub { max-width: 36ch; margin: 0 0 28px; }
.hero__sub strong { color: var(--fg1); font-weight: 600; }
.hero-cta { margin-top: 0; }
.hero-cta__fallback { margin-top: 12px; font-size: 15px; }
.hero-cta__fallback a { color: var(--fg1); font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.bloc-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
          margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 480px; }
.bloc-a__title { font-weight: 600; font-size: 15px; color: var(--fg1); }
.bloc-a__sub { font-size: 15px; color: var(--fg1); }
.lien-perdu { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--action);
              text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.lien-perdu:hover { color: var(--action-hover); }
.hero__aside { display: flex; flex-direction: column; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 15px; color: var(--fg2); }
.reassure b { color: var(--fg1); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Delivery note — on Hirry, the 72-hour ruler. */
.delivery-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xs);
                 padding: 24px 20px 20px; width: 100%; }
.delivery-note__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ruler__tag { border: 1px solid var(--ink-500); border-radius: 999px; padding: 2px 10px;
              font-size: 13px; font-style: italic; color: var(--fg2); }
.track { position: relative; margin: 36px 4px 8px; height: 64px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 25px; height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, #CFC3B2 0 33.2%, var(--paper) 33.2% 33.6%, #BFB09B 33.6% 66.4%,
                              var(--paper) 66.4% 66.8%, #AE9C84 66.8%); }
.slots { position: absolute; left: 0; right: 0; top: -2px; display: flex; justify-content: space-between; padding: 0 6%; }
.slot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ochre);
        box-shadow: 0 2px 0 rgba(33, 28, 24, .25);
        animation: hirry-fill .35s ease-out both; animation-delay: calc(var(--i) * 160ms + 400ms); }
@keyframes hirry-fill { from { background: var(--surface); transform: scale(.6); } to { background: var(--ochre); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .slot { animation: none; } }
.tick { position: absolute; top: 22px; width: 2px; height: 18px; }
.tick:nth-of-type(1) { left: 0; }
.tick:nth-of-type(2) { left: 33.3%; }
.tick:nth-of-type(3) { left: 66.6%; }
.tick:nth-of-type(4) { left: calc(100% - 2px); }
.tick span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 13px;
             color: var(--fg2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick:nth-of-type(1) span { left: 0; transform: none; }
.tick:nth-of-type(4) span { left: auto; right: 0; transform: none; }
.delivery-note__rows { margin-top: 28px; }
.dn-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0;
          border-top: 1px solid var(--line); }
.dn-row__k { font-size: 15px; color: var(--fg2); }
.dn-row__v { font-weight: 600; font-size: 15px; color: var(--fg1); font-variant-numeric: tabular-nums; text-align: right; }
.delivery-note__seal { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--action); }
.delivery-note__seal .ic { width: 22px; height: 22px; }
.delivery-note__seal span { font-size: 15px; font-weight: 600; color: var(--action); }

/* --- Sections ------------------------------------------------------- */
.band { background: transparent; }
.problem, .clarify, .how, .pricing, .faq, .section { padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .problem, .clarify, .how, .pricing, .faq, .section { padding: 96px 0; } }
.problem .wrap { padding-top: 0; padding-bottom: 0; }
.problem h2, .clarify__title, .how h2, .faq h2 { margin: 0 0 16px; max-width: 20ch; }
.problem__lead, .clarify__lead { font-size: 19px; color: var(--fg2); max-width: 46ch; margin: 0 0 40px; }

.prob-grid, .clar-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .prob-grid, .clar-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.prob-item { border-top: 1px solid var(--ink-900); padding-top: 16px; }
.prob-item > .ic { display: none; }
.prob-item h3 { font-size: 21px; margin: 0 0 6px; }
.prob-item p { margin: 0; max-width: 34ch; }
.clar-item { border-top: 1px solid var(--ink-900); padding-top: 16px; }
.clar-item__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.clar-item__head .ic { width: 15px; height: 15px; color: var(--fg2) !important; }
.clar-item__head .h4 { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.clar-item p { margin: 0; max-width: 34ch; }

/* --- How it works: steps hung on one line --------------------------- */
.how h2 { margin-bottom: 40px; }
.hiw-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .hiw-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 13.5px; top: 8px; bottom: 8px; width: 1px; background: var(--ink-900); }
.steps li { position: relative; padding: 0 0 32px; counter-increment: s; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: -40px; top: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-900); color: var(--fg1);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps li:last-child::before { background: var(--ochre); }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; max-width: 48ch; }
/* Legacy shared markup (365 page) keeps working. */
.hiw-list { list-style: none; margin: 0; padding: 0; }
.hiw-step { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.hiw-step:first-child { border-top: none; padding-top: 0; }
.hiw-step .num { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-900);
                 font-family: var(--font-display); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.hiw-step__head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.hiw-step__head .h4 { margin: 0; }
.hiw-step p { margin: 0; max-width: 46ch; }

/* VIDEO SLOT "anim" — 16:9 under 960 px, 4:5 above; fixed ratio, no shift. */
.anim { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); padding: 20px;
        background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(33, 28, 24, .05) 14px 15px), var(--surface);
        border: 2px dashed var(--ink-500); display: grid; place-items: center; text-align: center; }
@media (min-width: 960px) { .anim { aspect-ratio: 4 / 5; } }
.anim video, .anim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.anim-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.anim-inner > span { font-weight: 600; color: var(--fg1); }
.anim-sub { font-weight: 400 !important; font-size: 15px; color: var(--fg2) !important; }

/* --- Pricing -------------------------------------------------------- */
.pricing-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.price-line { display: flex; flex-direction: column; gap: 4px; }
.price-amount { font-family: var(--font-display); font-weight: 600; font-style: italic;
                font-size: clamp(4rem, 2rem + 9vw, 8rem); line-height: .95; letter-spacing: -0.03em;
                color: var(--fg1); font-variant-numeric: tabular-nums; }
.price-tag { margin: 0 0 20px; font-size: 18px; color: var(--fg2); }
.price-note { max-width: 44ch; margin: 0 0 16px; color: var(--fg1); }
.price-tva { margin: 0; }
.price-tva p { margin: 0; font-size: 14px; color: var(--fg2); max-width: 52ch; }
.cond-list { list-style: none; margin: 0 0 24px; padding: 0; }
.cond-item { position: relative; display: block; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.cond-item__ic { display: none; }
.cond-item::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 12px;
                     border-radius: 50%; border: 2px solid var(--action); }
.cond-item span:last-child { color: var(--fg1); font-size: var(--fs-body); }
.h365-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.h365-card p:first-child { margin: 0; color: var(--fg1); font-weight: 600; }
.h365-card p { margin: 4px 0 0; }
.h365-card .link-inline { margin-top: 12px; }
.link-inline { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; font-weight: 600;
               color: var(--action); text-decoration: underline; text-underline-offset: 2px; }
.link-inline .ic { display: none; }
.link-inline:hover { color: var(--action-hover); }

/* --- Guarantee: the binary as two halves ---------------------------- */
.guarantee { background: var(--marine-600); color: #FFFFFF; }
.guarantee .wrap { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 960px) { .guarantee .wrap { padding-top: 96px; padding-bottom: 96px; } }
.grt-eyebrow { color: #E6EBF8; }
.grt-title { color: #FFFFFF; font-size: clamp(2.5rem, 1.2rem + 7vw, 5.25rem); margin: 0 0 16px; }
.grt-lead { font-size: 20px; line-height: 1.5; max-width: 40ch; margin: 0 0 8px; color: #FFFFFF; }
.grt-lead strong { display: block; margin-top: 8px; font-weight: 700; color: #FFFFFF; }
.grt-sub { margin: 0 0 32px; color: #E6EBF8; max-width: 42ch; }
.binary-card { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid #FFFFFF; border-radius: 18px;
               overflow: hidden; max-width: 560px; margin: 0 0 28px; }
.binary-row { display: block; padding: 20px; }
.binary-row + .binary-row { border-left: 2px solid #FFFFFF; background: rgba(255, 255, 255, .08); }
.binary-amount { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
                 font-size: clamp(2.25rem, 1.2rem + 4.5vw, 3.5rem); line-height: 1; margin-bottom: 8px;
                 color: #FFFFFF; font-variant-numeric: tabular-nums; white-space: nowrap; }
.binary-row span:last-child { font-size: 15px; color: #FFFFFF; }
.binary-rule { display: none; }
.grt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.grt-cgu-link { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; font-weight: 500;
                text-decoration: underline; text-underline-offset: 3px; }
/* Shared two-column layout, if a shared partial is ever used here. */
.grt-grid { display: block; }
.grt-aside { margin-top: 24px; }

/* --- FAQ ------------------------------------------------------------ */
.faq .wrap { max-width: var(--w-page); }
.faq h2 { margin-bottom: 32px; }
.faq-list { border-top: 1px solid var(--ink-900); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between;
                      gap: 16px; min-height: 44px; padding: 18px 0; cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-text); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--fg1); }
.faq-toggle { flex: none; color: var(--fg1); display: inline-flex; transition: transform .2s var(--ease); }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-a { margin: 0 0 20px; max-width: 64ch; }

/* --- Footer --------------------------------------------------------- */
.site-footer { background: var(--paper-sunk); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; }
.ft-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .ft-grid { grid-template-columns: 2fr 1fr 1fr; } }
.ft-about .wm { font-size: 26px !important; }
.ft-about p { max-width: 36ch; margin-top: 14px; color: var(--fg2); }
.ft-col .label { margin-bottom: 8px; display: block; font-weight: 600; }
.ft-link { display: flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--fg1); }
.ft-link:hover { color: var(--action); }
.ft-link:visited { color: var(--fg1); }
.ft-link--strong { font-weight: 600; }
.ft-note { display: block; font-size: 13px; color: var(--fg2); margin-top: 10px; max-width: 28ch; line-height: 1.4; }
.ft-legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex;
            justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft-legal .caption { color: var(--fg2); }
.ft-legal__editor { max-width: 70ch; }

/* --- Link dialog ---------------------------------------------------- */
.link-dialog { border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-4);
               width: calc(100% - 32px); max-width: 440px; padding: 28px 24px; background: var(--surface);
               color: var(--fg1); position: relative; }
.link-dialog::backdrop { background: rgba(33, 28, 24, .5); }
.link-dialog__close { position: absolute; top: 12px; right: 12px; min-width: 44px; min-height: 44px; background: none;
                      border: none; color: var(--fg2); display: inline-flex; align-items: center; justify-content: center; }
.link-dialog__icon { display: inline-flex; width: 48px; height: 48px; border-radius: var(--r-md);
                     background: var(--marine-100); align-items: center; justify-content: center; margin-bottom: 16px; }
.link-dialog h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 0 0 8px; }
.link-dialog__lead { margin: 0 0 22px; }
.link-dialog .btn { width: 100%; white-space: normal; text-align: center; }
.link-dialog__hint { text-align: center; margin-top: 14px; color: var(--fg2); }

/* --- 365 + affiliates shared helpers -------------------------------- */
.lede { max-width: 52ch; }
.cadence-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .cadence-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.cadence { border: 1px solid var(--line); border-radius: var(--r-xs); padding: 20px 22px; background: var(--surface); }
.cadence__amount { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 34px;
                   letter-spacing: -0.02em; color: var(--fg1); font-variant-numeric: tabular-nums; }
.cadence__total { margin-top: 10px; font-size: 14px; color: var(--fg2); }
.earn-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-variant-numeric: tabular-nums; }
.earn-table th, .earn-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.earn-table th { font-family: var(--font-text); font-weight: 600; color: var(--fg2); font-size: 13px; }
.steps-3 { display: grid; gap: 22px; margin-top: 8px; }
@media (min-width: 760px) { .steps-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps-3 .clar-item { border-top: 1px solid var(--ink-900); }
