/* Pages cabinet : facturation électronique, pour qui, approche, à propos */

/* Schéma du circuit d'une facture */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--sapin); }
.flow-node { position: relative; padding: 1.6rem 1.4rem 0 0; }
.flow-node + .flow-node { padding-left: 1.4rem; }
.flow-node::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--sable-fonce); transform: skewX(-16deg); }
.flow-node + .flow-node::before { left: 1.4rem; }
.flow-node h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.flow-node p { margin-top: 0.5rem; color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.flow-node .tag { margin-top: 0.9rem; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--sapin); }
  .flow-node, .flow-node + .flow-node { padding: 0 0 2rem 1.8rem; }
  .flow-node::before, .flow-node + .flow-node::before { top: 0.3rem; left: -7px; }
}

/* Compte à rebours */
.countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.countdown strong { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--sable); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted-dark); }

/* Checklist */
.prep-head { display: grid; gap: 0.3rem; margin-bottom: 1.6rem; }
.prep-count { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.prep-count strong { white-space: nowrap; font-family: var(--f-display); font-weight: 300; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.prep-count span { color: var(--muted); }
.prep-reset { margin-top: 1.2rem; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--sable-fonce); text-underline-offset: 0.22em; color: var(--muted); font-size: 0.95rem; }
.prep-reset:hover { color: var(--bordeaux); }
.prep-msg { margin-top: 1.4rem; }
.prep-msg[hidden] { display: none; }

/* Profils : missions associées */
.profile .feather-list { margin-top: 0; }
.profile h4 { font-weight: 500; font-size: 1rem; margin: 2rem 0 0.8rem; }
.profile h4:first-child { margin-top: 0; }

/* Schéma production / conseil */
.lanes { background: var(--nuit-2); color: var(--pierre); border: 1px solid var(--line-dark); padding: clamp(1.4rem, 3vw, 2.6rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.lane { padding: 1.4rem 0; }
.lane + .lane { border-top: 1px solid var(--line-dark); }
.lane h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; color: var(--sable); }
.lane > p { color: var(--muted-dark); font-size: 0.95rem; margin-top: 0.2rem; }
.lane ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.2rem; }
.lane li { position: relative; padding: 0.95rem 1rem; border: 1px solid var(--line-dark); font-size: 0.97rem; line-height: 1.35; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 1.6rem; }
.lane li small { display: block; color: var(--muted-dark); font-size: 0.85rem; margin-top: 0.25rem; }
.lane-end { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; background: var(--sable); color: var(--nuit); padding: 1.5rem 1.8rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 14px)); text-align: center; }
.lane-end strong { font-family: var(--f-display); font-weight: 300; font-size: 2rem; line-height: 1; display: block; }
.lane-end span { font-size: 0.92rem; display: block; margin-top: 0.4rem; }
@media (max-width: 800px) {
  .lanes { grid-template-columns: 1fr; }
  .lane ol { grid-template-columns: 1fr; }
  .lane-end { grid-column: 1; grid-row: auto; margin-top: 1rem; padding: 1.2rem; clip-path: none; }
}

/* À propos */
.values { counter-reset: none; }
.value { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem 3rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.value:last-child { border-bottom: 1px solid var(--line); }
.value h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.value p { color: var(--muted); max-width: 58ch; }
@media (max-width: 760px) { .value { grid-template-columns: 1fr; } }
.place { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .place { grid-template-columns: 1fr; } }
.place-art { background: var(--sapin); color: var(--pierre); padding: clamp(1.6rem, 3vw, 2.6rem); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7%), 0 100%); padding-bottom: clamp(3rem, 6vw, 5rem); }
.place-art .contact-card a { border-bottom-color: var(--line-dark); }
.place-art .contact-card a:hover { color: var(--sable); border-color: var(--sable); }
.place-art .contact-card .ico { color: var(--sable); }
.place-art .contact-card span { color: var(--muted-dark); }

/* Checklist sur fond sapin */
.on-sapin .checklist, .on-sapin .checklist label { border-color: var(--line-dark); }
.on-sapin .checklist span, .on-sapin .prep-count span, .on-sapin .prep-reset { color: var(--muted-dark); }
.on-sapin .checklist input:checked ~ div strong { color: var(--muted-dark); text-decoration-color: var(--sable); }
.on-sapin .checklist input { accent-color: var(--sable); }
.on-sapin .meter { background: var(--line-dark); }
.on-sapin .meter > i { background: var(--sable); }
.on-sapin .prep-reset:hover { color: var(--sable); }
.on-sapin .note { background: rgba(205, 187, 140, 0.14); border-left-color: var(--sable); color: var(--pierre); }
.on-sapin .note .ico { color: var(--sable); }

/* Frise sur fond sombre */
.on-nuit .timeline > li, .on-sapin .timeline > li { border-color: var(--line-dark); }
.on-nuit .timeline .when, .on-sapin .timeline .when { color: var(--sable); }
.on-nuit .timeline p, .on-sapin .timeline p { color: var(--muted-dark); }

/* À propos : version fidèle au site d'origine */
.ap-banner { margin: 0; }
.ap-banner img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ap-grid.rev { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.ap-grid.rev .ap-fig { order: 2; }
.ap-fig { margin: 0; position: sticky; top: calc(var(--header-h, 4rem) + 1.5rem); }
.ap-fig img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ap-text .kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.8rem; opacity: 0.75; }
.ap-text .h-display { margin-bottom: 1.6rem; max-width: 22ch; text-wrap: balance; }
.ap-close { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 2rem 4rem; align-items: center; }
.ap-close .kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.ap-force { width: 100%; max-width: 280px; height: auto; justify-self: center; background: #fff; padding: 1rem; border-radius: 2px; }
@media (max-width: 800px) {
  .ap-grid, .ap-grid.rev, .ap-close { grid-template-columns: 1fr; }
  .ap-grid.rev .ap-fig { order: 0; }
  .ap-fig { position: static; max-width: 320px; }
}

/* Accueil : contenus du site d'origine */
.hero-kicker { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sable); margin-bottom: 1.2rem; }
.home-cabinet { margin: 0; }
.home-cabinet img { width: 100%; height: auto; aspect-ratio: 1800 / 840; object-fit: cover; display: block; }
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.svc-rev .svc-img { order: 2; }
.svc-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; position: sticky; top: calc(var(--header-h, 4.5rem) + 1.5rem); }
.svc-sub { font-family: inherit; font-size: 1.15rem; font-weight: 500; line-height: 1.4; color: var(--sapin); }
.home-sign { font-style: italic; color: var(--muted-dark); }
.home-force { margin: 0; display: grid; place-items: center; }
.home-force img { width: min(100%, 420px); height: auto; }
@media (max-width: 800px) {
  .svc, .svc-rev { grid-template-columns: 1fr; }
  .svc-rev .svc-img { order: 0; }
  .svc-img { position: static; max-width: 420px; }
}
