/* ATLAS Auditing & Consulting – feuille de style */

:root {
  --ink: #0D1B2A;
  --accent: #FF6B2C;
  --accent-text: #C2410C;
  --mist: #EEF2F6;
  --line: #D5DDE6;
  --steel: #4A5B6E;
  --soft: #C9D3DD;
  --white: #FFFFFF;
  --font: 'Sora', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1200px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 16px 28px; font: 800 15px var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #17304A; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #FF8350; }
.btn-outline { border-color: var(--white); color: var(--white); font-weight: 600; }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-block { display: block; width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13, 27, 42, .1); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: 3px; line-height: 1; }
.brand-sub { font: 600 7px var(--mono); letter-spacing: 3px; text-transform: uppercase; color: var(--accent-text); }

.main-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 600; }
.main-nav a { text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--accent-text); }
.main-nav .btn { padding: 13px 22px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(255, 255, 255, .06) 39px, rgba(255, 255, 255, .06) 40px);
  color: var(--white);
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 0; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 5vw, 68px); }
.accent { color: var(--accent); }
.lead { font-size: 18px; color: var(--soft); max-width: 560px; }
.lead.dark { color: var(--steel); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.eyebrow { font: 600 12px var(--mono); letter-spacing: 4px; text-transform: uppercase; color: var(--accent-text); }
.eyebrow-light { color: var(--accent); }

.hero-card { flex: 0 0 440px; max-width: 100%; background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.tag { padding: 5px 10px; background: var(--ink); color: var(--white); font: 600 10px var(--mono); letter-spacing: 0; text-transform: none; }
.bars { height: 200px; display: flex; align-items: flex-end; gap: 14px; padding: 26px 26px 0; }
.bars span { flex: 1 1 0; background: var(--line); transform-origin: bottom; animation: grow .9s ease both; }
.bars .mid { background: #8FA3B8; }
.bars .top { background: var(--ink); }
.bars span:nth-child(2) { animation-delay: .08s; }
.bars span:nth-child(3) { animation-delay: .16s; }
.bars span:nth-child(4) { animation-delay: .24s; }
.bars span:nth-child(5) { animation-delay: .32s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.checks { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; font-size: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- Chiffres clés ---------- */
.stats { background: var(--mist); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.stat { display: flex; align-items: baseline; gap: 14px; }
.stat:not(:first-child) { padding-left: 24px; border-left: 1px solid var(--soft); }
.stat-num { font-weight: 800; font-size: 52px; line-height: 1; }
.stat-label { font-size: 14px; line-height: 1.4; color: var(--steel); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--mist); border-top: 4px solid var(--ink); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(13, 27, 42, .12); }
.card-num { font: 600 13px var(--mono); color: var(--accent-text); }
.card h3 { font-weight: 800; font-size: 20px; }
.card p { font-size: 14px; color: var(--steel); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding-top: 24px; border-top: 2px solid #3A4B5E; display: flex; flex-direction: column; gap: 14px; }
.step:first-child { border-top-color: var(--accent); }
.step-num { font: 600 13px var(--mono); color: var(--accent); text-transform: uppercase; }
.step h3 { font-weight: 800; font-size: 20px; }
.step p { font-size: 14px; color: var(--soft); }

.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.member { display: flex; flex-direction: column; gap: 12px; }
.avatar { height: 180px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-weight: 800; font-size: 40px; transition: background .2s ease; }
.member:hover .avatar { background: var(--accent); color: var(--ink); }
.member h3 { font-weight: 800; font-size: 16px; }
.role { font: 400 11px var(--mono); letter-spacing: 1px; color: var(--accent-text); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
details { background: var(--white); border-left: 4px solid var(--ink); }
summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 600 22px var(--mono); color: var(--accent-text); }
details[open] summary::after { content: "–"; }
details[open] { border-left-color: var(--accent); }
details p { padding: 0 24px 22px; font-size: 15px; color: var(--steel); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); }
.contact-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; font-size: 13px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--mist); }
.row { display: flex; gap: 14px; }
.row .field { flex: 1 1 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 13px 14px; font: 400 14px var(--font); color: var(--ink);
  background: var(--white); border: 1px solid #C0CBD6; border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.field.invalid input, .field.invalid textarea { border-color: #B42318; }
.error { min-height: 16px; font-size: 12px; color: #B42318; }
.form-status { font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.ok { color: #067647; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--soft); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: var(--white); font-weight: 800; letter-spacing: 3px; font-size: 18px; }
.footer-brand span { font-size: 13px; }
.footer-legal { font-size: 11px; text-align: right; line-height: 1.7; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bars span { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; align-items: flex-start; padding-top: 72px; padding-bottom: 72px; }
  .hero-card { flex-basis: auto; width: 100%; max-width: 520px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { padding: 16px 32px; border-top: 1px solid var(--line); }
  .main-nav .btn { margin: 16px 32px; text-align: center; padding: 14px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .row { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
  .contact-form { padding: 22px; }
  .stat-num { font-size: 40px; }
}

/* =====================================================
   ANIMATIONS ET TRANSITIONS (v2)
   ===================================================== */

/* Barre de progression de lecture */
.progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left;
  transition: transform .1s linear; pointer-events: none;
}

/* Logo vivant */
.brand img { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }

/* Navigation : soulignement animé + section active */
.main-nav a:not(.btn) { position: relative; padding: 6px 0; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.active { color: var(--accent-text); }

/* Boutons : reflet lumineux */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s ease;
}
.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(.98); }
.magnetic { transition: transform .25s ease, background .15s ease, color .15s ease; will-change: transform; }

/* Hero : entrée en cascade */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .1s; }
.hero-copy > :nth-child(2) { animation-delay: .2s; }
.hero-copy > :nth-child(3) { animation-delay: .55s; }
.hero-copy > :nth-child(4) { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* Titre : mots qui montent un à un (activé par le JavaScript) */
.js .hero h1 { animation: none; opacity: 1; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.w > span { display: inline-block; transform: translateY(110%); animation: word .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.25s + var(--i) * .07s); }
@keyframes word { to { transform: none; } }

/* Grand symbole qui se dessine */
.hero-mark {
  position: absolute; right: -140px; top: 50%; width: 720px; height: 720px;
  margin-top: -360px; fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: .6;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
  transform: translateY(var(--py, 0px));
}
.hero-mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s ease forwards; }
.hero-mark .d1 { animation-delay: .5s; stroke-width: 1.4; }
.hero-mark .d2 { animation-delay: 1.3s; stroke: var(--accent); stroke-width: 1.4; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Lignes de grand livre qui défilent lentement */
.hero { background-size: 100% 40px; animation: ledger 6s linear infinite; }
@keyframes ledger { from { background-position: 0 0; } to { background-position: 0 40px; } }

/* Carte du hero : flottement + coches en séquence */
.hero-card { animation: rise 1s .5s cubic-bezier(.2, .7, .2, 1) both, float 7s 1.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.checks li { opacity: 0; animation: slide-in .6s ease forwards; }
.checks li:nth-child(1) { animation-delay: 1.3s; }
.checks li:nth-child(2) { animation-delay: 1.6s; }
.checks li:nth-child(3) { animation-delay: 1.9s; }
.checks li::before { animation: pop .5s ease backwards; animation-delay: inherit; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bars span { animation-delay: .9s; }
.bars span:nth-child(2) { animation-delay: .98s; }
.bars span:nth-child(3) { animation-delay: 1.06s; }
.bars span:nth-child(4) { animation-delay: 1.14s; }
.bars span:nth-child(5) { animation-delay: 1.22s; }

/* Bandeau défilant */
.marquee { overflow: hidden; background: var(--accent); color: var(--ink); padding: 16px 0; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 32s linear infinite; padding-left: 28px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 800 15px var(--font); letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; }
.marquee i { flex: 0 0 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Révélation : variantes et cascade */
.js .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .stat.reveal { transform: translateY(16px) scale(.96); }
.js .stat.reveal.visible { transform: none; }

/* Soulignement qui se trace sous les titres de section */
.section-head h2::after { content: ""; display: block; width: 0; height: 4px; margin-top: 18px; background: var(--accent); transition: width .9s .3s cubic-bezier(.2, .7, .2, 1); }
.section-head.visible h2::after { width: 72px; }

/* Cartes : survol 3D léger + halo qui suit la souris */
.cards { perspective: 1000px; }
.card { position: relative; overflow: hidden; border-top-color: var(--ink); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 44, .22), transparent 70%);
}
.card:hover::after { opacity: 1; }
.card::before { content: ""; position: absolute; left: 0; top: -4px; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.card:hover::before { transform: scaleX(1); }
.card-num { transition: transform .3s ease, letter-spacing .3s ease; }
.card:hover .card-num { transform: translateX(6px); letter-spacing: 3px; }
.js .card.visible { transition: opacity .7s ease, transform .35s ease, box-shadow .35s ease; }
.js .card.visible:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 20px 40px rgba(13, 27, 42, .16); }

/* Méthode : trait qui se remplit */
.step { position: relative; border-top: 2px solid #3A4B5E; }
.step:first-child { border-top-color: #3A4B5E; }
.step::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s .35s ease; }
.step.visible::before { transform: scaleX(1); }
.step::after { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg) scale(0); transition: transform .5s .35s cubic-bezier(.3, 1.6, .5, 1); }
.step.visible::after { transform: rotate(45deg) scale(1); }
.step h3 { transition: color .25s ease, transform .25s ease; }
.step:hover h3 { color: var(--accent); transform: translateX(6px); }

/* Équipe : avatar qui s'anime */
.avatar { position: relative; overflow: hidden; transition: background .3s ease, color .3s ease, letter-spacing .3s ease; }
.avatar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--accent); z-index: 0; transition: height .35s ease; opacity: .0; }
.member:hover .avatar { letter-spacing: 6px; }
.member h3, .role { transition: transform .25s ease; }
.member:hover h3, .member:hover .role { transform: translateX(6px); }

/* FAQ : ouverture douce */
details { transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
details:hover { transform: translateX(4px); box-shadow: 0 8px 20px rgba(13, 27, 42, .08); }
details[open] p { animation: faq-open .4s ease; }
summary::after { transition: transform .3s ease; }
details[open] summary::after { transform: rotate(180deg); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Formulaire : focus doux, validation animée, bouton d'envoi */
input, select, textarea { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(255, 107, 44, .2); }
.field.invalid { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.error { transition: opacity .2s ease; }
.btn.loading { pointer-events: none; opacity: .85; }
.btn.loading::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-status.ok { animation: rise .5s ease both; }
.form-status.ok::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: #067647; color: var(--white); font-size: 13px; animation: pop .5s ease; }

/* Retour en haut */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  background: var(--accent); color: var(--ink); box-shadow: 0 8px 24px rgba(13, 27, 42, .3);
  opacity: 0; transform: translateY(24px) scale(.8); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1), background .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--white); transform: translateY(-4px); }

/* Pied de page */
.footer-brand img { transition: transform .5s ease; }
.footer-brand:hover img { transform: rotate(360deg); }

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .hero, .marquee-track, .hero-card, .hero-copy > *, .checks li, .w > span,
  .hero-mark .draw, .bars span { animation: none !important; }
  .w > span, .checks li { transform: none; opacity: 1; }
  .hero-mark .draw { stroke-dashoffset: 0; }
  .step::before { transform: scaleX(1); transition: none; }
  .step::after { transform: rotate(45deg) scale(1); transition: none; }
  .section-head h2::after { width: 72px; transition: none; }
  .js .card.visible:hover, details:hover, .brand:hover img { transform: none; }
}

@media (max-width: 1024px) {
  .hero-mark { width: 520px; height: 520px; margin-top: -260px; right: -200px; }
}
@media (max-width: 640px) {
  .hero-mark { opacity: .6; }
  .to-top { right: 16px; bottom: 16px; }
  .marquee span { font-size: 13px; }
}

/* =====================================================
   COURS DE BOURSE EN DIRECT
   ===================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

:root { --up: #34D399; --down: #FF5D6C; --up-dark: #067647; --down-dark: #B42318; }

/* Bandeau défilant */
.ticker { display: flex; align-items: stretch; height: 46px; background: #102A56; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.ticker-status { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: #0A1B3A; font: 600 11px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; position: relative; z-index: 2; box-shadow: 8px 0 12px -4px rgba(0, 0, 0, .35); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--soft); display: inline-block; }
.is-live .dot { background: var(--up); animation: pulse 1.6s ease-out infinite; }
.is-demo .dot { background: var(--accent); animation: pulse-accent 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
@keyframes pulse-accent { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 44, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 107, 44, 0); } }

.ticker-viewport { flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; width: max-content; align-items: center; animation: marquee 80s linear infinite; }
.ticker:hover .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.tk-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 28px; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .3s ease; }
.tk-name { font-weight: 800; letter-spacing: .2px; }
.tk-chg { font-weight: 500; min-width: 52px; }
.tk-arrow { display: inline-block; width: 0; height: 0; }
.tk-item.up .tk-chg { color: var(--up); }
.tk-item.down .tk-chg { color: var(--down); }
.tk-item.flat .tk-chg { color: #9AA8BA; }
.tk-item.up .tk-arrow { border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--up); }
.tk-item.down .tk-arrow { border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--down); }
.tk-item.flat .tk-arrow { width: 14px; height: 3px; background: #9AA8BA; border-radius: 2px; }
.tk-item.flash-up { animation: tk-up 1s ease; }
.tk-item.flash-down { animation: tk-down 1s ease; }
@keyframes tk-up { 0% { background: rgba(52, 211, 153, .35); } 100% { background: transparent; } }
@keyframes tk-down { 0% { background: rgba(255, 93, 108, .35); } 100% { background: transparent; } }

/* Section marchés */
.market-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 24px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--white); border: 1px solid var(--line); font: 600 12px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.mk-updated { font-size: 12px; color: var(--steel); }
.btn-sm { padding: 9px 18px; font-size: 13px; margin-left: auto; }

.table-wrap { overflow-x: auto; background: var(--white); border-top: 4px solid var(--ink); box-shadow: 0 10px 30px rgba(13, 27, 42, .06); }
.market-table { width: 100%; min-width: 860px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.market-table th { padding: 16px 18px; text-align: left; font: 600 11px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid var(--line); white-space: nowrap; }
.market-table td { padding: 16px 18px; font-size: 15px; border-bottom: 1px solid var(--mist); white-space: nowrap; }
.market-table .num { text-align: right; }
.market-table tbody tr { transition: background .2s ease; }
.market-table tbody tr:hover { background: #F7F9FB; }
.market-table .mk-name { font-weight: 800; }
.market-table .mk-chg { font-weight: 600; }
.market-table tr.up .mk-chg { color: var(--up-dark); }
.market-table tr.down .mk-chg { color: var(--down-dark); }
.market-table tr.flat .mk-chg { color: var(--steel); }
.market-table .mk-chg::after { content: ""; display: inline-block; margin-left: 8px; vertical-align: middle; }
.market-table tr.up .mk-chg::after { border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--up-dark); }
.market-table tr.down .mk-chg::after { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--down-dark); }
.market-table tr.flat .mk-chg::after { width: 12px; height: 3px; background: var(--steel); border-radius: 2px; }
.market-table td.flash-up { animation: cell-up 1s ease; }
.market-table td.flash-down { animation: cell-down 1s ease; }
@keyframes cell-up { 0% { background: rgba(6, 118, 71, .22); } 100% { background: transparent; } }
@keyframes cell-down { 0% { background: rgba(180, 35, 24, .2); } 100% { background: transparent; } }
.spark { display: block; width: 110px; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
tr.up .spark polyline { stroke: var(--up-dark); }
tr.down .spark polyline { stroke: var(--down-dark); }
tr.flat .spark polyline { stroke: var(--steel); }
.market-note { margin-top: 18px; max-width: 760px; font-size: 13px; line-height: 1.6; color: var(--steel); }

@media (max-width: 640px) {
  .ticker { height: 42px; font-size: 13px; }
  .ticker-status { padding: 0 12px; }
  .ticker-status span { display: none; }
  .btn-sm { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  .ticker-viewport { overflow-x: auto; }
  .is-live .dot, .is-demo .dot { animation: none; }
  .tk-item.flash-up, .tk-item.flash-down, .market-table td.flash-up, .market-table td.flash-down { animation: none; }
}
.market-table tbody th.mk-name { padding: 16px 18px; font: 800 15px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--mist); }

/* Bouton du bandeau → page marché complet */
.ticker-btn {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 20px;
  background: var(--accent); color: var(--ink); font: 800 12px var(--font); letter-spacing: .5px;
  text-decoration: none; white-space: nowrap; position: relative; z-index: 2;
  box-shadow: -8px 0 12px -4px rgba(0, 0, 0, .35); transition: background .2s ease, gap .2s ease;
}
.ticker-btn:hover { background: #FF8350; gap: 12px; }
.market-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.market-cta span { font-size: 14px; color: var(--steel); }
@media (max-width: 640px) {
  .ticker-btn { padding: 0 14px; }
  .ticker-btn span { display: none; }
}

/* =====================================================
   PAGE ANALYSE + APERÇU SUR L'ACCUEIL
   ===================================================== */
.an-head { background-color: var(--ink); color: var(--white); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(255, 255, 255, .06) 39px, rgba(255, 255, 255, .06) 40px); }
.an-head-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-top: 48px; padding-bottom: 40px; }
.an-title { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.an-title h1 { font-weight: 800; font-size: clamp(30px, 4vw, 46px); }
.an-sub { color: var(--soft); font-size: 15px; max-width: 640px; }
.an-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.an-frame { position: relative; height: calc(100vh - var(--header-h)); min-height: 680px; background: #1B3070; }
.an-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #1B3070; }
.an-frame:fullscreen { height: 100vh; }
.an-loader { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: var(--white); font: 600 14px var(--mono); letter-spacing: 1px; transition: opacity .5s ease, visibility .5s ease; }
.an-loader.done { opacity: 0; visibility: hidden; }
.an-spin { width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.an-note { padding: 20px 0; background: var(--mist); font-size: 13px; color: var(--steel); }

/* Aperçu sur la page d'accueil */
.an-teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.an-teaser-copy { display: flex; flex-direction: column; gap: 20px; }
.an-teaser-copy h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.an-teaser-copy p { color: var(--steel); }
.an-teaser-copy .btn { align-self: flex-start; }
.an-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.an-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; background: var(--ink); color: var(--white); border-top: 4px solid var(--accent); position: relative; overflow: hidden; transition: transform .3s ease; }
.an-card:hover { transform: translateY(-6px); }
.an-card:nth-child(2) { border-top-color: #8FA3B8; }
.an-card:nth-child(3) { border-top-color: #FFFFFF; }
.an-card-name { font: 600 12px var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
.an-card-num { font-weight: 800; font-size: 40px; line-height: 1; }
.an-card-sub { font-size: 12px; line-height: 1.5; color: var(--soft); }
.an-card-bar { height: 6px; background: rgba(255, 255, 255, .15); margin-top: 6px; }
.an-card-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.2s .3s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible .an-card-bar i, .an-cards.visible .an-card-bar i { width: var(--w); }
.an-foot { margin-top: 14px; font-size: 12px; color: var(--steel); }

@media (max-width: 1024px) { .an-teaser { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .an-cards { grid-template-columns: 1fr; } .an-frame { min-height: 620px; } }
@media (prefers-reduced-motion: reduce) { .an-card-bar i { width: var(--w); transition: none; } .an-spin { animation: none; } }
.an-card-num { font-size: clamp(26px, 2.6vw, 34px); white-space: nowrap; }
.an-card:nth-child(3) { border-top-color: #5B6B7F; }
/* Bandeau compact de la page Analyse (le tableau de bord a son propre titre) */
.an-head-inner { align-items: center; padding-top: 24px; padding-bottom: 24px; }
.an-title { gap: 6px; }
.an-title h1 { font-size: clamp(22px, 2.6vw, 30px); }
.an-sub { display: none; }
.an-actions .btn { padding: 12px 22px; font-size: 14px; }

/* Pied de page compact (page Analyse) */
.site-footer.slim { padding: 0; }
.footer-slim-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; font-size: 11px; }
.brand-mini { display: inline-flex; align-items: center; gap: 8px; color: var(--white); letter-spacing: 2px; }
.brand-mini b { font-weight: 800; }
.site-footer.slim .mono { color: var(--soft); }
.an-frame { height: calc(100vh - var(--header-h) - 44px); }
@media (max-width: 640px) { .footer-slim-inner { justify-content: flex-start; } }
