/* Loom Studio — les pages autres que l'accueil (services, guides, pages légales, 404). S'ajoute à c.css, qui apporte
   les couleurs, les polices, l'en-tête, le pied, les boutons, les questions et les apparitions.
   Le contenu de ces pages est repris des pages d'aujourd'hui avec ses classes d'origine (crumbs, svc-offer, ticks,
   steps, faq, card, tbl, cta, src…) : cette feuille les habille dans le style de l'accueil C.
   Une page : une tête (titre à gauche, image à droite), puis des blocs. Sur ordinateur, le titre de chaque bloc est
   à gauche et reste en vue pendant qu'on lit le bloc ; sur téléphone, tout est sur une colonne. */

.page main { padding-bottom: clamp(44px, 7vw, 104px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- tête de page */
.crumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7em; font: 500 .66rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.p-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px) clamp(24px, 4.5vw, 72px); align-items: center; padding-block: clamp(16px, 2.4vw, 30px) clamp(40px, 6vw, 88px); }
.p-hero.seul { grid-template-columns: minmax(0, 1fr); }
.p-hero.seul .p-hero-t { max-width: 54rem; }
.g-legal .p-hero { padding-top: clamp(28px, 4.4vw, 60px); }
.p-hero-t > :first-child { margin-top: 0; }
.p-hero h1 { margin-top: .42em; font-size: clamp(2.05rem, 1.1rem + 3.5vw, 4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.g-guide .p-hero h1 { font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); line-height: 1.02; }
.g-legal .p-hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem); }
.p-hero .lead { margin-top: 1.1em; max-width: 36em; }
.p-hero .lead a, .byline a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: .26em; text-decoration-thickness: 1px; }
.byline, .upd { margin-top: 1.2em; font: 500 .68rem/1.6 var(--mono); letter-spacing: .05em; color: var(--dim); }
.svc-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 1em 1.6em; margin-top: clamp(22px, 3vw, 36px); padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid var(--line2); }
.svc-price { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink) !important; }
.svc-price .from, .svc-price small { font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.svc-price .from { margin-right: .55em; }
.svc-price small { margin-left: .55em; }
.svc-price b { font-weight: 500; color: inherit; }
.svc-note { flex-basis: 100%; order: 4; color: var(--mut); font-size: .95rem; max-width: 40em; }
@media (prefers-reduced-motion: no-preference) {
  .js .p-hero-t > * { animation: monte .8s var(--ease) both; }
  .js .p-hero-t > :nth-child(3) { animation-delay: .06s; }
  .js .p-hero-t > :nth-child(4) { animation-delay: .12s; }
  .js .p-hero-t > :nth-child(n + 5) { animation-delay: .18s; }
  .js .p-hero > .p-fig, .js .p-hero > .oo { animation: monte 1s var(--ease) .1s both; }
}

/* ---------------------------------------------------------------- images */
.p-fig, .doc figure { min-width: 0; }
.p-img { position: relative; overflow: hidden; border-radius: clamp(14px, 1.8vw, 22px); background: var(--bg2); aspect-ratio: var(--r, 4 / 3); }
.p-img img, .p-img canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-fig.ecran .p-img { box-shadow: var(--sh), 0 0 0 1px var(--line); }
.doc figure .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3em 1.4em; margin-top: 10px; }
.doc .svc-fig img, .doc figure.vue img { display: block; width: 100%; height: auto; border-radius: clamp(12px, 1.6vw, 18px); box-shadow: var(--sh), 0 0 0 1px var(--line); background: var(--bg2); }
.doc figure.vue.small { max-width: 23rem; }
.doc figure.vue.small .cap { flex-direction: column; gap: 4px; }

/* ---------------------------------------------------------------- blocs : un titre, son contenu */
.bloc { border-top: 1px solid var(--line); padding-block: clamp(30px, 4.6vw, 64px); }
.bloc > h2 { font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); letter-spacing: -.028em; line-height: 1.08; margin-bottom: .85em; text-wrap: balance; }
.bloc-c > :first-child, .bloc.seul > :first-child { margin-top: 0; }
.bloc-c > * + *, .bloc.seul > * + * { margin-top: 1.05em; }
.bloc p, .bloc li, .bloc dd, .bloc dt { color: var(--mut); }
.bloc p { max-width: 46em; text-wrap: pretty; }
.bloc a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: .26em; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.bloc a:not(.btn):hover { text-decoration-color: var(--acc-t); }
.bloc b, .bloc strong { color: var(--ink); font-weight: 600; }
.bloc h3 { margin-top: 1.9em; color: var(--ink); font-size: 1.06rem; letter-spacing: -.01em; }
.bloc h3 + * { margin-top: .6em; }
.bloc-c > ul:not(.ticks):not(.plats), .bloc-c > ol:not(.steps), .ans ul, .card ul { padding-left: 1.25em; list-style: disc; }
.bloc-c > ol:not(.steps) { list-style: decimal; }
.bloc-c > ul:not(.ticks):not(.plats) li + li, .bloc-c > ol:not(.steps) li + li, .ans li + li, .card li + li { margin-top: .5em; }
.bloc-c li::marker { color: var(--dim); }
.ticks { border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: .82em 0 .82em 2em; border-bottom: 1px solid var(--line); color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: .25em; top: 1.3em; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 26%, transparent); }
.aside, .note-s, .sub { font-size: .9rem; color: var(--dim) !important; }
.aside { border-left: 2px solid var(--acc); padding-left: 1em; }
.steps { counter-reset: e; }
.steps li { counter-increment: e; position: relative; padding: 0 0 1.6em 3.3em; }
.steps li::before { content: counter(e, decimal-leading-zero); position: absolute; left: 0; top: .12em; font: 500 .7rem/1.6 var(--mono); letter-spacing: .08em; color: var(--acc-t); }
.steps li::after { content: ""; position: absolute; left: 2em; top: .5em; bottom: .1em; width: 1px; background: var(--line2); }
.steps li:last-child { padding-bottom: 0; }
.faq .ans { padding: 0 2.4em 1.3em 0; max-width: 46em; }
.faq .ans > * + * { margin-top: .7em; }
.faq .ans p { padding: 0; }
.others { display: flex; flex-wrap: wrap; gap: 8px; max-width: none !important; }
.others a { display: inline-block; text-decoration: none !important; font-weight: 600; font-size: .92rem; padding: .62em 1.05em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); transition: background-color .3s, color .3s; }
.others a:hover { background: var(--ink); color: var(--bg) !important; }
.formula { font: 500 .86rem/1.5 var(--mono); background: var(--bg2); padding: .9em 1.1em; border-radius: 10px; color: var(--ink) !important; overflow-x: auto; }
.doc mark { background: color-mix(in srgb, var(--acc) 45%, transparent); color: inherit; padding: 0 .2em; border-radius: 3px; }

/* cartes : la réponse courte, un calcul détaillé, qui a écrit, le calculateur, un titre réécrit */
.card { background: var(--bg2); border-radius: clamp(14px, 1.8vw, 22px); padding: clamp(18px, 2.6vw, 32px); transition: background-color .5s; }
.card > * + * { margin-top: .8em; }
.card > .k { color: var(--acc-t); }
.card.answer { box-shadow: inset 3px 0 0 var(--acc); }
.card.answer li, .card.answer p { color: var(--ink); }
.card dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55em 1.6em; font-variant-numeric: tabular-nums; }
.card dd { text-align: right; color: var(--ink); }
.card dt small, .card dd small { display: block; font-size: .8rem; color: var(--dim); }
.card dl .tot { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line2); padding-top: .6em; }
.retitre p:not(.k) { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; color: var(--ink); }
.retitre .lbl { font: 500 .68rem/2.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.retitre .was { color: var(--dim); }
.retitre .was .txt { text-decoration: line-through; text-decoration-color: var(--line2); }

/* tableaux */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .85em 1.1em .85em 0; border-bottom: 1px solid var(--line); color: var(--mut); font-weight: 500; }
.doc tr > :last-child { padding-right: 0; }
.doc thead th { font: 500 .66rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom-color: var(--line2); }
.doc tbody th { color: var(--ink); font-weight: 600; }
.cmp tbody th { width: 9.5em; }
.cmp.num td { white-space: nowrap; }
.cmp.num tbody tr:last-child > * { color: var(--ink); font-weight: 600; }
.rates td, .rates thead th:last-child { width: 5.5em; text-align: right; }
.rates td { font-weight: 600; color: var(--ink); }

/* calculateur (frais TikTok Shop) */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(18px, 3vw, 36px); align-items: start; }
.calc-in { display: grid; gap: 14px; align-content: start; }
.calc-in .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.calc label { display: block; font-weight: 600; font-size: .92rem; line-height: 1.35; color: var(--ink); }
.calc label small { display: block; margin-top: 2px; font-weight: 500; font-size: .8rem; color: var(--dim); }
.fld { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 0 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); border-radius: 10px; transition: box-shadow .2s, background-color .5s; }
.fld:focus-within { box-shadow: inset 0 0 0 2px var(--acc-t); }
.fld > span { color: var(--dim); }
.fld input, .fld select { flex: 1; min-width: 0; width: 100%; padding: 10px 0; border: 0; border-radius: 0; background: transparent; font: 500 1rem/1.3 var(--sans); color: var(--ink); }
.fld input:focus, .fld select:focus, .fld input:focus-visible, .fld select:focus-visible { outline: none; }
.fld input { -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.fld input::-webkit-outer-spin-button, .fld input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fld select { cursor: pointer; text-overflow: ellipsis; }
.fld option { color: #14130F; background: #FFFDF8; }
.calc-res { background: var(--card); border-radius: 16px; padding: clamp(16px, 2vw, 22px); box-shadow: var(--sh); transition: background-color .5s; }
.calc-res > * + * { margin-top: .8em; }
.calc-res dl { gap: .5em 1em; line-height: 1.4; }

/* ---------------------------------------------------------------- appel de fin de page, sources */
.p-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 60px); align-items: center; margin-top: clamp(26px, 4vw, 56px); background: var(--bg2); border-radius: clamp(18px, 2.4vw, 30px); padding: clamp(28px, 5vw, 72px); transition: background-color .5s; }
.cta h2 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.cta p { margin-top: .9em; color: var(--mut); max-width: 36em; }
.cta .btn { margin-top: 1.6em; white-space: normal; text-align: left; line-height: 1.25; }
.p-cta .oo svg { width: clamp(120px, 17vw, 230px); margin: 0; }
.bloc.src { border-top: 0; padding-block: clamp(26px, 4vw, 48px) 0; }
.src h2 { font: 500 .7rem/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }
.src p, .src li { font-size: .86rem; color: var(--dim); max-width: none; }
.src ul { list-style: none; padding: 0; }
.src li + li { margin-top: .35em; }
.src > * + * { margin-top: .8em; }

/* 404 */
.g-nf .p-hero { min-height: calc(100vh - var(--top) - 260px); min-height: calc(100svh - var(--top) - 260px); grid-template-columns: minmax(0, 1fr) auto; }
.g-nf .svc-offer { border-top: 0; padding-top: 0; }
.g-nf .oo svg { width: clamp(150px, 26vw, 340px); margin: 0; }

/* ---------------------------------------------------------------- ordinateur : le titre du bloc à gauche */
@media (min-width: 901px) {
  .doc .bloc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
  .doc .bloc > h2 { position: sticky; top: calc(var(--top) + 28px); margin-bottom: 0; }
  .doc .bloc.seul > * { grid-column: 2; }
  .doc .bloc.seul > * + * { margin-top: 1.05em; }
  .ticks { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); }
}

/* ---------------------------------------------------------------- téléphone */
@media (max-width: 760px) {
  .p-hero, .g-nf .p-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 34px; }
  .p-hero h1, .g-guide .p-hero h1 { font-size: clamp(1.95rem, 9vw, 2.6rem); }
  .g-nf .p-hero { min-height: 0; padding-block: 12px 48px; }
  .g-nf .oo { order: -1; margin-top: 26px; }
  .g-nf .oo svg { width: 120px; }
  .faq .ans { padding-right: 0; }
  .p-cta { grid-template-columns: minmax(0, 1fr); margin-inline: calc(var(--gut) * -.25); padding: 26px 20px 30px; }
  .p-cta .oo { order: -1; }
  .p-cta .oo svg { width: 84px; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .retitre p:not(.k) { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* un tableau comparatif devient une suite de fiches : chaque case rappelle le nom de sa colonne */
@media (max-width: 680px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cmp tbody th { width: auto; padding: 0 0 8px; border: 0; }
  .cmp td { padding: 6px 0 6px 12px; border: 0; border-left: 2px solid var(--line2); margin-bottom: 6px; }
  .cmp td::before { content: attr(data-p); display: block; font-weight: 600; color: var(--ink); font-size: .84rem; }
  .cmp.num tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
  .cmp.num tbody th { grid-column: 1 / -1; }
  .cmp.num td { white-space: normal; padding-left: 10px; }
  .cmp.num td::before { font-size: .76rem; font-weight: 500; color: var(--dim); }
}

/* 20/11 : la fin des guides montre l'offre, son prix et un bouton */
.cta .plats { margin-top: 1.4em; max-width: 36em; }
.cta .plats a { color: var(--ink); }
.cta p.cta-mail { margin-top: 1.2em; font-size: .9rem; }
.cta p.cta-mail a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: .26em; }

/* 20/11 : « Next step » en bas des pages de service, et la page « All services » */
.bloc .plats { max-width: 40em; }
.bloc .plats { list-style: none; padding-left: 0; margin-left: 0; }
.bloc .plats li { margin: 0; padding: 0; }
.bloc .plats li::before, .bloc .plats li::marker { content: none; display: none; }
.bloc .plats a { color: var(--ink); text-decoration: none; }
.suite .others { margin-top: 1.4em; }
@media (max-width: 600px) {
  .bloc .plats a, .cta .plats a { flex-direction: column; align-items: flex-start; gap: .35em; }
  .bloc .plats span, .cta .plats span { text-align: left; }
}
.suite .others .btn { white-space: normal; line-height: 1.25; text-align: left; }

/* 20/11 : groupes de boutons. Espacés de 10 px ; sur téléphone, en colonne pleine largeur, texte centré
   (comme l'encadré des audits de l'accueil), au lieu de boutons collés ou décalés. */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.6em; max-width: none !important; }
.btns .btn, .cta .btns .btn { margin: 0; }
@media (max-width: 600px) {
  .btns, .suite .others { flex-direction: column; align-items: stretch; }
  .btns .btn, .suite .others .btn { justify-content: center; text-align: center; }
}

/* 21/11 : page « All services » — raccourcis, prix à droite, audits en tête */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; max-width: none !important; }
.jump a { padding: .55em 1em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font-size: .92rem; text-decoration: none; transition: box-shadow .3s, background-color .3s; }
.jump a:hover { box-shadow: inset 0 0 0 1px var(--acc-t, var(--ink)); background: var(--bg2); }
.doc .svc-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1em; row-gap: .3em; padding: .95em 0; }
.doc .svc-list b { grid-column: 1; }
.doc .svc-list .px { grid-column: 2; font: 600 1rem/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); text-align: right; white-space: nowrap; }
.doc .svc-list small { grid-column: 1 / -1; font: 500 .74rem/1.45 var(--mono); letter-spacing: .03em; color: var(--mut); }
.bloc:has(> h2#audit) { padding: clamp(20px, 3vw, 34px); border-radius: 16px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--acc-t, var(--line)); border-top: 0; }
.doc .svc-list li:last-child a { border-bottom: 0; }
.bloc:has(> h2#audit) + .bloc { border-top: 0; }
.doc .bloc.seul:has(> .jump) { display: block; border-top: 0; padding-top: 0; }
.bloc.seul > .jump { justify-content: flex-start; margin-top: 0; }
.bloc .jump a { text-decoration: none; }
