/* =========================================================
   Azimutis — SEO article pages
   Builds on css/landing.css (tokens, nav, footer, buttons, FAQ).
   No GSAP here: pages must render fast and stay readable without JS.
   ========================================================= */

body.lp.seo { background: var(--paper); }

/* nav is always solid on article pages */
.seo .nav__inner {
  background: rgba(8, 26, 44, .86);
  border-color: var(--line-light);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* ---------- Article hero ---------- */
.art-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #040C16 0%, #081D33 55%, #12385E 100%);
  padding: clamp(130px, 16vw, 190px) 0 clamp(56px, 7vw, 96px);
  isolation: isolate;
}
.art-hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.art-hero__deco svg { position: absolute; right: -6%; bottom: -2px; width: min(860px, 90vw); height: auto; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.art-hero__deco .arc { fill: none; stroke: rgba(246, 196, 69, .45); stroke-width: 1.4; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s var(--ease) .2s forwards; }
.art-hero__deco .arc--2 { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 2 7; animation: none; stroke-dashoffset: 0; }
.art-hero__deco .ridge { fill: #071526; }
.art-hero__deco .trace { fill: none; stroke: var(--trace); stroke-width: 2.4; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(61, 214, 140, .5)); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease) .5s forwards; }
.art-hero__deco .sun { fill: var(--sun); filter: drop-shadow(0 0 22px rgba(246, 196, 69, .8)); opacity: 0; animation: rise 1.6s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 26px; padding: 0; list-style: none; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.crumbs a:hover { color: var(--sun); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: rgba(255, 255, 255, .35); }

.art-hero h1 {
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 18ch;
  margin: 0 0 24px;
}
.art-hero__lead { font-size: clamp(16.5px, 1.35vw, 20px); line-height: 1.6; color: rgba(235, 242, 250, .8); max-width: 62ch; margin: 0; }
.art-hero .eyebrow { margin-bottom: 18px; }

/* ---------- Layout ---------- */
.art { padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
.art__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.art__body { max-width: 760px; min-width: 0; }
.art__side { position: sticky; top: 100px; display: grid; gap: 16px; }

/* ---------- Sections ---------- */
.art-sec { padding: 0 0 clamp(36px, 4vw, 52px); margin: 0 0 clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.art-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.art-sec h2 {
  position: relative;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 18px;
}
.art-sec h2 .anchor { position: absolute; left: -1.1em; top: 0; color: var(--sun); text-decoration: none; opacity: 0; transition: opacity .2s; }
.art-sec h2:hover .anchor, .art-sec h2 .anchor:focus { opacity: 1; }
.art-sec p { font-size: 17px; line-height: 1.72; color: #2F3E4E; }
.art-sec a:not(.btn):not(.seo-btn):not(.seo-maillage-link):not(.chap) {
  color: var(--brand);
  text-decoration: none;
  background: linear-gradient(rgba(246, 196, 69, .55), rgba(246, 196, 69, .55)) 0 100% / 100% 2px no-repeat;
  transition: background-size .3s var(--ease), color .3s;
  font-weight: 500;
}
.art-sec a:not(.btn):not(.seo-btn):not(.seo-maillage-link):not(.chap):hover { background-size: 100% 100%; color: var(--ink); }
.art-sec__num { display: block; font: 400 15px/1 var(--f-serif); font-style: italic; color: var(--muted); margin-bottom: 10px; }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 26px; padding: 20px 22px;
  border-radius: 18px; background: var(--ink); color: #fff;
}
.callout__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sun); display: grid; place-items: center; }
.callout__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-sec .callout h3 { font-size: 17px; line-height: 1.3; color: var(--sun); margin: 2px 0 6px; letter-spacing: -.01em; }
.art-sec .callout p { color: rgba(255, 255, 255, .8); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* figure with app screens */
.art-fig { margin: 30px 0 0; padding: clamp(20px, 3vw, 34px); border-radius: 24px; background: radial-gradient(120% 90% at 30% 10%, #fff, var(--paper-2)); }
.art-fig__phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 28px); }
.art-fig .phone { width: min(42%, 230px); }
.art-fig .phone:first-child { transform: translateY(18px) rotate(-3deg); }
.art-fig .phone:last-child { transform: rotate(3deg); }
.art-fig figcaption { margin-top: 30px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* FAQ inside article */
.art-sec .qa summary h3 { font-size: clamp(17px, 1.4vw, 20px); }
.art-sec .qa__body p { font-size: 16px; }

/* ---------- Sidebar ---------- */
.toc { padding: 22px 22px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.toc__title { font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.35;
  transition: background .25s, color .25s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font: 400 13px/1.5 var(--f-serif); font-style: italic; color: rgba(11, 31, 51, .35); }
.toc a:hover { background: var(--paper); color: var(--ink); }
.toc a.is-active { background: var(--paper); color: var(--ink); font-weight: 600; }
.toc a.is-active::before { color: var(--sun); }

.side-cta { padding: 24px 22px; border-radius: 20px; background: var(--ink); color: #fff; }
.side-cta h3 { font-size: 20px; line-height: 1.2; color: #fff; margin: 0 0 10px; }
.side-cta p { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); margin: 0 0 16px; }
.side-cta .stores { gap: 8px; }
.side-cta .store-btn img { width: 132px; }
.side-cta__portal { display: inline-flex; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--sun); text-decoration: none; }
.side-cta__portal:hover { text-decoration: underline; }

/* ---------- Related pages ---------- */
.related { padding: clamp(56px, 7vw, 96px) 0; background: #fff; border-top: 1px solid var(--line); }
.related h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.025em; margin: 0 0 26px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related__grid a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 22px; border-radius: 16px; background: var(--paper); color: var(--ink);
  text-decoration: none; font: 600 16px/1.3 var(--f-display);
  transition: background .3s, transform .4s var(--ease);
}
.related__grid a span { color: var(--brand); transition: transform .3s var(--ease); }
.related__grid a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.related__grid a:hover span { color: var(--sun); transform: translateX(4px); }

/* ---------- Reveal (only when seo.js runs) ---------- */
.seo-js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.seo-js [data-r].is-in { opacity: 1; transform: none; }

/* ---------- Mobile TOC ---------- */
.toc-mobile { display: none; }

@media (max-width: 1000px) {
  .art__grid { grid-template-columns: 1fr; }
  .art__side { position: static; }
  .art__side .toc { display: none; }
  .toc-mobile { display: block; margin: 0 0 32px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
  .toc-mobile summary { list-style: none; cursor: pointer; padding: 16px 18px; font: 600 14px/1 var(--f-body); color: var(--ink); display: flex; justify-content: space-between; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; color: var(--brand); font-size: 18px; line-height: 14px; }
  .toc-mobile[open] summary::after { content: "–"; }
  .toc-mobile .toc { border: 0; padding-top: 0; }
  .related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .related__grid { grid-template-columns: 1fr; }
  .art-sec h2 .anchor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-js [data-r] { opacity: 1; transform: none; }
  .art-hero__deco .arc, .art-hero__deco .trace { stroke-dashoffset: 0; }
  .art-hero__deco .sun { opacity: 1; }
}

/* ---------- Generic article content (converted pages) ---------- */
.art-fig--standalone { margin: 0 0 clamp(36px, 4vw, 52px); }
.art-sec h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -.015em; margin: 28px 0 10px; color: var(--ink); }
.art-sec ul, .art-sec ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.art-sec ul li, .art-sec ol li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 17px; line-height: 1.65; color: #2F3E4E; }
.art-sec ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(246, 196, 69, .2); }
.art-sec ol { counter-reset: li; }
.art-sec ol li { counter-increment: li; }
.art-sec ol li::before { content: counter(li); position: absolute; left: 0; top: .15em; font: 600 13px/1.6 var(--f-body); color: var(--brand); }
.art-sec strong { color: var(--ink); }

/* tables */
.seo-table-wrap, .hourly-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.seo-compare-table, .hourly-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.seo-compare-table th, .seo-compare-table td, .hourly-table th, .hourly-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.seo-compare-table thead th, .hourly-table thead th { background: var(--ink); color: #fff; font: 600 14px/1.3 var(--f-display); }
.seo-compare-table tr:last-child td, .hourly-table tr:last-child td, .hourly-table tr:last-child th { border-bottom: 0; }
.hourly-table tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.hourly-table caption { caption-side: top; text-align: left; padding: 14px 16px 0; font-size: 13.5px; color: var(--muted); }
.seo-note { font-size: 14px; color: var(--muted); }
.seo-table-hint { display: none; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .seo-table-hint { display: block; } }

/* example / download block (financing page) */
.hourly-example { margin-top: 26px; padding: 22px 24px; border-radius: 18px; background: var(--ink); color: #fff; }
.hourly-example h3 { color: var(--sun); margin-top: 0; }
.hourly-example p { color: rgba(255, 255, 255, .8); font-size: 15.5px; }
.hourly-example strong { color: #fff; }
.seo .seo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: var(--sun); color: var(--ink) !important; font: 600 15px/1 var(--f-body); text-decoration: none; background-image: none !important; transition: background .3s, transform .3s var(--ease); }
.seo .seo-btn:hover { background: #fff; transform: translateY(-2px); }
.seo .seo-btn span { font-weight: 500; opacity: .75; }

/* internal links list (contact page) */
.seo-maillage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.art-sec .seo-maillage-link { display: block; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); background-image: none; font: 600 15px/1.3 var(--f-display); color: var(--ink); }
.art-sec .seo-maillage-link:hover { background: var(--ink); color: #fff; }
@media (max-width: 560px) { .seo-maillage-list { grid-template-columns: 1fr; } }

/* contact form */
.seo .form-group { margin-bottom: 18px; }
.seo .form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.seo .form-control { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(11, 31, 51, .18); background: #fff; font: 400 16px/1.4 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.seo .form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18, 53, 91, .12); }
.seo textarea.form-control { resize: vertical; min-height: 140px; }
.seo .btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--f-body); cursor: pointer; transition: background .3s, opacity .3s; }
.seo .btn-primary:hover:not(:disabled) { background: var(--brand); }
.seo .btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.seo .alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 15px; }
.seo .alert-success { background: #E8F7EF; color: #17603A; border: 1px solid #BFE6CF; }
.seo .alert-danger { background: #FDECEC; color: #8A1C1C; border: 1px solid #F5C2C2; }
.seo .d-none { display: none !important; }
.seo .spinner-border { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* skip link */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--sun); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.side-cta__portal + .side-cta__portal { margin-left: 16px; }

/* ---------- Watch page: the video is the main content ---------- */
.art-hero--watch { padding-bottom: clamp(36px, 4vw, 60px); }
.art-hero--watch + .art { padding-top: clamp(28px, 3.5vw, 52px); }
.watch {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 20px; background: #040C16;
  box-shadow: 0 24px 60px rgba(6, 18, 31, .22);
}
.watch__play { position: absolute; inset: 0; display: grid; place-items: center; }
.watch__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.watch__play::after { content: ""; position: absolute; inset: 0; background: rgba(5, 14, 25, .18); transition: background .4s; }
.watch__play:hover img { transform: scale(1.03); }
.watch__play:hover::after { background: rgba(5, 14, 25, .05); }
.watch__play:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.watch__btn {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: clamp(64px, 9vw, 88px); height: clamp(64px, 9vw, 88px); border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 10px rgba(246, 196, 69, .22), 0 20px 40px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease);
}
.watch__btn svg { width: 40%; height: 40%; fill: var(--ink); margin-left: 6%; }
.watch__play:hover .watch__btn { transform: scale(1.08); }
.watch iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-meta { margin: 16px 0 clamp(36px, 4vw, 52px); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.watch-meta p { margin: 0; }
.watch-meta a { color: var(--brand); font-weight: 600; text-decoration: none; margin-left: 4px; }
.watch-meta a:hover { text-decoration: underline; }
.watch-meta__note { margin-top: 6px !important; color: var(--ink); font-weight: 500; }

.art-sec ol.chapters { counter-reset: none; margin: 0; display: grid; gap: 2px; }
.art-sec ol.chapters li { padding: 0; margin: 0; }
.art-sec ol.chapters li::before { content: none; }
.chap {
  display: flex; gap: 16px; align-items: baseline; padding: 11px 14px; margin: 0 -14px; border-radius: 12px;
  color: #2F3E4E; text-decoration: none; font-size: 16.5px; line-height: 1.45;
  transition: background .25s, color .25s;
}
.chap time { flex: none; min-width: 3.1em; font: 600 14.5px/1.45 var(--f-body); font-variant-numeric: tabular-nums; color: var(--brand); }
.chap:hover { background: #fff; color: var(--ink); }
.chap:hover time { color: var(--ink); }
.chap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.transcript { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.transcript summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center;
  font: 600 16px/1.3 var(--f-display); color: var(--ink);
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.transcript[open] summary::after { content: "–"; }
.transcript__body { padding: 0 20px 8px; border-top: 1px solid var(--line); }
.transcript__note { font-size: 14px !important; color: var(--muted) !important; margin: 16px 0 0; }
.art-sec .transcript h3 { display: flex; gap: 12px; align-items: baseline; font-size: 17px; margin: 22px 0 6px; }
.transcript h3 time { font: 600 13.5px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--brand); }
.art-sec .transcript p { font-size: 16px; line-height: 1.7; margin: 0 0 8px; }
