/* L'Argent du Salarié : feuille générée par build_sites.py (ne pas modifier à la main) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F4F6F9; --surface: #FFFFFF; --ink: #0F2A3D; --muted: #4A5D6E;
  --primary: #0F2A3D; --on-primary: #FFFFFF; --accent: #2BB673; --on-accent: #0B2A1C;
  --alert: #E2483D; --soft: #E3F4EA; --line: #D5DDE5; --hero-bg: #0F2A3D; --hero-ink: #FFFFFF;
  --font-head: "Archivo", Georgia, serif; --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 800; --head-case: none; --radius: 8px; --base: 18px;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--base)/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* En-tête */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.15rem; letter-spacing: -.01em; }
.mark { flex: none; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-bottom-color: var(--accent); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-sub { background: var(--primary); color: var(--on-primary); min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }
.center .actions { justify-content: center; }

/* Accueil */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-block: 64px; position: relative; z-index: 1; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.hero .lead, .lead { font-size: 1.15em; max-width: 60ch; }
.hero-note { margin-top: 1.2em; font-size: .9rem; opacity: .85; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.hero-figure figcaption { font-size: .8rem; margin-top: 10px; opacity: .8; }
.section { padding-block: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-title { margin-bottom: 28px; }
.link-more { font-weight: 700; color: var(--primary); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-num { display: inline-block; font-family: var(--font-head); font-weight: var(--head-weight); color: var(--accent); font-size: 1.6rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.band { background: var(--soft); }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.video-title { font-weight: 700; padding: 0 16px; line-height: 1.35; }
.video-date { color: var(--muted); font-size: .85rem; padding: 0 16px 16px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.empty .btn { margin-top: 8px; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise { border-top: 4px solid var(--accent); padding-top: 18px; }
.promise p { color: var(--muted); }
.persona-block { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.persona-block img { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; }
.cta-band { background: var(--primary); color: var(--on-primary); }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 48px; flex-wrap: wrap; }
.cta-row p { margin: 0; opacity: .9; max-width: 60ch; }

/* Pages intérieures */
.page-head { padding-block: 56px 8px; }
.page-head .lead { color: var(--muted); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.fiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.bot-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.about-photo { border-radius: var(--radius); position: sticky; top: 96px; }

/* Pied de page */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-block: 48px 24px; }
.foot-grid nav { display: grid; gap: 8px; align-content: start; }
.foot-note { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.foot-base { border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: .85rem; }

.motif-payslip .hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(255,255,255,.06) 33px 34px); }
.motif-payslip .hero h1 { border-left: 6px solid var(--accent); padding-left: 18px; }
.motif-payslip .card { border-top: 4px solid var(--accent); }

@media (max-width: 900px) {
  .hero-grid, .fiche-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 380px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .videos, .promises { grid-template-columns: 1fr 1fr; }
  .about-photo { position: static; max-width: 320px; }
}
@media (max-width: 600px) {
  .cards, .videos, .promises, .foot-grid { grid-template-columns: 1fr; }
  .persona-block { grid-template-columns: 1fr; }
  .persona-block img { width: 140px; height: 140px; }
  .hero-grid { padding-block: 40px; gap: 28px; }
  .section { padding-block: 44px; }
  .nav { font-size: .9rem; gap: 2px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── v1.1 : logo ─────────────────────────────────────────────────────────── */
.brand { gap: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-top { font: 600 .68rem/1.1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo-main { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.45rem; letter-spacing: -.01em; margin-top: 3px; }
.site-foot .logo-main { font-size: 1.3rem; }

/* ── v1.1 : motion ───────────────────────────────────────────────────────── */
@keyframes fs-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fs-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fs-row { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes fs-glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); } }
@keyframes fs-needle { from { transform: rotate(-80deg); } to { transform: rotate(62deg); } }
@keyframes fs-arc { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 14; } }
@keyframes fs-check { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fs-gen { 0%, 14%, 100% { background: transparent; color: var(--ink); } 4%, 10% { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } }
.rise { animation: fs-rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.card, .video, .post-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover, .video:hover, .post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.12); border-color: var(--accent); }
.hero .btn-accent { animation: fs-glow 2.8s ease-in-out 2s 3; }

/* Carte animée de l'accueil */
.hero-figure { position: relative; }
.widget { position: absolute; left: -48px; bottom: 54px; width: min(300px, 86%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 16px 18px; box-shadow: 0 18px 44px rgba(0,0,0,.25); animation: fs-pop .8s cubic-bezier(.2,.7,.2,1) .6s both, fs-float 6s ease-in-out 1.6s infinite; font-size: .88rem; }
.widget-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.widget-head strong { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1rem; }
.widget-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--soft); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.widget-note { margin: 10px 0 0; font-size: .72rem; color: var(--muted); }
.slip { list-style: none; margin: 0; padding: 0; }
.slip li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); animation: fs-row .5s ease both; animation-delay: calc(1s + var(--d, 0) * 250ms); }
.slip li.slip-total { border-bottom: 0; margin-top: 4px; padding: 9px 10px; background: var(--soft); border-radius: 6px; font-weight: 800; animation-delay: 1.6s; }
.slip-total span:last-child { color: #17804A; font-size: 1.05rem; }
.gen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gen span { text-align: center; font-family: var(--font-head); font-weight: 700; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line); animation: fs-gen 6.4s ease-in-out infinite; animation-delay: calc(var(--i) * .8s); }
.gauge svg { width: 100%; height: auto; display: block; }
.gauge-arc { stroke-dasharray: 100; stroke-dashoffset: 100; animation: fs-arc 1.6s cubic-bezier(.2,.7,.2,1) .9s forwards; }
.gauge-needle { transform-origin: 60px 64px; transform: rotate(-80deg); animation: fs-needle 1.6s cubic-bezier(.2,.7,.2,1) .9s forwards; }
.gauge-value { margin: 2px 0 0; text-align: center; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.5rem; color: var(--primary); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "\2713"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .8rem; animation: fs-check .45s cubic-bezier(.2,.7,.2,1.4) both; animation-delay: calc(1s + var(--i) * .45s); }

/* Bandeau d'années qui défile */
.years { overflow: hidden; padding: 0 0 28px; position: relative; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.years-track { display: flex; gap: 10px; width: max-content; animation: fs-marquee 40s linear infinite; }
.years span { flex: none; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--accent); border: 1px solid rgba(242,179,61,.45); border-radius: 999px; padding: 4px 12px; }

/* Vidéos : bouton lecture */
.video-thumb { position: relative; display: block; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,.6); transition: transform .25s ease, background .25s ease; }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video:hover .play { transform: scale(1.1); background: var(--accent); }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Articles */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-date, .post-title, .post-excerpt { padding: 0 18px; }
.post-date { color: var(--muted); font-size: .82rem; padding-top: 14px; }
.post-title { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.15rem; line-height: 1.25; }
.post-excerpt { color: var(--muted); font-size: .92rem; }
.article { max-width: 820px; }
.article-cover img { border-radius: var(--radius); width: 100%; }
.article-body { font-size: 1.05em; }
.article-body img { border-radius: var(--radius); }
.article-note { margin: 32px 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--soft); color: var(--muted); font-size: .92rem; }
.cta-inline { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 64px; }
.cta-inline p { margin: 0; max-width: 52ch; }

@media (max-width: 900px) {
  .widget { left: 12px; }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .posts { grid-template-columns: 1fr; }
  .widget { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -40px; }
  .logo-main { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .gauge-arc { stroke-dashoffset: 14; }
  .gauge-needle { transform: rotate(62deg); }
}

/* ── Boutique ───────────────────────────────────────────────────────────── */
.buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 1.4em; }
.price { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 2.4rem; line-height: 1; }
.btn.is-disabled { opacity: .7; cursor: default; }
.btn-wide { width: 100%; }
.small { font-size: .82rem; }
.product-cover img { aspect-ratio: 3 / 4; object-fit: cover; }
.cover-fallback { aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 36px; box-shadow: 0 24px 60px rgba(0,0,0,.28); border-top: 10px solid var(--accent); }
.cover-fallback strong { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.9rem; line-height: 1.1; }
.cover-fallback span { color: var(--muted); font-weight: 600; }
.gets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gets li { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; font-weight: 600; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.fit h2 { font-size: 1.4rem; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li::before, .crosses li::before { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 10px; font-weight: 800; font-size: .8rem; }
.ticks li::before { content: "\2713"; background: var(--primary); color: var(--on-primary); }
.crosses li::before { content: "\2715"; background: var(--line); color: var(--ink); }
.guarantee { display: flex; gap: 28px; align-items: center; }
.seal { flex: none; width: 110px; height: 110px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-content: center; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; box-shadow: 0 0 0 8px var(--soft); }
.seal small { font-size: .85rem; font-family: var(--font-body); }
.checkout-box { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 28px; box-shadow: 0 18px 44px rgba(0,0,0,.08); }
.checkout-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.checkout-head h2 { margin: 0; font-size: 1.5rem; }
.checkout-head p { margin: 0; }
#checkout { min-height: 64px; }
.post-price { padding: 0 18px; font-weight: 800; color: var(--primary); }
.product-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 36px 0; padding: 24px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); }
.product-card h2 { margin: 0 0 6px; }
.product-card p { margin: 0; opacity: .9; }
.product-card .kicker { margin-bottom: 6px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: pointer; margin-bottom: 28px; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .play { border: 0; cursor: pointer; }
.yt:hover .play { transform: scale(1.1); background: var(--accent); }
@media (max-width: 700px) { .gets, .fit { grid-template-columns: 1fr; } .guarantee { flex-direction: column; align-items: flex-start; } }
