/* ClicAutoPro – accueil. Les styles de navigation et de pied de page restent partagés. */
.home {
    --ink: #192320;
    --muted: #454f49;
    --line: #dce0d7;
    --accent: #ff782e;
    --burnt: #a94313;
    --green: #255b43;
    --dark: #192821;
    --gutter: clamp(20px, 5vw, 72px);
    font: 400 1rem/1.55 "CAP Inter", Inter, Arial, sans-serif;
    color: var(--ink);
    background: white;
    -webkit-font-smoothing: antialiased;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home :where(h1, h2, h3, p, figure, dl, dd, ul) { margin: 0; }
.home :where(h1, h2, h3) { font-family: "CAP Satoshi", Satoshi, sans-serif; font-weight: 900; line-height: 1.09; }
.home h2 { font-size: clamp(2rem, 3.4vw, 3.05rem); letter-spacing: -.045em; }
.home :where(a, button):focus-visible { outline: 3px solid #126298; outline-offset: 4px; }
.home :where(article, section, h2) { scroll-margin-block-start: calc(var(--cap-header-height, 76px) + 16px); }
.home button { font: inherit; cursor: pointer; }
.home [hidden] { display: none !important; }
.home-wrap { width: min(100% - 2 * var(--gutter), 1296px); margin-inline: auto; }
.home-sr:not(:focus-within) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-overline { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.home-overline::before { content: ""; flex: none; width: 25px; height: 3px; background: var(--accent); }
.home-link { display: inline-flex; align-items: center; gap: .48em; color: var(--ink); font-size: .94rem; font-weight: 600; text-decoration: none; }
.home-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-link > span { font-size: 1.12em; }
.home-hero { padding: clamp(2.5rem, 4.1vw, 4rem) 0 clamp(2.25rem, 3.6vw, 3.5rem); background: white; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.07fr); align-items: center; gap: clamp(2rem, 4.2vw, 4rem); }
.home-intro h1 { max-width: 9em; margin-top: 1.95rem; font-size: clamp(3rem, 5.1vw, 4.6rem); line-height: .99; letter-spacing: -.055em; }
.home-title-lead { display: block; }
.home-intro h1 em { display: block; font-style: normal; color: var(--burnt); }
.home-lead { margin-top: 1.55rem; max-width: 32rem; color: var(--muted); font-size: clamp(1.05rem, 1.36vw, 1.24rem); line-height: 1.48; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 2.3rem; }
.home-cta { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: .92rem 1.18rem; min-height: 52px; border-radius: 7px; background: var(--accent); color: #17211c; font: 900 1.08rem/1.25 "CAP Satoshi", sans-serif; text-decoration: none; }
.home-cta:hover { background: #ff8a48; }
.home-trial { display: flex; flex-direction: column; gap: 2px; font-size: .83rem; line-height: 1.5; color: var(--muted); }
.home-trial span:first-child { font-weight: 600; color: var(--ink); }
.home-demo-frame { width: 100%; min-width: 0; align-self: center; }
#home-demo { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: white; }
.home-demo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(8px, 1.1vw, 16px); margin-top: 10px; }
.home-demo-tools button, .home-platforms-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: transparent; border: 0; padding: .3rem .42rem; border-radius: 4px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.home-demo-tools button:is(:hover, :focus-visible), .home-platforms-actions button:is(:hover, :focus-visible) { color: var(--burnt); background: #fff4eb; }
.home-demo-tools [data-demo-toggle] { color: var(--ink); font-weight: 700; }
.home-demo-tools [data-demo-chapter][aria-pressed="true"] { color: var(--burnt); text-decoration: underline; text-underline-offset: 5px; }
.home-platforms { padding: 2rem 0 1.8rem; border-block: 1px solid var(--line); background: white; }
.home-platforms-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.home-platforms h2 { font-size: clamp(1.08rem, 1.55vw, 1.39rem); letter-spacing: -.022em; }
.home-platforms-actions { display: flex; gap: 16px; align-items: center; }
.home-platforms-actions button { min-height: 34px; font-size: .8rem; }
.home-rail { margin-top: 1.15rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.home-rail-track { display: flex; width: max-content; align-items: stretch; }
.home-logo-list { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.home-logo-list li { flex: 0 0 auto; width: clamp(126px, 11.25vw, 162px); }
.home-logo-list a { display: grid; place-items: center; height: 78px; padding: 11px 15px; }
.home-logo-list a:focus-visible { outline-offset: -4px; }
.home-logo-list img { width: min(100%, 115px); height: 45px; object-fit: contain; }
.home .home-logo-list[aria-hidden="true"] { display: none; }
@keyframes home-platform-scroll { to { transform: translateX(-50%); } }
.home-platforms:where(:has([data-rail-toggle]:not([hidden]))) .home-logo-list[aria-hidden="true"] { display: flex; }
.home-platforms:where(:has([data-rail-toggle]:not([hidden]))) .home-rail { overflow: hidden; }
.home-platforms:where(:has([data-rail-toggle]:not([hidden]))) .home-rail-track { animation: home-platform-scroll 44s linear infinite; }
.home-rail.is-paused .home-rail-track, .home-rail:hover .home-rail-track { animation-play-state: paused !important; }
.home-platforms .home-rail:focus-within { overflow-x: auto; }
.home-platforms .home-rail:focus-within .home-rail-track { animation: none !important; }
.home-platforms .home-rail:focus-within .home-logo-list[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) {
    .home-platforms .home-rail:not(.is-rail-playing) { overflow-x: auto; }
    .home-platforms .home-rail:not(.is-rail-playing) .home-rail-track { animation: none; }
    .home-platforms .home-rail:not(.is-rail-playing) .home-logo-list[aria-hidden="true"] { display: none; }
}
.home-calculation { background: #f2f0e6; padding: clamp(3rem, 4.45vw, 4.2rem) 0; }
.home-calc-grid, .home-pricing-grid, .home-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.home-calc-copy h2 { max-width: 11ch; margin-top: 1.25rem; }
.home-calc-copy > p:not(.home-overline), .home-pricing-intro > p:not(.home-overline) { margin: 1.4rem 0; max-width: 38rem; color: var(--muted); line-height: 1.6; }
.home-math { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.05rem, 2.3vw, 2.05rem); background: white; }
.home-math-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.home-math-heading h3 { font-size: 1.22rem; }
.home-math-heading > span { color: var(--muted); font-size: .9rem; }
.home-math dl { display: grid; gap: 12px; margin-top: 1.55rem; }
.home-math dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-math dt { color: var(--muted); }
.home-math dd { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.home-math dl > .home-result { align-items: center; margin-top: .9rem; padding: .68rem .85rem; border-radius: 6px; background: #daebd7; }
.home-result dt, .home-result dd { color: var(--green); font-weight: 700; }
.home-result dd { font: 900 clamp(1.55rem, 2.3vw, 2rem)/1.2 "CAP Satoshi", sans-serif; }
.home-section { padding-block: clamp(3.5rem, 5.2vw, 5rem); }
.home-benefits { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2.7rem clamp(2rem, 5vw, 4.5rem); margin: 3rem 0; }
.home-benefits article { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.home-benefits h3 { font-size: clamp(1.32rem, 2vw, 1.72rem); letter-spacing: -.035em; }
.home-benefits p { margin-top: .95rem; color: var(--muted); }
.home-benefits .home-outcome { margin-top: .6rem; color: var(--green); font-weight: 600; }
.home-benefits .home-link { margin-top: .8rem; font-size: .875rem; }
.home-install { display: flex; gap: 1rem 3rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.home-pricing { padding: clamp(3rem, 4vw, 4rem) 0; background: var(--dark); color: white; }
.home-pricing-intro h2 { margin-top: 1.1rem; }
.home-pricing .home-overline, .home-pricing-intro > p:not(.home-overline), .home-plan > p:last-child { color: #c7d3c9; }
.home-pricing .home-link { color: white; }
.home-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.home-plan { border-left: 1px solid #526658; padding: .65rem 0 .65rem clamp(1rem, 2vw, 2rem); }
.home-plan h3 { font: 600 1rem/1.4 "CAP Inter", sans-serif; color: #d3ddd4; }
.home-price { margin: 1.1rem 0 .9rem !important; font: 900 clamp(2rem, 3vw, 2.65rem)/1.15 "CAP Satoshi", sans-serif; letter-spacing: -.045em; }
.home-plan > p:last-child { font-size: .91rem; }
.home-faq-grid { align-items: start; }
.home-faq-grid h2 { margin-bottom: 1.25rem; }
.home-faq details { border-top: 1px solid var(--line); }
.home-faq details:last-child { border-bottom: 1px solid var(--line); }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font: 700 1.05rem/1.5 "CAP Satoshi", sans-serif; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "+"; font: 400 1.4rem/1 "CAP Inter", sans-serif; }
.home-faq details[open] > summary::after { content: "−"; }
.home-faq details p { padding-bottom: 1.3rem; color: var(--muted); }
.home-faq details a { color: var(--green); text-underline-offset: 3px; }

@media (max-width: 850px) {
    .home { --gutter: clamp(18px, 4.6vw, 34px); }
    .home-hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.5rem; }
    .home-intro h1 { font-size: clamp(2.6rem, 5.8vw, 3.5rem); }
    .home-actions { gap: 10px; }
    .home-plan { padding-left: .8rem; }
    .home-plans { gap: .5rem; }
}
@media (max-width: 700px) {
    .home-hero { padding: 1.5rem 0 1.25rem; }
    .home-hero-grid, .home-calc-grid, .home-pricing-grid, .home-faq-grid { grid-template-columns: minmax(0,1fr); gap: 1.85rem; }
    .home-intro h1 { max-width: 15ch; font-size: clamp(2.25rem, 8.8vw, 3.4rem); line-height: 1.06; margin-top: 1.15rem; }
    .home-intro h1 { max-width: none; }
    .home-title-lead { display: inline; }
    .home-title-end { display: block; color: var(--burnt); font-size: .875em; margin-top: .08em; }
    .home-intro h1 em { display: inline; }
    .home-overline { gap: 7px; font-size: .83rem; }
    .home-overline::before { width: 18px; height: 2px; }
    .home-lead { margin-top: 1rem; font-size: 1rem; line-height: 1.48; }
    .home-actions { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 1.25rem; }
    .home-cta { min-height: 46px; padding: .8rem 1rem; font-size: 1rem; }
    .home-trial { flex-direction: row-reverse; gap: 5px; align-items: center; font-size: .76rem; }
    .home-trial span:last-child::after { margin-left: 5px; content: "·"; }
    .home-demo-tools { margin-top: 6px; gap: 1px 6px; }
    .home-demo-tools button { font-size: .8rem; min-height: 38px; padding-inline: .34rem; }
    .home-platforms { padding: 1.25rem 0; }
    .home-platforms > .home-wrap { display: flex; flex-direction: column; }
    .home-platforms-heading { display: contents; }
    .home-platforms-actions { order: 2; flex-direction: row-reverse; justify-content: space-between; }
    .home-platforms-actions .home-link { font-size: .85rem; }
    .home-platforms h2 { font-size: 1.03rem; }
    .home-rail { margin: .55rem calc(-1 * var(--gutter)) .5rem; }
    .home-logo-list li { width: 120px; }
    .home-logo-list a { height: 64px; padding: 10px; }
    .home-logo-list img { width: min(100%,99px); height: 38px; }
    .home-calculation { padding: 2.25rem 0; }
    .home-calc-copy h2 { max-width: none; margin-top: .9rem; }
    .home h2 { font-size: clamp(1.68rem, 6.5vw, 2.35rem); }
    .home h2#home-platform { font-size: 1.03rem; }
    .home-calc-copy > p:not(.home-overline) { margin: .95rem 0; }
    .home-benefits { grid-template-columns: minmax(0,1fr); gap: 1.85rem; margin: 1.8rem 0; }
    .home-section { padding-block: 2.7rem; }
    .home-install { justify-content: space-between; gap: .5rem 1rem; }
    .home-install .home-link { font-size: .85rem; }
    .home-math dl { gap: 8px; }
    .home-plan:first-child { border: none; padding-left: 0; }
    .home-plan { padding-left: 1rem; }
    .home-faq-grid h2 { margin-bottom: .55rem; }
}

.home-demo-tools button[data-demo-fullscreen] { margin-inline-start: auto; min-width: 40px; }
@media (max-width: 700px) {
    body.cap-home #cap-site-footer .cap-site-footer { padding-bottom: max(76px, calc(54px + env(safe-area-inset-bottom))); }
    body.cap-home .cap-footer-bottom nav { padding-inline-end: 52px; }
}

.home .home-start-trial { min-height: 44px; }
.home .home-install-terms { margin: 9px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.45; }
@media (max-width: 780px) {
    .home .home-intro .home-actions { gap: 2px 18px; }
    .home .home-install-terms { margin-top: 2px; }
}
